xref: /netbsd-src/external/apache2/llvm/autoconf/configure (revision 53d1339bf7f9c7367b35a9e1ebe693f9b047a47b)
176c7fc5fSjoerg#! /bin/sh
276c7fc5fSjoerg# Guess values for system-dependent variables and create Makefiles.
376c7fc5fSjoerg# Generated by GNU Autoconf 2.69 for LLVM 4.0.0svn.
476c7fc5fSjoerg#
576c7fc5fSjoerg# Report bugs to <http://llvm.org/bugs/>.
676c7fc5fSjoerg#
776c7fc5fSjoerg#
876c7fc5fSjoerg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
976c7fc5fSjoerg#
1076c7fc5fSjoerg#
1176c7fc5fSjoerg# This configure script is free software; the Free Software Foundation
1276c7fc5fSjoerg# gives unlimited permission to copy, distribute and modify it.
1376c7fc5fSjoerg#
1476c7fc5fSjoerg# Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1576c7fc5fSjoerg## -------------------- ##
1676c7fc5fSjoerg## M4sh Initialization. ##
1776c7fc5fSjoerg## -------------------- ##
1876c7fc5fSjoerg
1976c7fc5fSjoerg# Be more Bourne compatible
2076c7fc5fSjoergDUALCASE=1; export DUALCASE # for MKS sh
2176c7fc5fSjoergif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2276c7fc5fSjoerg  emulate sh
2376c7fc5fSjoerg  NULLCMD=:
2476c7fc5fSjoerg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2576c7fc5fSjoerg  # is contrary to our usage.  Disable this feature.
2676c7fc5fSjoerg  alias -g '${1+"$@"}'='"$@"'
2776c7fc5fSjoerg  setopt NO_GLOB_SUBST
2876c7fc5fSjoergelse
2976c7fc5fSjoerg  case `(set -o) 2>/dev/null` in #(
3076c7fc5fSjoerg  *posix*) :
3176c7fc5fSjoerg    set -o posix ;; #(
3276c7fc5fSjoerg  *) :
3376c7fc5fSjoerg     ;;
3476c7fc5fSjoergesac
3576c7fc5fSjoergfi
3676c7fc5fSjoerg
3776c7fc5fSjoerg
3876c7fc5fSjoergas_nl='
3976c7fc5fSjoerg'
4076c7fc5fSjoergexport as_nl
4176c7fc5fSjoerg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4276c7fc5fSjoergas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4376c7fc5fSjoergas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4476c7fc5fSjoergas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4576c7fc5fSjoerg# Prefer a ksh shell builtin over an external printf program on Solaris,
4676c7fc5fSjoerg# but without wasting forks for bash or zsh.
4776c7fc5fSjoergif test -z "$BASH_VERSION$ZSH_VERSION" \
4876c7fc5fSjoerg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4976c7fc5fSjoerg  as_echo='print -r --'
5076c7fc5fSjoerg  as_echo_n='print -rn --'
5176c7fc5fSjoergelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5276c7fc5fSjoerg  as_echo='printf %s\n'
5376c7fc5fSjoerg  as_echo_n='printf %s'
5476c7fc5fSjoergelse
5576c7fc5fSjoerg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5676c7fc5fSjoerg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5776c7fc5fSjoerg    as_echo_n='/usr/ucb/echo -n'
5876c7fc5fSjoerg  else
5976c7fc5fSjoerg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6076c7fc5fSjoerg    as_echo_n_body='eval
6176c7fc5fSjoerg      arg=$1;
6276c7fc5fSjoerg      case $arg in #(
6376c7fc5fSjoerg      *"$as_nl"*)
6476c7fc5fSjoerg	expr "X$arg" : "X\\(.*\\)$as_nl";
6576c7fc5fSjoerg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6676c7fc5fSjoerg      esac;
6776c7fc5fSjoerg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6876c7fc5fSjoerg    '
6976c7fc5fSjoerg    export as_echo_n_body
7076c7fc5fSjoerg    as_echo_n='sh -c $as_echo_n_body as_echo'
7176c7fc5fSjoerg  fi
7276c7fc5fSjoerg  export as_echo_body
7376c7fc5fSjoerg  as_echo='sh -c $as_echo_body as_echo'
7476c7fc5fSjoergfi
7576c7fc5fSjoerg
7676c7fc5fSjoerg# The user is always right.
7776c7fc5fSjoergif test "${PATH_SEPARATOR+set}" != set; then
7876c7fc5fSjoerg  PATH_SEPARATOR=:
7976c7fc5fSjoerg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8076c7fc5fSjoerg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8176c7fc5fSjoerg      PATH_SEPARATOR=';'
8276c7fc5fSjoerg  }
8376c7fc5fSjoergfi
8476c7fc5fSjoerg
8576c7fc5fSjoerg
8676c7fc5fSjoerg# IFS
8776c7fc5fSjoerg# We need space, tab and new line, in precisely that order.  Quoting is
8876c7fc5fSjoerg# there to prevent editors from complaining about space-tab.
8976c7fc5fSjoerg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9076c7fc5fSjoerg# splitting by setting IFS to empty value.)
9176c7fc5fSjoergIFS=" ""	$as_nl"
9276c7fc5fSjoerg
9376c7fc5fSjoerg# Find who we are.  Look in the path if we contain no directory separator.
9476c7fc5fSjoergas_myself=
9576c7fc5fSjoergcase $0 in #((
9676c7fc5fSjoerg  *[\\/]* ) as_myself=$0 ;;
9776c7fc5fSjoerg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876c7fc5fSjoergfor as_dir in $PATH
9976c7fc5fSjoergdo
10076c7fc5fSjoerg  IFS=$as_save_IFS
10176c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
10276c7fc5fSjoerg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10376c7fc5fSjoerg  done
10476c7fc5fSjoergIFS=$as_save_IFS
10576c7fc5fSjoerg
10676c7fc5fSjoerg     ;;
10776c7fc5fSjoergesac
10876c7fc5fSjoerg# We did not find ourselves, most probably we were run as `sh COMMAND'
10976c7fc5fSjoerg# in which case we are not to be found in the path.
11076c7fc5fSjoergif test "x$as_myself" = x; then
11176c7fc5fSjoerg  as_myself=$0
11276c7fc5fSjoergfi
11376c7fc5fSjoergif test ! -f "$as_myself"; then
11476c7fc5fSjoerg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11576c7fc5fSjoerg  exit 1
11676c7fc5fSjoergfi
11776c7fc5fSjoerg
11876c7fc5fSjoerg# Unset variables that we do not need and which cause bugs (e.g. in
11976c7fc5fSjoerg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12076c7fc5fSjoerg# suppresses any "Segmentation fault" message there.  '((' could
12176c7fc5fSjoerg# trigger a bug in pdksh 5.2.14.
12276c7fc5fSjoergfor as_var in BASH_ENV ENV MAIL MAILPATH
12376c7fc5fSjoergdo eval test x\${$as_var+set} = xset \
12476c7fc5fSjoerg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12576c7fc5fSjoergdone
12676c7fc5fSjoergPS1='$ '
12776c7fc5fSjoergPS2='> '
12876c7fc5fSjoergPS4='+ '
12976c7fc5fSjoerg
13076c7fc5fSjoerg# NLS nuisances.
13176c7fc5fSjoergLC_ALL=C
13276c7fc5fSjoergexport LC_ALL
13376c7fc5fSjoergLANGUAGE=C
13476c7fc5fSjoergexport LANGUAGE
13576c7fc5fSjoerg
13676c7fc5fSjoerg# CDPATH.
13776c7fc5fSjoerg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13876c7fc5fSjoerg
13976c7fc5fSjoerg# Use a proper internal environment variable to ensure we don't fall
14076c7fc5fSjoerg  # into an infinite loop, continuously re-executing ourselves.
14176c7fc5fSjoerg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
14276c7fc5fSjoerg    _as_can_reexec=no; export _as_can_reexec;
14376c7fc5fSjoerg    # We cannot yet assume a decent shell, so we have to provide a
14476c7fc5fSjoerg# neutralization value for shells without unset; and this also
14576c7fc5fSjoerg# works around shells that cannot unset nonexistent variables.
14676c7fc5fSjoerg# Preserve -v and -x to the replacement shell.
14776c7fc5fSjoergBASH_ENV=/dev/null
14876c7fc5fSjoergENV=/dev/null
14976c7fc5fSjoerg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
15076c7fc5fSjoergcase $- in # ((((
15176c7fc5fSjoerg  *v*x* | *x*v* ) as_opts=-vx ;;
15276c7fc5fSjoerg  *v* ) as_opts=-v ;;
15376c7fc5fSjoerg  *x* ) as_opts=-x ;;
15476c7fc5fSjoerg  * ) as_opts= ;;
15576c7fc5fSjoergesac
15676c7fc5fSjoergexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
15776c7fc5fSjoerg# Admittedly, this is quite paranoid, since all the known shells bail
15876c7fc5fSjoerg# out after a failed `exec'.
15976c7fc5fSjoerg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
16076c7fc5fSjoergas_fn_exit 255
16176c7fc5fSjoerg  fi
16276c7fc5fSjoerg  # We don't want this to propagate to other subprocesses.
16376c7fc5fSjoerg          { _as_can_reexec=; unset _as_can_reexec;}
16476c7fc5fSjoergif test "x$CONFIG_SHELL" = x; then
16576c7fc5fSjoerg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
16676c7fc5fSjoerg  emulate sh
16776c7fc5fSjoerg  NULLCMD=:
16876c7fc5fSjoerg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
16976c7fc5fSjoerg  # is contrary to our usage.  Disable this feature.
17076c7fc5fSjoerg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
17176c7fc5fSjoerg  setopt NO_GLOB_SUBST
17276c7fc5fSjoergelse
17376c7fc5fSjoerg  case \`(set -o) 2>/dev/null\` in #(
17476c7fc5fSjoerg  *posix*) :
17576c7fc5fSjoerg    set -o posix ;; #(
17676c7fc5fSjoerg  *) :
17776c7fc5fSjoerg     ;;
17876c7fc5fSjoergesac
17976c7fc5fSjoergfi
18076c7fc5fSjoerg"
18176c7fc5fSjoerg  as_required="as_fn_return () { (exit \$1); }
18276c7fc5fSjoergas_fn_success () { as_fn_return 0; }
18376c7fc5fSjoergas_fn_failure () { as_fn_return 1; }
18476c7fc5fSjoergas_fn_ret_success () { return 0; }
18576c7fc5fSjoergas_fn_ret_failure () { return 1; }
18676c7fc5fSjoerg
18776c7fc5fSjoergexitcode=0
18876c7fc5fSjoergas_fn_success || { exitcode=1; echo as_fn_success failed.; }
18976c7fc5fSjoergas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
19076c7fc5fSjoergas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
19176c7fc5fSjoergas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
19276c7fc5fSjoergif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
19376c7fc5fSjoerg
19476c7fc5fSjoergelse
19576c7fc5fSjoerg  exitcode=1; echo positional parameters were not saved.
19676c7fc5fSjoergfi
19776c7fc5fSjoergtest x\$exitcode = x0 || exit 1
19876c7fc5fSjoergtest -x / || exit 1"
19976c7fc5fSjoerg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
20076c7fc5fSjoerg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
20176c7fc5fSjoerg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
20276c7fc5fSjoerg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
20376c7fc5fSjoergtest \$(( 1 + 1 )) = 2 || exit 1"
20476c7fc5fSjoerg  if (eval "$as_required") 2>/dev/null; then :
20576c7fc5fSjoerg  as_have_required=yes
20676c7fc5fSjoergelse
20776c7fc5fSjoerg  as_have_required=no
20876c7fc5fSjoergfi
20976c7fc5fSjoerg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
21076c7fc5fSjoerg
21176c7fc5fSjoergelse
21276c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21376c7fc5fSjoergas_found=false
21476c7fc5fSjoergfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21576c7fc5fSjoergdo
21676c7fc5fSjoerg  IFS=$as_save_IFS
21776c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
21876c7fc5fSjoerg  as_found=:
21976c7fc5fSjoerg  case $as_dir in #(
22076c7fc5fSjoerg	 /*)
22176c7fc5fSjoerg	   for as_base in sh bash ksh sh5; do
22276c7fc5fSjoerg	     # Try only shells that exist, to save several forks.
22376c7fc5fSjoerg	     as_shell=$as_dir/$as_base
22476c7fc5fSjoerg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
22576c7fc5fSjoerg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
22676c7fc5fSjoerg  CONFIG_SHELL=$as_shell as_have_required=yes
22776c7fc5fSjoerg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
22876c7fc5fSjoerg  break 2
22976c7fc5fSjoergfi
23076c7fc5fSjoergfi
23176c7fc5fSjoerg	   done;;
23276c7fc5fSjoerg       esac
23376c7fc5fSjoerg  as_found=false
23476c7fc5fSjoergdone
23576c7fc5fSjoerg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
23676c7fc5fSjoerg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
23776c7fc5fSjoerg  CONFIG_SHELL=$SHELL as_have_required=yes
23876c7fc5fSjoergfi; }
23976c7fc5fSjoergIFS=$as_save_IFS
24076c7fc5fSjoerg
24176c7fc5fSjoerg
24276c7fc5fSjoerg      if test "x$CONFIG_SHELL" != x; then :
24376c7fc5fSjoerg  export CONFIG_SHELL
24476c7fc5fSjoerg             # We cannot yet assume a decent shell, so we have to provide a
24576c7fc5fSjoerg# neutralization value for shells without unset; and this also
24676c7fc5fSjoerg# works around shells that cannot unset nonexistent variables.
24776c7fc5fSjoerg# Preserve -v and -x to the replacement shell.
24876c7fc5fSjoergBASH_ENV=/dev/null
24976c7fc5fSjoergENV=/dev/null
25076c7fc5fSjoerg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
25176c7fc5fSjoergcase $- in # ((((
25276c7fc5fSjoerg  *v*x* | *x*v* ) as_opts=-vx ;;
25376c7fc5fSjoerg  *v* ) as_opts=-v ;;
25476c7fc5fSjoerg  *x* ) as_opts=-x ;;
25576c7fc5fSjoerg  * ) as_opts= ;;
25676c7fc5fSjoergesac
25776c7fc5fSjoergexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
25876c7fc5fSjoerg# Admittedly, this is quite paranoid, since all the known shells bail
25976c7fc5fSjoerg# out after a failed `exec'.
26076c7fc5fSjoerg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
26176c7fc5fSjoergexit 255
26276c7fc5fSjoergfi
26376c7fc5fSjoerg
26476c7fc5fSjoerg    if test x$as_have_required = xno; then :
26576c7fc5fSjoerg  $as_echo "$0: This script requires a shell more modern than all"
26676c7fc5fSjoerg  $as_echo "$0: the shells that I found on your system."
26776c7fc5fSjoerg  if test x${ZSH_VERSION+set} = xset ; then
26876c7fc5fSjoerg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
26976c7fc5fSjoerg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
27076c7fc5fSjoerg  else
27176c7fc5fSjoerg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
27276c7fc5fSjoerg$0: http://llvm.org/bugs/ about your system, including any
27376c7fc5fSjoerg$0: error possibly output before this message. Then install
27476c7fc5fSjoerg$0: a modern shell, or manually run the script under such a
27576c7fc5fSjoerg$0: shell if you do have one."
27676c7fc5fSjoerg  fi
27776c7fc5fSjoerg  exit 1
27876c7fc5fSjoergfi
27976c7fc5fSjoergfi
28076c7fc5fSjoergfi
28176c7fc5fSjoergSHELL=${CONFIG_SHELL-/bin/sh}
28276c7fc5fSjoergexport SHELL
28376c7fc5fSjoerg# Unset more variables known to interfere with behavior of common tools.
28476c7fc5fSjoergCLICOLOR_FORCE= GREP_OPTIONS=
28576c7fc5fSjoergunset CLICOLOR_FORCE GREP_OPTIONS
28676c7fc5fSjoerg
28776c7fc5fSjoerg## --------------------- ##
28876c7fc5fSjoerg## M4sh Shell Functions. ##
28976c7fc5fSjoerg## --------------------- ##
29076c7fc5fSjoerg# as_fn_unset VAR
29176c7fc5fSjoerg# ---------------
29276c7fc5fSjoerg# Portably unset VAR.
29376c7fc5fSjoergas_fn_unset ()
29476c7fc5fSjoerg{
29576c7fc5fSjoerg  { eval $1=; unset $1;}
29676c7fc5fSjoerg}
29776c7fc5fSjoergas_unset=as_fn_unset
29876c7fc5fSjoerg
29976c7fc5fSjoerg# as_fn_set_status STATUS
30076c7fc5fSjoerg# -----------------------
30176c7fc5fSjoerg# Set $? to STATUS, without forking.
30276c7fc5fSjoergas_fn_set_status ()
30376c7fc5fSjoerg{
30476c7fc5fSjoerg  return $1
30576c7fc5fSjoerg} # as_fn_set_status
30676c7fc5fSjoerg
30776c7fc5fSjoerg# as_fn_exit STATUS
30876c7fc5fSjoerg# -----------------
30976c7fc5fSjoerg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31076c7fc5fSjoergas_fn_exit ()
31176c7fc5fSjoerg{
31276c7fc5fSjoerg  set +e
31376c7fc5fSjoerg  as_fn_set_status $1
31476c7fc5fSjoerg  exit $1
31576c7fc5fSjoerg} # as_fn_exit
31676c7fc5fSjoerg
31776c7fc5fSjoerg# as_fn_mkdir_p
31876c7fc5fSjoerg# -------------
31976c7fc5fSjoerg# Create "$as_dir" as a directory, including parents if necessary.
32076c7fc5fSjoergas_fn_mkdir_p ()
32176c7fc5fSjoerg{
32276c7fc5fSjoerg
32376c7fc5fSjoerg  case $as_dir in #(
32476c7fc5fSjoerg  -*) as_dir=./$as_dir;;
32576c7fc5fSjoerg  esac
32676c7fc5fSjoerg  test -d "$as_dir" || eval $as_mkdir_p || {
32776c7fc5fSjoerg    as_dirs=
32876c7fc5fSjoerg    while :; do
32976c7fc5fSjoerg      case $as_dir in #(
33076c7fc5fSjoerg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33176c7fc5fSjoerg      *) as_qdir=$as_dir;;
33276c7fc5fSjoerg      esac
33376c7fc5fSjoerg      as_dirs="'$as_qdir' $as_dirs"
33476c7fc5fSjoerg      as_dir=`$as_dirname -- "$as_dir" ||
33576c7fc5fSjoerg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33676c7fc5fSjoerg	 X"$as_dir" : 'X\(//\)[^/]' \| \
33776c7fc5fSjoerg	 X"$as_dir" : 'X\(//\)$' \| \
33876c7fc5fSjoerg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33976c7fc5fSjoerg$as_echo X"$as_dir" |
34076c7fc5fSjoerg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34176c7fc5fSjoerg	    s//\1/
34276c7fc5fSjoerg	    q
34376c7fc5fSjoerg	  }
34476c7fc5fSjoerg	  /^X\(\/\/\)[^/].*/{
34576c7fc5fSjoerg	    s//\1/
34676c7fc5fSjoerg	    q
34776c7fc5fSjoerg	  }
34876c7fc5fSjoerg	  /^X\(\/\/\)$/{
34976c7fc5fSjoerg	    s//\1/
35076c7fc5fSjoerg	    q
35176c7fc5fSjoerg	  }
35276c7fc5fSjoerg	  /^X\(\/\).*/{
35376c7fc5fSjoerg	    s//\1/
35476c7fc5fSjoerg	    q
35576c7fc5fSjoerg	  }
35676c7fc5fSjoerg	  s/.*/./; q'`
35776c7fc5fSjoerg      test -d "$as_dir" && break
35876c7fc5fSjoerg    done
35976c7fc5fSjoerg    test -z "$as_dirs" || eval "mkdir $as_dirs"
36076c7fc5fSjoerg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36176c7fc5fSjoerg
36276c7fc5fSjoerg
36376c7fc5fSjoerg} # as_fn_mkdir_p
36476c7fc5fSjoerg
36576c7fc5fSjoerg# as_fn_executable_p FILE
36676c7fc5fSjoerg# -----------------------
36776c7fc5fSjoerg# Test if FILE is an executable regular file.
36876c7fc5fSjoergas_fn_executable_p ()
36976c7fc5fSjoerg{
37076c7fc5fSjoerg  test -f "$1" && test -x "$1"
37176c7fc5fSjoerg} # as_fn_executable_p
37276c7fc5fSjoerg# as_fn_append VAR VALUE
37376c7fc5fSjoerg# ----------------------
37476c7fc5fSjoerg# Append the text in VALUE to the end of the definition contained in VAR. Take
37576c7fc5fSjoerg# advantage of any shell optimizations that allow amortized linear growth over
37676c7fc5fSjoerg# repeated appends, instead of the typical quadratic growth present in naive
37776c7fc5fSjoerg# implementations.
37876c7fc5fSjoergif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37976c7fc5fSjoerg  eval 'as_fn_append ()
38076c7fc5fSjoerg  {
38176c7fc5fSjoerg    eval $1+=\$2
38276c7fc5fSjoerg  }'
38376c7fc5fSjoergelse
38476c7fc5fSjoerg  as_fn_append ()
38576c7fc5fSjoerg  {
38676c7fc5fSjoerg    eval $1=\$$1\$2
38776c7fc5fSjoerg  }
38876c7fc5fSjoergfi # as_fn_append
38976c7fc5fSjoerg
39076c7fc5fSjoerg# as_fn_arith ARG...
39176c7fc5fSjoerg# ------------------
39276c7fc5fSjoerg# Perform arithmetic evaluation on the ARGs, and store the result in the
39376c7fc5fSjoerg# global $as_val. Take advantage of shells that can avoid forks. The arguments
39476c7fc5fSjoerg# must be portable across $(()) and expr.
39576c7fc5fSjoergif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
39676c7fc5fSjoerg  eval 'as_fn_arith ()
39776c7fc5fSjoerg  {
39876c7fc5fSjoerg    as_val=$(( $* ))
39976c7fc5fSjoerg  }'
40076c7fc5fSjoergelse
40176c7fc5fSjoerg  as_fn_arith ()
40276c7fc5fSjoerg  {
40376c7fc5fSjoerg    as_val=`expr "$@" || test $? -eq 1`
40476c7fc5fSjoerg  }
40576c7fc5fSjoergfi # as_fn_arith
40676c7fc5fSjoerg
40776c7fc5fSjoerg
40876c7fc5fSjoerg# as_fn_error STATUS ERROR [LINENO LOG_FD]
40976c7fc5fSjoerg# ----------------------------------------
41076c7fc5fSjoerg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41176c7fc5fSjoerg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41276c7fc5fSjoerg# script with STATUS, using 1 if that was 0.
41376c7fc5fSjoergas_fn_error ()
41476c7fc5fSjoerg{
41576c7fc5fSjoerg  as_status=$1; test $as_status -eq 0 && as_status=1
41676c7fc5fSjoerg  if test "$4"; then
41776c7fc5fSjoerg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41876c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41976c7fc5fSjoerg  fi
42076c7fc5fSjoerg  $as_echo "$as_me: error: $2" >&2
42176c7fc5fSjoerg  as_fn_exit $as_status
42276c7fc5fSjoerg} # as_fn_error
42376c7fc5fSjoerg
42476c7fc5fSjoergif expr a : '\(a\)' >/dev/null 2>&1 &&
42576c7fc5fSjoerg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
42676c7fc5fSjoerg  as_expr=expr
42776c7fc5fSjoergelse
42876c7fc5fSjoerg  as_expr=false
42976c7fc5fSjoergfi
43076c7fc5fSjoerg
43176c7fc5fSjoergif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43276c7fc5fSjoerg  as_basename=basename
43376c7fc5fSjoergelse
43476c7fc5fSjoerg  as_basename=false
43576c7fc5fSjoergfi
43676c7fc5fSjoerg
43776c7fc5fSjoergif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43876c7fc5fSjoerg  as_dirname=dirname
43976c7fc5fSjoergelse
44076c7fc5fSjoerg  as_dirname=false
44176c7fc5fSjoergfi
44276c7fc5fSjoerg
44376c7fc5fSjoergas_me=`$as_basename -- "$0" ||
44476c7fc5fSjoerg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44576c7fc5fSjoerg	 X"$0" : 'X\(//\)$' \| \
44676c7fc5fSjoerg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44776c7fc5fSjoerg$as_echo X/"$0" |
44876c7fc5fSjoerg    sed '/^.*\/\([^/][^/]*\)\/*$/{
44976c7fc5fSjoerg	    s//\1/
45076c7fc5fSjoerg	    q
45176c7fc5fSjoerg	  }
45276c7fc5fSjoerg	  /^X\/\(\/\/\)$/{
45376c7fc5fSjoerg	    s//\1/
45476c7fc5fSjoerg	    q
45576c7fc5fSjoerg	  }
45676c7fc5fSjoerg	  /^X\/\(\/\).*/{
45776c7fc5fSjoerg	    s//\1/
45876c7fc5fSjoerg	    q
45976c7fc5fSjoerg	  }
46076c7fc5fSjoerg	  s/.*/./; q'`
46176c7fc5fSjoerg
46276c7fc5fSjoerg# Avoid depending upon Character Ranges.
46376c7fc5fSjoergas_cr_letters='abcdefghijklmnopqrstuvwxyz'
46476c7fc5fSjoergas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46576c7fc5fSjoergas_cr_Letters=$as_cr_letters$as_cr_LETTERS
46676c7fc5fSjoergas_cr_digits='0123456789'
46776c7fc5fSjoergas_cr_alnum=$as_cr_Letters$as_cr_digits
46876c7fc5fSjoerg
46976c7fc5fSjoerg
47076c7fc5fSjoerg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
47176c7fc5fSjoerg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
47276c7fc5fSjoerg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
47376c7fc5fSjoerg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
47476c7fc5fSjoerg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
47576c7fc5fSjoerg  sed -n '
47676c7fc5fSjoerg    p
47776c7fc5fSjoerg    /[$]LINENO/=
47876c7fc5fSjoerg  ' <$as_myself |
47976c7fc5fSjoerg    sed '
48076c7fc5fSjoerg      s/[$]LINENO.*/&-/
48176c7fc5fSjoerg      t lineno
48276c7fc5fSjoerg      b
48376c7fc5fSjoerg      :lineno
48476c7fc5fSjoerg      N
48576c7fc5fSjoerg      :loop
48676c7fc5fSjoerg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48776c7fc5fSjoerg      t loop
48876c7fc5fSjoerg      s/-\n.*//
48976c7fc5fSjoerg    ' >$as_me.lineno &&
49076c7fc5fSjoerg  chmod +x "$as_me.lineno" ||
49176c7fc5fSjoerg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
49276c7fc5fSjoerg
49376c7fc5fSjoerg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
49476c7fc5fSjoerg  # already done that, so ensure we don't try to do so again and fall
49576c7fc5fSjoerg  # in an infinite loop.  This has already happened in practice.
49676c7fc5fSjoerg  _as_can_reexec=no; export _as_can_reexec
49776c7fc5fSjoerg  # Don't try to exec as it changes $[0], causing all sort of problems
49876c7fc5fSjoerg  # (the dirname of $[0] is not the place where we might find the
49976c7fc5fSjoerg  # original and so on.  Autoconf is especially sensitive to this).
50076c7fc5fSjoerg  . "./$as_me.lineno"
50176c7fc5fSjoerg  # Exit status is that of the last command.
50276c7fc5fSjoerg  exit
50376c7fc5fSjoerg}
50476c7fc5fSjoerg
50576c7fc5fSjoergECHO_C= ECHO_N= ECHO_T=
50676c7fc5fSjoergcase `echo -n x` in #(((((
50776c7fc5fSjoerg-n*)
50876c7fc5fSjoerg  case `echo 'xy\c'` in
50976c7fc5fSjoerg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
51076c7fc5fSjoerg  xy)  ECHO_C='\c';;
51176c7fc5fSjoerg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
51276c7fc5fSjoerg       ECHO_T='	';;
51376c7fc5fSjoerg  esac;;
51476c7fc5fSjoerg*)
51576c7fc5fSjoerg  ECHO_N='-n';;
51676c7fc5fSjoergesac
51776c7fc5fSjoerg
51876c7fc5fSjoergrm -f conf$$ conf$$.exe conf$$.file
51976c7fc5fSjoergif test -d conf$$.dir; then
52076c7fc5fSjoerg  rm -f conf$$.dir/conf$$.file
52176c7fc5fSjoergelse
52276c7fc5fSjoerg  rm -f conf$$.dir
52376c7fc5fSjoerg  mkdir conf$$.dir 2>/dev/null
52476c7fc5fSjoergfi
52576c7fc5fSjoergif (echo >conf$$.file) 2>/dev/null; then
52676c7fc5fSjoerg  if ln -s conf$$.file conf$$ 2>/dev/null; then
52776c7fc5fSjoerg    as_ln_s='ln -s'
52876c7fc5fSjoerg    # ... but there are two gotchas:
52976c7fc5fSjoerg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53076c7fc5fSjoerg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53176c7fc5fSjoerg    # In both cases, we have to default to `cp -pR'.
53276c7fc5fSjoerg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53376c7fc5fSjoerg      as_ln_s='cp -pR'
53476c7fc5fSjoerg  elif ln conf$$.file conf$$ 2>/dev/null; then
53576c7fc5fSjoerg    as_ln_s=ln
53676c7fc5fSjoerg  else
53776c7fc5fSjoerg    as_ln_s='cp -pR'
53876c7fc5fSjoerg  fi
53976c7fc5fSjoergelse
54076c7fc5fSjoerg  as_ln_s='cp -pR'
54176c7fc5fSjoergfi
54276c7fc5fSjoergrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
54376c7fc5fSjoergrmdir conf$$.dir 2>/dev/null
54476c7fc5fSjoerg
54576c7fc5fSjoergif mkdir -p . 2>/dev/null; then
54676c7fc5fSjoerg  as_mkdir_p='mkdir -p "$as_dir"'
54776c7fc5fSjoergelse
54876c7fc5fSjoerg  test -d ./-p && rmdir ./-p
54976c7fc5fSjoerg  as_mkdir_p=false
55076c7fc5fSjoergfi
55176c7fc5fSjoerg
55276c7fc5fSjoergas_test_x='test -x'
55376c7fc5fSjoergas_executable_p=as_fn_executable_p
55476c7fc5fSjoerg
55576c7fc5fSjoerg# Sed expression to map a string onto a valid CPP name.
55676c7fc5fSjoergas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55776c7fc5fSjoerg
55876c7fc5fSjoerg# Sed expression to map a string onto a valid variable name.
55976c7fc5fSjoergas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56076c7fc5fSjoerg
56176c7fc5fSjoerg
56276c7fc5fSjoergtest -n "$DJDIR" || exec 7<&0 </dev/null
56376c7fc5fSjoergexec 6>&1
56476c7fc5fSjoerg
56576c7fc5fSjoerg# Name of the host.
56676c7fc5fSjoerg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
56776c7fc5fSjoerg# so uname gets run too.
56876c7fc5fSjoergac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
56976c7fc5fSjoerg
57076c7fc5fSjoerg#
57176c7fc5fSjoerg# Initializations.
57276c7fc5fSjoerg#
57376c7fc5fSjoergac_default_prefix=/usr/local
57476c7fc5fSjoergac_clean_files=
57576c7fc5fSjoergac_config_libobj_dir=.
57676c7fc5fSjoergLIBOBJS=
57776c7fc5fSjoergcross_compiling=no
57876c7fc5fSjoergsubdirs=
57976c7fc5fSjoergMFLAGS=
58076c7fc5fSjoergMAKEFLAGS=
58176c7fc5fSjoerg
58276c7fc5fSjoerg# Identity of this package.
58376c7fc5fSjoergPACKAGE_NAME='LLVM'
58476c7fc5fSjoergPACKAGE_TARNAME='llvm'
58576c7fc5fSjoergPACKAGE_VERSION='4.0.0svn'
58676c7fc5fSjoergPACKAGE_STRING='LLVM 4.0.0svn'
58776c7fc5fSjoergPACKAGE_BUGREPORT='http://llvm.org/bugs/'
58876c7fc5fSjoergPACKAGE_URL=''
58976c7fc5fSjoerg
59076c7fc5fSjoergenable_option_checking=no
59176c7fc5fSjoerg# Factoring default headers for most tests.
59276c7fc5fSjoergac_includes_default="\
59376c7fc5fSjoerg#include <stdio.h>
59476c7fc5fSjoerg#ifdef HAVE_SYS_TYPES_H
59576c7fc5fSjoerg# include <sys/types.h>
59676c7fc5fSjoerg#endif
59776c7fc5fSjoerg#ifdef HAVE_SYS_STAT_H
59876c7fc5fSjoerg# include <sys/stat.h>
59976c7fc5fSjoerg#endif
60076c7fc5fSjoerg#ifdef STDC_HEADERS
60176c7fc5fSjoerg# include <stdlib.h>
60276c7fc5fSjoerg# include <stddef.h>
60376c7fc5fSjoerg#else
60476c7fc5fSjoerg# ifdef HAVE_STDLIB_H
60576c7fc5fSjoerg#  include <stdlib.h>
60676c7fc5fSjoerg# endif
60776c7fc5fSjoerg#endif
60876c7fc5fSjoerg#ifdef HAVE_STRING_H
60976c7fc5fSjoerg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
61076c7fc5fSjoerg#  include <memory.h>
61176c7fc5fSjoerg# endif
61276c7fc5fSjoerg# include <string.h>
61376c7fc5fSjoerg#endif
61476c7fc5fSjoerg#ifdef HAVE_STRINGS_H
61576c7fc5fSjoerg# include <strings.h>
61676c7fc5fSjoerg#endif
61776c7fc5fSjoerg#ifdef HAVE_INTTYPES_H
61876c7fc5fSjoerg# include <inttypes.h>
61976c7fc5fSjoerg#endif
62076c7fc5fSjoerg#ifdef HAVE_STDINT_H
62176c7fc5fSjoerg# include <stdint.h>
62276c7fc5fSjoerg#endif
62376c7fc5fSjoerg#ifdef HAVE_UNISTD_H
62476c7fc5fSjoerg# include <unistd.h>
62576c7fc5fSjoerg#endif"
62676c7fc5fSjoerg
62776c7fc5fSjoergac_subst_vars='LTLIBOBJS
62876c7fc5fSjoergLIBOBJS
62976c7fc5fSjoergRDYNAMIC
63076c7fc5fSjoergRPATH
63176c7fc5fSjoergENABLE_VISIBILITY_INLINES_HIDDEN
63276c7fc5fSjoergOCAML_LIBDIR
63376c7fc5fSjoergHAVE_OCAML_OUNIT
63476c7fc5fSjoergHAVE_OCAMLOPT
63576c7fc5fSjoergBINDINGS_TO_BUILD
63676c7fc5fSjoergSHLIBEXT
63776c7fc5fSjoergHUGE_VAL_SANITY
63876c7fc5fSjoergHAVE_LIBZ
63976c7fc5fSjoergHAVE_PTHREAD
64076c7fc5fSjoergUSE_INTEL_JITEVENTS
64176c7fc5fSjoergUSE_OPROFILE
64276c7fc5fSjoergHAVE_TERMINFO
64376c7fc5fSjoergHAVE_DLOPEN
64476c7fc5fSjoergNO_COMMENT
64576c7fc5fSjoergNO_UNINITIALIZED
64676c7fc5fSjoergNO_MAYBE_UNINITIALIZED
64776c7fc5fSjoergCOVERED_SWITCH_DEFAULT
64876c7fc5fSjoergMISSING_FIELD_INITIALIZERS
64976c7fc5fSjoergNO_VARIADIC_MACROS
65076c7fc5fSjoergEGREP
65176c7fc5fSjoergHAVE_LINK_VERSION_SCRIPT
65276c7fc5fSjoergGAS
65376c7fc5fSjoergOCAMLFIND
65476c7fc5fSjoergGO
65576c7fc5fSjoergZIP
65676c7fc5fSjoergPDFROFF
65776c7fc5fSjoergGZIPBIN
65876c7fc5fSjoergGROFF
65976c7fc5fSjoergDOXYGEN
66076c7fc5fSjoergCAT
66176c7fc5fSjoergBZIP2
66276c7fc5fSjoergINSTALL_DATA
66376c7fc5fSjoergINSTALL_SCRIPT
66476c7fc5fSjoergINSTALL_PROGRAM
66576c7fc5fSjoergDOT
66676c7fc5fSjoergBINPWD
66776c7fc5fSjoergTAR
66876c7fc5fSjoergSED
66976c7fc5fSjoergRM
67076c7fc5fSjoergAR
67176c7fc5fSjoergRANLIB
67276c7fc5fSjoergMV
67376c7fc5fSjoergMKDIR
67476c7fc5fSjoergGREP
67576c7fc5fSjoergFIND
67676c7fc5fSjoergDATE
67776c7fc5fSjoergCP
67876c7fc5fSjoergCMP
67976c7fc5fSjoergNM
68076c7fc5fSjoergLN_S
68176c7fc5fSjoergifGNUmake
68276c7fc5fSjoergINTERNAL_PREFIX
68376c7fc5fSjoergENABLE_TERMINFO
68476c7fc5fSjoergBINUTILS_INCDIR
68576c7fc5fSjoergCLANG_SRC_ROOT
68676c7fc5fSjoergEXTRA_LD_OPTIONS
68776c7fc5fSjoergEXTRA_OPTIONS
68876c7fc5fSjoergOPTIMIZE_OPTION
68976c7fc5fSjoergLLVM_ENUM_DISASSEMBLERS
69076c7fc5fSjoergLLVM_ENUM_ASM_PARSERS
69176c7fc5fSjoergLLVM_ENUM_ASM_PRINTERS
69276c7fc5fSjoergLLVM_ENUM_TARGETS
69376c7fc5fSjoergTARGETS_TO_BUILD
69476c7fc5fSjoergALL_TARGETS
69576c7fc5fSjoergENABLE_EMBED_STDCXX
69676c7fc5fSjoergENABLE_SHARED
69776c7fc5fSjoergLLVM_ENABLE_ZLIB
69876c7fc5fSjoergENABLE_PTHREADS
69976c7fc5fSjoergLLVM_ENABLE_THREADS
70076c7fc5fSjoergclang_doxygen_qhp_cust_filter_attrs
70176c7fc5fSjoergclang_doxygen_qhp_cust_filter_name
70276c7fc5fSjoergclang_doxygen_qhelpgenerator_path
70376c7fc5fSjoergclang_doxygen_qhp_namespace
70476c7fc5fSjoergclang_doxygen_qch_filename
70576c7fc5fSjoergclang_doxygen_generate_qhp
70676c7fc5fSjoergllvm_doxygen_qhp_cust_filter_attrs
70776c7fc5fSjoergllvm_doxygen_qhp_cust_filter_name
70876c7fc5fSjoergllvm_doxygen_qhelpgenerator_path
70976c7fc5fSjoergllvm_doxygen_qhp_namespace
71076c7fc5fSjoergllvm_doxygen_qch_filename
71176c7fc5fSjoergllvm_doxygen_generate_qhp
71276c7fc5fSjoergQHELPGENERATOR
71376c7fc5fSjoergextra_search_mappings
71476c7fc5fSjoergsearchengine_url
71576c7fc5fSjoergenable_server_based_search
71676c7fc5fSjoergenable_external_search
71776c7fc5fSjoergenable_searchengine
71876c7fc5fSjoergENABLE_DOXYGEN
71976c7fc5fSjoergENABLE_DOCS
72076c7fc5fSjoergTARGETS_WITH_JIT
72176c7fc5fSjoergTARGET_HAS_JIT
72276c7fc5fSjoergJIT
72376c7fc5fSjoergKEEP_SYMBOLS
72476c7fc5fSjoergDEBUG_SYMBOLS
72576c7fc5fSjoergDEBUG_RUNTIME
72676c7fc5fSjoergENABLE_ABI_BREAKING_CHECKS
72776c7fc5fSjoergEXPENSIVE_CHECKS
72876c7fc5fSjoergENABLE_EXPENSIVE_CHECKS
72976c7fc5fSjoergENABLE_WERROR
73076c7fc5fSjoergDISABLE_ASSERTIONS
73176c7fc5fSjoergENABLE_PROFILING
73276c7fc5fSjoergENABLE_OPTIMIZED
73376c7fc5fSjoergENABLE_CLANG_STATIC_ANALYZER
73476c7fc5fSjoergCLANG_PLUGIN_SUPPORT
73576c7fc5fSjoergENABLE_CLANG_ARCMT
73676c7fc5fSjoergENABLE_SPLIT_DWARF
73776c7fc5fSjoergENABLE_CXX1Y
73876c7fc5fSjoergENABLE_LIBCPP
73976c7fc5fSjoergCVSBUILD
74076c7fc5fSjoergBUILD_CXX
74176c7fc5fSjoergBUILD_EXEEXT
74276c7fc5fSjoergBUILD_CC
74376c7fc5fSjoergLLVM_CROSS_COMPILING
74476c7fc5fSjoergHOST_ARCH
74576c7fc5fSjoergLLVM_NATIVE_ARCH
74676c7fc5fSjoergARCH
74776c7fc5fSjoergLLVM_ON_WIN32
74876c7fc5fSjoergLLVM_ON_UNIX
74976c7fc5fSjoergNOLINKALL
75076c7fc5fSjoergLINKALL
75176c7fc5fSjoergTARGET_OS
75276c7fc5fSjoergHOST_OS
75376c7fc5fSjoergOS
75476c7fc5fSjoergtarget_os
75576c7fc5fSjoergtarget_vendor
75676c7fc5fSjoergtarget_cpu
75776c7fc5fSjoergtarget
75876c7fc5fSjoerghost_os
75976c7fc5fSjoerghost_vendor
76076c7fc5fSjoerghost_cpu
76176c7fc5fSjoerghost
76276c7fc5fSjoergbuild_os
76376c7fc5fSjoergbuild_vendor
76476c7fc5fSjoergbuild_cpu
76576c7fc5fSjoergbuild
76676c7fc5fSjoergsubdirs
76776c7fc5fSjoergLLVM_HAS_POLLY
76876c7fc5fSjoergENABLE_POLLY
76976c7fc5fSjoergCXX_COMPILER
77076c7fc5fSjoergCPP
77176c7fc5fSjoergac_ct_CXX
77276c7fc5fSjoergCXXFLAGS
77376c7fc5fSjoergCXX
77476c7fc5fSjoergOBJEXT
77576c7fc5fSjoergEXEEXT
77676c7fc5fSjoergac_ct_CC
77776c7fc5fSjoergCPPFLAGS
77876c7fc5fSjoergLDFLAGS
77976c7fc5fSjoergCFLAGS
78076c7fc5fSjoergCC
78176c7fc5fSjoergLLVM_COPYRIGHT
78276c7fc5fSjoergLLVM_VERSION_SUFFIX
78376c7fc5fSjoergLLVM_VERSION_PATCH
78476c7fc5fSjoergLLVM_VERSION_MINOR
78576c7fc5fSjoergLLVM_VERSION_MAJOR
78676c7fc5fSjoergtarget_alias
78776c7fc5fSjoerghost_alias
78876c7fc5fSjoergbuild_alias
78976c7fc5fSjoergLIBS
79076c7fc5fSjoergECHO_T
79176c7fc5fSjoergECHO_N
79276c7fc5fSjoergECHO_C
79376c7fc5fSjoergDEFS
79476c7fc5fSjoergmandir
79576c7fc5fSjoerglocaledir
79676c7fc5fSjoerglibdir
79776c7fc5fSjoergpsdir
79876c7fc5fSjoergpdfdir
79976c7fc5fSjoergdvidir
80076c7fc5fSjoerghtmldir
80176c7fc5fSjoerginfodir
80276c7fc5fSjoergdocdir
80376c7fc5fSjoergoldincludedir
80476c7fc5fSjoergincludedir
80576c7fc5fSjoerglocalstatedir
80676c7fc5fSjoergsharedstatedir
80776c7fc5fSjoergsysconfdir
80876c7fc5fSjoergdatadir
80976c7fc5fSjoergdatarootdir
81076c7fc5fSjoerglibexecdir
81176c7fc5fSjoergsbindir
81276c7fc5fSjoergbindir
81376c7fc5fSjoergprogram_transform_name
81476c7fc5fSjoergprefix
81576c7fc5fSjoergexec_prefix
81676c7fc5fSjoergPACKAGE_URL
81776c7fc5fSjoergPACKAGE_BUGREPORT
81876c7fc5fSjoergPACKAGE_STRING
81976c7fc5fSjoergPACKAGE_VERSION
82076c7fc5fSjoergPACKAGE_TARNAME
82176c7fc5fSjoergPACKAGE_NAME
82276c7fc5fSjoergPATH_SEPARATOR
82376c7fc5fSjoergSHELL'
82476c7fc5fSjoergac_subst_files=''
82576c7fc5fSjoergac_user_opts='
82676c7fc5fSjoergenable_option_checking
82776c7fc5fSjoergwith_llvm_srcdir
82876c7fc5fSjoergenable_polly
82976c7fc5fSjoergenable_libcpp
83076c7fc5fSjoergenable_compiler_version_checks
83176c7fc5fSjoergenable_cxx1y
83276c7fc5fSjoergenable_split_dwarf
83376c7fc5fSjoergenable_clang_arcmt
83476c7fc5fSjoergenable_clang_plugin_support
83576c7fc5fSjoergenable_clang_static_analyzer
83676c7fc5fSjoergenable_optimized
83776c7fc5fSjoergenable_profiling
83876c7fc5fSjoergenable_assertions
83976c7fc5fSjoergenable_werror
84076c7fc5fSjoergenable_expensive_checks
84176c7fc5fSjoergenable_abi_breaking_checks
84276c7fc5fSjoergenable_debug_runtime
84376c7fc5fSjoergenable_debug_symbols
84476c7fc5fSjoergenable_keep_symbols
84576c7fc5fSjoergenable_jit
84676c7fc5fSjoergenable_docs
84776c7fc5fSjoergenable_doxygen
84876c7fc5fSjoergenable_doxygen_search
84976c7fc5fSjoergenable_doxygen_external_search
85076c7fc5fSjoergwith_doxygen_search_engine_url
85176c7fc5fSjoergwith_doxygen_search_mappings
85276c7fc5fSjoergenable_doxygen_qt_help
85376c7fc5fSjoergenable_threads
85476c7fc5fSjoergenable_pthreads
85576c7fc5fSjoergenable_zlib
85676c7fc5fSjoergenable_shared
85776c7fc5fSjoergenable_embed_stdcxx
85876c7fc5fSjoergenable_backtraces
85976c7fc5fSjoergenable_crash_overrides
86076c7fc5fSjoergenable_targets
86176c7fc5fSjoergenable_experimental_targets
86276c7fc5fSjoergwith_optimize_option
86376c7fc5fSjoergwith_extra_options
86476c7fc5fSjoergwith_extra_ld_options
86576c7fc5fSjoergenable_bindings
86676c7fc5fSjoergwith_ocaml_libdir
86776c7fc5fSjoergwith_clang_srcdir
86876c7fc5fSjoergwith_clang_resource_dir
86976c7fc5fSjoergwith_c_include_dirs
87076c7fc5fSjoergwith_clang_default_openmp_runtime
87176c7fc5fSjoergwith_binutils_include
87276c7fc5fSjoergwith_bug_report_url
87376c7fc5fSjoergenable_terminfo
87476c7fc5fSjoergenable_libedit
87576c7fc5fSjoergenable_libffi
87676c7fc5fSjoergwith_internal_prefix
87776c7fc5fSjoergwith_oprofile
87876c7fc5fSjoergwith_intel_jitevents
87976c7fc5fSjoerg'
88076c7fc5fSjoerg      ac_precious_vars='build_alias
88176c7fc5fSjoerghost_alias
88276c7fc5fSjoergtarget_alias
88376c7fc5fSjoergCC
88476c7fc5fSjoergCFLAGS
88576c7fc5fSjoergLDFLAGS
88676c7fc5fSjoergLIBS
88776c7fc5fSjoergCPPFLAGS
88876c7fc5fSjoergCXX
88976c7fc5fSjoergCXXFLAGS
89076c7fc5fSjoergCCC
89176c7fc5fSjoergCPP'
89276c7fc5fSjoergac_subdirs_all='tools/polly'
89376c7fc5fSjoerg
89476c7fc5fSjoerg# Initialize some variables set by options.
89576c7fc5fSjoergac_init_help=
89676c7fc5fSjoergac_init_version=false
89776c7fc5fSjoergac_unrecognized_opts=
89876c7fc5fSjoergac_unrecognized_sep=
89976c7fc5fSjoerg# The variables have the same names as the options, with
90076c7fc5fSjoerg# dashes changed to underlines.
90176c7fc5fSjoergcache_file=/dev/null
90276c7fc5fSjoergexec_prefix=NONE
90376c7fc5fSjoergno_create=
90476c7fc5fSjoergno_recursion=
90576c7fc5fSjoergprefix=NONE
90676c7fc5fSjoergprogram_prefix=NONE
90776c7fc5fSjoergprogram_suffix=NONE
90876c7fc5fSjoergprogram_transform_name=s,x,x,
90976c7fc5fSjoergsilent=
91076c7fc5fSjoergsite=
91176c7fc5fSjoergsrcdir=
91276c7fc5fSjoergverbose=
91376c7fc5fSjoergx_includes=NONE
91476c7fc5fSjoergx_libraries=NONE
91576c7fc5fSjoerg
91676c7fc5fSjoerg# Installation directory options.
91776c7fc5fSjoerg# These are left unexpanded so users can "make install exec_prefix=/foo"
91876c7fc5fSjoerg# and all the variables that are supposed to be based on exec_prefix
91976c7fc5fSjoerg# by default will actually change.
92076c7fc5fSjoerg# Use braces instead of parens because sh, perl, etc. also accept them.
92176c7fc5fSjoerg# (The list follows the same order as the GNU Coding Standards.)
92276c7fc5fSjoergbindir='${exec_prefix}/bin'
92376c7fc5fSjoergsbindir='${exec_prefix}/sbin'
92476c7fc5fSjoerglibexecdir='${exec_prefix}/libexec'
92576c7fc5fSjoergdatarootdir='${prefix}/share'
92676c7fc5fSjoergdatadir='${datarootdir}'
92776c7fc5fSjoergsysconfdir='${prefix}/etc'
92876c7fc5fSjoergsharedstatedir='${prefix}/com'
92976c7fc5fSjoerglocalstatedir='${prefix}/var'
93076c7fc5fSjoergincludedir='${prefix}/include'
93176c7fc5fSjoergoldincludedir='/usr/include'
93276c7fc5fSjoergdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
93376c7fc5fSjoerginfodir='${datarootdir}/info'
93476c7fc5fSjoerghtmldir='${docdir}'
93576c7fc5fSjoergdvidir='${docdir}'
93676c7fc5fSjoergpdfdir='${docdir}'
93776c7fc5fSjoergpsdir='${docdir}'
93876c7fc5fSjoerglibdir='${exec_prefix}/lib'
93976c7fc5fSjoerglocaledir='${datarootdir}/locale'
94076c7fc5fSjoergmandir='${datarootdir}/man'
94176c7fc5fSjoerg
94276c7fc5fSjoergac_prev=
94376c7fc5fSjoergac_dashdash=
94476c7fc5fSjoergfor ac_option
94576c7fc5fSjoergdo
94676c7fc5fSjoerg  # If the previous option needs an argument, assign it.
94776c7fc5fSjoerg  if test -n "$ac_prev"; then
94876c7fc5fSjoerg    eval $ac_prev=\$ac_option
94976c7fc5fSjoerg    ac_prev=
95076c7fc5fSjoerg    continue
95176c7fc5fSjoerg  fi
95276c7fc5fSjoerg
95376c7fc5fSjoerg  case $ac_option in
95476c7fc5fSjoerg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
95576c7fc5fSjoerg  *=)   ac_optarg= ;;
95676c7fc5fSjoerg  *)    ac_optarg=yes ;;
95776c7fc5fSjoerg  esac
95876c7fc5fSjoerg
95976c7fc5fSjoerg  # Accept the important Cygnus configure options, so we can diagnose typos.
96076c7fc5fSjoerg
96176c7fc5fSjoerg  case $ac_dashdash$ac_option in
96276c7fc5fSjoerg  --)
96376c7fc5fSjoerg    ac_dashdash=yes ;;
96476c7fc5fSjoerg
96576c7fc5fSjoerg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
96676c7fc5fSjoerg    ac_prev=bindir ;;
96776c7fc5fSjoerg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96876c7fc5fSjoerg    bindir=$ac_optarg ;;
96976c7fc5fSjoerg
97076c7fc5fSjoerg  -build | --build | --buil | --bui | --bu)
97176c7fc5fSjoerg    ac_prev=build_alias ;;
97276c7fc5fSjoerg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97376c7fc5fSjoerg    build_alias=$ac_optarg ;;
97476c7fc5fSjoerg
97576c7fc5fSjoerg  -cache-file | --cache-file | --cache-fil | --cache-fi \
97676c7fc5fSjoerg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97776c7fc5fSjoerg    ac_prev=cache_file ;;
97876c7fc5fSjoerg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97976c7fc5fSjoerg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98076c7fc5fSjoerg    cache_file=$ac_optarg ;;
98176c7fc5fSjoerg
98276c7fc5fSjoerg  --config-cache | -C)
98376c7fc5fSjoerg    cache_file=config.cache ;;
98476c7fc5fSjoerg
98576c7fc5fSjoerg  -datadir | --datadir | --datadi | --datad)
98676c7fc5fSjoerg    ac_prev=datadir ;;
98776c7fc5fSjoerg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
98876c7fc5fSjoerg    datadir=$ac_optarg ;;
98976c7fc5fSjoerg
99076c7fc5fSjoerg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
99176c7fc5fSjoerg  | --dataroo | --dataro | --datar)
99276c7fc5fSjoerg    ac_prev=datarootdir ;;
99376c7fc5fSjoerg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
99476c7fc5fSjoerg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
99576c7fc5fSjoerg    datarootdir=$ac_optarg ;;
99676c7fc5fSjoerg
99776c7fc5fSjoerg  -disable-* | --disable-*)
99876c7fc5fSjoerg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
99976c7fc5fSjoerg    # Reject names that are not valid shell variable names.
100076c7fc5fSjoerg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
100176c7fc5fSjoerg      as_fn_error $? "invalid feature name: $ac_useropt"
100276c7fc5fSjoerg    ac_useropt_orig=$ac_useropt
100376c7fc5fSjoerg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
100476c7fc5fSjoerg    case $ac_user_opts in
100576c7fc5fSjoerg      *"
100676c7fc5fSjoerg"enable_$ac_useropt"
100776c7fc5fSjoerg"*) ;;
100876c7fc5fSjoerg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
100976c7fc5fSjoerg	 ac_unrecognized_sep=', ';;
101076c7fc5fSjoerg    esac
101176c7fc5fSjoerg    eval enable_$ac_useropt=no ;;
101276c7fc5fSjoerg
101376c7fc5fSjoerg  -docdir | --docdir | --docdi | --doc | --do)
101476c7fc5fSjoerg    ac_prev=docdir ;;
101576c7fc5fSjoerg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
101676c7fc5fSjoerg    docdir=$ac_optarg ;;
101776c7fc5fSjoerg
101876c7fc5fSjoerg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
101976c7fc5fSjoerg    ac_prev=dvidir ;;
102076c7fc5fSjoerg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
102176c7fc5fSjoerg    dvidir=$ac_optarg ;;
102276c7fc5fSjoerg
102376c7fc5fSjoerg  -enable-* | --enable-*)
102476c7fc5fSjoerg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
102576c7fc5fSjoerg    # Reject names that are not valid shell variable names.
102676c7fc5fSjoerg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
102776c7fc5fSjoerg      as_fn_error $? "invalid feature name: $ac_useropt"
102876c7fc5fSjoerg    ac_useropt_orig=$ac_useropt
102976c7fc5fSjoerg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
103076c7fc5fSjoerg    case $ac_user_opts in
103176c7fc5fSjoerg      *"
103276c7fc5fSjoerg"enable_$ac_useropt"
103376c7fc5fSjoerg"*) ;;
103476c7fc5fSjoerg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
103576c7fc5fSjoerg	 ac_unrecognized_sep=', ';;
103676c7fc5fSjoerg    esac
103776c7fc5fSjoerg    eval enable_$ac_useropt=\$ac_optarg ;;
103876c7fc5fSjoerg
103976c7fc5fSjoerg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
104076c7fc5fSjoerg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
104176c7fc5fSjoerg  | --exec | --exe | --ex)
104276c7fc5fSjoerg    ac_prev=exec_prefix ;;
104376c7fc5fSjoerg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
104476c7fc5fSjoerg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
104576c7fc5fSjoerg  | --exec=* | --exe=* | --ex=*)
104676c7fc5fSjoerg    exec_prefix=$ac_optarg ;;
104776c7fc5fSjoerg
104876c7fc5fSjoerg  -gas | --gas | --ga | --g)
104976c7fc5fSjoerg    # Obsolete; use --with-gas.
105076c7fc5fSjoerg    with_gas=yes ;;
105176c7fc5fSjoerg
105276c7fc5fSjoerg  -help | --help | --hel | --he | -h)
105376c7fc5fSjoerg    ac_init_help=long ;;
105476c7fc5fSjoerg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
105576c7fc5fSjoerg    ac_init_help=recursive ;;
105676c7fc5fSjoerg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
105776c7fc5fSjoerg    ac_init_help=short ;;
105876c7fc5fSjoerg
105976c7fc5fSjoerg  -host | --host | --hos | --ho)
106076c7fc5fSjoerg    ac_prev=host_alias ;;
106176c7fc5fSjoerg  -host=* | --host=* | --hos=* | --ho=*)
106276c7fc5fSjoerg    host_alias=$ac_optarg ;;
106376c7fc5fSjoerg
106476c7fc5fSjoerg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
106576c7fc5fSjoerg    ac_prev=htmldir ;;
106676c7fc5fSjoerg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
106776c7fc5fSjoerg  | --ht=*)
106876c7fc5fSjoerg    htmldir=$ac_optarg ;;
106976c7fc5fSjoerg
107076c7fc5fSjoerg  -includedir | --includedir | --includedi | --included | --include \
107176c7fc5fSjoerg  | --includ | --inclu | --incl | --inc)
107276c7fc5fSjoerg    ac_prev=includedir ;;
107376c7fc5fSjoerg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
107476c7fc5fSjoerg  | --includ=* | --inclu=* | --incl=* | --inc=*)
107576c7fc5fSjoerg    includedir=$ac_optarg ;;
107676c7fc5fSjoerg
107776c7fc5fSjoerg  -infodir | --infodir | --infodi | --infod | --info | --inf)
107876c7fc5fSjoerg    ac_prev=infodir ;;
107976c7fc5fSjoerg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
108076c7fc5fSjoerg    infodir=$ac_optarg ;;
108176c7fc5fSjoerg
108276c7fc5fSjoerg  -libdir | --libdir | --libdi | --libd)
108376c7fc5fSjoerg    ac_prev=libdir ;;
108476c7fc5fSjoerg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
108576c7fc5fSjoerg    libdir=$ac_optarg ;;
108676c7fc5fSjoerg
108776c7fc5fSjoerg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
108876c7fc5fSjoerg  | --libexe | --libex | --libe)
108976c7fc5fSjoerg    ac_prev=libexecdir ;;
109076c7fc5fSjoerg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
109176c7fc5fSjoerg  | --libexe=* | --libex=* | --libe=*)
109276c7fc5fSjoerg    libexecdir=$ac_optarg ;;
109376c7fc5fSjoerg
109476c7fc5fSjoerg  -localedir | --localedir | --localedi | --localed | --locale)
109576c7fc5fSjoerg    ac_prev=localedir ;;
109676c7fc5fSjoerg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
109776c7fc5fSjoerg    localedir=$ac_optarg ;;
109876c7fc5fSjoerg
109976c7fc5fSjoerg  -localstatedir | --localstatedir | --localstatedi | --localstated \
110076c7fc5fSjoerg  | --localstate | --localstat | --localsta | --localst | --locals)
110176c7fc5fSjoerg    ac_prev=localstatedir ;;
110276c7fc5fSjoerg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
110376c7fc5fSjoerg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
110476c7fc5fSjoerg    localstatedir=$ac_optarg ;;
110576c7fc5fSjoerg
110676c7fc5fSjoerg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
110776c7fc5fSjoerg    ac_prev=mandir ;;
110876c7fc5fSjoerg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
110976c7fc5fSjoerg    mandir=$ac_optarg ;;
111076c7fc5fSjoerg
111176c7fc5fSjoerg  -nfp | --nfp | --nf)
111276c7fc5fSjoerg    # Obsolete; use --without-fp.
111376c7fc5fSjoerg    with_fp=no ;;
111476c7fc5fSjoerg
111576c7fc5fSjoerg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
111676c7fc5fSjoerg  | --no-cr | --no-c | -n)
111776c7fc5fSjoerg    no_create=yes ;;
111876c7fc5fSjoerg
111976c7fc5fSjoerg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
112076c7fc5fSjoerg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
112176c7fc5fSjoerg    no_recursion=yes ;;
112276c7fc5fSjoerg
112376c7fc5fSjoerg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
112476c7fc5fSjoerg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
112576c7fc5fSjoerg  | --oldin | --oldi | --old | --ol | --o)
112676c7fc5fSjoerg    ac_prev=oldincludedir ;;
112776c7fc5fSjoerg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
112876c7fc5fSjoerg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
112976c7fc5fSjoerg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
113076c7fc5fSjoerg    oldincludedir=$ac_optarg ;;
113176c7fc5fSjoerg
113276c7fc5fSjoerg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
113376c7fc5fSjoerg    ac_prev=prefix ;;
113476c7fc5fSjoerg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
113576c7fc5fSjoerg    prefix=$ac_optarg ;;
113676c7fc5fSjoerg
113776c7fc5fSjoerg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
113876c7fc5fSjoerg  | --program-pre | --program-pr | --program-p)
113976c7fc5fSjoerg    ac_prev=program_prefix ;;
114076c7fc5fSjoerg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
114176c7fc5fSjoerg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
114276c7fc5fSjoerg    program_prefix=$ac_optarg ;;
114376c7fc5fSjoerg
114476c7fc5fSjoerg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
114576c7fc5fSjoerg  | --program-suf | --program-su | --program-s)
114676c7fc5fSjoerg    ac_prev=program_suffix ;;
114776c7fc5fSjoerg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
114876c7fc5fSjoerg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
114976c7fc5fSjoerg    program_suffix=$ac_optarg ;;
115076c7fc5fSjoerg
115176c7fc5fSjoerg  -program-transform-name | --program-transform-name \
115276c7fc5fSjoerg  | --program-transform-nam | --program-transform-na \
115376c7fc5fSjoerg  | --program-transform-n | --program-transform- \
115476c7fc5fSjoerg  | --program-transform | --program-transfor \
115576c7fc5fSjoerg  | --program-transfo | --program-transf \
115676c7fc5fSjoerg  | --program-trans | --program-tran \
115776c7fc5fSjoerg  | --progr-tra | --program-tr | --program-t)
115876c7fc5fSjoerg    ac_prev=program_transform_name ;;
115976c7fc5fSjoerg  -program-transform-name=* | --program-transform-name=* \
116076c7fc5fSjoerg  | --program-transform-nam=* | --program-transform-na=* \
116176c7fc5fSjoerg  | --program-transform-n=* | --program-transform-=* \
116276c7fc5fSjoerg  | --program-transform=* | --program-transfor=* \
116376c7fc5fSjoerg  | --program-transfo=* | --program-transf=* \
116476c7fc5fSjoerg  | --program-trans=* | --program-tran=* \
116576c7fc5fSjoerg  | --progr-tra=* | --program-tr=* | --program-t=*)
116676c7fc5fSjoerg    program_transform_name=$ac_optarg ;;
116776c7fc5fSjoerg
116876c7fc5fSjoerg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
116976c7fc5fSjoerg    ac_prev=pdfdir ;;
117076c7fc5fSjoerg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
117176c7fc5fSjoerg    pdfdir=$ac_optarg ;;
117276c7fc5fSjoerg
117376c7fc5fSjoerg  -psdir | --psdir | --psdi | --psd | --ps)
117476c7fc5fSjoerg    ac_prev=psdir ;;
117576c7fc5fSjoerg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
117676c7fc5fSjoerg    psdir=$ac_optarg ;;
117776c7fc5fSjoerg
117876c7fc5fSjoerg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
117976c7fc5fSjoerg  | -silent | --silent | --silen | --sile | --sil)
118076c7fc5fSjoerg    silent=yes ;;
118176c7fc5fSjoerg
118276c7fc5fSjoerg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
118376c7fc5fSjoerg    ac_prev=sbindir ;;
118476c7fc5fSjoerg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
118576c7fc5fSjoerg  | --sbi=* | --sb=*)
118676c7fc5fSjoerg    sbindir=$ac_optarg ;;
118776c7fc5fSjoerg
118876c7fc5fSjoerg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
118976c7fc5fSjoerg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
119076c7fc5fSjoerg  | --sharedst | --shareds | --shared | --share | --shar \
119176c7fc5fSjoerg  | --sha | --sh)
119276c7fc5fSjoerg    ac_prev=sharedstatedir ;;
119376c7fc5fSjoerg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
119476c7fc5fSjoerg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
119576c7fc5fSjoerg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
119676c7fc5fSjoerg  | --sha=* | --sh=*)
119776c7fc5fSjoerg    sharedstatedir=$ac_optarg ;;
119876c7fc5fSjoerg
119976c7fc5fSjoerg  -site | --site | --sit)
120076c7fc5fSjoerg    ac_prev=site ;;
120176c7fc5fSjoerg  -site=* | --site=* | --sit=*)
120276c7fc5fSjoerg    site=$ac_optarg ;;
120376c7fc5fSjoerg
120476c7fc5fSjoerg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
120576c7fc5fSjoerg    ac_prev=srcdir ;;
120676c7fc5fSjoerg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
120776c7fc5fSjoerg    srcdir=$ac_optarg ;;
120876c7fc5fSjoerg
120976c7fc5fSjoerg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
121076c7fc5fSjoerg  | --syscon | --sysco | --sysc | --sys | --sy)
121176c7fc5fSjoerg    ac_prev=sysconfdir ;;
121276c7fc5fSjoerg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
121376c7fc5fSjoerg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
121476c7fc5fSjoerg    sysconfdir=$ac_optarg ;;
121576c7fc5fSjoerg
121676c7fc5fSjoerg  -target | --target | --targe | --targ | --tar | --ta | --t)
121776c7fc5fSjoerg    ac_prev=target_alias ;;
121876c7fc5fSjoerg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
121976c7fc5fSjoerg    target_alias=$ac_optarg ;;
122076c7fc5fSjoerg
122176c7fc5fSjoerg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
122276c7fc5fSjoerg    verbose=yes ;;
122376c7fc5fSjoerg
122476c7fc5fSjoerg  -version | --version | --versio | --versi | --vers | -V)
122576c7fc5fSjoerg    ac_init_version=: ;;
122676c7fc5fSjoerg
122776c7fc5fSjoerg  -with-* | --with-*)
122876c7fc5fSjoerg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
122976c7fc5fSjoerg    # Reject names that are not valid shell variable names.
123076c7fc5fSjoerg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
123176c7fc5fSjoerg      as_fn_error $? "invalid package name: $ac_useropt"
123276c7fc5fSjoerg    ac_useropt_orig=$ac_useropt
123376c7fc5fSjoerg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
123476c7fc5fSjoerg    case $ac_user_opts in
123576c7fc5fSjoerg      *"
123676c7fc5fSjoerg"with_$ac_useropt"
123776c7fc5fSjoerg"*) ;;
123876c7fc5fSjoerg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
123976c7fc5fSjoerg	 ac_unrecognized_sep=', ';;
124076c7fc5fSjoerg    esac
124176c7fc5fSjoerg    eval with_$ac_useropt=\$ac_optarg ;;
124276c7fc5fSjoerg
124376c7fc5fSjoerg  -without-* | --without-*)
124476c7fc5fSjoerg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
124576c7fc5fSjoerg    # Reject names that are not valid shell variable names.
124676c7fc5fSjoerg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
124776c7fc5fSjoerg      as_fn_error $? "invalid package name: $ac_useropt"
124876c7fc5fSjoerg    ac_useropt_orig=$ac_useropt
124976c7fc5fSjoerg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
125076c7fc5fSjoerg    case $ac_user_opts in
125176c7fc5fSjoerg      *"
125276c7fc5fSjoerg"with_$ac_useropt"
125376c7fc5fSjoerg"*) ;;
125476c7fc5fSjoerg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
125576c7fc5fSjoerg	 ac_unrecognized_sep=', ';;
125676c7fc5fSjoerg    esac
125776c7fc5fSjoerg    eval with_$ac_useropt=no ;;
125876c7fc5fSjoerg
125976c7fc5fSjoerg  --x)
126076c7fc5fSjoerg    # Obsolete; use --with-x.
126176c7fc5fSjoerg    with_x=yes ;;
126276c7fc5fSjoerg
126376c7fc5fSjoerg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
126476c7fc5fSjoerg  | --x-incl | --x-inc | --x-in | --x-i)
126576c7fc5fSjoerg    ac_prev=x_includes ;;
126676c7fc5fSjoerg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
126776c7fc5fSjoerg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
126876c7fc5fSjoerg    x_includes=$ac_optarg ;;
126976c7fc5fSjoerg
127076c7fc5fSjoerg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
127176c7fc5fSjoerg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
127276c7fc5fSjoerg    ac_prev=x_libraries ;;
127376c7fc5fSjoerg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
127476c7fc5fSjoerg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
127576c7fc5fSjoerg    x_libraries=$ac_optarg ;;
127676c7fc5fSjoerg
127776c7fc5fSjoerg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
127876c7fc5fSjoergTry \`$0 --help' for more information"
127976c7fc5fSjoerg    ;;
128076c7fc5fSjoerg
128176c7fc5fSjoerg  *=*)
128276c7fc5fSjoerg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
128376c7fc5fSjoerg    # Reject names that are not valid shell variable names.
128476c7fc5fSjoerg    case $ac_envvar in #(
128576c7fc5fSjoerg      '' | [0-9]* | *[!_$as_cr_alnum]* )
128676c7fc5fSjoerg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
128776c7fc5fSjoerg    esac
128876c7fc5fSjoerg    eval $ac_envvar=\$ac_optarg
128976c7fc5fSjoerg    export $ac_envvar ;;
129076c7fc5fSjoerg
129176c7fc5fSjoerg  *)
129276c7fc5fSjoerg    # FIXME: should be removed in autoconf 3.0.
129376c7fc5fSjoerg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
129476c7fc5fSjoerg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
129576c7fc5fSjoerg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
129676c7fc5fSjoerg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
129776c7fc5fSjoerg    ;;
129876c7fc5fSjoerg
129976c7fc5fSjoerg  esac
130076c7fc5fSjoergdone
130176c7fc5fSjoerg
130276c7fc5fSjoergif test -n "$ac_prev"; then
130376c7fc5fSjoerg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
130476c7fc5fSjoerg  as_fn_error $? "missing argument to $ac_option"
130576c7fc5fSjoergfi
130676c7fc5fSjoerg
130776c7fc5fSjoergif test -n "$ac_unrecognized_opts"; then
130876c7fc5fSjoerg  case $enable_option_checking in
130976c7fc5fSjoerg    no) ;;
131076c7fc5fSjoerg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
131176c7fc5fSjoerg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
131276c7fc5fSjoerg  esac
131376c7fc5fSjoergfi
131476c7fc5fSjoerg
131576c7fc5fSjoerg# Check all directory arguments for consistency.
131676c7fc5fSjoergfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
131776c7fc5fSjoerg		datadir sysconfdir sharedstatedir localstatedir includedir \
131876c7fc5fSjoerg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
131976c7fc5fSjoerg		libdir localedir mandir
132076c7fc5fSjoergdo
132176c7fc5fSjoerg  eval ac_val=\$$ac_var
132276c7fc5fSjoerg  # Remove trailing slashes.
132376c7fc5fSjoerg  case $ac_val in
132476c7fc5fSjoerg    */ )
132576c7fc5fSjoerg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
132676c7fc5fSjoerg      eval $ac_var=\$ac_val;;
132776c7fc5fSjoerg  esac
132876c7fc5fSjoerg  # Be sure to have absolute directory names.
132976c7fc5fSjoerg  case $ac_val in
133076c7fc5fSjoerg    [\\/$]* | ?:[\\/]* )  continue;;
133176c7fc5fSjoerg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
133276c7fc5fSjoerg  esac
133376c7fc5fSjoerg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
133476c7fc5fSjoergdone
133576c7fc5fSjoerg
133676c7fc5fSjoerg# There might be people who depend on the old broken behavior: `$host'
133776c7fc5fSjoerg# used to hold the argument of --host etc.
133876c7fc5fSjoerg# FIXME: To remove some day.
133976c7fc5fSjoergbuild=$build_alias
134076c7fc5fSjoerghost=$host_alias
134176c7fc5fSjoergtarget=$target_alias
134276c7fc5fSjoerg
134376c7fc5fSjoerg# FIXME: To remove some day.
134476c7fc5fSjoergif test "x$host_alias" != x; then
134576c7fc5fSjoerg  if test "x$build_alias" = x; then
134676c7fc5fSjoerg    cross_compiling=maybe
134776c7fc5fSjoerg  elif test "x$build_alias" != "x$host_alias"; then
134876c7fc5fSjoerg    cross_compiling=yes
134976c7fc5fSjoerg  fi
135076c7fc5fSjoergfi
135176c7fc5fSjoerg
135276c7fc5fSjoergac_tool_prefix=
135376c7fc5fSjoergtest -n "$host_alias" && ac_tool_prefix=$host_alias-
135476c7fc5fSjoerg
135576c7fc5fSjoergtest "$silent" = yes && exec 6>/dev/null
135676c7fc5fSjoerg
135776c7fc5fSjoerg
135876c7fc5fSjoergac_pwd=`pwd` && test -n "$ac_pwd" &&
135976c7fc5fSjoergac_ls_di=`ls -di .` &&
136076c7fc5fSjoergac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
136176c7fc5fSjoerg  as_fn_error $? "working directory cannot be determined"
136276c7fc5fSjoergtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
136376c7fc5fSjoerg  as_fn_error $? "pwd does not report name of working directory"
136476c7fc5fSjoerg
136576c7fc5fSjoerg
136676c7fc5fSjoerg# Find the source files, if location was not specified.
136776c7fc5fSjoergif test -z "$srcdir"; then
136876c7fc5fSjoerg  ac_srcdir_defaulted=yes
136976c7fc5fSjoerg  # Try the directory containing this script, then the parent directory.
137076c7fc5fSjoerg  ac_confdir=`$as_dirname -- "$as_myself" ||
137176c7fc5fSjoerg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137276c7fc5fSjoerg	 X"$as_myself" : 'X\(//\)[^/]' \| \
137376c7fc5fSjoerg	 X"$as_myself" : 'X\(//\)$' \| \
137476c7fc5fSjoerg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
137576c7fc5fSjoerg$as_echo X"$as_myself" |
137676c7fc5fSjoerg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137776c7fc5fSjoerg	    s//\1/
137876c7fc5fSjoerg	    q
137976c7fc5fSjoerg	  }
138076c7fc5fSjoerg	  /^X\(\/\/\)[^/].*/{
138176c7fc5fSjoerg	    s//\1/
138276c7fc5fSjoerg	    q
138376c7fc5fSjoerg	  }
138476c7fc5fSjoerg	  /^X\(\/\/\)$/{
138576c7fc5fSjoerg	    s//\1/
138676c7fc5fSjoerg	    q
138776c7fc5fSjoerg	  }
138876c7fc5fSjoerg	  /^X\(\/\).*/{
138976c7fc5fSjoerg	    s//\1/
139076c7fc5fSjoerg	    q
139176c7fc5fSjoerg	  }
139276c7fc5fSjoerg	  s/.*/./; q'`
139376c7fc5fSjoerg  srcdir=$ac_confdir
139476c7fc5fSjoerg  if test ! -r "$srcdir/$ac_unique_file"; then
139576c7fc5fSjoerg    srcdir=..
139676c7fc5fSjoerg  fi
139776c7fc5fSjoergelse
139876c7fc5fSjoerg  ac_srcdir_defaulted=no
139976c7fc5fSjoergfi
140076c7fc5fSjoergif test ! -r "$srcdir/$ac_unique_file"; then
140176c7fc5fSjoerg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
140276c7fc5fSjoerg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
140376c7fc5fSjoergfi
140476c7fc5fSjoergac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
140576c7fc5fSjoergac_abs_confdir=`(
140676c7fc5fSjoerg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
140776c7fc5fSjoerg	pwd)`
140876c7fc5fSjoerg# When building in place, set srcdir=.
140976c7fc5fSjoergif test "$ac_abs_confdir" = "$ac_pwd"; then
141076c7fc5fSjoerg  srcdir=.
141176c7fc5fSjoergfi
141276c7fc5fSjoerg# Remove unnecessary trailing slashes from srcdir.
141376c7fc5fSjoerg# Double slashes in file names in object file debugging info
141476c7fc5fSjoerg# mess up M-x gdb in Emacs.
141576c7fc5fSjoergcase $srcdir in
141676c7fc5fSjoerg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
141776c7fc5fSjoergesac
141876c7fc5fSjoergfor ac_var in $ac_precious_vars; do
141976c7fc5fSjoerg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
142076c7fc5fSjoerg  eval ac_env_${ac_var}_value=\$${ac_var}
142176c7fc5fSjoerg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
142276c7fc5fSjoerg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
142376c7fc5fSjoergdone
142476c7fc5fSjoerg
142576c7fc5fSjoerg#
142676c7fc5fSjoerg# Report the --help message.
142776c7fc5fSjoerg#
142876c7fc5fSjoergif test "$ac_init_help" = "long"; then
142976c7fc5fSjoerg  # Omit some internal or obsolete options to make the list less imposing.
143076c7fc5fSjoerg  # This message is too long to be a string in the A/UX 3.1 sh.
143176c7fc5fSjoerg  cat <<_ACEOF
143276c7fc5fSjoerg\`configure' configures LLVM 4.0.0svn to adapt to many kinds of systems.
143376c7fc5fSjoerg
143476c7fc5fSjoergUsage: $0 [OPTION]... [VAR=VALUE]...
143576c7fc5fSjoerg
143676c7fc5fSjoergTo assign environment variables (e.g., CC, CFLAGS...), specify them as
143776c7fc5fSjoergVAR=VALUE.  See below for descriptions of some of the useful variables.
143876c7fc5fSjoerg
143976c7fc5fSjoergDefaults for the options are specified in brackets.
144076c7fc5fSjoerg
144176c7fc5fSjoergConfiguration:
144276c7fc5fSjoerg  -h, --help              display this help and exit
144376c7fc5fSjoerg      --help=short        display options specific to this package
144476c7fc5fSjoerg      --help=recursive    display the short help of all the included packages
144576c7fc5fSjoerg  -V, --version           display version information and exit
144676c7fc5fSjoerg  -q, --quiet, --silent   do not print \`checking ...' messages
144776c7fc5fSjoerg      --cache-file=FILE   cache test results in FILE [disabled]
144876c7fc5fSjoerg  -C, --config-cache      alias for \`--cache-file=config.cache'
144976c7fc5fSjoerg  -n, --no-create         do not create output files
145076c7fc5fSjoerg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
145176c7fc5fSjoerg
145276c7fc5fSjoergInstallation directories:
145376c7fc5fSjoerg  --prefix=PREFIX         install architecture-independent files in PREFIX
145476c7fc5fSjoerg                          [$ac_default_prefix]
145576c7fc5fSjoerg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
145676c7fc5fSjoerg                          [PREFIX]
145776c7fc5fSjoerg
145876c7fc5fSjoergBy default, \`make install' will install all the files in
145976c7fc5fSjoerg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
146076c7fc5fSjoergan installation prefix other than \`$ac_default_prefix' using \`--prefix',
146176c7fc5fSjoergfor instance \`--prefix=\$HOME'.
146276c7fc5fSjoerg
146376c7fc5fSjoergFor better control, use the options below.
146476c7fc5fSjoerg
146576c7fc5fSjoergFine tuning of the installation directories:
146676c7fc5fSjoerg  --bindir=DIR            user executables [EPREFIX/bin]
146776c7fc5fSjoerg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
146876c7fc5fSjoerg  --libexecdir=DIR        program executables [EPREFIX/libexec]
146976c7fc5fSjoerg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
147076c7fc5fSjoerg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
147176c7fc5fSjoerg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
147276c7fc5fSjoerg  --libdir=DIR            object code libraries [EPREFIX/lib]
147376c7fc5fSjoerg  --includedir=DIR        C header files [PREFIX/include]
147476c7fc5fSjoerg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
147576c7fc5fSjoerg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
147676c7fc5fSjoerg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
147776c7fc5fSjoerg  --infodir=DIR           info documentation [DATAROOTDIR/info]
147876c7fc5fSjoerg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
147976c7fc5fSjoerg  --mandir=DIR            man documentation [DATAROOTDIR/man]
148076c7fc5fSjoerg  --docdir=DIR            documentation root [DATAROOTDIR/doc/llvm]
148176c7fc5fSjoerg  --htmldir=DIR           html documentation [DOCDIR]
148276c7fc5fSjoerg  --dvidir=DIR            dvi documentation [DOCDIR]
148376c7fc5fSjoerg  --pdfdir=DIR            pdf documentation [DOCDIR]
148476c7fc5fSjoerg  --psdir=DIR             ps documentation [DOCDIR]
148576c7fc5fSjoerg_ACEOF
148676c7fc5fSjoerg
148776c7fc5fSjoerg  cat <<\_ACEOF
148876c7fc5fSjoerg
148976c7fc5fSjoergSystem types:
149076c7fc5fSjoerg  --build=BUILD     configure for building on BUILD [guessed]
149176c7fc5fSjoerg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
149276c7fc5fSjoerg  --target=TARGET   configure for building compilers for TARGET [HOST]
149376c7fc5fSjoerg_ACEOF
149476c7fc5fSjoergfi
149576c7fc5fSjoerg
149676c7fc5fSjoergif test -n "$ac_init_help"; then
149776c7fc5fSjoerg  case $ac_init_help in
149876c7fc5fSjoerg     short | recursive ) echo "Configuration of LLVM 4.0.0svn:";;
149976c7fc5fSjoerg   esac
150076c7fc5fSjoerg  cat <<\_ACEOF
150176c7fc5fSjoerg
150276c7fc5fSjoergOptional Features:
150376c7fc5fSjoerg  --disable-option-checking  ignore unrecognized --enable/--with options
150476c7fc5fSjoerg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
150576c7fc5fSjoerg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
150676c7fc5fSjoerg  --enable-polly          Use polly if available (default is YES)
150776c7fc5fSjoerg  --enable-libcpp         Use libc++ if available (default is NO)
150876c7fc5fSjoerg  --enable-compiler-version-checks
150976c7fc5fSjoerg                          Check the version of the host compiler (default is
151076c7fc5fSjoerg                          YES)
151176c7fc5fSjoerg  --enable-cxx1y          Use c++1y if available (default is NO)
151276c7fc5fSjoerg  --enable-split-dwarf    Use split-dwarf if available (default is NO)
151376c7fc5fSjoerg  --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
151476c7fc5fSjoerg  --enable-clang-plugin-support
151576c7fc5fSjoerg                          Enable plugin support in clang (default is YES)
151676c7fc5fSjoerg  --enable-clang-static-analyzer
151776c7fc5fSjoerg                          Enable building of clang Static Analyzer (default is
151876c7fc5fSjoerg                          YES)
151976c7fc5fSjoerg  --enable-optimized      Compile with optimizations enabled (default is NO)
152076c7fc5fSjoerg  --enable-profiling      Compile with profiling enabled (default is NO)
152176c7fc5fSjoerg  --enable-assertions     Compile with assertion checks enabled (default is
152276c7fc5fSjoerg                          YES)
152376c7fc5fSjoerg  --enable-werror         Compile with -Werror enabled (default is NO)
152476c7fc5fSjoerg  --enable-expensive-checks
152576c7fc5fSjoerg                          Compile with expensive debug checks enabled (default
152676c7fc5fSjoerg                          is NO)
152776c7fc5fSjoerg  --enable-abi-breaking-checks
152876c7fc5fSjoerg                          Compile with abi-breaking asserts support (default
152976c7fc5fSjoerg                          is with-asserts)
153076c7fc5fSjoerg  --enable-debug-runtime  Build runtime libs with debug symbols (default is
153176c7fc5fSjoerg                          NO)
153276c7fc5fSjoerg  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
153376c7fc5fSjoerg                          optimization is on and YES if it's off)
153476c7fc5fSjoerg  --enable-keep-symbols   Do not strip installed executables)
153576c7fc5fSjoerg  --enable-jit            Enable Just In Time Compiling (default is YES)
153676c7fc5fSjoerg  --enable-docs           Build documents (default is YES)
153776c7fc5fSjoerg  --enable-doxygen        Build doxygen documentation (default is NO)
153876c7fc5fSjoerg  --enable-doxygen-search Enable doxygen search support (default is NO)
153976c7fc5fSjoerg  --enable-doxygen-external-search
154076c7fc5fSjoerg                          Enable doxygen exteranl search (default is NO)
154176c7fc5fSjoerg  --enable-doxygen-qt-help
154276c7fc5fSjoerg                          Build Qt help files (default is NO)
154376c7fc5fSjoerg  --enable-threads        Use threads if available (default is YES)
154476c7fc5fSjoerg  --enable-pthreads       Use pthreads if available (default is YES)
154576c7fc5fSjoerg  --enable-zlib           Use zlib for compression/decompression if available
154676c7fc5fSjoerg                          (default is YES)
154776c7fc5fSjoerg  --enable-shared         Build a shared library and link tools against it
154876c7fc5fSjoerg                          (default is NO)
154976c7fc5fSjoerg  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
155076c7fc5fSjoerg                          Win32 DLL (default is NO)
155176c7fc5fSjoerg  --enable-backtraces     Enable embedding backtraces on crash (default is
155276c7fc5fSjoerg                          YES)
155376c7fc5fSjoerg  --enable-crash-overrides
155476c7fc5fSjoerg                          Enable crash handling overrides (default is YES)
155576c7fc5fSjoerg  --enable-targets        Build specific host targets: all or
155676c7fc5fSjoerg                          target1,target2,... Valid targets are: host, x86,
155776c7fc5fSjoerg                          x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
155876c7fc5fSjoerg                          hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
155976c7fc5fSjoerg                          wasm, and cpp (default=all)
156076c7fc5fSjoerg  --enable-experimental-targets
156176c7fc5fSjoerg                          Build experimental host targets: disable or
156276c7fc5fSjoerg                          target1,target2,... (default=disable)
156376c7fc5fSjoerg  --enable-bindings       Build specific language bindings:
156476c7fc5fSjoerg                          all,auto,none,{binding-name} (default=auto)
156576c7fc5fSjoerg  --enable-terminfo       Query the terminfo database if available (default is
156676c7fc5fSjoerg                          YES)
156776c7fc5fSjoerg  --enable-libedit        Use libedit if available (default is YES)
156876c7fc5fSjoerg  --enable-libffi         Check for the presence of libffi (default is NO)
156976c7fc5fSjoerg
157076c7fc5fSjoergOptional Packages:
157176c7fc5fSjoerg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
157276c7fc5fSjoerg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
157376c7fc5fSjoerg  --with-llvm-srcdir      Directory to the out-of-tree LLVM source
157476c7fc5fSjoerg  --with-doxygen-search-engine-url
157576c7fc5fSjoerg                          Specify the external search engine for doxygen
157676c7fc5fSjoerg  --with-doxygen-search-mappings
157776c7fc5fSjoerg                          Specify the extra search mapping for doxygen
157876c7fc5fSjoerg  --with-optimize-option  Select the compiler options to use for optimized
157976c7fc5fSjoerg                          builds
158076c7fc5fSjoerg  --with-extra-options    Specify additional options to compile LLVM with
158176c7fc5fSjoerg  --with-extra-ld-options Specify additional options to link LLVM with
158276c7fc5fSjoerg  --with-ocaml-libdir     Specify install location for ocaml bindings (default
158376c7fc5fSjoerg                          is stdlib)
158476c7fc5fSjoerg  --with-clang-srcdir     Directory to the out-of-tree Clang source
158576c7fc5fSjoerg  --with-clang-resource-dir
158676c7fc5fSjoerg                          Relative directory from the Clang binary for
158776c7fc5fSjoerg                          resource files
158876c7fc5fSjoerg  --with-c-include-dirs   Colon separated list of directories clang will
158976c7fc5fSjoerg                          search for headers
159076c7fc5fSjoerg  --with-clang-default-openmp-runtime
159176c7fc5fSjoerg                          The default OpenMP runtime for Clang.
159276c7fc5fSjoerg  --with-binutils-include Specify path to binutils/include/ containing
159376c7fc5fSjoerg                          plugin-api.h file for gold plugin.
159476c7fc5fSjoerg  --with-bug-report-url   Specify the URL where bug reports should be
159576c7fc5fSjoerg                          submitted (default=http://llvm.org/bugs/)
159676c7fc5fSjoerg  --with-internal-prefix  Installation directory for internal files
159776c7fc5fSjoerg  --with-oprofile=<prefix>
159876c7fc5fSjoerg                          Tell OProfile >= 0.9.4 how to symbolize JIT output
159976c7fc5fSjoerg  --with-intel-jitevents  Notify Intel JIT profiling API of generated code
160076c7fc5fSjoerg
160176c7fc5fSjoerg
160276c7fc5fSjoergSome influential environment variables:
160376c7fc5fSjoerg  CC          C compiler command
160476c7fc5fSjoerg  CFLAGS      C compiler flags
160576c7fc5fSjoerg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
160676c7fc5fSjoerg              nonstandard directory <lib dir>
160776c7fc5fSjoerg  LIBS        libraries to pass to the linker, e.g. -l<library>
160876c7fc5fSjoerg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
160976c7fc5fSjoerg              you have headers in a nonstandard directory <include dir>
161076c7fc5fSjoerg  CXX         C++ compiler command
161176c7fc5fSjoerg  CXXFLAGS    C++ compiler flags
161276c7fc5fSjoerg  CPP         C preprocessor
161376c7fc5fSjoerg
161476c7fc5fSjoergUse these variables to override the choices made by `configure' or to help
161576c7fc5fSjoergit to find libraries and programs with nonstandard names/locations.
161676c7fc5fSjoerg
161776c7fc5fSjoergReport bugs to <http://llvm.org/bugs/>.
161876c7fc5fSjoerg_ACEOF
161976c7fc5fSjoergac_status=$?
162076c7fc5fSjoergfi
162176c7fc5fSjoerg
162276c7fc5fSjoergif test "$ac_init_help" = "recursive"; then
162376c7fc5fSjoerg  # If there are subdirs, report their specific --help.
162476c7fc5fSjoerg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
162576c7fc5fSjoerg    test -d "$ac_dir" ||
162676c7fc5fSjoerg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
162776c7fc5fSjoerg      continue
162876c7fc5fSjoerg    ac_builddir=.
162976c7fc5fSjoerg
163076c7fc5fSjoergcase "$ac_dir" in
163176c7fc5fSjoerg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
163276c7fc5fSjoerg*)
163376c7fc5fSjoerg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
163476c7fc5fSjoerg  # A ".." for each directory in $ac_dir_suffix.
163576c7fc5fSjoerg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
163676c7fc5fSjoerg  case $ac_top_builddir_sub in
163776c7fc5fSjoerg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
163876c7fc5fSjoerg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
163976c7fc5fSjoerg  esac ;;
164076c7fc5fSjoergesac
164176c7fc5fSjoergac_abs_top_builddir=$ac_pwd
164276c7fc5fSjoergac_abs_builddir=$ac_pwd$ac_dir_suffix
164376c7fc5fSjoerg# for backward compatibility:
164476c7fc5fSjoergac_top_builddir=$ac_top_build_prefix
164576c7fc5fSjoerg
164676c7fc5fSjoergcase $srcdir in
164776c7fc5fSjoerg  .)  # We are building in place.
164876c7fc5fSjoerg    ac_srcdir=.
164976c7fc5fSjoerg    ac_top_srcdir=$ac_top_builddir_sub
165076c7fc5fSjoerg    ac_abs_top_srcdir=$ac_pwd ;;
165176c7fc5fSjoerg  [\\/]* | ?:[\\/]* )  # Absolute name.
165276c7fc5fSjoerg    ac_srcdir=$srcdir$ac_dir_suffix;
165376c7fc5fSjoerg    ac_top_srcdir=$srcdir
165476c7fc5fSjoerg    ac_abs_top_srcdir=$srcdir ;;
165576c7fc5fSjoerg  *) # Relative name.
165676c7fc5fSjoerg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
165776c7fc5fSjoerg    ac_top_srcdir=$ac_top_build_prefix$srcdir
165876c7fc5fSjoerg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
165976c7fc5fSjoergesac
166076c7fc5fSjoergac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
166176c7fc5fSjoerg
166276c7fc5fSjoerg    cd "$ac_dir" || { ac_status=$?; continue; }
166376c7fc5fSjoerg    # Check for guested configure.
166476c7fc5fSjoerg    if test -f "$ac_srcdir/configure.gnu"; then
166576c7fc5fSjoerg      echo &&
166676c7fc5fSjoerg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
166776c7fc5fSjoerg    elif test -f "$ac_srcdir/configure"; then
166876c7fc5fSjoerg      echo &&
166976c7fc5fSjoerg      $SHELL "$ac_srcdir/configure" --help=recursive
167076c7fc5fSjoerg    else
167176c7fc5fSjoerg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
167276c7fc5fSjoerg    fi || ac_status=$?
167376c7fc5fSjoerg    cd "$ac_pwd" || { ac_status=$?; break; }
167476c7fc5fSjoerg  done
167576c7fc5fSjoergfi
167676c7fc5fSjoerg
167776c7fc5fSjoergtest -n "$ac_init_help" && exit $ac_status
167876c7fc5fSjoergif $ac_init_version; then
167976c7fc5fSjoerg  cat <<\_ACEOF
168076c7fc5fSjoergLLVM configure 4.0.0svn
168176c7fc5fSjoerggenerated by GNU Autoconf 2.69
168276c7fc5fSjoerg
168376c7fc5fSjoergCopyright (C) 2012 Free Software Foundation, Inc.
168476c7fc5fSjoergThis configure script is free software; the Free Software Foundation
168576c7fc5fSjoerggives unlimited permission to copy, distribute and modify it.
168676c7fc5fSjoerg
168776c7fc5fSjoergCopyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
168876c7fc5fSjoerg_ACEOF
168976c7fc5fSjoerg  exit
169076c7fc5fSjoergfi
169176c7fc5fSjoerg
169276c7fc5fSjoerg## ------------------------ ##
169376c7fc5fSjoerg## Autoconf initialization. ##
169476c7fc5fSjoerg## ------------------------ ##
169576c7fc5fSjoerg
169676c7fc5fSjoerg# ac_fn_c_try_compile LINENO
169776c7fc5fSjoerg# --------------------------
169876c7fc5fSjoerg# Try to compile conftest.$ac_ext, and return whether this succeeded.
169976c7fc5fSjoergac_fn_c_try_compile ()
170076c7fc5fSjoerg{
170176c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
170276c7fc5fSjoerg  rm -f conftest.$ac_objext
170376c7fc5fSjoerg  if { { ac_try="$ac_compile"
170476c7fc5fSjoergcase "(($ac_try" in
170576c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
170676c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
170776c7fc5fSjoergesac
170876c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
170976c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
171076c7fc5fSjoerg  (eval "$ac_compile") 2>conftest.err
171176c7fc5fSjoerg  ac_status=$?
171276c7fc5fSjoerg  if test -s conftest.err; then
171376c7fc5fSjoerg    grep -v '^ *+' conftest.err >conftest.er1
171476c7fc5fSjoerg    cat conftest.er1 >&5
171576c7fc5fSjoerg    mv -f conftest.er1 conftest.err
171676c7fc5fSjoerg  fi
171776c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
171876c7fc5fSjoerg  test $ac_status = 0; } && {
171976c7fc5fSjoerg	 test -z "$ac_c_werror_flag" ||
172076c7fc5fSjoerg	 test ! -s conftest.err
172176c7fc5fSjoerg       } && test -s conftest.$ac_objext; then :
172276c7fc5fSjoerg  ac_retval=0
172376c7fc5fSjoergelse
172476c7fc5fSjoerg  $as_echo "$as_me: failed program was:" >&5
172576c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
172676c7fc5fSjoerg
172776c7fc5fSjoerg	ac_retval=1
172876c7fc5fSjoergfi
172976c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
173076c7fc5fSjoerg  as_fn_set_status $ac_retval
173176c7fc5fSjoerg
173276c7fc5fSjoerg} # ac_fn_c_try_compile
173376c7fc5fSjoerg
173476c7fc5fSjoerg# ac_fn_cxx_try_compile LINENO
173576c7fc5fSjoerg# ----------------------------
173676c7fc5fSjoerg# Try to compile conftest.$ac_ext, and return whether this succeeded.
173776c7fc5fSjoergac_fn_cxx_try_compile ()
173876c7fc5fSjoerg{
173976c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
174076c7fc5fSjoerg  rm -f conftest.$ac_objext
174176c7fc5fSjoerg  if { { ac_try="$ac_compile"
174276c7fc5fSjoergcase "(($ac_try" in
174376c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
174476c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
174576c7fc5fSjoergesac
174676c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
174776c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
174876c7fc5fSjoerg  (eval "$ac_compile") 2>conftest.err
174976c7fc5fSjoerg  ac_status=$?
175076c7fc5fSjoerg  if test -s conftest.err; then
175176c7fc5fSjoerg    grep -v '^ *+' conftest.err >conftest.er1
175276c7fc5fSjoerg    cat conftest.er1 >&5
175376c7fc5fSjoerg    mv -f conftest.er1 conftest.err
175476c7fc5fSjoerg  fi
175576c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
175676c7fc5fSjoerg  test $ac_status = 0; } && {
175776c7fc5fSjoerg	 test -z "$ac_cxx_werror_flag" ||
175876c7fc5fSjoerg	 test ! -s conftest.err
175976c7fc5fSjoerg       } && test -s conftest.$ac_objext; then :
176076c7fc5fSjoerg  ac_retval=0
176176c7fc5fSjoergelse
176276c7fc5fSjoerg  $as_echo "$as_me: failed program was:" >&5
176376c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
176476c7fc5fSjoerg
176576c7fc5fSjoerg	ac_retval=1
176676c7fc5fSjoergfi
176776c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
176876c7fc5fSjoerg  as_fn_set_status $ac_retval
176976c7fc5fSjoerg
177076c7fc5fSjoerg} # ac_fn_cxx_try_compile
177176c7fc5fSjoerg
177276c7fc5fSjoerg# ac_fn_c_try_cpp LINENO
177376c7fc5fSjoerg# ----------------------
177476c7fc5fSjoerg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
177576c7fc5fSjoergac_fn_c_try_cpp ()
177676c7fc5fSjoerg{
177776c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
177876c7fc5fSjoerg  if { { ac_try="$ac_cpp conftest.$ac_ext"
177976c7fc5fSjoergcase "(($ac_try" in
178076c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
178176c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
178276c7fc5fSjoergesac
178376c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
178476c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
178576c7fc5fSjoerg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
178676c7fc5fSjoerg  ac_status=$?
178776c7fc5fSjoerg  if test -s conftest.err; then
178876c7fc5fSjoerg    grep -v '^ *+' conftest.err >conftest.er1
178976c7fc5fSjoerg    cat conftest.er1 >&5
179076c7fc5fSjoerg    mv -f conftest.er1 conftest.err
179176c7fc5fSjoerg  fi
179276c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
179376c7fc5fSjoerg  test $ac_status = 0; } > conftest.i && {
179476c7fc5fSjoerg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
179576c7fc5fSjoerg	 test ! -s conftest.err
179676c7fc5fSjoerg       }; then :
179776c7fc5fSjoerg  ac_retval=0
179876c7fc5fSjoergelse
179976c7fc5fSjoerg  $as_echo "$as_me: failed program was:" >&5
180076c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
180176c7fc5fSjoerg
180276c7fc5fSjoerg    ac_retval=1
180376c7fc5fSjoergfi
180476c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
180576c7fc5fSjoerg  as_fn_set_status $ac_retval
180676c7fc5fSjoerg
180776c7fc5fSjoerg} # ac_fn_c_try_cpp
180876c7fc5fSjoerg
180976c7fc5fSjoerg# ac_fn_cxx_try_link LINENO
181076c7fc5fSjoerg# -------------------------
181176c7fc5fSjoerg# Try to link conftest.$ac_ext, and return whether this succeeded.
181276c7fc5fSjoergac_fn_cxx_try_link ()
181376c7fc5fSjoerg{
181476c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
181576c7fc5fSjoerg  rm -f conftest.$ac_objext conftest$ac_exeext
181676c7fc5fSjoerg  if { { ac_try="$ac_link"
181776c7fc5fSjoergcase "(($ac_try" in
181876c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
181976c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
182076c7fc5fSjoergesac
182176c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
182276c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
182376c7fc5fSjoerg  (eval "$ac_link") 2>conftest.err
182476c7fc5fSjoerg  ac_status=$?
182576c7fc5fSjoerg  if test -s conftest.err; then
182676c7fc5fSjoerg    grep -v '^ *+' conftest.err >conftest.er1
182776c7fc5fSjoerg    cat conftest.er1 >&5
182876c7fc5fSjoerg    mv -f conftest.er1 conftest.err
182976c7fc5fSjoerg  fi
183076c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
183176c7fc5fSjoerg  test $ac_status = 0; } && {
183276c7fc5fSjoerg	 test -z "$ac_cxx_werror_flag" ||
183376c7fc5fSjoerg	 test ! -s conftest.err
183476c7fc5fSjoerg       } && test -s conftest$ac_exeext && {
183576c7fc5fSjoerg	 test "$cross_compiling" = yes ||
183676c7fc5fSjoerg	 test -x conftest$ac_exeext
183776c7fc5fSjoerg       }; then :
183876c7fc5fSjoerg  ac_retval=0
183976c7fc5fSjoergelse
184076c7fc5fSjoerg  $as_echo "$as_me: failed program was:" >&5
184176c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
184276c7fc5fSjoerg
184376c7fc5fSjoerg	ac_retval=1
184476c7fc5fSjoergfi
184576c7fc5fSjoerg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
184676c7fc5fSjoerg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
184776c7fc5fSjoerg  # interfere with the next link command; also delete a directory that is
184876c7fc5fSjoerg  # left behind by Apple's compiler.  We do this before executing the actions.
184976c7fc5fSjoerg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
185076c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
185176c7fc5fSjoerg  as_fn_set_status $ac_retval
185276c7fc5fSjoerg
185376c7fc5fSjoerg} # ac_fn_cxx_try_link
185476c7fc5fSjoerg
185576c7fc5fSjoerg# ac_fn_c_try_link LINENO
185676c7fc5fSjoerg# -----------------------
185776c7fc5fSjoerg# Try to link conftest.$ac_ext, and return whether this succeeded.
185876c7fc5fSjoergac_fn_c_try_link ()
185976c7fc5fSjoerg{
186076c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
186176c7fc5fSjoerg  rm -f conftest.$ac_objext conftest$ac_exeext
186276c7fc5fSjoerg  if { { ac_try="$ac_link"
186376c7fc5fSjoergcase "(($ac_try" in
186476c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
186576c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
186676c7fc5fSjoergesac
186776c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
186876c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
186976c7fc5fSjoerg  (eval "$ac_link") 2>conftest.err
187076c7fc5fSjoerg  ac_status=$?
187176c7fc5fSjoerg  if test -s conftest.err; then
187276c7fc5fSjoerg    grep -v '^ *+' conftest.err >conftest.er1
187376c7fc5fSjoerg    cat conftest.er1 >&5
187476c7fc5fSjoerg    mv -f conftest.er1 conftest.err
187576c7fc5fSjoerg  fi
187676c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
187776c7fc5fSjoerg  test $ac_status = 0; } && {
187876c7fc5fSjoerg	 test -z "$ac_c_werror_flag" ||
187976c7fc5fSjoerg	 test ! -s conftest.err
188076c7fc5fSjoerg       } && test -s conftest$ac_exeext && {
188176c7fc5fSjoerg	 test "$cross_compiling" = yes ||
188276c7fc5fSjoerg	 test -x conftest$ac_exeext
188376c7fc5fSjoerg       }; then :
188476c7fc5fSjoerg  ac_retval=0
188576c7fc5fSjoergelse
188676c7fc5fSjoerg  $as_echo "$as_me: failed program was:" >&5
188776c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
188876c7fc5fSjoerg
188976c7fc5fSjoerg	ac_retval=1
189076c7fc5fSjoergfi
189176c7fc5fSjoerg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
189276c7fc5fSjoerg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
189376c7fc5fSjoerg  # interfere with the next link command; also delete a directory that is
189476c7fc5fSjoerg  # left behind by Apple's compiler.  We do this before executing the actions.
189576c7fc5fSjoerg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
189676c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
189776c7fc5fSjoerg  as_fn_set_status $ac_retval
189876c7fc5fSjoerg
189976c7fc5fSjoerg} # ac_fn_c_try_link
190076c7fc5fSjoerg
190176c7fc5fSjoerg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
190276c7fc5fSjoerg# -------------------------------------------------------
190376c7fc5fSjoerg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
190476c7fc5fSjoerg# the include files in INCLUDES and setting the cache variable VAR
190576c7fc5fSjoerg# accordingly.
190676c7fc5fSjoergac_fn_c_check_header_mongrel ()
190776c7fc5fSjoerg{
190876c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
190976c7fc5fSjoerg  if eval \${$3+:} false; then :
191076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
191176c7fc5fSjoerg$as_echo_n "checking for $2... " >&6; }
191276c7fc5fSjoergif eval \${$3+:} false; then :
191376c7fc5fSjoerg  $as_echo_n "(cached) " >&6
191476c7fc5fSjoergfi
191576c7fc5fSjoergeval ac_res=\$$3
191676c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
191776c7fc5fSjoerg$as_echo "$ac_res" >&6; }
191876c7fc5fSjoergelse
191976c7fc5fSjoerg  # Is the header compilable?
192076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
192176c7fc5fSjoerg$as_echo_n "checking $2 usability... " >&6; }
192276c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
192376c7fc5fSjoerg/* end confdefs.h.  */
192476c7fc5fSjoerg$4
192576c7fc5fSjoerg#include <$2>
192676c7fc5fSjoerg_ACEOF
192776c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
192876c7fc5fSjoerg  ac_header_compiler=yes
192976c7fc5fSjoergelse
193076c7fc5fSjoerg  ac_header_compiler=no
193176c7fc5fSjoergfi
193276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
193376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
193476c7fc5fSjoerg$as_echo "$ac_header_compiler" >&6; }
193576c7fc5fSjoerg
193676c7fc5fSjoerg# Is the header present?
193776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
193876c7fc5fSjoerg$as_echo_n "checking $2 presence... " >&6; }
193976c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
194076c7fc5fSjoerg/* end confdefs.h.  */
194176c7fc5fSjoerg#include <$2>
194276c7fc5fSjoerg_ACEOF
194376c7fc5fSjoergif ac_fn_c_try_cpp "$LINENO"; then :
194476c7fc5fSjoerg  ac_header_preproc=yes
194576c7fc5fSjoergelse
194676c7fc5fSjoerg  ac_header_preproc=no
194776c7fc5fSjoergfi
194876c7fc5fSjoergrm -f conftest.err conftest.i conftest.$ac_ext
194976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
195076c7fc5fSjoerg$as_echo "$ac_header_preproc" >&6; }
195176c7fc5fSjoerg
195276c7fc5fSjoerg# So?  What about this header?
195376c7fc5fSjoergcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
195476c7fc5fSjoerg  yes:no: )
195576c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
195676c7fc5fSjoerg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
195776c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
195876c7fc5fSjoerg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
195976c7fc5fSjoerg    ;;
196076c7fc5fSjoerg  no:yes:* )
196176c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
196276c7fc5fSjoerg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
196376c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
196476c7fc5fSjoerg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
196576c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
196676c7fc5fSjoerg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
196776c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
196876c7fc5fSjoerg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
196976c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
197076c7fc5fSjoerg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
197176c7fc5fSjoerg( $as_echo "## ------------------------------------ ##
197276c7fc5fSjoerg## Report this to http://llvm.org/bugs/ ##
197376c7fc5fSjoerg## ------------------------------------ ##"
197476c7fc5fSjoerg     ) | sed "s/^/$as_me: WARNING:     /" >&2
197576c7fc5fSjoerg    ;;
197676c7fc5fSjoergesac
197776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
197876c7fc5fSjoerg$as_echo_n "checking for $2... " >&6; }
197976c7fc5fSjoergif eval \${$3+:} false; then :
198076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
198176c7fc5fSjoergelse
198276c7fc5fSjoerg  eval "$3=\$ac_header_compiler"
198376c7fc5fSjoergfi
198476c7fc5fSjoergeval ac_res=\$$3
198576c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
198676c7fc5fSjoerg$as_echo "$ac_res" >&6; }
198776c7fc5fSjoergfi
198876c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
198976c7fc5fSjoerg
199076c7fc5fSjoerg} # ac_fn_c_check_header_mongrel
199176c7fc5fSjoerg
199276c7fc5fSjoerg# ac_fn_c_try_run LINENO
199376c7fc5fSjoerg# ----------------------
199476c7fc5fSjoerg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
199576c7fc5fSjoerg# that executables *can* be run.
199676c7fc5fSjoergac_fn_c_try_run ()
199776c7fc5fSjoerg{
199876c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
199976c7fc5fSjoerg  if { { ac_try="$ac_link"
200076c7fc5fSjoergcase "(($ac_try" in
200176c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
200276c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
200376c7fc5fSjoergesac
200476c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
200576c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
200676c7fc5fSjoerg  (eval "$ac_link") 2>&5
200776c7fc5fSjoerg  ac_status=$?
200876c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
200976c7fc5fSjoerg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
201076c7fc5fSjoerg  { { case "(($ac_try" in
201176c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
201276c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
201376c7fc5fSjoergesac
201476c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
201576c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
201676c7fc5fSjoerg  (eval "$ac_try") 2>&5
201776c7fc5fSjoerg  ac_status=$?
201876c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
201976c7fc5fSjoerg  test $ac_status = 0; }; }; then :
202076c7fc5fSjoerg  ac_retval=0
202176c7fc5fSjoergelse
202276c7fc5fSjoerg  $as_echo "$as_me: program exited with status $ac_status" >&5
202376c7fc5fSjoerg       $as_echo "$as_me: failed program was:" >&5
202476c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
202576c7fc5fSjoerg
202676c7fc5fSjoerg       ac_retval=$ac_status
202776c7fc5fSjoergfi
202876c7fc5fSjoerg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
202976c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
203076c7fc5fSjoerg  as_fn_set_status $ac_retval
203176c7fc5fSjoerg
203276c7fc5fSjoerg} # ac_fn_c_try_run
203376c7fc5fSjoerg
203476c7fc5fSjoerg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
203576c7fc5fSjoerg# -------------------------------------------------------
203676c7fc5fSjoerg# Tests whether HEADER exists and can be compiled using the include files in
203776c7fc5fSjoerg# INCLUDES, setting the cache variable VAR accordingly.
203876c7fc5fSjoergac_fn_c_check_header_compile ()
203976c7fc5fSjoerg{
204076c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
204176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
204276c7fc5fSjoerg$as_echo_n "checking for $2... " >&6; }
204376c7fc5fSjoergif eval \${$3+:} false; then :
204476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
204576c7fc5fSjoergelse
204676c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
204776c7fc5fSjoerg/* end confdefs.h.  */
204876c7fc5fSjoerg$4
204976c7fc5fSjoerg#include <$2>
205076c7fc5fSjoerg_ACEOF
205176c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
205276c7fc5fSjoerg  eval "$3=yes"
205376c7fc5fSjoergelse
205476c7fc5fSjoerg  eval "$3=no"
205576c7fc5fSjoergfi
205676c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
205776c7fc5fSjoergfi
205876c7fc5fSjoergeval ac_res=\$$3
205976c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
206076c7fc5fSjoerg$as_echo "$ac_res" >&6; }
206176c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
206276c7fc5fSjoerg
206376c7fc5fSjoerg} # ac_fn_c_check_header_compile
206476c7fc5fSjoerg
206576c7fc5fSjoerg# ac_fn_c_check_func LINENO FUNC VAR
206676c7fc5fSjoerg# ----------------------------------
206776c7fc5fSjoerg# Tests whether FUNC exists, setting the cache variable VAR accordingly
206876c7fc5fSjoergac_fn_c_check_func ()
206976c7fc5fSjoerg{
207076c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
207176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
207276c7fc5fSjoerg$as_echo_n "checking for $2... " >&6; }
207376c7fc5fSjoergif eval \${$3+:} false; then :
207476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
207576c7fc5fSjoergelse
207676c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
207776c7fc5fSjoerg/* end confdefs.h.  */
207876c7fc5fSjoerg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
207976c7fc5fSjoerg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
208076c7fc5fSjoerg#define $2 innocuous_$2
208176c7fc5fSjoerg
208276c7fc5fSjoerg/* System header to define __stub macros and hopefully few prototypes,
208376c7fc5fSjoerg    which can conflict with char $2 (); below.
208476c7fc5fSjoerg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
208576c7fc5fSjoerg    <limits.h> exists even on freestanding compilers.  */
208676c7fc5fSjoerg
208776c7fc5fSjoerg#ifdef __STDC__
208876c7fc5fSjoerg# include <limits.h>
208976c7fc5fSjoerg#else
209076c7fc5fSjoerg# include <assert.h>
209176c7fc5fSjoerg#endif
209276c7fc5fSjoerg
209376c7fc5fSjoerg#undef $2
209476c7fc5fSjoerg
209576c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
209676c7fc5fSjoerg   Use char because int might match the return type of a GCC
209776c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
209876c7fc5fSjoerg#ifdef __cplusplus
209976c7fc5fSjoergextern "C"
210076c7fc5fSjoerg#endif
210176c7fc5fSjoergchar $2 ();
210276c7fc5fSjoerg/* The GNU C library defines this for functions which it implements
210376c7fc5fSjoerg    to always fail with ENOSYS.  Some functions are actually named
210476c7fc5fSjoerg    something starting with __ and the normal name is an alias.  */
210576c7fc5fSjoerg#if defined __stub_$2 || defined __stub___$2
210676c7fc5fSjoergchoke me
210776c7fc5fSjoerg#endif
210876c7fc5fSjoerg
210976c7fc5fSjoergint
211076c7fc5fSjoergmain ()
211176c7fc5fSjoerg{
211276c7fc5fSjoergreturn $2 ();
211376c7fc5fSjoerg  ;
211476c7fc5fSjoerg  return 0;
211576c7fc5fSjoerg}
211676c7fc5fSjoerg_ACEOF
211776c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
211876c7fc5fSjoerg  eval "$3=yes"
211976c7fc5fSjoergelse
212076c7fc5fSjoerg  eval "$3=no"
212176c7fc5fSjoergfi
212276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
212376c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
212476c7fc5fSjoergfi
212576c7fc5fSjoergeval ac_res=\$$3
212676c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
212776c7fc5fSjoerg$as_echo "$ac_res" >&6; }
212876c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212976c7fc5fSjoerg
213076c7fc5fSjoerg} # ac_fn_c_check_func
213176c7fc5fSjoerg
213276c7fc5fSjoerg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
213376c7fc5fSjoerg# ---------------------------------------------
213476c7fc5fSjoerg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
213576c7fc5fSjoerg# accordingly.
213676c7fc5fSjoergac_fn_c_check_decl ()
213776c7fc5fSjoerg{
213876c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
213976c7fc5fSjoerg  as_decl_name=`echo $2|sed 's/ *(.*//'`
214076c7fc5fSjoerg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
214176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
214276c7fc5fSjoerg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
214376c7fc5fSjoergif eval \${$3+:} false; then :
214476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
214576c7fc5fSjoergelse
214676c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
214776c7fc5fSjoerg/* end confdefs.h.  */
214876c7fc5fSjoerg$4
214976c7fc5fSjoergint
215076c7fc5fSjoergmain ()
215176c7fc5fSjoerg{
215276c7fc5fSjoerg#ifndef $as_decl_name
215376c7fc5fSjoerg#ifdef __cplusplus
215476c7fc5fSjoerg  (void) $as_decl_use;
215576c7fc5fSjoerg#else
215676c7fc5fSjoerg  (void) $as_decl_name;
215776c7fc5fSjoerg#endif
215876c7fc5fSjoerg#endif
215976c7fc5fSjoerg
216076c7fc5fSjoerg  ;
216176c7fc5fSjoerg  return 0;
216276c7fc5fSjoerg}
216376c7fc5fSjoerg_ACEOF
216476c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
216576c7fc5fSjoerg  eval "$3=yes"
216676c7fc5fSjoergelse
216776c7fc5fSjoerg  eval "$3=no"
216876c7fc5fSjoergfi
216976c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
217076c7fc5fSjoergfi
217176c7fc5fSjoergeval ac_res=\$$3
217276c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
217376c7fc5fSjoerg$as_echo "$ac_res" >&6; }
217476c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
217576c7fc5fSjoerg
217676c7fc5fSjoerg} # ac_fn_c_check_decl
217776c7fc5fSjoerg
217876c7fc5fSjoerg# ac_fn_cxx_try_run LINENO
217976c7fc5fSjoerg# ------------------------
218076c7fc5fSjoerg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
218176c7fc5fSjoerg# that executables *can* be run.
218276c7fc5fSjoergac_fn_cxx_try_run ()
218376c7fc5fSjoerg{
218476c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
218576c7fc5fSjoerg  if { { ac_try="$ac_link"
218676c7fc5fSjoergcase "(($ac_try" in
218776c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
218876c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
218976c7fc5fSjoergesac
219076c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
219176c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
219276c7fc5fSjoerg  (eval "$ac_link") 2>&5
219376c7fc5fSjoerg  ac_status=$?
219476c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
219576c7fc5fSjoerg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
219676c7fc5fSjoerg  { { case "(($ac_try" in
219776c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
219876c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
219976c7fc5fSjoergesac
220076c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
220176c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
220276c7fc5fSjoerg  (eval "$ac_try") 2>&5
220376c7fc5fSjoerg  ac_status=$?
220476c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
220576c7fc5fSjoerg  test $ac_status = 0; }; }; then :
220676c7fc5fSjoerg  ac_retval=0
220776c7fc5fSjoergelse
220876c7fc5fSjoerg  $as_echo "$as_me: program exited with status $ac_status" >&5
220976c7fc5fSjoerg       $as_echo "$as_me: failed program was:" >&5
221076c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
221176c7fc5fSjoerg
221276c7fc5fSjoerg       ac_retval=$ac_status
221376c7fc5fSjoergfi
221476c7fc5fSjoerg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
221576c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
221676c7fc5fSjoerg  as_fn_set_status $ac_retval
221776c7fc5fSjoerg
221876c7fc5fSjoerg} # ac_fn_cxx_try_run
221976c7fc5fSjoerg
222076c7fc5fSjoerg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
222176c7fc5fSjoerg# -------------------------------------------
222276c7fc5fSjoerg# Tests whether TYPE exists after having included INCLUDES, setting cache
222376c7fc5fSjoerg# variable VAR accordingly.
222476c7fc5fSjoergac_fn_c_check_type ()
222576c7fc5fSjoerg{
222676c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
222776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
222876c7fc5fSjoerg$as_echo_n "checking for $2... " >&6; }
222976c7fc5fSjoergif eval \${$3+:} false; then :
223076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
223176c7fc5fSjoergelse
223276c7fc5fSjoerg  eval "$3=no"
223376c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
223476c7fc5fSjoerg/* end confdefs.h.  */
223576c7fc5fSjoerg$4
223676c7fc5fSjoergint
223776c7fc5fSjoergmain ()
223876c7fc5fSjoerg{
223976c7fc5fSjoergif (sizeof ($2))
224076c7fc5fSjoerg	 return 0;
224176c7fc5fSjoerg  ;
224276c7fc5fSjoerg  return 0;
224376c7fc5fSjoerg}
224476c7fc5fSjoerg_ACEOF
224576c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
224676c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
224776c7fc5fSjoerg/* end confdefs.h.  */
224876c7fc5fSjoerg$4
224976c7fc5fSjoergint
225076c7fc5fSjoergmain ()
225176c7fc5fSjoerg{
225276c7fc5fSjoergif (sizeof (($2)))
225376c7fc5fSjoerg	    return 0;
225476c7fc5fSjoerg  ;
225576c7fc5fSjoerg  return 0;
225676c7fc5fSjoerg}
225776c7fc5fSjoerg_ACEOF
225876c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
225976c7fc5fSjoerg
226076c7fc5fSjoergelse
226176c7fc5fSjoerg  eval "$3=yes"
226276c7fc5fSjoergfi
226376c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
226476c7fc5fSjoergfi
226576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
226676c7fc5fSjoergfi
226776c7fc5fSjoergeval ac_res=\$$3
226876c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
226976c7fc5fSjoerg$as_echo "$ac_res" >&6; }
227076c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
227176c7fc5fSjoerg
227276c7fc5fSjoerg} # ac_fn_c_check_type
227376c7fc5fSjoerg
227476c7fc5fSjoerg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
227576c7fc5fSjoerg# ----------------------------------------------------
227676c7fc5fSjoerg# Tries to find if the field MEMBER exists in type AGGR, after including
227776c7fc5fSjoerg# INCLUDES, setting cache variable VAR accordingly.
227876c7fc5fSjoergac_fn_c_check_member ()
227976c7fc5fSjoerg{
228076c7fc5fSjoerg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
228176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
228276c7fc5fSjoerg$as_echo_n "checking for $2.$3... " >&6; }
228376c7fc5fSjoergif eval \${$4+:} false; then :
228476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
228576c7fc5fSjoergelse
228676c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
228776c7fc5fSjoerg/* end confdefs.h.  */
228876c7fc5fSjoerg$5
228976c7fc5fSjoergint
229076c7fc5fSjoergmain ()
229176c7fc5fSjoerg{
229276c7fc5fSjoergstatic $2 ac_aggr;
229376c7fc5fSjoergif (ac_aggr.$3)
229476c7fc5fSjoergreturn 0;
229576c7fc5fSjoerg  ;
229676c7fc5fSjoerg  return 0;
229776c7fc5fSjoerg}
229876c7fc5fSjoerg_ACEOF
229976c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
230076c7fc5fSjoerg  eval "$4=yes"
230176c7fc5fSjoergelse
230276c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
230376c7fc5fSjoerg/* end confdefs.h.  */
230476c7fc5fSjoerg$5
230576c7fc5fSjoergint
230676c7fc5fSjoergmain ()
230776c7fc5fSjoerg{
230876c7fc5fSjoergstatic $2 ac_aggr;
230976c7fc5fSjoergif (sizeof ac_aggr.$3)
231076c7fc5fSjoergreturn 0;
231176c7fc5fSjoerg  ;
231276c7fc5fSjoerg  return 0;
231376c7fc5fSjoerg}
231476c7fc5fSjoerg_ACEOF
231576c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
231676c7fc5fSjoerg  eval "$4=yes"
231776c7fc5fSjoergelse
231876c7fc5fSjoerg  eval "$4=no"
231976c7fc5fSjoergfi
232076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
232176c7fc5fSjoergfi
232276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
232376c7fc5fSjoergfi
232476c7fc5fSjoergeval ac_res=\$$4
232576c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
232676c7fc5fSjoerg$as_echo "$ac_res" >&6; }
232776c7fc5fSjoerg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
232876c7fc5fSjoerg
232976c7fc5fSjoerg} # ac_fn_c_check_member
233076c7fc5fSjoergcat >config.log <<_ACEOF
233176c7fc5fSjoergThis file contains any messages produced by compilers while
233276c7fc5fSjoergrunning configure, to aid debugging if configure makes a mistake.
233376c7fc5fSjoerg
233476c7fc5fSjoergIt was created by LLVM $as_me 4.0.0svn, which was
233576c7fc5fSjoerggenerated by GNU Autoconf 2.69.  Invocation command line was
233676c7fc5fSjoerg
233776c7fc5fSjoerg  $ $0 $@
233876c7fc5fSjoerg
233976c7fc5fSjoerg_ACEOF
234076c7fc5fSjoergexec 5>>config.log
234176c7fc5fSjoerg{
234276c7fc5fSjoergcat <<_ASUNAME
234376c7fc5fSjoerg## --------- ##
234476c7fc5fSjoerg## Platform. ##
234576c7fc5fSjoerg## --------- ##
234676c7fc5fSjoerg
234776c7fc5fSjoerghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
234876c7fc5fSjoerguname -m = `(uname -m) 2>/dev/null || echo unknown`
234976c7fc5fSjoerguname -r = `(uname -r) 2>/dev/null || echo unknown`
235076c7fc5fSjoerguname -s = `(uname -s) 2>/dev/null || echo unknown`
235176c7fc5fSjoerguname -v = `(uname -v) 2>/dev/null || echo unknown`
235276c7fc5fSjoerg
235376c7fc5fSjoerg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
235476c7fc5fSjoerg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
235576c7fc5fSjoerg
235676c7fc5fSjoerg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
235776c7fc5fSjoerg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
235876c7fc5fSjoerg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
235976c7fc5fSjoerg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
236076c7fc5fSjoerg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
236176c7fc5fSjoerg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
236276c7fc5fSjoerg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
236376c7fc5fSjoerg
236476c7fc5fSjoerg_ASUNAME
236576c7fc5fSjoerg
236676c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
236776c7fc5fSjoergfor as_dir in $PATH
236876c7fc5fSjoergdo
236976c7fc5fSjoerg  IFS=$as_save_IFS
237076c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
237176c7fc5fSjoerg    $as_echo "PATH: $as_dir"
237276c7fc5fSjoerg  done
237376c7fc5fSjoergIFS=$as_save_IFS
237476c7fc5fSjoerg
237576c7fc5fSjoerg} >&5
237676c7fc5fSjoerg
237776c7fc5fSjoergcat >&5 <<_ACEOF
237876c7fc5fSjoerg
237976c7fc5fSjoerg
238076c7fc5fSjoerg## ----------- ##
238176c7fc5fSjoerg## Core tests. ##
238276c7fc5fSjoerg## ----------- ##
238376c7fc5fSjoerg
238476c7fc5fSjoerg_ACEOF
238576c7fc5fSjoerg
238676c7fc5fSjoerg
238776c7fc5fSjoerg# Keep a trace of the command line.
238876c7fc5fSjoerg# Strip out --no-create and --no-recursion so they do not pile up.
238976c7fc5fSjoerg# Strip out --silent because we don't want to record it for future runs.
239076c7fc5fSjoerg# Also quote any args containing shell meta-characters.
239176c7fc5fSjoerg# Make two passes to allow for proper duplicate-argument suppression.
239276c7fc5fSjoergac_configure_args=
239376c7fc5fSjoergac_configure_args0=
239476c7fc5fSjoergac_configure_args1=
239576c7fc5fSjoergac_must_keep_next=false
239676c7fc5fSjoergfor ac_pass in 1 2
239776c7fc5fSjoergdo
239876c7fc5fSjoerg  for ac_arg
239976c7fc5fSjoerg  do
240076c7fc5fSjoerg    case $ac_arg in
240176c7fc5fSjoerg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
240276c7fc5fSjoerg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
240376c7fc5fSjoerg    | -silent | --silent | --silen | --sile | --sil)
240476c7fc5fSjoerg      continue ;;
240576c7fc5fSjoerg    *\'*)
240676c7fc5fSjoerg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
240776c7fc5fSjoerg    esac
240876c7fc5fSjoerg    case $ac_pass in
240976c7fc5fSjoerg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
241076c7fc5fSjoerg    2)
241176c7fc5fSjoerg      as_fn_append ac_configure_args1 " '$ac_arg'"
241276c7fc5fSjoerg      if test $ac_must_keep_next = true; then
241376c7fc5fSjoerg	ac_must_keep_next=false # Got value, back to normal.
241476c7fc5fSjoerg      else
241576c7fc5fSjoerg	case $ac_arg in
241676c7fc5fSjoerg	  *=* | --config-cache | -C | -disable-* | --disable-* \
241776c7fc5fSjoerg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
241876c7fc5fSjoerg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
241976c7fc5fSjoerg	  | -with-* | --with-* | -without-* | --without-* | --x)
242076c7fc5fSjoerg	    case "$ac_configure_args0 " in
242176c7fc5fSjoerg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
242276c7fc5fSjoerg	    esac
242376c7fc5fSjoerg	    ;;
242476c7fc5fSjoerg	  -* ) ac_must_keep_next=true ;;
242576c7fc5fSjoerg	esac
242676c7fc5fSjoerg      fi
242776c7fc5fSjoerg      as_fn_append ac_configure_args " '$ac_arg'"
242876c7fc5fSjoerg      ;;
242976c7fc5fSjoerg    esac
243076c7fc5fSjoerg  done
243176c7fc5fSjoergdone
243276c7fc5fSjoerg{ ac_configure_args0=; unset ac_configure_args0;}
243376c7fc5fSjoerg{ ac_configure_args1=; unset ac_configure_args1;}
243476c7fc5fSjoerg
243576c7fc5fSjoerg# When interrupted or exit'd, cleanup temporary files, and complete
243676c7fc5fSjoerg# config.log.  We remove comments because anyway the quotes in there
243776c7fc5fSjoerg# would cause problems or look ugly.
243876c7fc5fSjoerg# WARNING: Use '\'' to represent an apostrophe within the trap.
243976c7fc5fSjoerg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
244076c7fc5fSjoergtrap 'exit_status=$?
244176c7fc5fSjoerg  # Save into config.log some information that might help in debugging.
244276c7fc5fSjoerg  {
244376c7fc5fSjoerg    echo
244476c7fc5fSjoerg
244576c7fc5fSjoerg    $as_echo "## ---------------- ##
244676c7fc5fSjoerg## Cache variables. ##
244776c7fc5fSjoerg## ---------------- ##"
244876c7fc5fSjoerg    echo
244976c7fc5fSjoerg    # The following way of writing the cache mishandles newlines in values,
245076c7fc5fSjoerg(
245176c7fc5fSjoerg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
245276c7fc5fSjoerg    eval ac_val=\$$ac_var
245376c7fc5fSjoerg    case $ac_val in #(
245476c7fc5fSjoerg    *${as_nl}*)
245576c7fc5fSjoerg      case $ac_var in #(
245676c7fc5fSjoerg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
245776c7fc5fSjoerg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
245876c7fc5fSjoerg      esac
245976c7fc5fSjoerg      case $ac_var in #(
246076c7fc5fSjoerg      _ | IFS | as_nl) ;; #(
246176c7fc5fSjoerg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
246276c7fc5fSjoerg      *) { eval $ac_var=; unset $ac_var;} ;;
246376c7fc5fSjoerg      esac ;;
246476c7fc5fSjoerg    esac
246576c7fc5fSjoerg  done
246676c7fc5fSjoerg  (set) 2>&1 |
246776c7fc5fSjoerg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
246876c7fc5fSjoerg    *${as_nl}ac_space=\ *)
246976c7fc5fSjoerg      sed -n \
247076c7fc5fSjoerg	"s/'\''/'\''\\\\'\'''\''/g;
247176c7fc5fSjoerg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
247276c7fc5fSjoerg      ;; #(
247376c7fc5fSjoerg    *)
247476c7fc5fSjoerg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
247576c7fc5fSjoerg      ;;
247676c7fc5fSjoerg    esac |
247776c7fc5fSjoerg    sort
247876c7fc5fSjoerg)
247976c7fc5fSjoerg    echo
248076c7fc5fSjoerg
248176c7fc5fSjoerg    $as_echo "## ----------------- ##
248276c7fc5fSjoerg## Output variables. ##
248376c7fc5fSjoerg## ----------------- ##"
248476c7fc5fSjoerg    echo
248576c7fc5fSjoerg    for ac_var in $ac_subst_vars
248676c7fc5fSjoerg    do
248776c7fc5fSjoerg      eval ac_val=\$$ac_var
248876c7fc5fSjoerg      case $ac_val in
248976c7fc5fSjoerg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
249076c7fc5fSjoerg      esac
249176c7fc5fSjoerg      $as_echo "$ac_var='\''$ac_val'\''"
249276c7fc5fSjoerg    done | sort
249376c7fc5fSjoerg    echo
249476c7fc5fSjoerg
249576c7fc5fSjoerg    if test -n "$ac_subst_files"; then
249676c7fc5fSjoerg      $as_echo "## ------------------- ##
249776c7fc5fSjoerg## File substitutions. ##
249876c7fc5fSjoerg## ------------------- ##"
249976c7fc5fSjoerg      echo
250076c7fc5fSjoerg      for ac_var in $ac_subst_files
250176c7fc5fSjoerg      do
250276c7fc5fSjoerg	eval ac_val=\$$ac_var
250376c7fc5fSjoerg	case $ac_val in
250476c7fc5fSjoerg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
250576c7fc5fSjoerg	esac
250676c7fc5fSjoerg	$as_echo "$ac_var='\''$ac_val'\''"
250776c7fc5fSjoerg      done | sort
250876c7fc5fSjoerg      echo
250976c7fc5fSjoerg    fi
251076c7fc5fSjoerg
251176c7fc5fSjoerg    if test -s confdefs.h; then
251276c7fc5fSjoerg      $as_echo "## ----------- ##
251376c7fc5fSjoerg## confdefs.h. ##
251476c7fc5fSjoerg## ----------- ##"
251576c7fc5fSjoerg      echo
251676c7fc5fSjoerg      cat confdefs.h
251776c7fc5fSjoerg      echo
251876c7fc5fSjoerg    fi
251976c7fc5fSjoerg    test "$ac_signal" != 0 &&
252076c7fc5fSjoerg      $as_echo "$as_me: caught signal $ac_signal"
252176c7fc5fSjoerg    $as_echo "$as_me: exit $exit_status"
252276c7fc5fSjoerg  } >&5
252376c7fc5fSjoerg  rm -f core *.core core.conftest.* &&
252476c7fc5fSjoerg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
252576c7fc5fSjoerg    exit $exit_status
252676c7fc5fSjoerg' 0
252776c7fc5fSjoergfor ac_signal in 1 2 13 15; do
252876c7fc5fSjoerg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
252976c7fc5fSjoergdone
253076c7fc5fSjoergac_signal=0
253176c7fc5fSjoerg
253276c7fc5fSjoerg# confdefs.h avoids OS command line length limits that DEFS can exceed.
253376c7fc5fSjoergrm -f -r conftest* confdefs.h
253476c7fc5fSjoerg
253576c7fc5fSjoerg$as_echo "/* confdefs.h */" > confdefs.h
253676c7fc5fSjoerg
253776c7fc5fSjoerg# Predefined preprocessor variables.
253876c7fc5fSjoerg
253976c7fc5fSjoergcat >>confdefs.h <<_ACEOF
254076c7fc5fSjoerg#define PACKAGE_NAME "$PACKAGE_NAME"
254176c7fc5fSjoerg_ACEOF
254276c7fc5fSjoerg
254376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
254476c7fc5fSjoerg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
254576c7fc5fSjoerg_ACEOF
254676c7fc5fSjoerg
254776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
254876c7fc5fSjoerg#define PACKAGE_VERSION "$PACKAGE_VERSION"
254976c7fc5fSjoerg_ACEOF
255076c7fc5fSjoerg
255176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
255276c7fc5fSjoerg#define PACKAGE_STRING "$PACKAGE_STRING"
255376c7fc5fSjoerg_ACEOF
255476c7fc5fSjoerg
255576c7fc5fSjoergcat >>confdefs.h <<_ACEOF
255676c7fc5fSjoerg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
255776c7fc5fSjoerg_ACEOF
255876c7fc5fSjoerg
255976c7fc5fSjoergcat >>confdefs.h <<_ACEOF
256076c7fc5fSjoerg#define PACKAGE_URL "$PACKAGE_URL"
256176c7fc5fSjoerg_ACEOF
256276c7fc5fSjoerg
256376c7fc5fSjoerg
256476c7fc5fSjoerg# Let the site file select an alternate cache file if it wants to.
256576c7fc5fSjoerg# Prefer an explicitly selected file to automatically selected ones.
256676c7fc5fSjoergac_site_file1=NONE
256776c7fc5fSjoergac_site_file2=NONE
256876c7fc5fSjoergif test -n "$CONFIG_SITE"; then
256976c7fc5fSjoerg  # We do not want a PATH search for config.site.
257076c7fc5fSjoerg  case $CONFIG_SITE in #((
257176c7fc5fSjoerg    -*)  ac_site_file1=./$CONFIG_SITE;;
257276c7fc5fSjoerg    */*) ac_site_file1=$CONFIG_SITE;;
257376c7fc5fSjoerg    *)   ac_site_file1=./$CONFIG_SITE;;
257476c7fc5fSjoerg  esac
257576c7fc5fSjoergelif test "x$prefix" != xNONE; then
257676c7fc5fSjoerg  ac_site_file1=$prefix/share/config.site
257776c7fc5fSjoerg  ac_site_file2=$prefix/etc/config.site
257876c7fc5fSjoergelse
257976c7fc5fSjoerg  ac_site_file1=$ac_default_prefix/share/config.site
258076c7fc5fSjoerg  ac_site_file2=$ac_default_prefix/etc/config.site
258176c7fc5fSjoergfi
258276c7fc5fSjoergfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
258376c7fc5fSjoergdo
258476c7fc5fSjoerg  test "x$ac_site_file" = xNONE && continue
258576c7fc5fSjoerg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
258676c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
258776c7fc5fSjoerg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
258876c7fc5fSjoerg    sed 's/^/| /' "$ac_site_file" >&5
258976c7fc5fSjoerg    . "$ac_site_file" \
259076c7fc5fSjoerg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
259176c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
259276c7fc5fSjoergas_fn_error $? "failed to load site script $ac_site_file
259376c7fc5fSjoergSee \`config.log' for more details" "$LINENO" 5; }
259476c7fc5fSjoerg  fi
259576c7fc5fSjoergdone
259676c7fc5fSjoerg
259776c7fc5fSjoergif test -r "$cache_file"; then
259876c7fc5fSjoerg  # Some versions of bash will fail to source /dev/null (special files
259976c7fc5fSjoerg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
260076c7fc5fSjoerg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
260176c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
260276c7fc5fSjoerg$as_echo "$as_me: loading cache $cache_file" >&6;}
260376c7fc5fSjoerg    case $cache_file in
260476c7fc5fSjoerg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
260576c7fc5fSjoerg      *)                      . "./$cache_file";;
260676c7fc5fSjoerg    esac
260776c7fc5fSjoerg  fi
260876c7fc5fSjoergelse
260976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
261076c7fc5fSjoerg$as_echo "$as_me: creating cache $cache_file" >&6;}
261176c7fc5fSjoerg  >$cache_file
261276c7fc5fSjoergfi
261376c7fc5fSjoerg
261476c7fc5fSjoerg# Check that the precious variables saved in the cache have kept the same
261576c7fc5fSjoerg# value.
261676c7fc5fSjoergac_cache_corrupted=false
261776c7fc5fSjoergfor ac_var in $ac_precious_vars; do
261876c7fc5fSjoerg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
261976c7fc5fSjoerg  eval ac_new_set=\$ac_env_${ac_var}_set
262076c7fc5fSjoerg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
262176c7fc5fSjoerg  eval ac_new_val=\$ac_env_${ac_var}_value
262276c7fc5fSjoerg  case $ac_old_set,$ac_new_set in
262376c7fc5fSjoerg    set,)
262476c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
262576c7fc5fSjoerg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
262676c7fc5fSjoerg      ac_cache_corrupted=: ;;
262776c7fc5fSjoerg    ,set)
262876c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
262976c7fc5fSjoerg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
263076c7fc5fSjoerg      ac_cache_corrupted=: ;;
263176c7fc5fSjoerg    ,);;
263276c7fc5fSjoerg    *)
263376c7fc5fSjoerg      if test "x$ac_old_val" != "x$ac_new_val"; then
263476c7fc5fSjoerg	# differences in whitespace do not lead to failure.
263576c7fc5fSjoerg	ac_old_val_w=`echo x $ac_old_val`
263676c7fc5fSjoerg	ac_new_val_w=`echo x $ac_new_val`
263776c7fc5fSjoerg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
263876c7fc5fSjoerg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
263976c7fc5fSjoerg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
264076c7fc5fSjoerg	  ac_cache_corrupted=:
264176c7fc5fSjoerg	else
264276c7fc5fSjoerg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
264376c7fc5fSjoerg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
264476c7fc5fSjoerg	  eval $ac_var=\$ac_old_val
264576c7fc5fSjoerg	fi
264676c7fc5fSjoerg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
264776c7fc5fSjoerg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
264876c7fc5fSjoerg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
264976c7fc5fSjoerg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
265076c7fc5fSjoerg      fi;;
265176c7fc5fSjoerg  esac
265276c7fc5fSjoerg  # Pass precious variables to config.status.
265376c7fc5fSjoerg  if test "$ac_new_set" = set; then
265476c7fc5fSjoerg    case $ac_new_val in
265576c7fc5fSjoerg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
265676c7fc5fSjoerg    *) ac_arg=$ac_var=$ac_new_val ;;
265776c7fc5fSjoerg    esac
265876c7fc5fSjoerg    case " $ac_configure_args " in
265976c7fc5fSjoerg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
266076c7fc5fSjoerg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
266176c7fc5fSjoerg    esac
266276c7fc5fSjoerg  fi
266376c7fc5fSjoergdone
266476c7fc5fSjoergif $ac_cache_corrupted; then
266576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
266676c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
266776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
266876c7fc5fSjoerg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
266976c7fc5fSjoerg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
267076c7fc5fSjoergfi
267176c7fc5fSjoerg## -------------------- ##
267276c7fc5fSjoerg## Main body of script. ##
267376c7fc5fSjoerg## -------------------- ##
267476c7fc5fSjoerg
267576c7fc5fSjoergac_ext=c
267676c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
267776c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
267876c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
267976c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
268076c7fc5fSjoerg
268176c7fc5fSjoerg
268276c7fc5fSjoerg
268376c7fc5fSjoergLLVM_VERSION_MAJOR=4
268476c7fc5fSjoergLLVM_VERSION_MINOR=0
268576c7fc5fSjoergLLVM_VERSION_PATCH=0
268676c7fc5fSjoergLLVM_VERSION_SUFFIX=svn
268776c7fc5fSjoerg
268876c7fc5fSjoerg
268976c7fc5fSjoergcat >>confdefs.h <<_ACEOF
269076c7fc5fSjoerg#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
269176c7fc5fSjoerg_ACEOF
269276c7fc5fSjoerg
269376c7fc5fSjoerg
269476c7fc5fSjoergcat >>confdefs.h <<_ACEOF
269576c7fc5fSjoerg#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
269676c7fc5fSjoerg_ACEOF
269776c7fc5fSjoerg
269876c7fc5fSjoerg
269976c7fc5fSjoergcat >>confdefs.h <<_ACEOF
270076c7fc5fSjoerg#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
270176c7fc5fSjoerg_ACEOF
270276c7fc5fSjoerg
270376c7fc5fSjoerg
270476c7fc5fSjoergcat >>confdefs.h <<_ACEOF
270576c7fc5fSjoerg#define LLVM_VERSION_STRING "$PACKAGE_VERSION"
270676c7fc5fSjoerg_ACEOF
270776c7fc5fSjoerg
270876c7fc5fSjoergif false; then
270976c7fc5fSjoerg
271076c7fc5fSjoergcat >>confdefs.h <<_ACEOF
271176c7fc5fSjoerg#define LLVM_VERSION_INFO /**/
271276c7fc5fSjoerg_ACEOF
271376c7fc5fSjoerg
271476c7fc5fSjoergfi
271576c7fc5fSjoerg
271676c7fc5fSjoerg
271776c7fc5fSjoerg
271876c7fc5fSjoerg
271976c7fc5fSjoerg
272076c7fc5fSjoerg
272176c7fc5fSjoergLLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
272276c7fc5fSjoerg
272376c7fc5fSjoerg
272476c7fc5fSjoerg
272576c7fc5fSjoerg
272676c7fc5fSjoerg
272776c7fc5fSjoergac_aux_dir=
272876c7fc5fSjoergfor ac_dir in autoconf "$srcdir"/autoconf; do
272976c7fc5fSjoerg  if test -f "$ac_dir/install-sh"; then
273076c7fc5fSjoerg    ac_aux_dir=$ac_dir
273176c7fc5fSjoerg    ac_install_sh="$ac_aux_dir/install-sh -c"
273276c7fc5fSjoerg    break
273376c7fc5fSjoerg  elif test -f "$ac_dir/install.sh"; then
273476c7fc5fSjoerg    ac_aux_dir=$ac_dir
273576c7fc5fSjoerg    ac_install_sh="$ac_aux_dir/install.sh -c"
273676c7fc5fSjoerg    break
273776c7fc5fSjoerg  elif test -f "$ac_dir/shtool"; then
273876c7fc5fSjoerg    ac_aux_dir=$ac_dir
273976c7fc5fSjoerg    ac_install_sh="$ac_aux_dir/shtool install -c"
274076c7fc5fSjoerg    break
274176c7fc5fSjoerg  fi
274276c7fc5fSjoergdone
274376c7fc5fSjoergif test -z "$ac_aux_dir"; then
274476c7fc5fSjoerg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
274576c7fc5fSjoergfi
274676c7fc5fSjoerg
274776c7fc5fSjoerg# These three variables are undocumented and unsupported,
274876c7fc5fSjoerg# and are intended to be withdrawn in a future Autoconf release.
274976c7fc5fSjoerg# They can cause serious problems if a builder's source tree is in a directory
275076c7fc5fSjoerg# whose full name contains unusual characters.
275176c7fc5fSjoergac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
275276c7fc5fSjoergac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
275376c7fc5fSjoergac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
275476c7fc5fSjoerg
275576c7fc5fSjoerg
275676c7fc5fSjoerg
275776c7fc5fSjoerg
275876c7fc5fSjoerg# Check whether --with-llvm-srcdir was given.
275976c7fc5fSjoergif test "${with_llvm_srcdir+set}" = set; then :
276076c7fc5fSjoerg  withval=$with_llvm_srcdir;
276176c7fc5fSjoergelse
276276c7fc5fSjoerg  withval="-"
276376c7fc5fSjoergfi
276476c7fc5fSjoerg
276576c7fc5fSjoergcase "$withval" in
276676c7fc5fSjoerg  -) llvm_srcdir="$srcdir" ;;
276776c7fc5fSjoerg  /* | [A-Za-z]:[\\/]*) llvm_srcdir="$withval" ;;
276876c7fc5fSjoerg  *) llvm_srcdir="$ac_pwd/$withval" ;;
276976c7fc5fSjoergesac
277076c7fc5fSjoerg
277176c7fc5fSjoergif test ${srcdir} != "." ; then
277276c7fc5fSjoerg  if test -f ${srcdir}/include/llvm/Config/config.h ; then
277376c7fc5fSjoerg    as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5
277476c7fc5fSjoerg  fi
277576c7fc5fSjoergfi
277676c7fc5fSjoerg
277776c7fc5fSjoergif test ${srcdir} = "." ; then
277876c7fc5fSjoerg  as_fn_error $? "In-source builds are not allowed. Please configure from a separate build directory!" "$LINENO" 5
277976c7fc5fSjoergfi
278076c7fc5fSjoerg
278176c7fc5fSjoerg: ${CFLAGS=}
278276c7fc5fSjoerg: ${CXXFLAGS=}
278376c7fc5fSjoerg
278476c7fc5fSjoergac_ext=c
278576c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
278676c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
278776c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
278876c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
278976c7fc5fSjoergif test -n "$ac_tool_prefix"; then
279076c7fc5fSjoerg  for ac_prog in clang gcc
279176c7fc5fSjoerg  do
279276c7fc5fSjoerg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
279376c7fc5fSjoergset dummy $ac_tool_prefix$ac_prog; ac_word=$2
279476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
279576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
279676c7fc5fSjoergif ${ac_cv_prog_CC+:} false; then :
279776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
279876c7fc5fSjoergelse
279976c7fc5fSjoerg  if test -n "$CC"; then
280076c7fc5fSjoerg  ac_cv_prog_CC="$CC" # Let the user override the test.
280176c7fc5fSjoergelse
280276c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
280376c7fc5fSjoergfor as_dir in $PATH
280476c7fc5fSjoergdo
280576c7fc5fSjoerg  IFS=$as_save_IFS
280676c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
280776c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
280876c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
280976c7fc5fSjoerg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
281076c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
281176c7fc5fSjoerg    break 2
281276c7fc5fSjoerg  fi
281376c7fc5fSjoergdone
281476c7fc5fSjoerg  done
281576c7fc5fSjoergIFS=$as_save_IFS
281676c7fc5fSjoerg
281776c7fc5fSjoergfi
281876c7fc5fSjoergfi
281976c7fc5fSjoergCC=$ac_cv_prog_CC
282076c7fc5fSjoergif test -n "$CC"; then
282176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
282276c7fc5fSjoerg$as_echo "$CC" >&6; }
282376c7fc5fSjoergelse
282476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
282576c7fc5fSjoerg$as_echo "no" >&6; }
282676c7fc5fSjoergfi
282776c7fc5fSjoerg
282876c7fc5fSjoerg
282976c7fc5fSjoerg    test -n "$CC" && break
283076c7fc5fSjoerg  done
283176c7fc5fSjoergfi
283276c7fc5fSjoergif test -z "$CC"; then
283376c7fc5fSjoerg  ac_ct_CC=$CC
283476c7fc5fSjoerg  for ac_prog in clang gcc
283576c7fc5fSjoergdo
283676c7fc5fSjoerg  # Extract the first word of "$ac_prog", so it can be a program name with args.
283776c7fc5fSjoergset dummy $ac_prog; ac_word=$2
283876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
283976c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
284076c7fc5fSjoergif ${ac_cv_prog_ac_ct_CC+:} false; then :
284176c7fc5fSjoerg  $as_echo_n "(cached) " >&6
284276c7fc5fSjoergelse
284376c7fc5fSjoerg  if test -n "$ac_ct_CC"; then
284476c7fc5fSjoerg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
284576c7fc5fSjoergelse
284676c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284776c7fc5fSjoergfor as_dir in $PATH
284876c7fc5fSjoergdo
284976c7fc5fSjoerg  IFS=$as_save_IFS
285076c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
285176c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
285276c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
285376c7fc5fSjoerg    ac_cv_prog_ac_ct_CC="$ac_prog"
285476c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
285576c7fc5fSjoerg    break 2
285676c7fc5fSjoerg  fi
285776c7fc5fSjoergdone
285876c7fc5fSjoerg  done
285976c7fc5fSjoergIFS=$as_save_IFS
286076c7fc5fSjoerg
286176c7fc5fSjoergfi
286276c7fc5fSjoergfi
286376c7fc5fSjoergac_ct_CC=$ac_cv_prog_ac_ct_CC
286476c7fc5fSjoergif test -n "$ac_ct_CC"; then
286576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
286676c7fc5fSjoerg$as_echo "$ac_ct_CC" >&6; }
286776c7fc5fSjoergelse
286876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
286976c7fc5fSjoerg$as_echo "no" >&6; }
287076c7fc5fSjoergfi
287176c7fc5fSjoerg
287276c7fc5fSjoerg
287376c7fc5fSjoerg  test -n "$ac_ct_CC" && break
287476c7fc5fSjoergdone
287576c7fc5fSjoerg
287676c7fc5fSjoerg  if test "x$ac_ct_CC" = x; then
287776c7fc5fSjoerg    CC=""
287876c7fc5fSjoerg  else
287976c7fc5fSjoerg    case $cross_compiling:$ac_tool_warned in
288076c7fc5fSjoergyes:)
288176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
288276c7fc5fSjoerg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
288376c7fc5fSjoergac_tool_warned=yes ;;
288476c7fc5fSjoergesac
288576c7fc5fSjoerg    CC=$ac_ct_CC
288676c7fc5fSjoerg  fi
288776c7fc5fSjoergfi
288876c7fc5fSjoerg
288976c7fc5fSjoerg
289076c7fc5fSjoergtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
289176c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
289276c7fc5fSjoergas_fn_error $? "no acceptable C compiler found in \$PATH
289376c7fc5fSjoergSee \`config.log' for more details" "$LINENO" 5; }
289476c7fc5fSjoerg
289576c7fc5fSjoerg# Provide some information about the compiler.
289676c7fc5fSjoerg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
289776c7fc5fSjoergset X $ac_compile
289876c7fc5fSjoergac_compiler=$2
289976c7fc5fSjoergfor ac_option in --version -v -V -qversion; do
290076c7fc5fSjoerg  { { ac_try="$ac_compiler $ac_option >&5"
290176c7fc5fSjoergcase "(($ac_try" in
290276c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
290376c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
290476c7fc5fSjoergesac
290576c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
290676c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
290776c7fc5fSjoerg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
290876c7fc5fSjoerg  ac_status=$?
290976c7fc5fSjoerg  if test -s conftest.err; then
291076c7fc5fSjoerg    sed '10a\
291176c7fc5fSjoerg... rest of stderr output deleted ...
291276c7fc5fSjoerg         10q' conftest.err >conftest.er1
291376c7fc5fSjoerg    cat conftest.er1 >&5
291476c7fc5fSjoerg  fi
291576c7fc5fSjoerg  rm -f conftest.er1 conftest.err
291676c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
291776c7fc5fSjoerg  test $ac_status = 0; }
291876c7fc5fSjoergdone
291976c7fc5fSjoerg
292076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
292176c7fc5fSjoerg/* end confdefs.h.  */
292276c7fc5fSjoerg
292376c7fc5fSjoergint
292476c7fc5fSjoergmain ()
292576c7fc5fSjoerg{
292676c7fc5fSjoerg
292776c7fc5fSjoerg  ;
292876c7fc5fSjoerg  return 0;
292976c7fc5fSjoerg}
293076c7fc5fSjoerg_ACEOF
293176c7fc5fSjoergac_clean_files_save=$ac_clean_files
293276c7fc5fSjoergac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
293376c7fc5fSjoerg# Try to create an executable without -o first, disregard a.out.
293476c7fc5fSjoerg# It will help us diagnose broken compilers, and finding out an intuition
293576c7fc5fSjoerg# of exeext.
293676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
293776c7fc5fSjoerg$as_echo_n "checking whether the C compiler works... " >&6; }
293876c7fc5fSjoergac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
293976c7fc5fSjoerg
294076c7fc5fSjoerg# The possible output files:
294176c7fc5fSjoergac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
294276c7fc5fSjoerg
294376c7fc5fSjoergac_rmfiles=
294476c7fc5fSjoergfor ac_file in $ac_files
294576c7fc5fSjoergdo
294676c7fc5fSjoerg  case $ac_file in
294776c7fc5fSjoerg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
294876c7fc5fSjoerg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
294976c7fc5fSjoerg  esac
295076c7fc5fSjoergdone
295176c7fc5fSjoergrm -f $ac_rmfiles
295276c7fc5fSjoerg
295376c7fc5fSjoergif { { ac_try="$ac_link_default"
295476c7fc5fSjoergcase "(($ac_try" in
295576c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
295676c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
295776c7fc5fSjoergesac
295876c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
295976c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
296076c7fc5fSjoerg  (eval "$ac_link_default") 2>&5
296176c7fc5fSjoerg  ac_status=$?
296276c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
296376c7fc5fSjoerg  test $ac_status = 0; }; then :
296476c7fc5fSjoerg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
296576c7fc5fSjoerg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
296676c7fc5fSjoerg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
296776c7fc5fSjoerg# so that the user can short-circuit this test for compilers unknown to
296876c7fc5fSjoerg# Autoconf.
296976c7fc5fSjoergfor ac_file in $ac_files ''
297076c7fc5fSjoergdo
297176c7fc5fSjoerg  test -f "$ac_file" || continue
297276c7fc5fSjoerg  case $ac_file in
297376c7fc5fSjoerg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
297476c7fc5fSjoerg	;;
297576c7fc5fSjoerg    [ab].out )
297676c7fc5fSjoerg	# We found the default executable, but exeext='' is most
297776c7fc5fSjoerg	# certainly right.
297876c7fc5fSjoerg	break;;
297976c7fc5fSjoerg    *.* )
298076c7fc5fSjoerg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
298176c7fc5fSjoerg	then :; else
298276c7fc5fSjoerg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
298376c7fc5fSjoerg	fi
298476c7fc5fSjoerg	# We set ac_cv_exeext here because the later test for it is not
298576c7fc5fSjoerg	# safe: cross compilers may not add the suffix if given an `-o'
298676c7fc5fSjoerg	# argument, so we may need to know it at that point already.
298776c7fc5fSjoerg	# Even if this section looks crufty: it has the advantage of
298876c7fc5fSjoerg	# actually working.
298976c7fc5fSjoerg	break;;
299076c7fc5fSjoerg    * )
299176c7fc5fSjoerg	break;;
299276c7fc5fSjoerg  esac
299376c7fc5fSjoergdone
299476c7fc5fSjoergtest "$ac_cv_exeext" = no && ac_cv_exeext=
299576c7fc5fSjoerg
299676c7fc5fSjoergelse
299776c7fc5fSjoerg  ac_file=''
299876c7fc5fSjoergfi
299976c7fc5fSjoergif test -z "$ac_file"; then :
300076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
300176c7fc5fSjoerg$as_echo "no" >&6; }
300276c7fc5fSjoerg$as_echo "$as_me: failed program was:" >&5
300376c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
300476c7fc5fSjoerg
300576c7fc5fSjoerg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
300676c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
300776c7fc5fSjoergas_fn_error 77 "C compiler cannot create executables
300876c7fc5fSjoergSee \`config.log' for more details" "$LINENO" 5; }
300976c7fc5fSjoergelse
301076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
301176c7fc5fSjoerg$as_echo "yes" >&6; }
301276c7fc5fSjoergfi
301376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
301476c7fc5fSjoerg$as_echo_n "checking for C compiler default output file name... " >&6; }
301576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
301676c7fc5fSjoerg$as_echo "$ac_file" >&6; }
301776c7fc5fSjoergac_exeext=$ac_cv_exeext
301876c7fc5fSjoerg
301976c7fc5fSjoergrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
302076c7fc5fSjoergac_clean_files=$ac_clean_files_save
302176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
302276c7fc5fSjoerg$as_echo_n "checking for suffix of executables... " >&6; }
302376c7fc5fSjoergif { { ac_try="$ac_link"
302476c7fc5fSjoergcase "(($ac_try" in
302576c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
302676c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
302776c7fc5fSjoergesac
302876c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
302976c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
303076c7fc5fSjoerg  (eval "$ac_link") 2>&5
303176c7fc5fSjoerg  ac_status=$?
303276c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
303376c7fc5fSjoerg  test $ac_status = 0; }; then :
303476c7fc5fSjoerg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
303576c7fc5fSjoerg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
303676c7fc5fSjoerg# work properly (i.e., refer to `conftest.exe'), while it won't with
303776c7fc5fSjoerg# `rm'.
303876c7fc5fSjoergfor ac_file in conftest.exe conftest conftest.*; do
303976c7fc5fSjoerg  test -f "$ac_file" || continue
304076c7fc5fSjoerg  case $ac_file in
304176c7fc5fSjoerg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
304276c7fc5fSjoerg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
304376c7fc5fSjoerg	  break;;
304476c7fc5fSjoerg    * ) break;;
304576c7fc5fSjoerg  esac
304676c7fc5fSjoergdone
304776c7fc5fSjoergelse
304876c7fc5fSjoerg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
304976c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
305076c7fc5fSjoergas_fn_error $? "cannot compute suffix of executables: cannot compile and link
305176c7fc5fSjoergSee \`config.log' for more details" "$LINENO" 5; }
305276c7fc5fSjoergfi
305376c7fc5fSjoergrm -f conftest conftest$ac_cv_exeext
305476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
305576c7fc5fSjoerg$as_echo "$ac_cv_exeext" >&6; }
305676c7fc5fSjoerg
305776c7fc5fSjoergrm -f conftest.$ac_ext
305876c7fc5fSjoergEXEEXT=$ac_cv_exeext
305976c7fc5fSjoergac_exeext=$EXEEXT
306076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
306176c7fc5fSjoerg/* end confdefs.h.  */
306276c7fc5fSjoerg#include <stdio.h>
306376c7fc5fSjoergint
306476c7fc5fSjoergmain ()
306576c7fc5fSjoerg{
306676c7fc5fSjoergFILE *f = fopen ("conftest.out", "w");
306776c7fc5fSjoerg return ferror (f) || fclose (f) != 0;
306876c7fc5fSjoerg
306976c7fc5fSjoerg  ;
307076c7fc5fSjoerg  return 0;
307176c7fc5fSjoerg}
307276c7fc5fSjoerg_ACEOF
307376c7fc5fSjoergac_clean_files="$ac_clean_files conftest.out"
307476c7fc5fSjoerg# Check that the compiler produces executables we can run.  If not, either
307576c7fc5fSjoerg# the compiler is broken, or we cross compile.
307676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
307776c7fc5fSjoerg$as_echo_n "checking whether we are cross compiling... " >&6; }
307876c7fc5fSjoergif test "$cross_compiling" != yes; then
307976c7fc5fSjoerg  { { ac_try="$ac_link"
308076c7fc5fSjoergcase "(($ac_try" in
308176c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
308276c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
308376c7fc5fSjoergesac
308476c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
308576c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
308676c7fc5fSjoerg  (eval "$ac_link") 2>&5
308776c7fc5fSjoerg  ac_status=$?
308876c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
308976c7fc5fSjoerg  test $ac_status = 0; }
309076c7fc5fSjoerg  if { ac_try='./conftest$ac_cv_exeext'
309176c7fc5fSjoerg  { { case "(($ac_try" in
309276c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
309376c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
309476c7fc5fSjoergesac
309576c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
309676c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
309776c7fc5fSjoerg  (eval "$ac_try") 2>&5
309876c7fc5fSjoerg  ac_status=$?
309976c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
310076c7fc5fSjoerg  test $ac_status = 0; }; }; then
310176c7fc5fSjoerg    cross_compiling=no
310276c7fc5fSjoerg  else
310376c7fc5fSjoerg    if test "$cross_compiling" = maybe; then
310476c7fc5fSjoerg	cross_compiling=yes
310576c7fc5fSjoerg    else
310676c7fc5fSjoerg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
310776c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
310876c7fc5fSjoergas_fn_error $? "cannot run C compiled programs.
310976c7fc5fSjoergIf you meant to cross compile, use \`--host'.
311076c7fc5fSjoergSee \`config.log' for more details" "$LINENO" 5; }
311176c7fc5fSjoerg    fi
311276c7fc5fSjoerg  fi
311376c7fc5fSjoergfi
311476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
311576c7fc5fSjoerg$as_echo "$cross_compiling" >&6; }
311676c7fc5fSjoerg
311776c7fc5fSjoergrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
311876c7fc5fSjoergac_clean_files=$ac_clean_files_save
311976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
312076c7fc5fSjoerg$as_echo_n "checking for suffix of object files... " >&6; }
312176c7fc5fSjoergif ${ac_cv_objext+:} false; then :
312276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
312376c7fc5fSjoergelse
312476c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
312576c7fc5fSjoerg/* end confdefs.h.  */
312676c7fc5fSjoerg
312776c7fc5fSjoergint
312876c7fc5fSjoergmain ()
312976c7fc5fSjoerg{
313076c7fc5fSjoerg
313176c7fc5fSjoerg  ;
313276c7fc5fSjoerg  return 0;
313376c7fc5fSjoerg}
313476c7fc5fSjoerg_ACEOF
313576c7fc5fSjoergrm -f conftest.o conftest.obj
313676c7fc5fSjoergif { { ac_try="$ac_compile"
313776c7fc5fSjoergcase "(($ac_try" in
313876c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
313976c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
314076c7fc5fSjoergesac
314176c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
314276c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
314376c7fc5fSjoerg  (eval "$ac_compile") 2>&5
314476c7fc5fSjoerg  ac_status=$?
314576c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
314676c7fc5fSjoerg  test $ac_status = 0; }; then :
314776c7fc5fSjoerg  for ac_file in conftest.o conftest.obj conftest.*; do
314876c7fc5fSjoerg  test -f "$ac_file" || continue;
314976c7fc5fSjoerg  case $ac_file in
315076c7fc5fSjoerg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
315176c7fc5fSjoerg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
315276c7fc5fSjoerg       break;;
315376c7fc5fSjoerg  esac
315476c7fc5fSjoergdone
315576c7fc5fSjoergelse
315676c7fc5fSjoerg  $as_echo "$as_me: failed program was:" >&5
315776c7fc5fSjoergsed 's/^/| /' conftest.$ac_ext >&5
315876c7fc5fSjoerg
315976c7fc5fSjoerg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
316076c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
316176c7fc5fSjoergas_fn_error $? "cannot compute suffix of object files: cannot compile
316276c7fc5fSjoergSee \`config.log' for more details" "$LINENO" 5; }
316376c7fc5fSjoergfi
316476c7fc5fSjoergrm -f conftest.$ac_cv_objext conftest.$ac_ext
316576c7fc5fSjoergfi
316676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
316776c7fc5fSjoerg$as_echo "$ac_cv_objext" >&6; }
316876c7fc5fSjoergOBJEXT=$ac_cv_objext
316976c7fc5fSjoergac_objext=$OBJEXT
317076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
317176c7fc5fSjoerg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
317276c7fc5fSjoergif ${ac_cv_c_compiler_gnu+:} false; then :
317376c7fc5fSjoerg  $as_echo_n "(cached) " >&6
317476c7fc5fSjoergelse
317576c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
317676c7fc5fSjoerg/* end confdefs.h.  */
317776c7fc5fSjoerg
317876c7fc5fSjoergint
317976c7fc5fSjoergmain ()
318076c7fc5fSjoerg{
318176c7fc5fSjoerg#ifndef __GNUC__
318276c7fc5fSjoerg       choke me
318376c7fc5fSjoerg#endif
318476c7fc5fSjoerg
318576c7fc5fSjoerg  ;
318676c7fc5fSjoerg  return 0;
318776c7fc5fSjoerg}
318876c7fc5fSjoerg_ACEOF
318976c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
319076c7fc5fSjoerg  ac_compiler_gnu=yes
319176c7fc5fSjoergelse
319276c7fc5fSjoerg  ac_compiler_gnu=no
319376c7fc5fSjoergfi
319476c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
319576c7fc5fSjoergac_cv_c_compiler_gnu=$ac_compiler_gnu
319676c7fc5fSjoerg
319776c7fc5fSjoergfi
319876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
319976c7fc5fSjoerg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
320076c7fc5fSjoergif test $ac_compiler_gnu = yes; then
320176c7fc5fSjoerg  GCC=yes
320276c7fc5fSjoergelse
320376c7fc5fSjoerg  GCC=
320476c7fc5fSjoergfi
320576c7fc5fSjoergac_test_CFLAGS=${CFLAGS+set}
320676c7fc5fSjoergac_save_CFLAGS=$CFLAGS
320776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
320876c7fc5fSjoerg$as_echo_n "checking whether $CC accepts -g... " >&6; }
320976c7fc5fSjoergif ${ac_cv_prog_cc_g+:} false; then :
321076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
321176c7fc5fSjoergelse
321276c7fc5fSjoerg  ac_save_c_werror_flag=$ac_c_werror_flag
321376c7fc5fSjoerg   ac_c_werror_flag=yes
321476c7fc5fSjoerg   ac_cv_prog_cc_g=no
321576c7fc5fSjoerg   CFLAGS="-g"
321676c7fc5fSjoerg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
321776c7fc5fSjoerg/* end confdefs.h.  */
321876c7fc5fSjoerg
321976c7fc5fSjoergint
322076c7fc5fSjoergmain ()
322176c7fc5fSjoerg{
322276c7fc5fSjoerg
322376c7fc5fSjoerg  ;
322476c7fc5fSjoerg  return 0;
322576c7fc5fSjoerg}
322676c7fc5fSjoerg_ACEOF
322776c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
322876c7fc5fSjoerg  ac_cv_prog_cc_g=yes
322976c7fc5fSjoergelse
323076c7fc5fSjoerg  CFLAGS=""
323176c7fc5fSjoerg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
323276c7fc5fSjoerg/* end confdefs.h.  */
323376c7fc5fSjoerg
323476c7fc5fSjoergint
323576c7fc5fSjoergmain ()
323676c7fc5fSjoerg{
323776c7fc5fSjoerg
323876c7fc5fSjoerg  ;
323976c7fc5fSjoerg  return 0;
324076c7fc5fSjoerg}
324176c7fc5fSjoerg_ACEOF
324276c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
324376c7fc5fSjoerg
324476c7fc5fSjoergelse
324576c7fc5fSjoerg  ac_c_werror_flag=$ac_save_c_werror_flag
324676c7fc5fSjoerg	 CFLAGS="-g"
324776c7fc5fSjoerg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
324876c7fc5fSjoerg/* end confdefs.h.  */
324976c7fc5fSjoerg
325076c7fc5fSjoergint
325176c7fc5fSjoergmain ()
325276c7fc5fSjoerg{
325376c7fc5fSjoerg
325476c7fc5fSjoerg  ;
325576c7fc5fSjoerg  return 0;
325676c7fc5fSjoerg}
325776c7fc5fSjoerg_ACEOF
325876c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
325976c7fc5fSjoerg  ac_cv_prog_cc_g=yes
326076c7fc5fSjoergfi
326176c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
326276c7fc5fSjoergfi
326376c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
326476c7fc5fSjoergfi
326576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
326676c7fc5fSjoerg   ac_c_werror_flag=$ac_save_c_werror_flag
326776c7fc5fSjoergfi
326876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
326976c7fc5fSjoerg$as_echo "$ac_cv_prog_cc_g" >&6; }
327076c7fc5fSjoergif test "$ac_test_CFLAGS" = set; then
327176c7fc5fSjoerg  CFLAGS=$ac_save_CFLAGS
327276c7fc5fSjoergelif test $ac_cv_prog_cc_g = yes; then
327376c7fc5fSjoerg  if test "$GCC" = yes; then
327476c7fc5fSjoerg    CFLAGS="-g -O2"
327576c7fc5fSjoerg  else
327676c7fc5fSjoerg    CFLAGS="-g"
327776c7fc5fSjoerg  fi
327876c7fc5fSjoergelse
327976c7fc5fSjoerg  if test "$GCC" = yes; then
328076c7fc5fSjoerg    CFLAGS="-O2"
328176c7fc5fSjoerg  else
328276c7fc5fSjoerg    CFLAGS=
328376c7fc5fSjoerg  fi
328476c7fc5fSjoergfi
328576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
328676c7fc5fSjoerg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
328776c7fc5fSjoergif ${ac_cv_prog_cc_c89+:} false; then :
328876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
328976c7fc5fSjoergelse
329076c7fc5fSjoerg  ac_cv_prog_cc_c89=no
329176c7fc5fSjoergac_save_CC=$CC
329276c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
329376c7fc5fSjoerg/* end confdefs.h.  */
329476c7fc5fSjoerg#include <stdarg.h>
329576c7fc5fSjoerg#include <stdio.h>
329676c7fc5fSjoergstruct stat;
329776c7fc5fSjoerg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
329876c7fc5fSjoergstruct buf { int x; };
329976c7fc5fSjoergFILE * (*rcsopen) (struct buf *, struct stat *, int);
330076c7fc5fSjoergstatic char *e (p, i)
330176c7fc5fSjoerg     char **p;
330276c7fc5fSjoerg     int i;
330376c7fc5fSjoerg{
330476c7fc5fSjoerg  return p[i];
330576c7fc5fSjoerg}
330676c7fc5fSjoergstatic char *f (char * (*g) (char **, int), char **p, ...)
330776c7fc5fSjoerg{
330876c7fc5fSjoerg  char *s;
330976c7fc5fSjoerg  va_list v;
331076c7fc5fSjoerg  va_start (v,p);
331176c7fc5fSjoerg  s = g (p, va_arg (v,int));
331276c7fc5fSjoerg  va_end (v);
331376c7fc5fSjoerg  return s;
331476c7fc5fSjoerg}
331576c7fc5fSjoerg
331676c7fc5fSjoerg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
331776c7fc5fSjoerg   function prototypes and stuff, but not '\xHH' hex character constants.
331876c7fc5fSjoerg   These don't provoke an error unfortunately, instead are silently treated
331976c7fc5fSjoerg   as 'x'.  The following induces an error, until -std is added to get
332076c7fc5fSjoerg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
332176c7fc5fSjoerg   array size at least.  It's necessary to write '\x00'==0 to get something
332276c7fc5fSjoerg   that's true only with -std.  */
332376c7fc5fSjoergint osf4_cc_array ['\x00' == 0 ? 1 : -1];
332476c7fc5fSjoerg
332576c7fc5fSjoerg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
332676c7fc5fSjoerg   inside strings and character constants.  */
332776c7fc5fSjoerg#define FOO(x) 'x'
332876c7fc5fSjoergint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
332976c7fc5fSjoerg
333076c7fc5fSjoergint test (int i, double x);
333176c7fc5fSjoergstruct s1 {int (*f) (int a);};
333276c7fc5fSjoergstruct s2 {int (*f) (double a);};
333376c7fc5fSjoergint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
333476c7fc5fSjoergint argc;
333576c7fc5fSjoergchar **argv;
333676c7fc5fSjoergint
333776c7fc5fSjoergmain ()
333876c7fc5fSjoerg{
333976c7fc5fSjoergreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
334076c7fc5fSjoerg  ;
334176c7fc5fSjoerg  return 0;
334276c7fc5fSjoerg}
334376c7fc5fSjoerg_ACEOF
334476c7fc5fSjoergfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
334576c7fc5fSjoerg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
334676c7fc5fSjoergdo
334776c7fc5fSjoerg  CC="$ac_save_CC $ac_arg"
334876c7fc5fSjoerg  if ac_fn_c_try_compile "$LINENO"; then :
334976c7fc5fSjoerg  ac_cv_prog_cc_c89=$ac_arg
335076c7fc5fSjoergfi
335176c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext
335276c7fc5fSjoerg  test "x$ac_cv_prog_cc_c89" != "xno" && break
335376c7fc5fSjoergdone
335476c7fc5fSjoergrm -f conftest.$ac_ext
335576c7fc5fSjoergCC=$ac_save_CC
335676c7fc5fSjoerg
335776c7fc5fSjoergfi
335876c7fc5fSjoerg# AC_CACHE_VAL
335976c7fc5fSjoergcase "x$ac_cv_prog_cc_c89" in
336076c7fc5fSjoerg  x)
336176c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
336276c7fc5fSjoerg$as_echo "none needed" >&6; } ;;
336376c7fc5fSjoerg  xno)
336476c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
336576c7fc5fSjoerg$as_echo "unsupported" >&6; } ;;
336676c7fc5fSjoerg  *)
336776c7fc5fSjoerg    CC="$CC $ac_cv_prog_cc_c89"
336876c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
336976c7fc5fSjoerg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
337076c7fc5fSjoergesac
337176c7fc5fSjoergif test "x$ac_cv_prog_cc_c89" != xno; then :
337276c7fc5fSjoerg
337376c7fc5fSjoergfi
337476c7fc5fSjoerg
337576c7fc5fSjoergac_ext=c
337676c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
337776c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
337876c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
337976c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
338076c7fc5fSjoerg
338176c7fc5fSjoergac_ext=cpp
338276c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
338376c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
338476c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
338576c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
338676c7fc5fSjoergif test -z "$CXX"; then
338776c7fc5fSjoerg  if test -n "$CCC"; then
338876c7fc5fSjoerg    CXX=$CCC
338976c7fc5fSjoerg  else
339076c7fc5fSjoerg    if test -n "$ac_tool_prefix"; then
339176c7fc5fSjoerg  for ac_prog in clang++ g++
339276c7fc5fSjoerg  do
339376c7fc5fSjoerg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
339476c7fc5fSjoergset dummy $ac_tool_prefix$ac_prog; ac_word=$2
339576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
339676c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
339776c7fc5fSjoergif ${ac_cv_prog_CXX+:} false; then :
339876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
339976c7fc5fSjoergelse
340076c7fc5fSjoerg  if test -n "$CXX"; then
340176c7fc5fSjoerg  ac_cv_prog_CXX="$CXX" # Let the user override the test.
340276c7fc5fSjoergelse
340376c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
340476c7fc5fSjoergfor as_dir in $PATH
340576c7fc5fSjoergdo
340676c7fc5fSjoerg  IFS=$as_save_IFS
340776c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
340876c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
340976c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
341076c7fc5fSjoerg    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
341176c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
341276c7fc5fSjoerg    break 2
341376c7fc5fSjoerg  fi
341476c7fc5fSjoergdone
341576c7fc5fSjoerg  done
341676c7fc5fSjoergIFS=$as_save_IFS
341776c7fc5fSjoerg
341876c7fc5fSjoergfi
341976c7fc5fSjoergfi
342076c7fc5fSjoergCXX=$ac_cv_prog_CXX
342176c7fc5fSjoergif test -n "$CXX"; then
342276c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
342376c7fc5fSjoerg$as_echo "$CXX" >&6; }
342476c7fc5fSjoergelse
342576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
342676c7fc5fSjoerg$as_echo "no" >&6; }
342776c7fc5fSjoergfi
342876c7fc5fSjoerg
342976c7fc5fSjoerg
343076c7fc5fSjoerg    test -n "$CXX" && break
343176c7fc5fSjoerg  done
343276c7fc5fSjoergfi
343376c7fc5fSjoergif test -z "$CXX"; then
343476c7fc5fSjoerg  ac_ct_CXX=$CXX
343576c7fc5fSjoerg  for ac_prog in clang++ g++
343676c7fc5fSjoergdo
343776c7fc5fSjoerg  # Extract the first word of "$ac_prog", so it can be a program name with args.
343876c7fc5fSjoergset dummy $ac_prog; ac_word=$2
343976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
344076c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
344176c7fc5fSjoergif ${ac_cv_prog_ac_ct_CXX+:} false; then :
344276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
344376c7fc5fSjoergelse
344476c7fc5fSjoerg  if test -n "$ac_ct_CXX"; then
344576c7fc5fSjoerg  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
344676c7fc5fSjoergelse
344776c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
344876c7fc5fSjoergfor as_dir in $PATH
344976c7fc5fSjoergdo
345076c7fc5fSjoerg  IFS=$as_save_IFS
345176c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
345276c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
345376c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
345476c7fc5fSjoerg    ac_cv_prog_ac_ct_CXX="$ac_prog"
345576c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
345676c7fc5fSjoerg    break 2
345776c7fc5fSjoerg  fi
345876c7fc5fSjoergdone
345976c7fc5fSjoerg  done
346076c7fc5fSjoergIFS=$as_save_IFS
346176c7fc5fSjoerg
346276c7fc5fSjoergfi
346376c7fc5fSjoergfi
346476c7fc5fSjoergac_ct_CXX=$ac_cv_prog_ac_ct_CXX
346576c7fc5fSjoergif test -n "$ac_ct_CXX"; then
346676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
346776c7fc5fSjoerg$as_echo "$ac_ct_CXX" >&6; }
346876c7fc5fSjoergelse
346976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
347076c7fc5fSjoerg$as_echo "no" >&6; }
347176c7fc5fSjoergfi
347276c7fc5fSjoerg
347376c7fc5fSjoerg
347476c7fc5fSjoerg  test -n "$ac_ct_CXX" && break
347576c7fc5fSjoergdone
347676c7fc5fSjoerg
347776c7fc5fSjoerg  if test "x$ac_ct_CXX" = x; then
347876c7fc5fSjoerg    CXX="g++"
347976c7fc5fSjoerg  else
348076c7fc5fSjoerg    case $cross_compiling:$ac_tool_warned in
348176c7fc5fSjoergyes:)
348276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
348376c7fc5fSjoerg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
348476c7fc5fSjoergac_tool_warned=yes ;;
348576c7fc5fSjoergesac
348676c7fc5fSjoerg    CXX=$ac_ct_CXX
348776c7fc5fSjoerg  fi
348876c7fc5fSjoergfi
348976c7fc5fSjoerg
349076c7fc5fSjoerg  fi
349176c7fc5fSjoergfi
349276c7fc5fSjoerg# Provide some information about the compiler.
349376c7fc5fSjoerg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
349476c7fc5fSjoergset X $ac_compile
349576c7fc5fSjoergac_compiler=$2
349676c7fc5fSjoergfor ac_option in --version -v -V -qversion; do
349776c7fc5fSjoerg  { { ac_try="$ac_compiler $ac_option >&5"
349876c7fc5fSjoergcase "(($ac_try" in
349976c7fc5fSjoerg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
350076c7fc5fSjoerg  *) ac_try_echo=$ac_try;;
350176c7fc5fSjoergesac
350276c7fc5fSjoergeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
350376c7fc5fSjoerg$as_echo "$ac_try_echo"; } >&5
350476c7fc5fSjoerg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
350576c7fc5fSjoerg  ac_status=$?
350676c7fc5fSjoerg  if test -s conftest.err; then
350776c7fc5fSjoerg    sed '10a\
350876c7fc5fSjoerg... rest of stderr output deleted ...
350976c7fc5fSjoerg         10q' conftest.err >conftest.er1
351076c7fc5fSjoerg    cat conftest.er1 >&5
351176c7fc5fSjoerg  fi
351276c7fc5fSjoerg  rm -f conftest.er1 conftest.err
351376c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
351476c7fc5fSjoerg  test $ac_status = 0; }
351576c7fc5fSjoergdone
351676c7fc5fSjoerg
351776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
351876c7fc5fSjoerg$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
351976c7fc5fSjoergif ${ac_cv_cxx_compiler_gnu+:} false; then :
352076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
352176c7fc5fSjoergelse
352276c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
352376c7fc5fSjoerg/* end confdefs.h.  */
352476c7fc5fSjoerg
352576c7fc5fSjoergint
352676c7fc5fSjoergmain ()
352776c7fc5fSjoerg{
352876c7fc5fSjoerg#ifndef __GNUC__
352976c7fc5fSjoerg       choke me
353076c7fc5fSjoerg#endif
353176c7fc5fSjoerg
353276c7fc5fSjoerg  ;
353376c7fc5fSjoerg  return 0;
353476c7fc5fSjoerg}
353576c7fc5fSjoerg_ACEOF
353676c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
353776c7fc5fSjoerg  ac_compiler_gnu=yes
353876c7fc5fSjoergelse
353976c7fc5fSjoerg  ac_compiler_gnu=no
354076c7fc5fSjoergfi
354176c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
354276c7fc5fSjoergac_cv_cxx_compiler_gnu=$ac_compiler_gnu
354376c7fc5fSjoerg
354476c7fc5fSjoergfi
354576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
354676c7fc5fSjoerg$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
354776c7fc5fSjoergif test $ac_compiler_gnu = yes; then
354876c7fc5fSjoerg  GXX=yes
354976c7fc5fSjoergelse
355076c7fc5fSjoerg  GXX=
355176c7fc5fSjoergfi
355276c7fc5fSjoergac_test_CXXFLAGS=${CXXFLAGS+set}
355376c7fc5fSjoergac_save_CXXFLAGS=$CXXFLAGS
355476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
355576c7fc5fSjoerg$as_echo_n "checking whether $CXX accepts -g... " >&6; }
355676c7fc5fSjoergif ${ac_cv_prog_cxx_g+:} false; then :
355776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
355876c7fc5fSjoergelse
355976c7fc5fSjoerg  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
356076c7fc5fSjoerg   ac_cxx_werror_flag=yes
356176c7fc5fSjoerg   ac_cv_prog_cxx_g=no
356276c7fc5fSjoerg   CXXFLAGS="-g"
356376c7fc5fSjoerg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
356476c7fc5fSjoerg/* end confdefs.h.  */
356576c7fc5fSjoerg
356676c7fc5fSjoergint
356776c7fc5fSjoergmain ()
356876c7fc5fSjoerg{
356976c7fc5fSjoerg
357076c7fc5fSjoerg  ;
357176c7fc5fSjoerg  return 0;
357276c7fc5fSjoerg}
357376c7fc5fSjoerg_ACEOF
357476c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
357576c7fc5fSjoerg  ac_cv_prog_cxx_g=yes
357676c7fc5fSjoergelse
357776c7fc5fSjoerg  CXXFLAGS=""
357876c7fc5fSjoerg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
357976c7fc5fSjoerg/* end confdefs.h.  */
358076c7fc5fSjoerg
358176c7fc5fSjoergint
358276c7fc5fSjoergmain ()
358376c7fc5fSjoerg{
358476c7fc5fSjoerg
358576c7fc5fSjoerg  ;
358676c7fc5fSjoerg  return 0;
358776c7fc5fSjoerg}
358876c7fc5fSjoerg_ACEOF
358976c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
359076c7fc5fSjoerg
359176c7fc5fSjoergelse
359276c7fc5fSjoerg  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
359376c7fc5fSjoerg	 CXXFLAGS="-g"
359476c7fc5fSjoerg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
359576c7fc5fSjoerg/* end confdefs.h.  */
359676c7fc5fSjoerg
359776c7fc5fSjoergint
359876c7fc5fSjoergmain ()
359976c7fc5fSjoerg{
360076c7fc5fSjoerg
360176c7fc5fSjoerg  ;
360276c7fc5fSjoerg  return 0;
360376c7fc5fSjoerg}
360476c7fc5fSjoerg_ACEOF
360576c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
360676c7fc5fSjoerg  ac_cv_prog_cxx_g=yes
360776c7fc5fSjoergfi
360876c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
360976c7fc5fSjoergfi
361076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
361176c7fc5fSjoergfi
361276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
361376c7fc5fSjoerg   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
361476c7fc5fSjoergfi
361576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
361676c7fc5fSjoerg$as_echo "$ac_cv_prog_cxx_g" >&6; }
361776c7fc5fSjoergif test "$ac_test_CXXFLAGS" = set; then
361876c7fc5fSjoerg  CXXFLAGS=$ac_save_CXXFLAGS
361976c7fc5fSjoergelif test $ac_cv_prog_cxx_g = yes; then
362076c7fc5fSjoerg  if test "$GXX" = yes; then
362176c7fc5fSjoerg    CXXFLAGS="-g -O2"
362276c7fc5fSjoerg  else
362376c7fc5fSjoerg    CXXFLAGS="-g"
362476c7fc5fSjoerg  fi
362576c7fc5fSjoergelse
362676c7fc5fSjoerg  if test "$GXX" = yes; then
362776c7fc5fSjoerg    CXXFLAGS="-O2"
362876c7fc5fSjoerg  else
362976c7fc5fSjoerg    CXXFLAGS=
363076c7fc5fSjoerg  fi
363176c7fc5fSjoergfi
363276c7fc5fSjoergac_ext=c
363376c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
363476c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
363576c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
363676c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
363776c7fc5fSjoerg
363876c7fc5fSjoergac_ext=c
363976c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
364076c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
364176c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
364276c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
364376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
364476c7fc5fSjoerg$as_echo_n "checking how to run the C preprocessor... " >&6; }
364576c7fc5fSjoerg# On Suns, sometimes $CPP names a directory.
364676c7fc5fSjoergif test -n "$CPP" && test -d "$CPP"; then
364776c7fc5fSjoerg  CPP=
364876c7fc5fSjoergfi
364976c7fc5fSjoergif test -z "$CPP"; then
365076c7fc5fSjoerg  if ${ac_cv_prog_CPP+:} false; then :
365176c7fc5fSjoerg  $as_echo_n "(cached) " >&6
365276c7fc5fSjoergelse
365376c7fc5fSjoerg      # Double quotes because CPP needs to be expanded
365476c7fc5fSjoerg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
365576c7fc5fSjoerg    do
365676c7fc5fSjoerg      ac_preproc_ok=false
365776c7fc5fSjoergfor ac_c_preproc_warn_flag in '' yes
365876c7fc5fSjoergdo
365976c7fc5fSjoerg  # Use a header file that comes with gcc, so configuring glibc
366076c7fc5fSjoerg  # with a fresh cross-compiler works.
366176c7fc5fSjoerg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
366276c7fc5fSjoerg  # <limits.h> exists even on freestanding compilers.
366376c7fc5fSjoerg  # On the NeXT, cc -E runs the code through the compiler's parser,
366476c7fc5fSjoerg  # not just through cpp. "Syntax error" is here to catch this case.
366576c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
366676c7fc5fSjoerg/* end confdefs.h.  */
366776c7fc5fSjoerg#ifdef __STDC__
366876c7fc5fSjoerg# include <limits.h>
366976c7fc5fSjoerg#else
367076c7fc5fSjoerg# include <assert.h>
367176c7fc5fSjoerg#endif
367276c7fc5fSjoerg		     Syntax error
367376c7fc5fSjoerg_ACEOF
367476c7fc5fSjoergif ac_fn_c_try_cpp "$LINENO"; then :
367576c7fc5fSjoerg
367676c7fc5fSjoergelse
367776c7fc5fSjoerg  # Broken: fails on valid input.
367876c7fc5fSjoergcontinue
367976c7fc5fSjoergfi
368076c7fc5fSjoergrm -f conftest.err conftest.i conftest.$ac_ext
368176c7fc5fSjoerg
368276c7fc5fSjoerg  # OK, works on sane cases.  Now check whether nonexistent headers
368376c7fc5fSjoerg  # can be detected and how.
368476c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
368576c7fc5fSjoerg/* end confdefs.h.  */
368676c7fc5fSjoerg#include <ac_nonexistent.h>
368776c7fc5fSjoerg_ACEOF
368876c7fc5fSjoergif ac_fn_c_try_cpp "$LINENO"; then :
368976c7fc5fSjoerg  # Broken: success on invalid input.
369076c7fc5fSjoergcontinue
369176c7fc5fSjoergelse
369276c7fc5fSjoerg  # Passes both tests.
369376c7fc5fSjoergac_preproc_ok=:
369476c7fc5fSjoergbreak
369576c7fc5fSjoergfi
369676c7fc5fSjoergrm -f conftest.err conftest.i conftest.$ac_ext
369776c7fc5fSjoerg
369876c7fc5fSjoergdone
369976c7fc5fSjoerg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
370076c7fc5fSjoergrm -f conftest.i conftest.err conftest.$ac_ext
370176c7fc5fSjoergif $ac_preproc_ok; then :
370276c7fc5fSjoerg  break
370376c7fc5fSjoergfi
370476c7fc5fSjoerg
370576c7fc5fSjoerg    done
370676c7fc5fSjoerg    ac_cv_prog_CPP=$CPP
370776c7fc5fSjoerg
370876c7fc5fSjoergfi
370976c7fc5fSjoerg  CPP=$ac_cv_prog_CPP
371076c7fc5fSjoergelse
371176c7fc5fSjoerg  ac_cv_prog_CPP=$CPP
371276c7fc5fSjoergfi
371376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
371476c7fc5fSjoerg$as_echo "$CPP" >&6; }
371576c7fc5fSjoergac_preproc_ok=false
371676c7fc5fSjoergfor ac_c_preproc_warn_flag in '' yes
371776c7fc5fSjoergdo
371876c7fc5fSjoerg  # Use a header file that comes with gcc, so configuring glibc
371976c7fc5fSjoerg  # with a fresh cross-compiler works.
372076c7fc5fSjoerg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
372176c7fc5fSjoerg  # <limits.h> exists even on freestanding compilers.
372276c7fc5fSjoerg  # On the NeXT, cc -E runs the code through the compiler's parser,
372376c7fc5fSjoerg  # not just through cpp. "Syntax error" is here to catch this case.
372476c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
372576c7fc5fSjoerg/* end confdefs.h.  */
372676c7fc5fSjoerg#ifdef __STDC__
372776c7fc5fSjoerg# include <limits.h>
372876c7fc5fSjoerg#else
372976c7fc5fSjoerg# include <assert.h>
373076c7fc5fSjoerg#endif
373176c7fc5fSjoerg		     Syntax error
373276c7fc5fSjoerg_ACEOF
373376c7fc5fSjoergif ac_fn_c_try_cpp "$LINENO"; then :
373476c7fc5fSjoerg
373576c7fc5fSjoergelse
373676c7fc5fSjoerg  # Broken: fails on valid input.
373776c7fc5fSjoergcontinue
373876c7fc5fSjoergfi
373976c7fc5fSjoergrm -f conftest.err conftest.i conftest.$ac_ext
374076c7fc5fSjoerg
374176c7fc5fSjoerg  # OK, works on sane cases.  Now check whether nonexistent headers
374276c7fc5fSjoerg  # can be detected and how.
374376c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
374476c7fc5fSjoerg/* end confdefs.h.  */
374576c7fc5fSjoerg#include <ac_nonexistent.h>
374676c7fc5fSjoerg_ACEOF
374776c7fc5fSjoergif ac_fn_c_try_cpp "$LINENO"; then :
374876c7fc5fSjoerg  # Broken: success on invalid input.
374976c7fc5fSjoergcontinue
375076c7fc5fSjoergelse
375176c7fc5fSjoerg  # Passes both tests.
375276c7fc5fSjoergac_preproc_ok=:
375376c7fc5fSjoergbreak
375476c7fc5fSjoergfi
375576c7fc5fSjoergrm -f conftest.err conftest.i conftest.$ac_ext
375676c7fc5fSjoerg
375776c7fc5fSjoergdone
375876c7fc5fSjoerg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
375976c7fc5fSjoergrm -f conftest.i conftest.err conftest.$ac_ext
376076c7fc5fSjoergif $ac_preproc_ok; then :
376176c7fc5fSjoerg
376276c7fc5fSjoergelse
376376c7fc5fSjoerg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
376476c7fc5fSjoerg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
376576c7fc5fSjoergas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
376676c7fc5fSjoergSee \`config.log' for more details" "$LINENO" 5; }
376776c7fc5fSjoergfi
376876c7fc5fSjoerg
376976c7fc5fSjoergac_ext=c
377076c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
377176c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
377276c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
377376c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
377476c7fc5fSjoerg
377576c7fc5fSjoerg
377676c7fc5fSjoergif test "$CXX" = "clang++" ; then
377776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang works" >&5
377876c7fc5fSjoerg$as_echo_n "checking whether clang works... " >&6; }
377976c7fc5fSjoerg  ac_ext=cpp
378076c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
378176c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
378276c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
378376c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
378476c7fc5fSjoerg
378576c7fc5fSjoerg
378676c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
378776c7fc5fSjoerg/* end confdefs.h.  */
378876c7fc5fSjoerg#include <limits>
378976c7fc5fSjoerg#if __has_include (<cxxabi.h>)
379076c7fc5fSjoerg#include <cxxabi.h>
379176c7fc5fSjoerg#endif
379276c7fc5fSjoerg#if __has_include (<unwind.h>)
379376c7fc5fSjoerg#include <unwind.h>
379476c7fc5fSjoerg#endif
379576c7fc5fSjoerg
379676c7fc5fSjoergint
379776c7fc5fSjoergmain ()
379876c7fc5fSjoerg{
379976c7fc5fSjoerg
380076c7fc5fSjoerg  ;
380176c7fc5fSjoerg  return 0;
380276c7fc5fSjoerg}
380376c7fc5fSjoerg_ACEOF
380476c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
380576c7fc5fSjoerg
380676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
380776c7fc5fSjoerg$as_echo "yes" >&6; }
380876c7fc5fSjoerg
380976c7fc5fSjoergelse
381076c7fc5fSjoerg
381176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
381276c7fc5fSjoerg$as_echo "no" >&6; }
381376c7fc5fSjoerg  as_fn_error $? "Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." "$LINENO" 5
381476c7fc5fSjoerg
381576c7fc5fSjoergfi
381676c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
381776c7fc5fSjoerg  ac_ext=c
381876c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
381976c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
382076c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
382176c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
382276c7fc5fSjoerg
382376c7fc5fSjoergfi
382476c7fc5fSjoerg
382576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC or Clang is our host compiler" >&5
382676c7fc5fSjoerg$as_echo_n "checking whether GCC or Clang is our host compiler... " >&6; }
382776c7fc5fSjoergac_ext=cpp
382876c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
382976c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
383076c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
383176c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
383276c7fc5fSjoerg
383376c7fc5fSjoergllvm_cv_cxx_compiler=unknown
383476c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
383576c7fc5fSjoerg/* end confdefs.h.  */
383676c7fc5fSjoerg#if ! __clang__
383776c7fc5fSjoerg                                    #error
383876c7fc5fSjoerg                                    #endif
383976c7fc5fSjoerg
384076c7fc5fSjoerg_ACEOF
384176c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
384276c7fc5fSjoerg  llvm_cv_cxx_compiler=clang
384376c7fc5fSjoergelse
384476c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
384576c7fc5fSjoerg/* end confdefs.h.  */
384676c7fc5fSjoerg#if ! __GNUC__
384776c7fc5fSjoerg                                                       #error
384876c7fc5fSjoerg                                                       #endif
384976c7fc5fSjoerg
385076c7fc5fSjoerg_ACEOF
385176c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
385276c7fc5fSjoerg  llvm_cv_cxx_compiler=gcc
385376c7fc5fSjoergfi
385476c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
385576c7fc5fSjoergfi
385676c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
385776c7fc5fSjoergac_ext=c
385876c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
385976c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
386076c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
386176c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
386276c7fc5fSjoerg
386376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${llvm_cv_cxx_compiler}" >&5
386476c7fc5fSjoerg$as_echo "${llvm_cv_cxx_compiler}" >&6; }
386576c7fc5fSjoergCXX_COMPILER=$llvm_cv_cxx_compiler
386676c7fc5fSjoerg
386776c7fc5fSjoerg
386876c7fc5fSjoerg# Check whether --enable-polly was given.
386976c7fc5fSjoergif test "${enable_polly+set}" = set; then :
387076c7fc5fSjoerg  enableval=$enable_polly;
387176c7fc5fSjoergelse
387276c7fc5fSjoerg  enableval=default
387376c7fc5fSjoergfi
387476c7fc5fSjoerg
387576c7fc5fSjoergcase "$enableval" in
387676c7fc5fSjoerg  yes) ENABLE_POLLY=1
387776c7fc5fSjoerg ;;
387876c7fc5fSjoerg  no)  ENABLE_POLLY=0
387976c7fc5fSjoerg ;;
388076c7fc5fSjoerg  default) ENABLE_POLLY=1
388176c7fc5fSjoerg ;;
388276c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-polly. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
388376c7fc5fSjoergesac
388476c7fc5fSjoerg
388576c7fc5fSjoerg
388676c7fc5fSjoergif (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
388776c7fc5fSjoerg  LLVM_HAS_POLLY=1
388876c7fc5fSjoerg
388976c7fc5fSjoerg
389076c7fc5fSjoerg
389176c7fc5fSjoergsubdirs="$subdirs tools/polly"
389276c7fc5fSjoerg
389376c7fc5fSjoergfi
389476c7fc5fSjoergif false; then
389576c7fc5fSjoerg
389676c7fc5fSjoerg$as_echo "#define LINK_POLLY_INTO_TOOLS /**/" >>confdefs.h
389776c7fc5fSjoerg
389876c7fc5fSjoergfi
389976c7fc5fSjoerg
390076c7fc5fSjoerg
390176c7fc5fSjoerg# Make sure we can run config.sub.
390276c7fc5fSjoerg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
390376c7fc5fSjoerg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
390476c7fc5fSjoerg
390576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
390676c7fc5fSjoerg$as_echo_n "checking build system type... " >&6; }
390776c7fc5fSjoergif ${ac_cv_build+:} false; then :
390876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
390976c7fc5fSjoergelse
391076c7fc5fSjoerg  ac_build_alias=$build_alias
391176c7fc5fSjoergtest "x$ac_build_alias" = x &&
391276c7fc5fSjoerg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
391376c7fc5fSjoergtest "x$ac_build_alias" = x &&
391476c7fc5fSjoerg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
391576c7fc5fSjoergac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
391676c7fc5fSjoerg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
391776c7fc5fSjoerg
391876c7fc5fSjoergfi
391976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
392076c7fc5fSjoerg$as_echo "$ac_cv_build" >&6; }
392176c7fc5fSjoergcase $ac_cv_build in
392276c7fc5fSjoerg*-*-*) ;;
392376c7fc5fSjoerg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
392476c7fc5fSjoergesac
392576c7fc5fSjoergbuild=$ac_cv_build
392676c7fc5fSjoergac_save_IFS=$IFS; IFS='-'
392776c7fc5fSjoergset x $ac_cv_build
392876c7fc5fSjoergshift
392976c7fc5fSjoergbuild_cpu=$1
393076c7fc5fSjoergbuild_vendor=$2
393176c7fc5fSjoergshift; shift
393276c7fc5fSjoerg# Remember, the first character of IFS is used to create $*,
393376c7fc5fSjoerg# except with old shells:
393476c7fc5fSjoergbuild_os=$*
393576c7fc5fSjoergIFS=$ac_save_IFS
393676c7fc5fSjoergcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
393776c7fc5fSjoerg
393876c7fc5fSjoerg
393976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
394076c7fc5fSjoerg$as_echo_n "checking host system type... " >&6; }
394176c7fc5fSjoergif ${ac_cv_host+:} false; then :
394276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
394376c7fc5fSjoergelse
394476c7fc5fSjoerg  if test "x$host_alias" = x; then
394576c7fc5fSjoerg  ac_cv_host=$ac_cv_build
394676c7fc5fSjoergelse
394776c7fc5fSjoerg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
394876c7fc5fSjoerg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
394976c7fc5fSjoergfi
395076c7fc5fSjoerg
395176c7fc5fSjoergfi
395276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
395376c7fc5fSjoerg$as_echo "$ac_cv_host" >&6; }
395476c7fc5fSjoergcase $ac_cv_host in
395576c7fc5fSjoerg*-*-*) ;;
395676c7fc5fSjoerg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
395776c7fc5fSjoergesac
395876c7fc5fSjoerghost=$ac_cv_host
395976c7fc5fSjoergac_save_IFS=$IFS; IFS='-'
396076c7fc5fSjoergset x $ac_cv_host
396176c7fc5fSjoergshift
396276c7fc5fSjoerghost_cpu=$1
396376c7fc5fSjoerghost_vendor=$2
396476c7fc5fSjoergshift; shift
396576c7fc5fSjoerg# Remember, the first character of IFS is used to create $*,
396676c7fc5fSjoerg# except with old shells:
396776c7fc5fSjoerghost_os=$*
396876c7fc5fSjoergIFS=$ac_save_IFS
396976c7fc5fSjoergcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
397076c7fc5fSjoerg
397176c7fc5fSjoerg
397276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
397376c7fc5fSjoerg$as_echo_n "checking target system type... " >&6; }
397476c7fc5fSjoergif ${ac_cv_target+:} false; then :
397576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
397676c7fc5fSjoergelse
397776c7fc5fSjoerg  if test "x$target_alias" = x; then
397876c7fc5fSjoerg  ac_cv_target=$ac_cv_host
397976c7fc5fSjoergelse
398076c7fc5fSjoerg  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
398176c7fc5fSjoerg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
398276c7fc5fSjoergfi
398376c7fc5fSjoerg
398476c7fc5fSjoergfi
398576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
398676c7fc5fSjoerg$as_echo "$ac_cv_target" >&6; }
398776c7fc5fSjoergcase $ac_cv_target in
398876c7fc5fSjoerg*-*-*) ;;
398976c7fc5fSjoerg*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
399076c7fc5fSjoergesac
399176c7fc5fSjoergtarget=$ac_cv_target
399276c7fc5fSjoergac_save_IFS=$IFS; IFS='-'
399376c7fc5fSjoergset x $ac_cv_target
399476c7fc5fSjoergshift
399576c7fc5fSjoergtarget_cpu=$1
399676c7fc5fSjoergtarget_vendor=$2
399776c7fc5fSjoergshift; shift
399876c7fc5fSjoerg# Remember, the first character of IFS is used to create $*,
399976c7fc5fSjoerg# except with old shells:
400076c7fc5fSjoergtarget_os=$*
400176c7fc5fSjoergIFS=$ac_save_IFS
400276c7fc5fSjoergcase $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
400376c7fc5fSjoerg
400476c7fc5fSjoerg
400576c7fc5fSjoerg# The aliases save the names the user supplied, while $host etc.
400676c7fc5fSjoerg# will get canonicalized.
400776c7fc5fSjoergtest -n "$target_alias" &&
400876c7fc5fSjoerg  test "$program_prefix$program_suffix$program_transform_name" = \
400976c7fc5fSjoerg    NONENONEs,x,x, &&
401076c7fc5fSjoerg  program_prefix=${target_alias}-
401176c7fc5fSjoerg
401276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
401376c7fc5fSjoerg$as_echo_n "checking type of operating system we're going to host on... " >&6; }
401476c7fc5fSjoergif ${llvm_cv_os_type+:} false; then :
401576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
401676c7fc5fSjoergelse
401776c7fc5fSjoerg  case $host in
401876c7fc5fSjoerg  *-*-aix*)
401976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
402076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
402176c7fc5fSjoerg    llvm_cv_os_type="AIX"
402276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
402376c7fc5fSjoerg  *-*-irix*)
402476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
402576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
402676c7fc5fSjoerg    llvm_cv_os_type="IRIX"
402776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
402876c7fc5fSjoerg  *-*-cygwin*)
402976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
403076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
403176c7fc5fSjoerg    llvm_cv_os_type="Cygwin"
403276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
403376c7fc5fSjoerg  *-*-darwin*)
403476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,-all_load"
403576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,-noall_load"
403676c7fc5fSjoerg    llvm_cv_os_type="Darwin"
403776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
403876c7fc5fSjoerg  *-*-minix*)
403976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,-all_load"
404076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,-noall_load"
404176c7fc5fSjoerg    llvm_cv_os_type="Minix"
404276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
404376c7fc5fSjoerg  *-*-freebsd*)
404476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
404576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
404676c7fc5fSjoerg    llvm_cv_os_type="FreeBSD"
404776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
404876c7fc5fSjoerg  *-*-kfreebsd-gnu)
404976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
405076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
405176c7fc5fSjoerg    llvm_cv_os_type="GNU/kFreeBSD"
405276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
405376c7fc5fSjoerg  *-*-openbsd*)
405476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
405576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
405676c7fc5fSjoerg    llvm_cv_os_type="OpenBSD"
405776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
405876c7fc5fSjoerg  *-*-netbsd*)
405976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
406076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
406176c7fc5fSjoerg    llvm_cv_os_type="NetBSD"
406276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
406376c7fc5fSjoerg  *-*-dragonfly*)
406476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
406576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
406676c7fc5fSjoerg    llvm_cv_os_type="DragonFly"
406776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
406876c7fc5fSjoerg  *-*-bitrig*)
406976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
407076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
407176c7fc5fSjoerg    llvm_cv_os_type="Bitrig"
407276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
407376c7fc5fSjoerg  *-*-hpux*)
407476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
407576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
407676c7fc5fSjoerg    llvm_cv_os_type="HP-UX"
407776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
407876c7fc5fSjoerg  *-*-interix*)
407976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
408076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
408176c7fc5fSjoerg    llvm_cv_os_type="Interix"
408276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
408376c7fc5fSjoerg  *-*-linux*)
408476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
408576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
408676c7fc5fSjoerg    llvm_cv_os_type="Linux"
408776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
408876c7fc5fSjoerg  *-*-gnu*)
408976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
409076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
409176c7fc5fSjoerg    llvm_cv_os_type="GNU"
409276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
409376c7fc5fSjoerg  *-*-solaris*)
409476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,-z,allextract"
409576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
409676c7fc5fSjoerg    llvm_cv_os_type="SunOS"
409776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
409876c7fc5fSjoerg  *-*-win32*)
409976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
410076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
410176c7fc5fSjoerg    llvm_cv_os_type="Win32"
410276c7fc5fSjoerg    llvm_cv_platform_type="Win32" ;;
410376c7fc5fSjoerg  *-*-mingw*)
410476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
410576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
410676c7fc5fSjoerg    llvm_cv_os_type="MingW"
410776c7fc5fSjoerg    llvm_cv_platform_type="Win32" ;;
410876c7fc5fSjoerg  *-*-haiku*)
410976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
411076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
411176c7fc5fSjoerg    llvm_cv_os_type="Haiku"
411276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
411376c7fc5fSjoerg  *-unknown-eabi*)
411476c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
411576c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
411676c7fc5fSjoerg    llvm_cv_os_type="Freestanding"
411776c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
411876c7fc5fSjoerg  *-unknown-elf*)
411976c7fc5fSjoerg    llvm_cv_link_all_option="-Wl,--whole-archive"
412076c7fc5fSjoerg    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
412176c7fc5fSjoerg    llvm_cv_os_type="Freestanding"
412276c7fc5fSjoerg    llvm_cv_platform_type="Unix" ;;
412376c7fc5fSjoerg  *)
412476c7fc5fSjoerg    llvm_cv_link_all_option=""
412576c7fc5fSjoerg    llvm_cv_no_link_all_option=""
412676c7fc5fSjoerg    llvm_cv_os_type="Unknown"
412776c7fc5fSjoerg    llvm_cv_platform_type="Unknown" ;;
412876c7fc5fSjoergesac
412976c7fc5fSjoergfi
413076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
413176c7fc5fSjoerg$as_echo "$llvm_cv_os_type" >&6; }
413276c7fc5fSjoerg
413376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
413476c7fc5fSjoerg$as_echo_n "checking type of operating system we're going to target... " >&6; }
413576c7fc5fSjoergif ${llvm_cv_target_os_type+:} false; then :
413676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
413776c7fc5fSjoergelse
413876c7fc5fSjoerg  case $target in
413976c7fc5fSjoerg  *-*-aix*)
414076c7fc5fSjoerg    llvm_cv_target_os_type="AIX" ;;
414176c7fc5fSjoerg  *-*-irix*)
414276c7fc5fSjoerg    llvm_cv_target_os_type="IRIX" ;;
414376c7fc5fSjoerg  *-*-cygwin*)
414476c7fc5fSjoerg    llvm_cv_target_os_type="Cygwin" ;;
414576c7fc5fSjoerg  *-*-darwin*)
414676c7fc5fSjoerg    llvm_cv_target_os_type="Darwin" ;;
414776c7fc5fSjoerg  *-*-minix*)
414876c7fc5fSjoerg    llvm_cv_target_os_type="Minix" ;;
414976c7fc5fSjoerg  *-*-freebsd*)
415076c7fc5fSjoerg    llvm_cv_target_os_type="FreeBSD" ;;
415176c7fc5fSjoerg  *-*-kfreebsd-gnu)
415276c7fc5fSjoerg    llvm_cv_target_os_type="GNU/kFreeBSD" ;;
415376c7fc5fSjoerg  *-*-openbsd*)
415476c7fc5fSjoerg    llvm_cv_target_os_type="OpenBSD" ;;
415576c7fc5fSjoerg  *-*-netbsd*)
415676c7fc5fSjoerg    llvm_cv_target_os_type="NetBSD" ;;
415776c7fc5fSjoerg  *-*-dragonfly*)
415876c7fc5fSjoerg    llvm_cv_target_os_type="DragonFly" ;;
415976c7fc5fSjoerg  *-*-bitrig*)
416076c7fc5fSjoerg    llvm_cv_target_os_type="Bitrig" ;;
416176c7fc5fSjoerg  *-*-hpux*)
416276c7fc5fSjoerg    llvm_cv_target_os_type="HP-UX" ;;
416376c7fc5fSjoerg  *-*-interix*)
416476c7fc5fSjoerg    llvm_cv_target_os_type="Interix" ;;
416576c7fc5fSjoerg  *-*-linux*)
416676c7fc5fSjoerg    llvm_cv_target_os_type="Linux" ;;
416776c7fc5fSjoerg  *-*-gnu*)
416876c7fc5fSjoerg    llvm_cv_target_os_type="GNU" ;;
416976c7fc5fSjoerg  *-*-solaris*)
417076c7fc5fSjoerg    llvm_cv_target_os_type="SunOS" ;;
417176c7fc5fSjoerg  *-*-win32*)
417276c7fc5fSjoerg    llvm_cv_target_os_type="Win32" ;;
417376c7fc5fSjoerg  *-*-mingw*)
417476c7fc5fSjoerg    llvm_cv_target_os_type="MingW" ;;
417576c7fc5fSjoerg  *-*-haiku*)
417676c7fc5fSjoerg    llvm_cv_target_os_type="Haiku" ;;
417776c7fc5fSjoerg  *-*-rtems*)
417876c7fc5fSjoerg    llvm_cv_target_os_type="RTEMS" ;;
417976c7fc5fSjoerg  *-*-nacl*)
418076c7fc5fSjoerg    llvm_cv_target_os_type="NativeClient" ;;
418176c7fc5fSjoerg  *-unknown-eabi*)
418276c7fc5fSjoerg    llvm_cv_target_os_type="Freestanding" ;;
418376c7fc5fSjoerg  *-*-ps4)
418476c7fc5fSjoerg    llvm_cv_target_os_type="PS4" ;;
418576c7fc5fSjoerg  *)
418676c7fc5fSjoerg    llvm_cv_target_os_type="Unknown" ;;
418776c7fc5fSjoergesac
418876c7fc5fSjoergfi
418976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
419076c7fc5fSjoerg$as_echo "$llvm_cv_target_os_type" >&6; }
419176c7fc5fSjoerg
419276c7fc5fSjoergif test "$llvm_cv_os_type" = "Unknown" ; then
419376c7fc5fSjoerg  as_fn_error $? "Operating system is unknown, configure can't continue" "$LINENO" 5
419476c7fc5fSjoergfi
419576c7fc5fSjoerg
419676c7fc5fSjoergOS=$llvm_cv_os_type
419776c7fc5fSjoerg
419876c7fc5fSjoergHOST_OS=$llvm_cv_os_type
419976c7fc5fSjoerg
420076c7fc5fSjoergTARGET_OS=$llvm_cv_target_os_type
420176c7fc5fSjoerg
420276c7fc5fSjoerg
420376c7fc5fSjoergLINKALL=$llvm_cv_link_all_option
420476c7fc5fSjoerg
420576c7fc5fSjoergNOLINKALL=$llvm_cv_no_link_all_option
420676c7fc5fSjoerg
420776c7fc5fSjoerg
420876c7fc5fSjoergcase $llvm_cv_platform_type in
420976c7fc5fSjoerg  Unix)
421076c7fc5fSjoerg
421176c7fc5fSjoerg$as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
421276c7fc5fSjoerg
421376c7fc5fSjoerg    LLVM_ON_UNIX=1
421476c7fc5fSjoerg
421576c7fc5fSjoerg    LLVM_ON_WIN32=0
421676c7fc5fSjoerg
421776c7fc5fSjoerg    ;;
421876c7fc5fSjoerg  Win32)
421976c7fc5fSjoerg
422076c7fc5fSjoerg$as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
422176c7fc5fSjoerg
422276c7fc5fSjoerg    LLVM_ON_UNIX=0
422376c7fc5fSjoerg
422476c7fc5fSjoerg    LLVM_ON_WIN32=1
422576c7fc5fSjoerg
422676c7fc5fSjoerg    ;;
422776c7fc5fSjoergesac
422876c7fc5fSjoerg
422976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
423076c7fc5fSjoerg$as_echo_n "checking target architecture... " >&6; }
423176c7fc5fSjoergif ${llvm_cv_target_arch+:} false; then :
423276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
423376c7fc5fSjoergelse
423476c7fc5fSjoerg  case $target in
423576c7fc5fSjoerg  i?86-*)                 llvm_cv_target_arch="x86" ;;
423676c7fc5fSjoerg  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
423776c7fc5fSjoerg  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
423876c7fc5fSjoerg  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
423976c7fc5fSjoerg  arm64*-*)               llvm_cv_target_arch="AArch64" ;;
424076c7fc5fSjoerg  arm*-*)                 llvm_cv_target_arch="ARM" ;;
424176c7fc5fSjoerg  aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
424276c7fc5fSjoerg  avr-*)                  llvm_cv_target_arch="AVR" ;;
424376c7fc5fSjoerg  mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
424476c7fc5fSjoerg  mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
424576c7fc5fSjoerg  xcore-*)                llvm_cv_target_arch="XCore" ;;
424676c7fc5fSjoerg  msp430-*)               llvm_cv_target_arch="MSP430" ;;
424776c7fc5fSjoerg  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
424876c7fc5fSjoerg  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
424976c7fc5fSjoerg  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
425076c7fc5fSjoerg  wasm*-*)                llvm_cv_target_arch="WebAssembly" ;;
425176c7fc5fSjoerg  *)                      llvm_cv_target_arch="Unknown" ;;
425276c7fc5fSjoergesac
425376c7fc5fSjoergfi
425476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
425576c7fc5fSjoerg$as_echo "$llvm_cv_target_arch" >&6; }
425676c7fc5fSjoerg
425776c7fc5fSjoergif test "$llvm_cv_target_arch" = "Unknown" ; then
425876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
425976c7fc5fSjoerg$as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
426076c7fc5fSjoergfi
426176c7fc5fSjoerg
426276c7fc5fSjoergcase "$llvm_cv_target_arch" in
426376c7fc5fSjoerg    x86)     LLVM_NATIVE_ARCH="X86" ;;
426476c7fc5fSjoerg    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
426576c7fc5fSjoerg    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
426676c7fc5fSjoergesac
426776c7fc5fSjoerg
426876c7fc5fSjoergARCH=$llvm_cv_target_arch
426976c7fc5fSjoerg
427076c7fc5fSjoergLLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
427176c7fc5fSjoerg
427276c7fc5fSjoerg
427376c7fc5fSjoergcase $host in
427476c7fc5fSjoerg  i?86-*)                 host_arch="x86" ;;
427576c7fc5fSjoerg  amd64-* | x86_64-*)     host_arch="x86_64" ;;
427676c7fc5fSjoerg  sparc*-*)               host_arch="Sparc" ;;
427776c7fc5fSjoerg  powerpc*-*)             host_arch="PowerPC" ;;
427876c7fc5fSjoerg  arm64*-*)               host_arch="AArch64" ;;
427976c7fc5fSjoerg  arm*-*)                 host_arch="ARM" ;;
428076c7fc5fSjoerg  aarch64*-*)             host_arch="AArch64" ;;
428176c7fc5fSjoerg  avr-*)                  host_arch="AVR" ;;
428276c7fc5fSjoerg  mips-* | mips64-*)      host_arch="Mips" ;;
428376c7fc5fSjoerg  mipsel-* | mips64el-*)  host_arch="Mips" ;;
428476c7fc5fSjoerg  xcore-*)                host_arch="XCore" ;;
428576c7fc5fSjoerg  msp430-*)               host_arch="MSP430" ;;
428676c7fc5fSjoerg  hexagon-*)              host_arch="Hexagon" ;;
428776c7fc5fSjoerg  s390x-*)                host_arch="SystemZ" ;;
428876c7fc5fSjoerg  wasm*-*)                host_arch="WebAssembly" ;;
428976c7fc5fSjoerg  *)                      host_arch="Unknown" ;;
429076c7fc5fSjoergesac
429176c7fc5fSjoerg
429276c7fc5fSjoergif test "$host_arch" = "Unknown" ; then
429376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown host archicture" >&5
429476c7fc5fSjoerg$as_echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
429576c7fc5fSjoergfi
429676c7fc5fSjoerg
429776c7fc5fSjoergHOST_ARCH=$host_arch
429876c7fc5fSjoerg
429976c7fc5fSjoerg
430076c7fc5fSjoergif test "$cross_compiling" = yes; then
430176c7fc5fSjoerg  LLVM_CROSS_COMPILING=1
430276c7fc5fSjoerg
430376c7fc5fSjoerg
430476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
430576c7fc5fSjoerg$as_echo_n "checking for executable suffix on build platform... " >&6; }
430676c7fc5fSjoergif ${ac_cv_build_exeext+:} false; then :
430776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
430876c7fc5fSjoergelse
430976c7fc5fSjoerg  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
431076c7fc5fSjoerg  ac_cv_build_exeext=.exe
431176c7fc5fSjoergelse
431276c7fc5fSjoerg  ac_build_prefix=${build_alias}-
431376c7fc5fSjoerg
431476c7fc5fSjoerg  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
431576c7fc5fSjoergset dummy ${ac_build_prefix}gcc; ac_word=$2
431676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
431776c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
431876c7fc5fSjoergif ${ac_cv_prog_BUILD_CC+:} false; then :
431976c7fc5fSjoerg  $as_echo_n "(cached) " >&6
432076c7fc5fSjoergelse
432176c7fc5fSjoerg  if test -n "$BUILD_CC"; then
432276c7fc5fSjoerg  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
432376c7fc5fSjoergelse
432476c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
432576c7fc5fSjoergfor as_dir in $PATH
432676c7fc5fSjoergdo
432776c7fc5fSjoerg  IFS=$as_save_IFS
432876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
432976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
433076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
433176c7fc5fSjoerg    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
433276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
433376c7fc5fSjoerg    break 2
433476c7fc5fSjoerg  fi
433576c7fc5fSjoergdone
433676c7fc5fSjoerg  done
433776c7fc5fSjoergIFS=$as_save_IFS
433876c7fc5fSjoerg
433976c7fc5fSjoergfi
434076c7fc5fSjoergfi
434176c7fc5fSjoergBUILD_CC=$ac_cv_prog_BUILD_CC
434276c7fc5fSjoergif test -n "$BUILD_CC"; then
434376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
434476c7fc5fSjoerg$as_echo "$BUILD_CC" >&6; }
434576c7fc5fSjoergelse
434676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
434776c7fc5fSjoerg$as_echo "no" >&6; }
434876c7fc5fSjoergfi
434976c7fc5fSjoerg
435076c7fc5fSjoerg
435176c7fc5fSjoerg  if test -z "$BUILD_CC"; then
435276c7fc5fSjoerg     # Extract the first word of "gcc", so it can be a program name with args.
435376c7fc5fSjoergset dummy gcc; ac_word=$2
435476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
435576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
435676c7fc5fSjoergif ${ac_cv_prog_BUILD_CC+:} false; then :
435776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
435876c7fc5fSjoergelse
435976c7fc5fSjoerg  if test -n "$BUILD_CC"; then
436076c7fc5fSjoerg  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
436176c7fc5fSjoergelse
436276c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
436376c7fc5fSjoergfor as_dir in $PATH
436476c7fc5fSjoergdo
436576c7fc5fSjoerg  IFS=$as_save_IFS
436676c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
436776c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
436876c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
436976c7fc5fSjoerg    ac_cv_prog_BUILD_CC="gcc"
437076c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
437176c7fc5fSjoerg    break 2
437276c7fc5fSjoerg  fi
437376c7fc5fSjoergdone
437476c7fc5fSjoerg  done
437576c7fc5fSjoergIFS=$as_save_IFS
437676c7fc5fSjoerg
437776c7fc5fSjoergfi
437876c7fc5fSjoergfi
437976c7fc5fSjoergBUILD_CC=$ac_cv_prog_BUILD_CC
438076c7fc5fSjoergif test -n "$BUILD_CC"; then
438176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
438276c7fc5fSjoerg$as_echo "$BUILD_CC" >&6; }
438376c7fc5fSjoergelse
438476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
438576c7fc5fSjoerg$as_echo "no" >&6; }
438676c7fc5fSjoergfi
438776c7fc5fSjoerg
438876c7fc5fSjoerg
438976c7fc5fSjoerg     if test -z "$BUILD_CC"; then
439076c7fc5fSjoerg       # Extract the first word of "cc", so it can be a program name with args.
439176c7fc5fSjoergset dummy cc; ac_word=$2
439276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
439376c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
439476c7fc5fSjoergif ${ac_cv_prog_BUILD_CC+:} false; then :
439576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
439676c7fc5fSjoergelse
439776c7fc5fSjoerg  if test -n "$BUILD_CC"; then
439876c7fc5fSjoerg  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
439976c7fc5fSjoergelse
440076c7fc5fSjoerg  ac_prog_rejected=no
440176c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
440276c7fc5fSjoergfor as_dir in $PATH
440376c7fc5fSjoergdo
440476c7fc5fSjoerg  IFS=$as_save_IFS
440576c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
440676c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
440776c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
440876c7fc5fSjoerg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
440976c7fc5fSjoerg       ac_prog_rejected=yes
441076c7fc5fSjoerg       continue
441176c7fc5fSjoerg     fi
441276c7fc5fSjoerg    ac_cv_prog_BUILD_CC="cc"
441376c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
441476c7fc5fSjoerg    break 2
441576c7fc5fSjoerg  fi
441676c7fc5fSjoergdone
441776c7fc5fSjoerg  done
441876c7fc5fSjoergIFS=$as_save_IFS
441976c7fc5fSjoerg
442076c7fc5fSjoergif test $ac_prog_rejected = yes; then
442176c7fc5fSjoerg  # We found a bogon in the path, so make sure we never use it.
442276c7fc5fSjoerg  set dummy $ac_cv_prog_BUILD_CC
442376c7fc5fSjoerg  shift
442476c7fc5fSjoerg  if test $# != 0; then
442576c7fc5fSjoerg    # We chose a different compiler from the bogus one.
442676c7fc5fSjoerg    # However, it has the same basename, so the bogon will be chosen
442776c7fc5fSjoerg    # first if we set BUILD_CC to just the basename; use the full file name.
442876c7fc5fSjoerg    shift
442976c7fc5fSjoerg    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
443076c7fc5fSjoerg  fi
443176c7fc5fSjoergfi
443276c7fc5fSjoergfi
443376c7fc5fSjoergfi
443476c7fc5fSjoergBUILD_CC=$ac_cv_prog_BUILD_CC
443576c7fc5fSjoergif test -n "$BUILD_CC"; then
443676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
443776c7fc5fSjoerg$as_echo "$BUILD_CC" >&6; }
443876c7fc5fSjoergelse
443976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
444076c7fc5fSjoerg$as_echo "no" >&6; }
444176c7fc5fSjoergfi
444276c7fc5fSjoerg
444376c7fc5fSjoerg
444476c7fc5fSjoerg     fi
444576c7fc5fSjoerg  fi
444676c7fc5fSjoerg  test -z "$BUILD_CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
444776c7fc5fSjoerg  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
444876c7fc5fSjoerg  rm -f conftest*
444976c7fc5fSjoerg  echo 'int main () { return 0; }' > conftest.$ac_ext
445076c7fc5fSjoerg  ac_cv_build_exeext=
445176c7fc5fSjoerg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
445276c7fc5fSjoerg  (eval $ac_build_link) 2>&5
445376c7fc5fSjoerg  ac_status=$?
445476c7fc5fSjoerg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
445576c7fc5fSjoerg  test $ac_status = 0; }; then
445676c7fc5fSjoerg    for file in conftest.*; do
445776c7fc5fSjoerg      case $file in
445876c7fc5fSjoerg      *.c | *.o | *.obj | *.dSYM) ;;
445976c7fc5fSjoerg      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
446076c7fc5fSjoerg      esac
446176c7fc5fSjoerg    done
446276c7fc5fSjoerg  else
446376c7fc5fSjoerg    as_fn_error $? "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
446476c7fc5fSjoerg  fi
446576c7fc5fSjoerg  rm -f conftest*
446676c7fc5fSjoerg  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
446776c7fc5fSjoergfi
446876c7fc5fSjoergfi
446976c7fc5fSjoerg
447076c7fc5fSjoergBUILD_EXEEXT=""
447176c7fc5fSjoergtest x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
447276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
447376c7fc5fSjoerg$as_echo "${ac_cv_build_exeext}" >&6; }
447476c7fc5fSjoergac_build_exeext=$BUILD_EXEEXT
447576c7fc5fSjoerg
447676c7fc5fSjoerg  ac_build_prefix=${build_alias}-
447776c7fc5fSjoerg  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
447876c7fc5fSjoergset dummy ${ac_build_prefix}g++; ac_word=$2
447976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
448076c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
448176c7fc5fSjoergif ${ac_cv_prog_BUILD_CXX+:} false; then :
448276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
448376c7fc5fSjoergelse
448476c7fc5fSjoerg  if test -n "$BUILD_CXX"; then
448576c7fc5fSjoerg  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
448676c7fc5fSjoergelse
448776c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
448876c7fc5fSjoergfor as_dir in $PATH
448976c7fc5fSjoergdo
449076c7fc5fSjoerg  IFS=$as_save_IFS
449176c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
449276c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
449376c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
449476c7fc5fSjoerg    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
449576c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
449676c7fc5fSjoerg    break 2
449776c7fc5fSjoerg  fi
449876c7fc5fSjoergdone
449976c7fc5fSjoerg  done
450076c7fc5fSjoergIFS=$as_save_IFS
450176c7fc5fSjoerg
450276c7fc5fSjoergfi
450376c7fc5fSjoergfi
450476c7fc5fSjoergBUILD_CXX=$ac_cv_prog_BUILD_CXX
450576c7fc5fSjoergif test -n "$BUILD_CXX"; then
450676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
450776c7fc5fSjoerg$as_echo "$BUILD_CXX" >&6; }
450876c7fc5fSjoergelse
450976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
451076c7fc5fSjoerg$as_echo "no" >&6; }
451176c7fc5fSjoergfi
451276c7fc5fSjoerg
451376c7fc5fSjoerg
451476c7fc5fSjoerg  if test -z "$BUILD_CXX"; then
451576c7fc5fSjoerg     # Extract the first word of "g++", so it can be a program name with args.
451676c7fc5fSjoergset dummy g++; ac_word=$2
451776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
451876c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
451976c7fc5fSjoergif ${ac_cv_prog_BUILD_CXX+:} false; then :
452076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
452176c7fc5fSjoergelse
452276c7fc5fSjoerg  if test -n "$BUILD_CXX"; then
452376c7fc5fSjoerg  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
452476c7fc5fSjoergelse
452576c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
452676c7fc5fSjoergfor as_dir in $PATH
452776c7fc5fSjoergdo
452876c7fc5fSjoerg  IFS=$as_save_IFS
452976c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
453076c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
453176c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
453276c7fc5fSjoerg    ac_cv_prog_BUILD_CXX="g++"
453376c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
453476c7fc5fSjoerg    break 2
453576c7fc5fSjoerg  fi
453676c7fc5fSjoergdone
453776c7fc5fSjoerg  done
453876c7fc5fSjoergIFS=$as_save_IFS
453976c7fc5fSjoerg
454076c7fc5fSjoergfi
454176c7fc5fSjoergfi
454276c7fc5fSjoergBUILD_CXX=$ac_cv_prog_BUILD_CXX
454376c7fc5fSjoergif test -n "$BUILD_CXX"; then
454476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
454576c7fc5fSjoerg$as_echo "$BUILD_CXX" >&6; }
454676c7fc5fSjoergelse
454776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
454876c7fc5fSjoerg$as_echo "no" >&6; }
454976c7fc5fSjoergfi
455076c7fc5fSjoerg
455176c7fc5fSjoerg
455276c7fc5fSjoerg     if test -z "$BUILD_CXX"; then
455376c7fc5fSjoerg       # Extract the first word of "c++", so it can be a program name with args.
455476c7fc5fSjoergset dummy c++; ac_word=$2
455576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
455676c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
455776c7fc5fSjoergif ${ac_cv_prog_BUILD_CXX+:} false; then :
455876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
455976c7fc5fSjoergelse
456076c7fc5fSjoerg  if test -n "$BUILD_CXX"; then
456176c7fc5fSjoerg  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
456276c7fc5fSjoergelse
456376c7fc5fSjoerg  ac_prog_rejected=no
456476c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
456576c7fc5fSjoergfor as_dir in $PATH
456676c7fc5fSjoergdo
456776c7fc5fSjoerg  IFS=$as_save_IFS
456876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
456976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
457076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
457176c7fc5fSjoerg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
457276c7fc5fSjoerg       ac_prog_rejected=yes
457376c7fc5fSjoerg       continue
457476c7fc5fSjoerg     fi
457576c7fc5fSjoerg    ac_cv_prog_BUILD_CXX="c++"
457676c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
457776c7fc5fSjoerg    break 2
457876c7fc5fSjoerg  fi
457976c7fc5fSjoergdone
458076c7fc5fSjoerg  done
458176c7fc5fSjoergIFS=$as_save_IFS
458276c7fc5fSjoerg
458376c7fc5fSjoergif test $ac_prog_rejected = yes; then
458476c7fc5fSjoerg  # We found a bogon in the path, so make sure we never use it.
458576c7fc5fSjoerg  set dummy $ac_cv_prog_BUILD_CXX
458676c7fc5fSjoerg  shift
458776c7fc5fSjoerg  if test $# != 0; then
458876c7fc5fSjoerg    # We chose a different compiler from the bogus one.
458976c7fc5fSjoerg    # However, it has the same basename, so the bogon will be chosen
459076c7fc5fSjoerg    # first if we set BUILD_CXX to just the basename; use the full file name.
459176c7fc5fSjoerg    shift
459276c7fc5fSjoerg    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
459376c7fc5fSjoerg  fi
459476c7fc5fSjoergfi
459576c7fc5fSjoergfi
459676c7fc5fSjoergfi
459776c7fc5fSjoergBUILD_CXX=$ac_cv_prog_BUILD_CXX
459876c7fc5fSjoergif test -n "$BUILD_CXX"; then
459976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
460076c7fc5fSjoerg$as_echo "$BUILD_CXX" >&6; }
460176c7fc5fSjoergelse
460276c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
460376c7fc5fSjoerg$as_echo "no" >&6; }
460476c7fc5fSjoergfi
460576c7fc5fSjoerg
460676c7fc5fSjoerg
460776c7fc5fSjoerg     fi
460876c7fc5fSjoerg  fi
460976c7fc5fSjoergelse
461076c7fc5fSjoerg  LLVM_CROSS_COMPILING=0
461176c7fc5fSjoerg
461276c7fc5fSjoergfi
461376c7fc5fSjoerg
461476c7fc5fSjoergif test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
461576c7fc5fSjoerg  cvsbuild="yes"
461676c7fc5fSjoerg  optimize="no"
461776c7fc5fSjoerg  CVSBUILD=CVSBUILD=1
461876c7fc5fSjoerg
461976c7fc5fSjoergelse
462076c7fc5fSjoerg  cvsbuild="no"
462176c7fc5fSjoerg  optimize="yes"
462276c7fc5fSjoergfi
462376c7fc5fSjoerg
462476c7fc5fSjoerg
462576c7fc5fSjoerg# Check whether --enable-libcpp was given.
462676c7fc5fSjoergif test "${enable_libcpp+set}" = set; then :
462776c7fc5fSjoerg  enableval=$enable_libcpp;
462876c7fc5fSjoergelse
462976c7fc5fSjoerg  enableval=default
463076c7fc5fSjoergfi
463176c7fc5fSjoerg
463276c7fc5fSjoergcase "$enableval" in
463376c7fc5fSjoerg  yes) ENABLE_LIBCPP=1
463476c7fc5fSjoerg ;;
463576c7fc5fSjoerg  no)  ENABLE_LIBCPP=0
463676c7fc5fSjoerg ;;
463776c7fc5fSjoerg  default) ENABLE_LIBCPP=0
463876c7fc5fSjoerg;;
463976c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
464076c7fc5fSjoergesac
464176c7fc5fSjoerg
464276c7fc5fSjoerg# Check whether --enable-compiler-version-checks was given.
464376c7fc5fSjoergif test "${enable_compiler_version_checks+set}" = set; then :
464476c7fc5fSjoerg  enableval=$enable_compiler_version_checks;
464576c7fc5fSjoergelse
464676c7fc5fSjoerg  enableval=default
464776c7fc5fSjoergfi
464876c7fc5fSjoerg
464976c7fc5fSjoergcase "$enableval" in
465076c7fc5fSjoerg  no)
465176c7fc5fSjoerg    ;;
465276c7fc5fSjoerg  yes|default)
465376c7fc5fSjoerg    ac_ext=cpp
465476c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
465576c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
465676c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
465776c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
465876c7fc5fSjoerg
465976c7fc5fSjoerg    case "$llvm_cv_cxx_compiler" in
466076c7fc5fSjoerg    clang)
466176c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang is new enough" >&5
466276c7fc5fSjoerg$as_echo_n "checking whether Clang is new enough... " >&6; }
466376c7fc5fSjoerg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
466476c7fc5fSjoerg/* end confdefs.h.  */
466576c7fc5fSjoerg
466676c7fc5fSjoerg#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
466776c7fc5fSjoerg#error This version of Clang is too old to build LLVM
466876c7fc5fSjoerg#endif
466976c7fc5fSjoerg
467076c7fc5fSjoerg_ACEOF
467176c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
467276c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
467376c7fc5fSjoerg$as_echo "yes" >&6; }
467476c7fc5fSjoergelse
467576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
467676c7fc5fSjoerg$as_echo "no" >&6; }
467776c7fc5fSjoerg           as_fn_error $? "
467876c7fc5fSjoergThe selected Clang compiler is not new enough to build LLVM. Please upgrade to
467976c7fc5fSjoergClang 3.1. You may pass --disable-compiler-version-checks to configure to
468076c7fc5fSjoergbypass these sanity checks." "$LINENO" 5
468176c7fc5fSjoergfi
468276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
468376c7fc5fSjoerg
468476c7fc5fSjoerg                                          if test "$ENABLE_LIBCPP" -eq 0 ; then
468576c7fc5fSjoerg        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang will select a modern C++ standard library" >&5
468676c7fc5fSjoerg$as_echo_n "checking whether Clang will select a modern C++ standard library... " >&6; }
468776c7fc5fSjoerg        llvm_cv_old_cxxflags="$CXXFLAGS"
468876c7fc5fSjoerg        CXXFLAGS="$CXXFLAGS -std=c++0x"
468976c7fc5fSjoerg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
469076c7fc5fSjoerg/* end confdefs.h.  */
469176c7fc5fSjoerg
469276c7fc5fSjoerg#include <atomic>
469376c7fc5fSjoergstd::atomic<float> x(0.0f);
469476c7fc5fSjoergint main() { return (float)x; }
469576c7fc5fSjoerg
469676c7fc5fSjoerg_ACEOF
469776c7fc5fSjoergif ac_fn_cxx_try_link "$LINENO"; then :
469876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
469976c7fc5fSjoerg$as_echo "yes" >&6; }
470076c7fc5fSjoergelse
470176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
470276c7fc5fSjoerg$as_echo "no" >&6; }
470376c7fc5fSjoerg             as_fn_error $? "
470476c7fc5fSjoergWe detected a missing feature in the standard C++ library that was known to be
470576c7fc5fSjoergmissing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
470676c7fc5fSjoergC++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
470776c7fc5fSjoergthan 4.7. You will need to update your system and ensure Clang uses the newer
470876c7fc5fSjoergstandard library.
470976c7fc5fSjoerg
471076c7fc5fSjoergIf this error is incorrect or you need to force things to work, you may pass
471176c7fc5fSjoerg'--disable-compiler-version-checks' to configure to bypass this test." "$LINENO" 5
471276c7fc5fSjoergfi
471376c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
471476c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
471576c7fc5fSjoerg        CXXFLAGS="$llvm_cv_old_cxxflags"
471676c7fc5fSjoerg      fi
471776c7fc5fSjoerg      ;;
471876c7fc5fSjoerg    gcc)
471976c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC is new enough" >&5
472076c7fc5fSjoerg$as_echo_n "checking whether GCC is new enough... " >&6; }
472176c7fc5fSjoerg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
472276c7fc5fSjoerg/* end confdefs.h.  */
472376c7fc5fSjoerg
472476c7fc5fSjoerg#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
472576c7fc5fSjoerg#error This version of GCC is too old to build LLVM
472676c7fc5fSjoerg#endif
472776c7fc5fSjoerg
472876c7fc5fSjoerg_ACEOF
472976c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
473076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
473176c7fc5fSjoerg$as_echo "yes" >&6; }
473276c7fc5fSjoergelse
473376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
473476c7fc5fSjoerg$as_echo "no" >&6; }
473576c7fc5fSjoerg           as_fn_error $? "
473676c7fc5fSjoergThe selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
473776c7fc5fSjoergto GCC 4.7. You may pass --disable-compiler-version-checks to configure to
473876c7fc5fSjoergbypass these sanity checks." "$LINENO" 5
473976c7fc5fSjoergfi
474076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
474176c7fc5fSjoerg      ;;
474276c7fc5fSjoerg    unknown)
474376c7fc5fSjoerg      ;;
474476c7fc5fSjoerg    esac
474576c7fc5fSjoerg    ac_ext=c
474676c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
474776c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
474876c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
474976c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
475076c7fc5fSjoerg
475176c7fc5fSjoerg    ;;
475276c7fc5fSjoerg  *)
475376c7fc5fSjoerg    as_fn_error $? "Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" "$LINENO" 5
475476c7fc5fSjoerg    ;;
475576c7fc5fSjoergesac
475676c7fc5fSjoerg
475776c7fc5fSjoerg# Check whether --enable-cxx1y was given.
475876c7fc5fSjoergif test "${enable_cxx1y+set}" = set; then :
475976c7fc5fSjoerg  enableval=$enable_cxx1y;
476076c7fc5fSjoergelse
476176c7fc5fSjoerg  enableval=default
476276c7fc5fSjoergfi
476376c7fc5fSjoerg
476476c7fc5fSjoergcase "$enableval" in
476576c7fc5fSjoerg  yes) ENABLE_CXX1Y=1
476676c7fc5fSjoerg ;;
476776c7fc5fSjoerg  no)  ENABLE_CXX1Y=0
476876c7fc5fSjoerg ;;
476976c7fc5fSjoerg  default) ENABLE_CXX1Y=0
477076c7fc5fSjoerg;;
477176c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
477276c7fc5fSjoergesac
477376c7fc5fSjoerg
477476c7fc5fSjoerg# Check whether --enable-split-dwarf was given.
477576c7fc5fSjoergif test "${enable_split_dwarf+set}" = set; then :
477676c7fc5fSjoerg  enableval=$enable_split_dwarf;
477776c7fc5fSjoergelse
477876c7fc5fSjoerg  enableval=default
477976c7fc5fSjoergfi
478076c7fc5fSjoerg
478176c7fc5fSjoergcase "$enableval" in
478276c7fc5fSjoerg  yes) ENABLE_SPLIT_DWARF=1
478376c7fc5fSjoerg ;;
478476c7fc5fSjoerg  no)  ENABLE_SPLIT_DWARF=0
478576c7fc5fSjoerg ;;
478676c7fc5fSjoerg  default) ENABLE_SPLIT_DWARF=0
478776c7fc5fSjoerg;;
478876c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
478976c7fc5fSjoergesac
479076c7fc5fSjoerg
479176c7fc5fSjoergclang_arcmt="yes"
479276c7fc5fSjoerg# Check whether --enable-clang-arcmt was given.
479376c7fc5fSjoergif test "${enable_clang_arcmt+set}" = set; then :
479476c7fc5fSjoerg  enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
479576c7fc5fSjoergelse
479676c7fc5fSjoerg  enableval="yes"
479776c7fc5fSjoergfi
479876c7fc5fSjoerg
479976c7fc5fSjoergcase "$enableval" in
480076c7fc5fSjoerg  yes) ENABLE_CLANG_ARCMT=1
480176c7fc5fSjoerg ;;
480276c7fc5fSjoerg  no)  ENABLE_CLANG_ARCMT=0
480376c7fc5fSjoerg ;;
480476c7fc5fSjoerg  default) ENABLE_CLANG_ARCMT=1
480576c7fc5fSjoerg;;
480676c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
480776c7fc5fSjoergesac
480876c7fc5fSjoerg
480976c7fc5fSjoergclang_plugin_support="yes"
481076c7fc5fSjoerg# Check whether --enable-clang-plugin-support was given.
481176c7fc5fSjoergif test "${enable_clang_plugin_support+set}" = set; then :
481276c7fc5fSjoerg  enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
481376c7fc5fSjoergelse
481476c7fc5fSjoerg  enableval="yes"
481576c7fc5fSjoergfi
481676c7fc5fSjoerg
481776c7fc5fSjoergcase "$enableval" in
481876c7fc5fSjoerg  yes) CLANG_PLUGIN_SUPPORT=1
481976c7fc5fSjoerg ;;
482076c7fc5fSjoerg  no)  CLANG_PLUGIN_SUPPORT=0
482176c7fc5fSjoerg ;;
482276c7fc5fSjoerg  default) CLANG_PLUGIN_SUPPORT=1
482376c7fc5fSjoerg;;
482476c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
482576c7fc5fSjoergesac
482676c7fc5fSjoerg
482776c7fc5fSjoergclang_static_analyzer="yes"
482876c7fc5fSjoerg# Check whether --enable-clang-static-analyzer was given.
482976c7fc5fSjoergif test "${enable_clang_static_analyzer+set}" = set; then :
483076c7fc5fSjoerg  enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
483176c7fc5fSjoergelse
483276c7fc5fSjoerg  enableval="yes"
483376c7fc5fSjoergfi
483476c7fc5fSjoerg
483576c7fc5fSjoergcase "$enableval" in
483676c7fc5fSjoerg  yes) ENABLE_CLANG_STATIC_ANALYZER=1
483776c7fc5fSjoerg ;;
483876c7fc5fSjoerg  no)
483976c7fc5fSjoerg    if test ${clang_arcmt} != "no" ; then
484076c7fc5fSjoerg      as_fn_error $? "Cannot enable clang ARC Migration Tool while disabling static analyzer." "$LINENO" 5
484176c7fc5fSjoerg    fi
484276c7fc5fSjoerg    ENABLE_CLANG_STATIC_ANALYZER=0
484376c7fc5fSjoerg
484476c7fc5fSjoerg    ;;
484576c7fc5fSjoerg  default) ENABLE_CLANG_STATIC_ANALYZER=1
484676c7fc5fSjoerg;;
484776c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
484876c7fc5fSjoergesac
484976c7fc5fSjoerg
485076c7fc5fSjoerg# Check whether --enable-optimized was given.
485176c7fc5fSjoergif test "${enable_optimized+set}" = set; then :
485276c7fc5fSjoerg  enableval=$enable_optimized;
485376c7fc5fSjoergelse
485476c7fc5fSjoerg  enableval=$optimize
485576c7fc5fSjoergfi
485676c7fc5fSjoerg
485776c7fc5fSjoergif test ${enableval} = "no" ; then
485876c7fc5fSjoerg  ENABLE_OPTIMIZED=
485976c7fc5fSjoerg
486076c7fc5fSjoergelse
486176c7fc5fSjoerg  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
486276c7fc5fSjoerg
486376c7fc5fSjoergfi
486476c7fc5fSjoerg
486576c7fc5fSjoerg# Check whether --enable-profiling was given.
486676c7fc5fSjoergif test "${enable_profiling+set}" = set; then :
486776c7fc5fSjoerg  enableval=$enable_profiling;
486876c7fc5fSjoergelse
486976c7fc5fSjoerg  enableval="no"
487076c7fc5fSjoergfi
487176c7fc5fSjoerg
487276c7fc5fSjoergif test ${enableval} = "no" ; then
487376c7fc5fSjoerg  ENABLE_PROFILING=
487476c7fc5fSjoerg
487576c7fc5fSjoergelse
487676c7fc5fSjoerg  ENABLE_PROFILING=ENABLE_PROFILING=1
487776c7fc5fSjoerg
487876c7fc5fSjoergfi
487976c7fc5fSjoerg
488076c7fc5fSjoerg# Check whether --enable-assertions was given.
488176c7fc5fSjoergif test "${enable_assertions+set}" = set; then :
488276c7fc5fSjoerg  enableval=$enable_assertions;
488376c7fc5fSjoergelse
488476c7fc5fSjoerg  enableval="yes"
488576c7fc5fSjoergfi
488676c7fc5fSjoerg
488776c7fc5fSjoergif test ${enableval} = "yes" ; then
488876c7fc5fSjoerg  DISABLE_ASSERTIONS=
488976c7fc5fSjoerg
489076c7fc5fSjoerg  assertions_enabled="yes"
489176c7fc5fSjoergelse
489276c7fc5fSjoerg  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
489376c7fc5fSjoerg
489476c7fc5fSjoerg  assertions_enabled="no"
489576c7fc5fSjoergfi
489676c7fc5fSjoerg
489776c7fc5fSjoerg# Check whether --enable-werror was given.
489876c7fc5fSjoergif test "${enable_werror+set}" = set; then :
489976c7fc5fSjoerg  enableval=$enable_werror;
490076c7fc5fSjoergelse
490176c7fc5fSjoerg  enableval="no"
490276c7fc5fSjoergfi
490376c7fc5fSjoerg
490476c7fc5fSjoergcase "$enableval" in
490576c7fc5fSjoerg  yes) ENABLE_WERROR=1
490676c7fc5fSjoerg ;;
490776c7fc5fSjoerg  no)  ENABLE_WERROR=0
490876c7fc5fSjoerg ;;
490976c7fc5fSjoerg  default) ENABLE_WERROR=0
491076c7fc5fSjoerg;;
491176c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-werror. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
491276c7fc5fSjoergesac
491376c7fc5fSjoerg
491476c7fc5fSjoerg# Check whether --enable-expensive-checks was given.
491576c7fc5fSjoergif test "${enable_expensive_checks+set}" = set; then :
491676c7fc5fSjoerg  enableval=$enable_expensive_checks;
491776c7fc5fSjoergelse
491876c7fc5fSjoerg  enableval="no"
491976c7fc5fSjoergfi
492076c7fc5fSjoerg
492176c7fc5fSjoergif test ${enableval} = "yes" ; then
492276c7fc5fSjoerg  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
492376c7fc5fSjoerg
492476c7fc5fSjoerg  EXPENSIVE_CHECKS=yes
492576c7fc5fSjoerg
492676c7fc5fSjoergelse
492776c7fc5fSjoerg  ENABLE_EXPENSIVE_CHECKS=
492876c7fc5fSjoerg
492976c7fc5fSjoerg  EXPENSIVE_CHECKS=no
493076c7fc5fSjoerg
493176c7fc5fSjoergfi
493276c7fc5fSjoerg
493376c7fc5fSjoerg# Check whether --enable-abi-breaking-checks was given.
493476c7fc5fSjoergif test "${enable_abi_breaking_checks+set}" = set; then :
493576c7fc5fSjoerg  enableval=$enable_abi_breaking_checks;
493676c7fc5fSjoergelse
493776c7fc5fSjoerg  enableval="with-asserts"
493876c7fc5fSjoergfi
493976c7fc5fSjoerg
494076c7fc5fSjoergcase "$enableval" in
494176c7fc5fSjoerg  with-asserts)  if test ${assertions_enabled} = "yes" ; then
494276c7fc5fSjoerg                   ENABLE_ABI_BREAKING_CHECKS=1
494376c7fc5fSjoerg                 else
494476c7fc5fSjoerg                   ENABLE_ABI_BREAKING_CHECKS=0
494576c7fc5fSjoerg		 fi ;;
494676c7fc5fSjoerg  yes)
494776c7fc5fSjoerg                 ENABLE_ABI_BREAKING_CHECKS=1
494876c7fc5fSjoerg                 ;;
494976c7fc5fSjoerg  no)
495076c7fc5fSjoerg                 ENABLE_ABI_BREAKING_CHECKS=0
495176c7fc5fSjoerg                 ;;
495276c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" "$LINENO" 5
495376c7fc5fSjoergesac
495476c7fc5fSjoergENABLE_ABI_BREAKING_CHECKS=$ENABLE_ABI_BREAKING_CHECKS
495576c7fc5fSjoerg
495676c7fc5fSjoerg
495776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
495876c7fc5fSjoerg#define LLVM_ENABLE_ABI_BREAKING_CHECKS $ENABLE_ABI_BREAKING_CHECKS
495976c7fc5fSjoerg_ACEOF
496076c7fc5fSjoerg
496176c7fc5fSjoerg
496276c7fc5fSjoerg# Check whether --enable-debug-runtime was given.
496376c7fc5fSjoergif test "${enable_debug_runtime+set}" = set; then :
496476c7fc5fSjoerg  enableval=$enable_debug_runtime;
496576c7fc5fSjoergelse
496676c7fc5fSjoerg  enableval=no
496776c7fc5fSjoergfi
496876c7fc5fSjoerg
496976c7fc5fSjoergif test ${enableval} = "no" ; then
497076c7fc5fSjoerg  DEBUG_RUNTIME=
497176c7fc5fSjoerg
497276c7fc5fSjoergelse
497376c7fc5fSjoerg  DEBUG_RUNTIME=DEBUG_RUNTIME=1
497476c7fc5fSjoerg
497576c7fc5fSjoergfi
497676c7fc5fSjoerg
497776c7fc5fSjoerg# Check whether --enable-debug-symbols was given.
497876c7fc5fSjoergif test "${enable_debug_symbols+set}" = set; then :
497976c7fc5fSjoerg  enableval=$enable_debug_symbols;
498076c7fc5fSjoergelse
498176c7fc5fSjoerg  enableval=no
498276c7fc5fSjoergfi
498376c7fc5fSjoerg
498476c7fc5fSjoergif test ${enableval} = "no" ; then
498576c7fc5fSjoerg  DEBUG_SYMBOLS=
498676c7fc5fSjoerg
498776c7fc5fSjoergelse
498876c7fc5fSjoerg  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
498976c7fc5fSjoerg
499076c7fc5fSjoergfi
499176c7fc5fSjoerg
499276c7fc5fSjoerg# Check whether --enable-keep-symbols was given.
499376c7fc5fSjoergif test "${enable_keep_symbols+set}" = set; then :
499476c7fc5fSjoerg  enableval=$enable_keep_symbols;
499576c7fc5fSjoergelse
499676c7fc5fSjoerg  enableval=no
499776c7fc5fSjoergfi
499876c7fc5fSjoerg
499976c7fc5fSjoergif test ${enableval} = "no" ; then
500076c7fc5fSjoerg  KEEP_SYMBOLS=
500176c7fc5fSjoerg
500276c7fc5fSjoergelse
500376c7fc5fSjoerg  KEEP_SYMBOLS=KEEP_SYMBOLS=1
500476c7fc5fSjoerg
500576c7fc5fSjoergfi
500676c7fc5fSjoerg
500776c7fc5fSjoerg# Check whether --enable-jit was given.
500876c7fc5fSjoergif test "${enable_jit+set}" = set; then :
500976c7fc5fSjoerg  enableval=$enable_jit;
501076c7fc5fSjoergelse
501176c7fc5fSjoerg  enableval=default
501276c7fc5fSjoergfi
501376c7fc5fSjoerg
501476c7fc5fSjoergif test ${enableval} = "no"
501576c7fc5fSjoergthen
501676c7fc5fSjoerg  JIT=
501776c7fc5fSjoerg
501876c7fc5fSjoergelse
501976c7fc5fSjoerg  case "$llvm_cv_target_arch" in
502076c7fc5fSjoerg    x86)         TARGET_HAS_JIT=1
502176c7fc5fSjoerg ;;
502276c7fc5fSjoerg    Sparc)       TARGET_HAS_JIT=0
502376c7fc5fSjoerg ;;
502476c7fc5fSjoerg    PowerPC)     TARGET_HAS_JIT=1
502576c7fc5fSjoerg ;;
502676c7fc5fSjoerg    x86_64)      TARGET_HAS_JIT=1
502776c7fc5fSjoerg ;;
502876c7fc5fSjoerg    ARM)         TARGET_HAS_JIT=1
502976c7fc5fSjoerg ;;
503076c7fc5fSjoerg    AVR)         TARGET_HAS_JIT=0
503176c7fc5fSjoerg ;;
503276c7fc5fSjoerg    Mips)        TARGET_HAS_JIT=1
503376c7fc5fSjoerg ;;
503476c7fc5fSjoerg    XCore)       TARGET_HAS_JIT=0
503576c7fc5fSjoerg ;;
503676c7fc5fSjoerg    MSP430)      TARGET_HAS_JIT=0
503776c7fc5fSjoerg ;;
503876c7fc5fSjoerg    Hexagon)     TARGET_HAS_JIT=0
503976c7fc5fSjoerg ;;
504076c7fc5fSjoerg    NVPTX)       TARGET_HAS_JIT=0
504176c7fc5fSjoerg ;;
504276c7fc5fSjoerg    SystemZ)     TARGET_HAS_JIT=1
504376c7fc5fSjoerg ;;
504476c7fc5fSjoerg    WebAssembly) TARGET_HAS_JIT=0
504576c7fc5fSjoerg ;;
504676c7fc5fSjoerg    *)           TARGET_HAS_JIT=0
504776c7fc5fSjoerg ;;
504876c7fc5fSjoerg  esac
504976c7fc5fSjoergfi
505076c7fc5fSjoerg
505176c7fc5fSjoergTARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
505276c7fc5fSjoergTARGETS_WITH_JIT=$TARGETS_WITH_JIT
505376c7fc5fSjoerg
505476c7fc5fSjoerg
505576c7fc5fSjoerg# Check whether --enable-docs was given.
505676c7fc5fSjoergif test "${enable_docs+set}" = set; then :
505776c7fc5fSjoerg  enableval=$enable_docs;
505876c7fc5fSjoergelse
505976c7fc5fSjoerg  enableval=default
506076c7fc5fSjoergfi
506176c7fc5fSjoerg
506276c7fc5fSjoergcase "$enableval" in
506376c7fc5fSjoerg  yes) ENABLE_DOCS=1
506476c7fc5fSjoerg ;;
506576c7fc5fSjoerg  no)  ENABLE_DOCS=0
506676c7fc5fSjoerg ;;
506776c7fc5fSjoerg  default) ENABLE_DOCS=1
506876c7fc5fSjoerg ;;
506976c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-docs. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
507076c7fc5fSjoergesac
507176c7fc5fSjoerg
507276c7fc5fSjoerg# Check whether --enable-doxygen was given.
507376c7fc5fSjoergif test "${enable_doxygen+set}" = set; then :
507476c7fc5fSjoerg  enableval=$enable_doxygen;
507576c7fc5fSjoergelse
507676c7fc5fSjoerg  enableval=default
507776c7fc5fSjoergfi
507876c7fc5fSjoerg
507976c7fc5fSjoergcase "$enableval" in
508076c7fc5fSjoerg  yes) ENABLE_DOXYGEN=1
508176c7fc5fSjoerg ;;
508276c7fc5fSjoerg  no|default) ENABLE_DOXYGEN=0
508376c7fc5fSjoerg ;;
508476c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
508576c7fc5fSjoergesac
508676c7fc5fSjoerg
508776c7fc5fSjoerg# Check whether --enable-doxygen-search was given.
508876c7fc5fSjoergif test "${enable_doxygen_search+set}" = set; then :
508976c7fc5fSjoerg  enableval=$enable_doxygen_search;
509076c7fc5fSjoergelse
509176c7fc5fSjoerg  enableval=default
509276c7fc5fSjoergfi
509376c7fc5fSjoerg
509476c7fc5fSjoergENABLE_DOXYGEN_SEARCH="$enableval"
509576c7fc5fSjoerg
509676c7fc5fSjoergcase "$enableval" in
509776c7fc5fSjoerg  yes|no|default) ;;
509876c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
509976c7fc5fSjoergesac
510076c7fc5fSjoerg
510176c7fc5fSjoerg# Check whether --enable-doxygen-external-search was given.
510276c7fc5fSjoergif test "${enable_doxygen_external_search+set}" = set; then :
510376c7fc5fSjoerg  enableval=$enable_doxygen_external_search;
510476c7fc5fSjoergelse
510576c7fc5fSjoerg  enableval=default
510676c7fc5fSjoergfi
510776c7fc5fSjoerg
510876c7fc5fSjoergENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
510976c7fc5fSjoerg
511076c7fc5fSjoergcase "$enableval" in
511176c7fc5fSjoerg  yes)
511276c7fc5fSjoerg            case "$ENABLE_DOXYGEN_SEARCH" in
511376c7fc5fSjoerg      yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
511476c7fc5fSjoerg      no) as_fn_error $? "The option --enable-doxygen-external-search requires --enable-doxygen-search" "$LINENO" 5 ;;
511576c7fc5fSjoerg    esac
511676c7fc5fSjoerg    ;;
511776c7fc5fSjoerg  no|default) ;;
511876c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
511976c7fc5fSjoergesac
512076c7fc5fSjoerg
512176c7fc5fSjoerg
512276c7fc5fSjoerg# Check whether --with-doxygen-search-engine-url was given.
512376c7fc5fSjoergif test "${with_doxygen_search_engine_url+set}" = set; then :
512476c7fc5fSjoerg  withval=$with_doxygen_search_engine_url;
512576c7fc5fSjoergfi
512676c7fc5fSjoerg
512776c7fc5fSjoergWITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
512876c7fc5fSjoerg
512976c7fc5fSjoerg
513076c7fc5fSjoerg# Check whether --with-doxygen-search-mappings was given.
513176c7fc5fSjoergif test "${with_doxygen_search_mappings+set}" = set; then :
513276c7fc5fSjoerg  withval=$with_doxygen_search_mappings;
513376c7fc5fSjoergfi
513476c7fc5fSjoerg
513576c7fc5fSjoergWITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
513676c7fc5fSjoerg
513776c7fc5fSjoergcase "$ENABLE_DOXYGEN_SEARCH" in
513876c7fc5fSjoerg  yes)
513976c7fc5fSjoerg    if test "$ENABLE_DOXYGEN" = "0" ; then
514076c7fc5fSjoerg      as_fn_error $? "The option --enable-doxygen-search requires --enable-doxygen." "$LINENO" 5
514176c7fc5fSjoerg    fi
514276c7fc5fSjoerg
514376c7fc5fSjoerg    enable_searchengine=YES
514476c7fc5fSjoerg
514576c7fc5fSjoerg
514676c7fc5fSjoerg    case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
514776c7fc5fSjoerg      yes)
514876c7fc5fSjoerg        enable_external_search=YES
514976c7fc5fSjoerg
515076c7fc5fSjoerg        enable_server_based_search=YES
515176c7fc5fSjoerg
515276c7fc5fSjoerg        searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
515376c7fc5fSjoerg
515476c7fc5fSjoerg        extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
515576c7fc5fSjoerg
515676c7fc5fSjoerg        ;;
515776c7fc5fSjoerg
515876c7fc5fSjoerg      no|default)
515976c7fc5fSjoerg        enable_external_search=NO
516076c7fc5fSjoerg
516176c7fc5fSjoerg        enable_server_based_search=NO
516276c7fc5fSjoerg
516376c7fc5fSjoerg
516476c7fc5fSjoerg
516576c7fc5fSjoerg        ;;
516676c7fc5fSjoerg    esac
516776c7fc5fSjoerg    ;;
516876c7fc5fSjoerg
516976c7fc5fSjoerg  no|default)
517076c7fc5fSjoerg    enable_searchengine=NO
517176c7fc5fSjoerg
517276c7fc5fSjoerg
517376c7fc5fSjoerg    enable_server_based_search=NO
517476c7fc5fSjoerg
517576c7fc5fSjoerg    enable_external_search=NO
517676c7fc5fSjoerg
517776c7fc5fSjoerg
517876c7fc5fSjoerg    ;;
517976c7fc5fSjoerg
518076c7fc5fSjoerg  *)
518176c7fc5fSjoerg    as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5
518276c7fc5fSjoerg    ;;
518376c7fc5fSjoergesac
518476c7fc5fSjoerg
518576c7fc5fSjoerg# Check whether --enable-doxygen-qt-help was given.
518676c7fc5fSjoergif test "${enable_doxygen_qt_help+set}" = set; then :
518776c7fc5fSjoerg  enableval=$enable_doxygen_qt_help;
518876c7fc5fSjoergelse
518976c7fc5fSjoerg  enableval=default
519076c7fc5fSjoergfi
519176c7fc5fSjoerg
519276c7fc5fSjoergcase "$enableval" in
519376c7fc5fSjoerg  yes)
519476c7fc5fSjoerg    if test "$ENABLE_DOXYGEN" = "0" ; then
519576c7fc5fSjoerg      as_fn_error $? "The option --enable-doxygen-qt-help requires --enable-doxygen." "$LINENO" 5
519676c7fc5fSjoerg    fi
519776c7fc5fSjoerg
519876c7fc5fSjoerg    # Extract the first word of "qhelpgenerator", so it can be a program name with args.
519976c7fc5fSjoergset dummy qhelpgenerator; ac_word=$2
520076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
520176c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
520276c7fc5fSjoergif ${ac_cv_path_QHELPGENERATOR+:} false; then :
520376c7fc5fSjoerg  $as_echo_n "(cached) " >&6
520476c7fc5fSjoergelse
520576c7fc5fSjoerg  case $QHELPGENERATOR in
520676c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
520776c7fc5fSjoerg  ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
520876c7fc5fSjoerg  ;;
520976c7fc5fSjoerg  *)
521076c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
521176c7fc5fSjoergfor as_dir in $PATH
521276c7fc5fSjoergdo
521376c7fc5fSjoerg  IFS=$as_save_IFS
521476c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
521576c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
521676c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
521776c7fc5fSjoerg    ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
521876c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
521976c7fc5fSjoerg    break 2
522076c7fc5fSjoerg  fi
522176c7fc5fSjoergdone
522276c7fc5fSjoerg  done
522376c7fc5fSjoergIFS=$as_save_IFS
522476c7fc5fSjoerg
522576c7fc5fSjoerg  test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
522676c7fc5fSjoerg  ;;
522776c7fc5fSjoergesac
522876c7fc5fSjoergfi
522976c7fc5fSjoergQHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
523076c7fc5fSjoergif test -n "$QHELPGENERATOR"; then
523176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QHELPGENERATOR" >&5
523276c7fc5fSjoerg$as_echo "$QHELPGENERATOR" >&6; }
523376c7fc5fSjoergelse
523476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
523576c7fc5fSjoerg$as_echo "no" >&6; }
523676c7fc5fSjoergfi
523776c7fc5fSjoerg
523876c7fc5fSjoerg
523976c7fc5fSjoerg
524076c7fc5fSjoerg        llvm_doxygen_generate_qhp=YES
524176c7fc5fSjoerg
524276c7fc5fSjoerg    llvm_doxygen_qch_filename=org.llvm.qch
524376c7fc5fSjoerg
524476c7fc5fSjoerg    llvm_doxygen_qhp_namespace=org.llvm
524576c7fc5fSjoerg
524676c7fc5fSjoerg    llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
524776c7fc5fSjoerg
524876c7fc5fSjoerg    llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
524976c7fc5fSjoerg
525076c7fc5fSjoerg    llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
525176c7fc5fSjoerg
525276c7fc5fSjoerg
525376c7fc5fSjoerg        clang_doxygen_generate_qhp=YES
525476c7fc5fSjoerg
525576c7fc5fSjoerg    clang_doxygen_qch_filename=org.llvm.clang.qch
525676c7fc5fSjoerg
525776c7fc5fSjoerg    clang_doxygen_qhp_namespace=org.llvm.clang
525876c7fc5fSjoerg
525976c7fc5fSjoerg    clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
526076c7fc5fSjoerg
526176c7fc5fSjoerg    clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
526276c7fc5fSjoerg
526376c7fc5fSjoerg    clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
526476c7fc5fSjoerg
526576c7fc5fSjoerg    ;;
526676c7fc5fSjoerg
526776c7fc5fSjoerg  no|default)
526876c7fc5fSjoerg    llvm_doxygen_generate_qhp=NO
526976c7fc5fSjoerg
527076c7fc5fSjoerg
527176c7fc5fSjoerg
527276c7fc5fSjoerg
527376c7fc5fSjoerg
527476c7fc5fSjoerg
527576c7fc5fSjoerg
527676c7fc5fSjoerg    clang_doxygen_generate_qhp=NO
527776c7fc5fSjoerg
527876c7fc5fSjoerg
527976c7fc5fSjoerg
528076c7fc5fSjoerg
528176c7fc5fSjoerg    clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
528276c7fc5fSjoerg
528376c7fc5fSjoerg    clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
528476c7fc5fSjoerg
528576c7fc5fSjoerg    ;;
528676c7fc5fSjoerg
528776c7fc5fSjoerg  *)
528876c7fc5fSjoerg    as_fn_error $? "Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
528976c7fc5fSjoergesac
529076c7fc5fSjoerg
529176c7fc5fSjoerg# Check whether --enable-threads was given.
529276c7fc5fSjoergif test "${enable_threads+set}" = set; then :
529376c7fc5fSjoerg  enableval=$enable_threads;
529476c7fc5fSjoergelse
529576c7fc5fSjoerg  enableval=default
529676c7fc5fSjoergfi
529776c7fc5fSjoerg
529876c7fc5fSjoergcase "$enableval" in
529976c7fc5fSjoerg  yes) LLVM_ENABLE_THREADS=1
530076c7fc5fSjoerg ;;
530176c7fc5fSjoerg  no)  LLVM_ENABLE_THREADS=0
530276c7fc5fSjoerg ;;
530376c7fc5fSjoerg  default) LLVM_ENABLE_THREADS=1
530476c7fc5fSjoerg ;;
530576c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
530676c7fc5fSjoergesac
530776c7fc5fSjoerg
530876c7fc5fSjoergcat >>confdefs.h <<_ACEOF
530976c7fc5fSjoerg#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
531076c7fc5fSjoerg_ACEOF
531176c7fc5fSjoerg
531276c7fc5fSjoerg
531376c7fc5fSjoerg# Check whether --enable-pthreads was given.
531476c7fc5fSjoergif test "${enable_pthreads+set}" = set; then :
531576c7fc5fSjoerg  enableval=$enable_pthreads;
531676c7fc5fSjoergelse
531776c7fc5fSjoerg  enableval=default
531876c7fc5fSjoergfi
531976c7fc5fSjoerg
532076c7fc5fSjoergcase "$enableval" in
532176c7fc5fSjoerg  yes) ENABLE_PTHREADS=1
532276c7fc5fSjoerg ;;
532376c7fc5fSjoerg  no)  ENABLE_PTHREADS=0
532476c7fc5fSjoerg ;;
532576c7fc5fSjoerg  default) ENABLE_PTHREADS=1
532676c7fc5fSjoerg ;;
532776c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
532876c7fc5fSjoergesac
532976c7fc5fSjoerg
533076c7fc5fSjoerg# Check whether --enable-zlib was given.
533176c7fc5fSjoergif test "${enable_zlib+set}" = set; then :
533276c7fc5fSjoerg  enableval=$enable_zlib;
533376c7fc5fSjoergelse
533476c7fc5fSjoerg  enableval=default
533576c7fc5fSjoergfi
533676c7fc5fSjoerg
533776c7fc5fSjoergcase "$enableval" in
533876c7fc5fSjoerg  yes) LLVM_ENABLE_ZLIB=1
533976c7fc5fSjoerg ;;
534076c7fc5fSjoerg  no)  LLVM_ENABLE_ZLIB=0
534176c7fc5fSjoerg ;;
534276c7fc5fSjoerg  default) LLVM_ENABLE_ZLIB=1
534376c7fc5fSjoerg ;;
534476c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
534576c7fc5fSjoergesac
534676c7fc5fSjoerg
534776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
534876c7fc5fSjoerg#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
534976c7fc5fSjoerg_ACEOF
535076c7fc5fSjoerg
535176c7fc5fSjoerg
535276c7fc5fSjoerg# Check whether --enable-shared was given.
535376c7fc5fSjoergif test "${enable_shared+set}" = set; then :
535476c7fc5fSjoerg  enableval=$enable_shared;
535576c7fc5fSjoergelse
535676c7fc5fSjoerg  enableval=default
535776c7fc5fSjoergfi
535876c7fc5fSjoerg
535976c7fc5fSjoergcase "$enableval" in
536076c7fc5fSjoerg  yes) ENABLE_SHARED=1
536176c7fc5fSjoerg ;;
536276c7fc5fSjoerg  no)  ENABLE_SHARED=0
536376c7fc5fSjoerg ;;
536476c7fc5fSjoerg  default) ENABLE_SHARED=0
536576c7fc5fSjoerg ;;
536676c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
536776c7fc5fSjoergesac
536876c7fc5fSjoerg
536976c7fc5fSjoerg# Check whether --enable-embed-stdcxx was given.
537076c7fc5fSjoergif test "${enable_embed_stdcxx+set}" = set; then :
537176c7fc5fSjoerg  enableval=$enable_embed_stdcxx;
537276c7fc5fSjoergelse
537376c7fc5fSjoerg  enableval=default
537476c7fc5fSjoergfi
537576c7fc5fSjoerg
537676c7fc5fSjoergcase "$enableval" in
537776c7fc5fSjoerg  yes) ENABLE_EMBED_STDCXX=1
537876c7fc5fSjoerg ;;
537976c7fc5fSjoerg  no)  ENABLE_EMBED_STDCXX=0
538076c7fc5fSjoerg ;;
538176c7fc5fSjoerg  default) ENABLE_EMBED_STDCXX=0
538276c7fc5fSjoerg ;;
538376c7fc5fSjoerg  *) as_fn_error $? "Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
538476c7fc5fSjoergesac
538576c7fc5fSjoerg
538676c7fc5fSjoerg# Check whether --enable-backtraces was given.
538776c7fc5fSjoergif test "${enable_backtraces+set}" = set; then :
538876c7fc5fSjoerg  enableval=$enable_backtraces; case "$enableval" in
538976c7fc5fSjoerg    yes) llvm_cv_enable_backtraces="yes" ;;
539076c7fc5fSjoerg    no)  llvm_cv_enable_backtraces="no"  ;;
539176c7fc5fSjoerg    *) as_fn_error $? "Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
539276c7fc5fSjoerg  esac
539376c7fc5fSjoergelse
539476c7fc5fSjoerg  llvm_cv_enable_backtraces="yes"
539576c7fc5fSjoergfi
539676c7fc5fSjoerg
539776c7fc5fSjoergif test "$llvm_cv_enable_backtraces" = "yes" ; then
539876c7fc5fSjoerg
539976c7fc5fSjoerg$as_echo "#define ENABLE_BACKTRACES 1" >>confdefs.h
540076c7fc5fSjoerg
540176c7fc5fSjoergfi
540276c7fc5fSjoerg
540376c7fc5fSjoerg# Check whether --enable-crash-overrides was given.
540476c7fc5fSjoergif test "${enable_crash_overrides+set}" = set; then :
540576c7fc5fSjoerg  enableval=$enable_crash_overrides; case "$enableval" in
540676c7fc5fSjoerg    yes) llvm_cv_enable_crash_overrides="yes" ;;
540776c7fc5fSjoerg    no)  llvm_cv_enable_crash_overrides="no"  ;;
540876c7fc5fSjoerg    *) as_fn_error $? "Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
540976c7fc5fSjoerg  esac
541076c7fc5fSjoergelse
541176c7fc5fSjoerg  llvm_cv_enable_crash_overrides="yes"
541276c7fc5fSjoergfi
541376c7fc5fSjoerg
541476c7fc5fSjoergif test "$llvm_cv_enable_crash_overrides" = "yes" ; then
541576c7fc5fSjoerg
541676c7fc5fSjoerg$as_echo "#define ENABLE_CRASH_OVERRIDES 1" >>confdefs.h
541776c7fc5fSjoerg
541876c7fc5fSjoergfi
541976c7fc5fSjoerg
542076c7fc5fSjoergALL_TARGETS="AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore"
542176c7fc5fSjoergALL_TARGETS=$ALL_TARGETS
542276c7fc5fSjoerg
542376c7fc5fSjoerg
542476c7fc5fSjoergTARGETS_TO_BUILD=""
542576c7fc5fSjoerg# Check whether --enable-targets was given.
542676c7fc5fSjoergif test "${enable_targets+set}" = set; then :
542776c7fc5fSjoerg  enableval=$enable_targets;
542876c7fc5fSjoergelse
542976c7fc5fSjoerg  enableval=all
543076c7fc5fSjoergfi
543176c7fc5fSjoerg
543276c7fc5fSjoergif test "$enableval" = host-only ; then
543376c7fc5fSjoerg  enableval=host
543476c7fc5fSjoergfi
543576c7fc5fSjoergcase "$enableval" in
543676c7fc5fSjoerg  all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
543776c7fc5fSjoerg  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
543876c7fc5fSjoerg      case "$a_target" in
543976c7fc5fSjoerg        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
544076c7fc5fSjoerg        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
544176c7fc5fSjoerg        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
544276c7fc5fSjoerg        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
544376c7fc5fSjoerg        aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
544476c7fc5fSjoerg        arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
544576c7fc5fSjoerg        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
544676c7fc5fSjoerg        bpf)      TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
544776c7fc5fSjoerg        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
544876c7fc5fSjoerg        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
544976c7fc5fSjoerg        mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
545076c7fc5fSjoerg        mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
545176c7fc5fSjoerg        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
545276c7fc5fSjoerg        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
545376c7fc5fSjoerg        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
545476c7fc5fSjoerg        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
545576c7fc5fSjoerg        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
545676c7fc5fSjoerg        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
545776c7fc5fSjoerg        amdgpu)   TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
545876c7fc5fSjoerg        r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
545976c7fc5fSjoerg        wasm)     TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
546076c7fc5fSjoerg        host) case "$llvm_cv_target_arch" in
546176c7fc5fSjoerg            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
546276c7fc5fSjoerg            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
546376c7fc5fSjoerg            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
546476c7fc5fSjoerg            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
546576c7fc5fSjoerg            AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
546676c7fc5fSjoerg            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
546776c7fc5fSjoerg            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
546876c7fc5fSjoerg            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
546976c7fc5fSjoerg            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
547076c7fc5fSjoerg            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
547176c7fc5fSjoerg            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
547276c7fc5fSjoerg            SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
547376c7fc5fSjoerg            WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
547476c7fc5fSjoerg            *)       as_fn_error $? "Can not set target to build" "$LINENO" 5 ;;
547576c7fc5fSjoerg          esac ;;
547676c7fc5fSjoerg        *) as_fn_error $? "Unrecognized target $a_target" "$LINENO" 5 ;;
547776c7fc5fSjoerg      esac
547876c7fc5fSjoerg  done
547976c7fc5fSjoerg  ;;
548076c7fc5fSjoergesac
548176c7fc5fSjoerg
548276c7fc5fSjoerg# Check whether --enable-experimental-targets was given.
548376c7fc5fSjoergif test "${enable_experimental_targets+set}" = set; then :
548476c7fc5fSjoerg  enableval=$enable_experimental_targets;
548576c7fc5fSjoergelse
548676c7fc5fSjoerg  enableval=disable
548776c7fc5fSjoergfi
548876c7fc5fSjoerg
548976c7fc5fSjoerg
549076c7fc5fSjoergif test ${enableval} != "disable"
549176c7fc5fSjoergthen
549276c7fc5fSjoerg  TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
549376c7fc5fSjoergfi
549476c7fc5fSjoerg
549576c7fc5fSjoergTARGETS_TO_BUILD=$TARGETS_TO_BUILD
549676c7fc5fSjoerg
549776c7fc5fSjoerg
549876c7fc5fSjoergfor a_target in $TARGETS_TO_BUILD; do
549976c7fc5fSjoerg  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
550076c7fc5fSjoerg
550176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
550276c7fc5fSjoerg#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
550376c7fc5fSjoerg_ACEOF
550476c7fc5fSjoerg
550576c7fc5fSjoerg    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
550676c7fc5fSjoerg    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
550776c7fc5fSjoerg    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
550876c7fc5fSjoerg    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
550976c7fc5fSjoerg    if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
551076c7fc5fSjoerg      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
551176c7fc5fSjoerg    fi
551276c7fc5fSjoerg    if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
551376c7fc5fSjoerg      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
551476c7fc5fSjoerg    fi
551576c7fc5fSjoerg
551676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
551776c7fc5fSjoerg#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
551876c7fc5fSjoerg_ACEOF
551976c7fc5fSjoerg
552076c7fc5fSjoerg
552176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
552276c7fc5fSjoerg#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
552376c7fc5fSjoerg_ACEOF
552476c7fc5fSjoerg
552576c7fc5fSjoerg
552676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
552776c7fc5fSjoerg#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
552876c7fc5fSjoerg_ACEOF
552976c7fc5fSjoerg
553076c7fc5fSjoerg
553176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
553276c7fc5fSjoerg#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
553376c7fc5fSjoerg_ACEOF
553476c7fc5fSjoerg
553576c7fc5fSjoerg    if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
553676c7fc5fSjoerg
553776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
553876c7fc5fSjoerg#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
553976c7fc5fSjoerg_ACEOF
554076c7fc5fSjoerg
554176c7fc5fSjoerg    fi
554276c7fc5fSjoerg    if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
554376c7fc5fSjoerg
554476c7fc5fSjoergcat >>confdefs.h <<_ACEOF
554576c7fc5fSjoerg#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
554676c7fc5fSjoerg_ACEOF
554776c7fc5fSjoerg
554876c7fc5fSjoerg    fi
554976c7fc5fSjoerg  fi
555076c7fc5fSjoergdone
555176c7fc5fSjoerg
555276c7fc5fSjoergLLVM_ENUM_TARGETS=""
555376c7fc5fSjoergLLVM_ENUM_ASM_PRINTERS=""
555476c7fc5fSjoergLLVM_ENUM_ASM_PARSERS=""
555576c7fc5fSjoergLLVM_ENUM_DISASSEMBLERS=""
555676c7fc5fSjoergfor target_to_build in $TARGETS_TO_BUILD; do
555776c7fc5fSjoerg  LLVM_ENUM_TARGETS="$LLVM_ENUM_TARGETS${as_nl}LLVM_TARGET($target_to_build)"
555876c7fc5fSjoerg  has_asm_printer=0
555976c7fc5fSjoerg  for asm_printer in ${llvm_srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp; do
556076c7fc5fSjoerg    if test -f "$asm_printer"; then
556176c7fc5fSjoerg      has_asm_printer=1
556276c7fc5fSjoerg    fi
556376c7fc5fSjoerg  done
556476c7fc5fSjoerg  if test "$has_asm_printer" = 1; then
556576c7fc5fSjoerg    LLVM_ENUM_ASM_PRINTERS="$LLVM_ENUM_ASM_PRINTERS${as_nl}LLVM_ASM_PRINTER($target_to_build)";
556676c7fc5fSjoerg  fi
556776c7fc5fSjoerg  if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/AsmParser/CMakeLists.txt ; then
556876c7fc5fSjoerg    LLVM_ENUM_ASM_PARSERS="$LLVM_ENUM_ASM_PARSERS${as_nl}LLVM_ASM_PARSER($target_to_build)";
556976c7fc5fSjoerg  fi
557076c7fc5fSjoerg  if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/Disassembler/CMakeLists.txt ; then
557176c7fc5fSjoerg    LLVM_ENUM_DISASSEMBLERS="$LLVM_ENUM_DISASSEMBLERS${as_nl}LLVM_DISASSEMBLER($target_to_build)";
557276c7fc5fSjoerg  fi
557376c7fc5fSjoergdone
557476c7fc5fSjoergLLVM_ENUM_TARGETS="${LLVM_ENUM_TARGETS#${as_nl}}${as_nl}"
557576c7fc5fSjoergLLVM_ENUM_ASM_PRINTERS="${LLVM_ENUM_ASM_PRINTERS#${as_nl}}${as_nl}"
557676c7fc5fSjoergLLVM_ENUM_ASM_PARSERS="${LLVM_ENUM_ASM_PARSERS#${as_nl}}${as_nl}"
557776c7fc5fSjoergLLVM_ENUM_DISASSEMBLERS="${LLVM_ENUM_DISASSEMBLERS#${as_nl}}${as_nl}"
557876c7fc5fSjoerg
557976c7fc5fSjoerg
558076c7fc5fSjoerg
558176c7fc5fSjoerg
558276c7fc5fSjoerg
558376c7fc5fSjoerg
558476c7fc5fSjoerg# Check whether --with-optimize-option was given.
558576c7fc5fSjoergif test "${with_optimize_option+set}" = set; then :
558676c7fc5fSjoerg  withval=$with_optimize_option;
558776c7fc5fSjoergelse
558876c7fc5fSjoerg  withval=default
558976c7fc5fSjoergfi
559076c7fc5fSjoerg
559176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
559276c7fc5fSjoerg$as_echo_n "checking optimization flags... " >&6; }
559376c7fc5fSjoergcase "$withval" in
559476c7fc5fSjoerg  default)
559576c7fc5fSjoerg    case "$llvm_cv_os_type" in
559676c7fc5fSjoerg    FreeBSD) optimize_option=-O2 ;;
559776c7fc5fSjoerg    MingW) optimize_option=-O2 ;;
559876c7fc5fSjoerg    *)     optimize_option=-O3 ;;
559976c7fc5fSjoerg    esac ;;
560076c7fc5fSjoerg  *) optimize_option="$withval" ;;
560176c7fc5fSjoergesac
560276c7fc5fSjoergOPTIMIZE_OPTION=$optimize_option
560376c7fc5fSjoerg
560476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
560576c7fc5fSjoerg$as_echo "$optimize_option" >&6; }
560676c7fc5fSjoerg
560776c7fc5fSjoerg
560876c7fc5fSjoerg# Check whether --with-extra-options was given.
560976c7fc5fSjoergif test "${with_extra_options+set}" = set; then :
561076c7fc5fSjoerg  withval=$with_extra_options;
561176c7fc5fSjoergelse
561276c7fc5fSjoerg  withval=default
561376c7fc5fSjoergfi
561476c7fc5fSjoerg
561576c7fc5fSjoergcase "$withval" in
561676c7fc5fSjoerg  default) EXTRA_OPTIONS= ;;
561776c7fc5fSjoerg  *) EXTRA_OPTIONS=$withval ;;
561876c7fc5fSjoergesac
561976c7fc5fSjoergEXTRA_OPTIONS=$EXTRA_OPTIONS
562076c7fc5fSjoerg
562176c7fc5fSjoerg
562276c7fc5fSjoerg
562376c7fc5fSjoerg# Check whether --with-extra-ld-options was given.
562476c7fc5fSjoergif test "${with_extra_ld_options+set}" = set; then :
562576c7fc5fSjoerg  withval=$with_extra_ld_options;
562676c7fc5fSjoergelse
562776c7fc5fSjoerg  withval=default
562876c7fc5fSjoergfi
562976c7fc5fSjoerg
563076c7fc5fSjoergcase "$withval" in
563176c7fc5fSjoerg  default) EXTRA_LD_OPTIONS= ;;
563276c7fc5fSjoerg  *) EXTRA_LD_OPTIONS=$withval ;;
563376c7fc5fSjoergesac
563476c7fc5fSjoergEXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
563576c7fc5fSjoerg
563676c7fc5fSjoerg
563776c7fc5fSjoerg# Check whether --enable-bindings was given.
563876c7fc5fSjoergif test "${enable_bindings+set}" = set; then :
563976c7fc5fSjoerg  enableval=$enable_bindings;
564076c7fc5fSjoergelse
564176c7fc5fSjoerg  enableval=default
564276c7fc5fSjoergfi
564376c7fc5fSjoerg
564476c7fc5fSjoergBINDINGS_TO_BUILD=""
564576c7fc5fSjoergcase "$enableval" in
564676c7fc5fSjoerg  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
564776c7fc5fSjoerg  all ) BINDINGS_TO_BUILD="ocaml" ;;
564876c7fc5fSjoerg  none | no) BINDINGS_TO_BUILD="" ;;
564976c7fc5fSjoerg  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
565076c7fc5fSjoerg      case "$a_binding" in
565176c7fc5fSjoerg        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
565276c7fc5fSjoerg        *) as_fn_error $? "Unrecognized binding $a_binding" "$LINENO" 5 ;;
565376c7fc5fSjoerg      esac
565476c7fc5fSjoerg  done
565576c7fc5fSjoerg  ;;
565676c7fc5fSjoergesac
565776c7fc5fSjoerg
565876c7fc5fSjoerg
565976c7fc5fSjoerg# Check whether --with-ocaml-libdir was given.
566076c7fc5fSjoergif test "${with_ocaml_libdir+set}" = set; then :
566176c7fc5fSjoerg  withval=$with_ocaml_libdir;
566276c7fc5fSjoergelse
566376c7fc5fSjoerg  withval=auto
566476c7fc5fSjoergfi
566576c7fc5fSjoerg
566676c7fc5fSjoergcase "$withval" in
566776c7fc5fSjoerg  auto) with_ocaml_libdir="$withval" ;;
566876c7fc5fSjoerg  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
566976c7fc5fSjoerg  *) as_fn_error $? "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
567076c7fc5fSjoergesac
567176c7fc5fSjoerg
567276c7fc5fSjoerg
567376c7fc5fSjoerg# Check whether --with-clang-srcdir was given.
567476c7fc5fSjoergif test "${with_clang_srcdir+set}" = set; then :
567576c7fc5fSjoerg  withval=$with_clang_srcdir;
567676c7fc5fSjoergelse
567776c7fc5fSjoerg  withval="-"
567876c7fc5fSjoergfi
567976c7fc5fSjoerg
568076c7fc5fSjoergcase "$withval" in
568176c7fc5fSjoerg  -) clang_src_root="" ;;
568276c7fc5fSjoerg  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
568376c7fc5fSjoerg  *) clang_src_root="$ac_pwd/$withval" ;;
568476c7fc5fSjoergesac
568576c7fc5fSjoergCLANG_SRC_ROOT=$clang_src_root
568676c7fc5fSjoerg
568776c7fc5fSjoerg
568876c7fc5fSjoerg
568976c7fc5fSjoerg# Check whether --with-clang-resource-dir was given.
569076c7fc5fSjoergif test "${with_clang_resource_dir+set}" = set; then :
569176c7fc5fSjoerg  withval=$with_clang_resource_dir;
569276c7fc5fSjoergelse
569376c7fc5fSjoerg  withval=""
569476c7fc5fSjoergfi
569576c7fc5fSjoerg
569676c7fc5fSjoerg
569776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
569876c7fc5fSjoerg#define CLANG_RESOURCE_DIR "$withval"
569976c7fc5fSjoerg_ACEOF
570076c7fc5fSjoerg
570176c7fc5fSjoerg
570276c7fc5fSjoerg
570376c7fc5fSjoerg# Check whether --with-c-include-dirs was given.
570476c7fc5fSjoergif test "${with_c_include_dirs+set}" = set; then :
570576c7fc5fSjoerg  withval=$with_c_include_dirs;
570676c7fc5fSjoergelse
570776c7fc5fSjoerg  withval=""
570876c7fc5fSjoergfi
570976c7fc5fSjoerg
571076c7fc5fSjoerg
571176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
571276c7fc5fSjoerg#define C_INCLUDE_DIRS "$withval"
571376c7fc5fSjoerg_ACEOF
571476c7fc5fSjoerg
571576c7fc5fSjoerg
571676c7fc5fSjoerg
571776c7fc5fSjoerg# Check whether --with-clang-default-openmp-runtime was given.
571876c7fc5fSjoergif test "${with_clang_default_openmp_runtime+set}" = set; then :
571976c7fc5fSjoerg  withval=$with_clang_default_openmp_runtime;
572076c7fc5fSjoergelse
572176c7fc5fSjoerg  withval="libomp"
572276c7fc5fSjoergfi
572376c7fc5fSjoerg
572476c7fc5fSjoerg
572576c7fc5fSjoerg
572676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
572776c7fc5fSjoerg#define CLANG_ENABLE_ARCMT 1
572876c7fc5fSjoerg_ACEOF
572976c7fc5fSjoerg
573076c7fc5fSjoerg
573176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
573276c7fc5fSjoerg#define CLANG_ENABLE_OBJC_REWRITER 1
573376c7fc5fSjoerg_ACEOF
573476c7fc5fSjoerg
573576c7fc5fSjoerg
573676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
573776c7fc5fSjoerg#define CLANG_ENABLE_STATIC_ANALYZER 1
573876c7fc5fSjoerg_ACEOF
573976c7fc5fSjoerg
574076c7fc5fSjoerg
5741*53d1339bSjoergcat >>confdefs.h <<_ACEOF
5742*53d1339bSjoerg#define CLANG_SPAWN_CC1 1
5743*53d1339bSjoerg_ACEOF
5744*53d1339bSjoerg
5745*53d1339bSjoerg
574676c7fc5fSjoerg
574776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
574876c7fc5fSjoerg#define ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER 0
574976c7fc5fSjoerg_ACEOF
575076c7fc5fSjoerg
575176c7fc5fSjoerg
575276c7fc5fSjoergcat >>confdefs.h <<_ACEOF
575376c7fc5fSjoerg#define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "sm_35"
575476c7fc5fSjoerg_ACEOF
575576c7fc5fSjoerg
575676c7fc5fSjoerg
575776c7fc5fSjoerg
575876c7fc5fSjoergcat >>confdefs.h <<_ACEOF
575976c7fc5fSjoerg#define ENABLE_X86_RELAX_RELOCATIONS 0
576076c7fc5fSjoerg_ACEOF
576176c7fc5fSjoerg
576276c7fc5fSjoerg
576376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
576476c7fc5fSjoerg#define CLANG_DEFAULT_CXX_STDLIB ""
576576c7fc5fSjoerg_ACEOF
576676c7fc5fSjoerg
576776c7fc5fSjoerg
576876c7fc5fSjoergcat >>confdefs.h <<_ACEOF
576976c7fc5fSjoerg#define CLANG_DEFAULT_LINKER ""
577076c7fc5fSjoerg_ACEOF
577176c7fc5fSjoerg
577276c7fc5fSjoerg
577376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
577476c7fc5fSjoerg#define CLANG_DEFAULT_OBJCOPY "objcopy"
577576c7fc5fSjoerg_ACEOF
577676c7fc5fSjoerg
577776c7fc5fSjoerg
577876c7fc5fSjoergcat >>confdefs.h <<_ACEOF
577976c7fc5fSjoerg#define CLANG_DEFAULT_RTLIB ""
578076c7fc5fSjoerg_ACEOF
578176c7fc5fSjoerg
578276c7fc5fSjoerg
578376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
578476c7fc5fSjoerg#define CLANG_DEFAULT_UNWINDLIB "none"
578576c7fc5fSjoerg_ACEOF
578676c7fc5fSjoerg
578776c7fc5fSjoerg
578876c7fc5fSjoergcat >>confdefs.h <<_ACEOF
578976c7fc5fSjoerg#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
579076c7fc5fSjoerg_ACEOF
579176c7fc5fSjoerg
579276c7fc5fSjoerg
579376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
5794*53d1339bSjoerg#define CLANG_SYSTEMZ_DEFAULT_ARCH "z10"
5795*53d1339bSjoerg_ACEOF
5796*53d1339bSjoerg
5797*53d1339bSjoerg
5798*53d1339bSjoergcat >>confdefs.h <<_ACEOF
579976c7fc5fSjoerg#define CLANG_LIBDIR_SUFFIX ""
580076c7fc5fSjoerg_ACEOF
580176c7fc5fSjoerg
580276c7fc5fSjoerg
580376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
580476c7fc5fSjoerg#define DEFAULT_SYSROOT ""
580576c7fc5fSjoerg_ACEOF
580676c7fc5fSjoerg
580776c7fc5fSjoerg
580876c7fc5fSjoergcat >>confdefs.h <<_ACEOF
580976c7fc5fSjoerg#define GCC_INSTALL_PREFIX ""
581076c7fc5fSjoerg_ACEOF
581176c7fc5fSjoerg
581276c7fc5fSjoerg
581376c7fc5fSjoerg
581476c7fc5fSjoerg# Check whether --with-binutils-include was given.
581576c7fc5fSjoergif test "${with_binutils_include+set}" = set; then :
581676c7fc5fSjoerg  withval=$with_binutils_include;
581776c7fc5fSjoergelse
581876c7fc5fSjoerg  withval=default
581976c7fc5fSjoergfi
582076c7fc5fSjoerg
582176c7fc5fSjoergcase "$withval" in
582276c7fc5fSjoerg  default) WITH_BINUTILS_INCDIR=default ;;
582376c7fc5fSjoerg  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
582476c7fc5fSjoerg  *) as_fn_error $? "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
582576c7fc5fSjoergesac
582676c7fc5fSjoergif test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
582776c7fc5fSjoerg  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
582876c7fc5fSjoerg
582976c7fc5fSjoerg  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
583076c7fc5fSjoerg     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
583176c7fc5fSjoerg     as_fn_error $? "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
583276c7fc5fSjoerg  fi
583376c7fc5fSjoergfi
583476c7fc5fSjoerg
583576c7fc5fSjoerg
583676c7fc5fSjoerg# Check whether --with-bug-report-url was given.
583776c7fc5fSjoergif test "${with_bug_report_url+set}" = set; then :
583876c7fc5fSjoerg  withval=$with_bug_report_url;
583976c7fc5fSjoergelse
584076c7fc5fSjoerg  withval="http://llvm.org/bugs/"
584176c7fc5fSjoergfi
584276c7fc5fSjoerg
584376c7fc5fSjoerg
584476c7fc5fSjoergcat >>confdefs.h <<_ACEOF
584576c7fc5fSjoerg#define BUG_REPORT_URL "$withval"
584676c7fc5fSjoerg_ACEOF
584776c7fc5fSjoerg
584876c7fc5fSjoerg
584976c7fc5fSjoerg# Check whether --enable-terminfo was given.
585076c7fc5fSjoergif test "${enable_terminfo+set}" = set; then :
585176c7fc5fSjoerg  enableval=$enable_terminfo; case "$enableval" in
585276c7fc5fSjoerg    yes) llvm_cv_enable_terminfo="yes" ;;
585376c7fc5fSjoerg    no)  llvm_cv_enable_terminfo="no"  ;;
585476c7fc5fSjoerg    *) as_fn_error $? "Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
585576c7fc5fSjoerg  esac
585676c7fc5fSjoergelse
585776c7fc5fSjoerg  llvm_cv_enable_terminfo="yes"
585876c7fc5fSjoergfi
585976c7fc5fSjoerg
586076c7fc5fSjoergcase "$llvm_cv_enable_terminfo" in
586176c7fc5fSjoerg  yes) ENABLE_TERMINFO=1
586276c7fc5fSjoerg ;;
586376c7fc5fSjoerg  no)  ENABLE_TERMINFO=0
586476c7fc5fSjoerg ;;
586576c7fc5fSjoergesac
586676c7fc5fSjoerg
586776c7fc5fSjoerg# Check whether --enable-libedit was given.
586876c7fc5fSjoergif test "${enable_libedit+set}" = set; then :
586976c7fc5fSjoerg  enableval=$enable_libedit; case "$enableval" in
587076c7fc5fSjoerg    yes) llvm_cv_enable_libedit="yes" ;;
587176c7fc5fSjoerg    no)  llvm_cv_enable_libedit="no"  ;;
587276c7fc5fSjoerg    *) as_fn_error $? "Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
587376c7fc5fSjoerg  esac
587476c7fc5fSjoergelse
587576c7fc5fSjoerg  llvm_cv_enable_libedit="yes"
587676c7fc5fSjoergfi
587776c7fc5fSjoerg
587876c7fc5fSjoerg
587976c7fc5fSjoerg# Check whether --enable-libffi was given.
588076c7fc5fSjoergif test "${enable_libffi+set}" = set; then :
588176c7fc5fSjoerg  enableval=$enable_libffi; case "$enableval" in
588276c7fc5fSjoerg    yes) llvm_cv_enable_libffi="yes" ;;
588376c7fc5fSjoerg    no)  llvm_cv_enable_libffi="no"  ;;
588476c7fc5fSjoerg    *) as_fn_error $? "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
588576c7fc5fSjoerg  esac
588676c7fc5fSjoergelse
588776c7fc5fSjoerg  llvm_cv_enable_libffi=no
588876c7fc5fSjoergfi
588976c7fc5fSjoerg
589076c7fc5fSjoerg
589176c7fc5fSjoerg
589276c7fc5fSjoerg# Check whether --with-internal-prefix was given.
589376c7fc5fSjoergif test "${with_internal_prefix+set}" = set; then :
589476c7fc5fSjoerg  withval=$with_internal_prefix;
589576c7fc5fSjoergelse
589676c7fc5fSjoerg  withval=""
589776c7fc5fSjoergfi
589876c7fc5fSjoerg
589976c7fc5fSjoergINTERNAL_PREFIX=$withval
590076c7fc5fSjoerg
590176c7fc5fSjoerg
590276c7fc5fSjoerg
590376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
590476c7fc5fSjoerg$as_echo_n "checking for GNU make... " >&6; }
590576c7fc5fSjoergif ${llvm_cv_gnu_make_command+:} false; then :
590676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
590776c7fc5fSjoergelse
590876c7fc5fSjoerg  llvm_cv_gnu_make_command=''
590976c7fc5fSjoerg for a in "$MAKE" make gmake gnumake ; do
591076c7fc5fSjoerg  if test -z "$a" ; then continue ; fi ;
591176c7fc5fSjoerg  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
591276c7fc5fSjoerg  then
591376c7fc5fSjoerg   llvm_cv_gnu_make_command=$a ;
591476c7fc5fSjoerg   break;
591576c7fc5fSjoerg  fi
591676c7fc5fSjoerg done
591776c7fc5fSjoergfi
591876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
591976c7fc5fSjoerg$as_echo "$llvm_cv_gnu_make_command" >&6; }
592076c7fc5fSjoerg if test "x$llvm_cv_gnu_make_command" != "x"  ; then
592176c7fc5fSjoerg   ifGNUmake='' ;
592276c7fc5fSjoerg else
592376c7fc5fSjoerg   ifGNUmake='#' ;
592476c7fc5fSjoerg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
592576c7fc5fSjoerg$as_echo "\"Not found\"" >&6; };
592676c7fc5fSjoerg fi
592776c7fc5fSjoerg
592876c7fc5fSjoerg
592976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
593076c7fc5fSjoerg$as_echo_n "checking whether ln -s works... " >&6; }
593176c7fc5fSjoergLN_S=$as_ln_s
593276c7fc5fSjoergif test "$LN_S" = "ln -s"; then
593376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
593476c7fc5fSjoerg$as_echo "yes" >&6; }
593576c7fc5fSjoergelse
593676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
593776c7fc5fSjoerg$as_echo "no, using $LN_S" >&6; }
593876c7fc5fSjoergfi
593976c7fc5fSjoerg
594076c7fc5fSjoerg# Extract the first word of "nm", so it can be a program name with args.
594176c7fc5fSjoergset dummy nm; ac_word=$2
594276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
594376c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
594476c7fc5fSjoergif ${ac_cv_path_NM+:} false; then :
594576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
594676c7fc5fSjoergelse
594776c7fc5fSjoerg  case $NM in
594876c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
594976c7fc5fSjoerg  ac_cv_path_NM="$NM" # Let the user override the test with a path.
595076c7fc5fSjoerg  ;;
595176c7fc5fSjoerg  *)
595276c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
595376c7fc5fSjoergfor as_dir in $PATH
595476c7fc5fSjoergdo
595576c7fc5fSjoerg  IFS=$as_save_IFS
595676c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
595776c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
595876c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
595976c7fc5fSjoerg    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
596076c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
596176c7fc5fSjoerg    break 2
596276c7fc5fSjoerg  fi
596376c7fc5fSjoergdone
596476c7fc5fSjoerg  done
596576c7fc5fSjoergIFS=$as_save_IFS
596676c7fc5fSjoerg
596776c7fc5fSjoerg  test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
596876c7fc5fSjoerg  ;;
596976c7fc5fSjoergesac
597076c7fc5fSjoergfi
597176c7fc5fSjoergNM=$ac_cv_path_NM
597276c7fc5fSjoergif test -n "$NM"; then
597376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
597476c7fc5fSjoerg$as_echo "$NM" >&6; }
597576c7fc5fSjoergelse
597676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
597776c7fc5fSjoerg$as_echo "no" >&6; }
597876c7fc5fSjoergfi
597976c7fc5fSjoerg
598076c7fc5fSjoerg
598176c7fc5fSjoerg# Extract the first word of "cmp", so it can be a program name with args.
598276c7fc5fSjoergset dummy cmp; ac_word=$2
598376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
598476c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
598576c7fc5fSjoergif ${ac_cv_path_CMP+:} false; then :
598676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
598776c7fc5fSjoergelse
598876c7fc5fSjoerg  case $CMP in
598976c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
599076c7fc5fSjoerg  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
599176c7fc5fSjoerg  ;;
599276c7fc5fSjoerg  *)
599376c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
599476c7fc5fSjoergfor as_dir in $PATH
599576c7fc5fSjoergdo
599676c7fc5fSjoerg  IFS=$as_save_IFS
599776c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
599876c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
599976c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
600076c7fc5fSjoerg    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
600176c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
600276c7fc5fSjoerg    break 2
600376c7fc5fSjoerg  fi
600476c7fc5fSjoergdone
600576c7fc5fSjoerg  done
600676c7fc5fSjoergIFS=$as_save_IFS
600776c7fc5fSjoerg
600876c7fc5fSjoerg  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
600976c7fc5fSjoerg  ;;
601076c7fc5fSjoergesac
601176c7fc5fSjoergfi
601276c7fc5fSjoergCMP=$ac_cv_path_CMP
601376c7fc5fSjoergif test -n "$CMP"; then
601476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
601576c7fc5fSjoerg$as_echo "$CMP" >&6; }
601676c7fc5fSjoergelse
601776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
601876c7fc5fSjoerg$as_echo "no" >&6; }
601976c7fc5fSjoergfi
602076c7fc5fSjoerg
602176c7fc5fSjoerg
602276c7fc5fSjoerg# Extract the first word of "cp", so it can be a program name with args.
602376c7fc5fSjoergset dummy cp; ac_word=$2
602476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
602576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
602676c7fc5fSjoergif ${ac_cv_path_CP+:} false; then :
602776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
602876c7fc5fSjoergelse
602976c7fc5fSjoerg  case $CP in
603076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
603176c7fc5fSjoerg  ac_cv_path_CP="$CP" # Let the user override the test with a path.
603276c7fc5fSjoerg  ;;
603376c7fc5fSjoerg  *)
603476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
603576c7fc5fSjoergfor as_dir in $PATH
603676c7fc5fSjoergdo
603776c7fc5fSjoerg  IFS=$as_save_IFS
603876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
603976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
604076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
604176c7fc5fSjoerg    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
604276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
604376c7fc5fSjoerg    break 2
604476c7fc5fSjoerg  fi
604576c7fc5fSjoergdone
604676c7fc5fSjoerg  done
604776c7fc5fSjoergIFS=$as_save_IFS
604876c7fc5fSjoerg
604976c7fc5fSjoerg  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
605076c7fc5fSjoerg  ;;
605176c7fc5fSjoergesac
605276c7fc5fSjoergfi
605376c7fc5fSjoergCP=$ac_cv_path_CP
605476c7fc5fSjoergif test -n "$CP"; then
605576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
605676c7fc5fSjoerg$as_echo "$CP" >&6; }
605776c7fc5fSjoergelse
605876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
605976c7fc5fSjoerg$as_echo "no" >&6; }
606076c7fc5fSjoergfi
606176c7fc5fSjoerg
606276c7fc5fSjoerg
606376c7fc5fSjoerg# Extract the first word of "date", so it can be a program name with args.
606476c7fc5fSjoergset dummy date; ac_word=$2
606576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
606676c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
606776c7fc5fSjoergif ${ac_cv_path_DATE+:} false; then :
606876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
606976c7fc5fSjoergelse
607076c7fc5fSjoerg  case $DATE in
607176c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
607276c7fc5fSjoerg  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
607376c7fc5fSjoerg  ;;
607476c7fc5fSjoerg  *)
607576c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
607676c7fc5fSjoergfor as_dir in $PATH
607776c7fc5fSjoergdo
607876c7fc5fSjoerg  IFS=$as_save_IFS
607976c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
608076c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
608176c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
608276c7fc5fSjoerg    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
608376c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
608476c7fc5fSjoerg    break 2
608576c7fc5fSjoerg  fi
608676c7fc5fSjoergdone
608776c7fc5fSjoerg  done
608876c7fc5fSjoergIFS=$as_save_IFS
608976c7fc5fSjoerg
609076c7fc5fSjoerg  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
609176c7fc5fSjoerg  ;;
609276c7fc5fSjoergesac
609376c7fc5fSjoergfi
609476c7fc5fSjoergDATE=$ac_cv_path_DATE
609576c7fc5fSjoergif test -n "$DATE"; then
609676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
609776c7fc5fSjoerg$as_echo "$DATE" >&6; }
609876c7fc5fSjoergelse
609976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
610076c7fc5fSjoerg$as_echo "no" >&6; }
610176c7fc5fSjoergfi
610276c7fc5fSjoerg
610376c7fc5fSjoerg
610476c7fc5fSjoerg# Extract the first word of "find", so it can be a program name with args.
610576c7fc5fSjoergset dummy find; ac_word=$2
610676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
610776c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
610876c7fc5fSjoergif ${ac_cv_path_FIND+:} false; then :
610976c7fc5fSjoerg  $as_echo_n "(cached) " >&6
611076c7fc5fSjoergelse
611176c7fc5fSjoerg  case $FIND in
611276c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
611376c7fc5fSjoerg  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
611476c7fc5fSjoerg  ;;
611576c7fc5fSjoerg  *)
611676c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
611776c7fc5fSjoergfor as_dir in $PATH
611876c7fc5fSjoergdo
611976c7fc5fSjoerg  IFS=$as_save_IFS
612076c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
612176c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
612276c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
612376c7fc5fSjoerg    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
612476c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
612576c7fc5fSjoerg    break 2
612676c7fc5fSjoerg  fi
612776c7fc5fSjoergdone
612876c7fc5fSjoerg  done
612976c7fc5fSjoergIFS=$as_save_IFS
613076c7fc5fSjoerg
613176c7fc5fSjoerg  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
613276c7fc5fSjoerg  ;;
613376c7fc5fSjoergesac
613476c7fc5fSjoergfi
613576c7fc5fSjoergFIND=$ac_cv_path_FIND
613676c7fc5fSjoergif test -n "$FIND"; then
613776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
613876c7fc5fSjoerg$as_echo "$FIND" >&6; }
613976c7fc5fSjoergelse
614076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
614176c7fc5fSjoerg$as_echo "no" >&6; }
614276c7fc5fSjoergfi
614376c7fc5fSjoerg
614476c7fc5fSjoerg
614576c7fc5fSjoerg# Extract the first word of "grep", so it can be a program name with args.
614676c7fc5fSjoergset dummy grep; ac_word=$2
614776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
614876c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
614976c7fc5fSjoergif ${ac_cv_path_GREP+:} false; then :
615076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
615176c7fc5fSjoergelse
615276c7fc5fSjoerg  case $GREP in
615376c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
615476c7fc5fSjoerg  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
615576c7fc5fSjoerg  ;;
615676c7fc5fSjoerg  *)
615776c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
615876c7fc5fSjoergfor as_dir in $PATH
615976c7fc5fSjoergdo
616076c7fc5fSjoerg  IFS=$as_save_IFS
616176c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
616276c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
616376c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
616476c7fc5fSjoerg    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
616576c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
616676c7fc5fSjoerg    break 2
616776c7fc5fSjoerg  fi
616876c7fc5fSjoergdone
616976c7fc5fSjoerg  done
617076c7fc5fSjoergIFS=$as_save_IFS
617176c7fc5fSjoerg
617276c7fc5fSjoerg  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
617376c7fc5fSjoerg  ;;
617476c7fc5fSjoergesac
617576c7fc5fSjoergfi
617676c7fc5fSjoergGREP=$ac_cv_path_GREP
617776c7fc5fSjoergif test -n "$GREP"; then
617876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
617976c7fc5fSjoerg$as_echo "$GREP" >&6; }
618076c7fc5fSjoergelse
618176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
618276c7fc5fSjoerg$as_echo "no" >&6; }
618376c7fc5fSjoergfi
618476c7fc5fSjoerg
618576c7fc5fSjoerg
618676c7fc5fSjoerg# Extract the first word of "mkdir", so it can be a program name with args.
618776c7fc5fSjoergset dummy mkdir; ac_word=$2
618876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
618976c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
619076c7fc5fSjoergif ${ac_cv_path_MKDIR+:} false; then :
619176c7fc5fSjoerg  $as_echo_n "(cached) " >&6
619276c7fc5fSjoergelse
619376c7fc5fSjoerg  case $MKDIR in
619476c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
619576c7fc5fSjoerg  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
619676c7fc5fSjoerg  ;;
619776c7fc5fSjoerg  *)
619876c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
619976c7fc5fSjoergfor as_dir in $PATH
620076c7fc5fSjoergdo
620176c7fc5fSjoerg  IFS=$as_save_IFS
620276c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
620376c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
620476c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
620576c7fc5fSjoerg    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
620676c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
620776c7fc5fSjoerg    break 2
620876c7fc5fSjoerg  fi
620976c7fc5fSjoergdone
621076c7fc5fSjoerg  done
621176c7fc5fSjoergIFS=$as_save_IFS
621276c7fc5fSjoerg
621376c7fc5fSjoerg  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
621476c7fc5fSjoerg  ;;
621576c7fc5fSjoergesac
621676c7fc5fSjoergfi
621776c7fc5fSjoergMKDIR=$ac_cv_path_MKDIR
621876c7fc5fSjoergif test -n "$MKDIR"; then
621976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
622076c7fc5fSjoerg$as_echo "$MKDIR" >&6; }
622176c7fc5fSjoergelse
622276c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
622376c7fc5fSjoerg$as_echo "no" >&6; }
622476c7fc5fSjoergfi
622576c7fc5fSjoerg
622676c7fc5fSjoerg
622776c7fc5fSjoerg# Extract the first word of "mv", so it can be a program name with args.
622876c7fc5fSjoergset dummy mv; ac_word=$2
622976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
623076c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
623176c7fc5fSjoergif ${ac_cv_path_MV+:} false; then :
623276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
623376c7fc5fSjoergelse
623476c7fc5fSjoerg  case $MV in
623576c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
623676c7fc5fSjoerg  ac_cv_path_MV="$MV" # Let the user override the test with a path.
623776c7fc5fSjoerg  ;;
623876c7fc5fSjoerg  *)
623976c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
624076c7fc5fSjoergfor as_dir in $PATH
624176c7fc5fSjoergdo
624276c7fc5fSjoerg  IFS=$as_save_IFS
624376c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
624476c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
624576c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
624676c7fc5fSjoerg    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
624776c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
624876c7fc5fSjoerg    break 2
624976c7fc5fSjoerg  fi
625076c7fc5fSjoergdone
625176c7fc5fSjoerg  done
625276c7fc5fSjoergIFS=$as_save_IFS
625376c7fc5fSjoerg
625476c7fc5fSjoerg  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
625576c7fc5fSjoerg  ;;
625676c7fc5fSjoergesac
625776c7fc5fSjoergfi
625876c7fc5fSjoergMV=$ac_cv_path_MV
625976c7fc5fSjoergif test -n "$MV"; then
626076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
626176c7fc5fSjoerg$as_echo "$MV" >&6; }
626276c7fc5fSjoergelse
626376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
626476c7fc5fSjoerg$as_echo "no" >&6; }
626576c7fc5fSjoergfi
626676c7fc5fSjoerg
626776c7fc5fSjoerg
626876c7fc5fSjoergif test -n "$ac_tool_prefix"; then
626976c7fc5fSjoerg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
627076c7fc5fSjoergset dummy ${ac_tool_prefix}ranlib; ac_word=$2
627176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
627276c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
627376c7fc5fSjoergif ${ac_cv_prog_RANLIB+:} false; then :
627476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
627576c7fc5fSjoergelse
627676c7fc5fSjoerg  if test -n "$RANLIB"; then
627776c7fc5fSjoerg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
627876c7fc5fSjoergelse
627976c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
628076c7fc5fSjoergfor as_dir in $PATH
628176c7fc5fSjoergdo
628276c7fc5fSjoerg  IFS=$as_save_IFS
628376c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
628476c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
628576c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
628676c7fc5fSjoerg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
628776c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
628876c7fc5fSjoerg    break 2
628976c7fc5fSjoerg  fi
629076c7fc5fSjoergdone
629176c7fc5fSjoerg  done
629276c7fc5fSjoergIFS=$as_save_IFS
629376c7fc5fSjoerg
629476c7fc5fSjoergfi
629576c7fc5fSjoergfi
629676c7fc5fSjoergRANLIB=$ac_cv_prog_RANLIB
629776c7fc5fSjoergif test -n "$RANLIB"; then
629876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
629976c7fc5fSjoerg$as_echo "$RANLIB" >&6; }
630076c7fc5fSjoergelse
630176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
630276c7fc5fSjoerg$as_echo "no" >&6; }
630376c7fc5fSjoergfi
630476c7fc5fSjoerg
630576c7fc5fSjoerg
630676c7fc5fSjoergfi
630776c7fc5fSjoergif test -z "$ac_cv_prog_RANLIB"; then
630876c7fc5fSjoerg  ac_ct_RANLIB=$RANLIB
630976c7fc5fSjoerg  # Extract the first word of "ranlib", so it can be a program name with args.
631076c7fc5fSjoergset dummy ranlib; ac_word=$2
631176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
631276c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
631376c7fc5fSjoergif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
631476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
631576c7fc5fSjoergelse
631676c7fc5fSjoerg  if test -n "$ac_ct_RANLIB"; then
631776c7fc5fSjoerg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
631876c7fc5fSjoergelse
631976c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632076c7fc5fSjoergfor as_dir in $PATH
632176c7fc5fSjoergdo
632276c7fc5fSjoerg  IFS=$as_save_IFS
632376c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
632476c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
632576c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632676c7fc5fSjoerg    ac_cv_prog_ac_ct_RANLIB="ranlib"
632776c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
632876c7fc5fSjoerg    break 2
632976c7fc5fSjoerg  fi
633076c7fc5fSjoergdone
633176c7fc5fSjoerg  done
633276c7fc5fSjoergIFS=$as_save_IFS
633376c7fc5fSjoerg
633476c7fc5fSjoergfi
633576c7fc5fSjoergfi
633676c7fc5fSjoergac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
633776c7fc5fSjoergif test -n "$ac_ct_RANLIB"; then
633876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
633976c7fc5fSjoerg$as_echo "$ac_ct_RANLIB" >&6; }
634076c7fc5fSjoergelse
634176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
634276c7fc5fSjoerg$as_echo "no" >&6; }
634376c7fc5fSjoergfi
634476c7fc5fSjoerg
634576c7fc5fSjoerg  if test "x$ac_ct_RANLIB" = x; then
634676c7fc5fSjoerg    RANLIB=":"
634776c7fc5fSjoerg  else
634876c7fc5fSjoerg    case $cross_compiling:$ac_tool_warned in
634976c7fc5fSjoergyes:)
635076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
635176c7fc5fSjoerg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
635276c7fc5fSjoergac_tool_warned=yes ;;
635376c7fc5fSjoergesac
635476c7fc5fSjoerg    RANLIB=$ac_ct_RANLIB
635576c7fc5fSjoerg  fi
635676c7fc5fSjoergelse
635776c7fc5fSjoerg  RANLIB="$ac_cv_prog_RANLIB"
635876c7fc5fSjoergfi
635976c7fc5fSjoerg
636076c7fc5fSjoergif test -n "$ac_tool_prefix"; then
636176c7fc5fSjoerg  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
636276c7fc5fSjoergset dummy ${ac_tool_prefix}ar; ac_word=$2
636376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
636476c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
636576c7fc5fSjoergif ${ac_cv_prog_AR+:} false; then :
636676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
636776c7fc5fSjoergelse
636876c7fc5fSjoerg  if test -n "$AR"; then
636976c7fc5fSjoerg  ac_cv_prog_AR="$AR" # Let the user override the test.
637076c7fc5fSjoergelse
637176c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
637276c7fc5fSjoergfor as_dir in $PATH
637376c7fc5fSjoergdo
637476c7fc5fSjoerg  IFS=$as_save_IFS
637576c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
637676c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
637776c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
637876c7fc5fSjoerg    ac_cv_prog_AR="${ac_tool_prefix}ar"
637976c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
638076c7fc5fSjoerg    break 2
638176c7fc5fSjoerg  fi
638276c7fc5fSjoergdone
638376c7fc5fSjoerg  done
638476c7fc5fSjoergIFS=$as_save_IFS
638576c7fc5fSjoerg
638676c7fc5fSjoergfi
638776c7fc5fSjoergfi
638876c7fc5fSjoergAR=$ac_cv_prog_AR
638976c7fc5fSjoergif test -n "$AR"; then
639076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
639176c7fc5fSjoerg$as_echo "$AR" >&6; }
639276c7fc5fSjoergelse
639376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
639476c7fc5fSjoerg$as_echo "no" >&6; }
639576c7fc5fSjoergfi
639676c7fc5fSjoerg
639776c7fc5fSjoerg
639876c7fc5fSjoergfi
639976c7fc5fSjoergif test -z "$ac_cv_prog_AR"; then
640076c7fc5fSjoerg  ac_ct_AR=$AR
640176c7fc5fSjoerg  # Extract the first word of "ar", so it can be a program name with args.
640276c7fc5fSjoergset dummy ar; ac_word=$2
640376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
640476c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
640576c7fc5fSjoergif ${ac_cv_prog_ac_ct_AR+:} false; then :
640676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
640776c7fc5fSjoergelse
640876c7fc5fSjoerg  if test -n "$ac_ct_AR"; then
640976c7fc5fSjoerg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
641076c7fc5fSjoergelse
641176c7fc5fSjoergas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
641276c7fc5fSjoergfor as_dir in $PATH
641376c7fc5fSjoergdo
641476c7fc5fSjoerg  IFS=$as_save_IFS
641576c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
641676c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
641776c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
641876c7fc5fSjoerg    ac_cv_prog_ac_ct_AR="ar"
641976c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
642076c7fc5fSjoerg    break 2
642176c7fc5fSjoerg  fi
642276c7fc5fSjoergdone
642376c7fc5fSjoerg  done
642476c7fc5fSjoergIFS=$as_save_IFS
642576c7fc5fSjoerg
642676c7fc5fSjoergfi
642776c7fc5fSjoergfi
642876c7fc5fSjoergac_ct_AR=$ac_cv_prog_ac_ct_AR
642976c7fc5fSjoergif test -n "$ac_ct_AR"; then
643076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
643176c7fc5fSjoerg$as_echo "$ac_ct_AR" >&6; }
643276c7fc5fSjoergelse
643376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
643476c7fc5fSjoerg$as_echo "no" >&6; }
643576c7fc5fSjoergfi
643676c7fc5fSjoerg
643776c7fc5fSjoerg  if test "x$ac_ct_AR" = x; then
643876c7fc5fSjoerg    AR="false"
643976c7fc5fSjoerg  else
644076c7fc5fSjoerg    case $cross_compiling:$ac_tool_warned in
644176c7fc5fSjoergyes:)
644276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
644376c7fc5fSjoerg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
644476c7fc5fSjoergac_tool_warned=yes ;;
644576c7fc5fSjoergesac
644676c7fc5fSjoerg    AR=$ac_ct_AR
644776c7fc5fSjoerg  fi
644876c7fc5fSjoergelse
644976c7fc5fSjoerg  AR="$ac_cv_prog_AR"
645076c7fc5fSjoergfi
645176c7fc5fSjoerg
645276c7fc5fSjoerg# Extract the first word of "rm", so it can be a program name with args.
645376c7fc5fSjoergset dummy rm; ac_word=$2
645476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
645576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
645676c7fc5fSjoergif ${ac_cv_path_RM+:} false; then :
645776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
645876c7fc5fSjoergelse
645976c7fc5fSjoerg  case $RM in
646076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
646176c7fc5fSjoerg  ac_cv_path_RM="$RM" # Let the user override the test with a path.
646276c7fc5fSjoerg  ;;
646376c7fc5fSjoerg  *)
646476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
646576c7fc5fSjoergfor as_dir in $PATH
646676c7fc5fSjoergdo
646776c7fc5fSjoerg  IFS=$as_save_IFS
646876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
646976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
647076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
647176c7fc5fSjoerg    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
647276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
647376c7fc5fSjoerg    break 2
647476c7fc5fSjoerg  fi
647576c7fc5fSjoergdone
647676c7fc5fSjoerg  done
647776c7fc5fSjoergIFS=$as_save_IFS
647876c7fc5fSjoerg
647976c7fc5fSjoerg  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
648076c7fc5fSjoerg  ;;
648176c7fc5fSjoergesac
648276c7fc5fSjoergfi
648376c7fc5fSjoergRM=$ac_cv_path_RM
648476c7fc5fSjoergif test -n "$RM"; then
648576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
648676c7fc5fSjoerg$as_echo "$RM" >&6; }
648776c7fc5fSjoergelse
648876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
648976c7fc5fSjoerg$as_echo "no" >&6; }
649076c7fc5fSjoergfi
649176c7fc5fSjoerg
649276c7fc5fSjoerg
649376c7fc5fSjoerg# Extract the first word of "sed", so it can be a program name with args.
649476c7fc5fSjoergset dummy sed; ac_word=$2
649576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
649676c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
649776c7fc5fSjoergif ${ac_cv_path_SED+:} false; then :
649876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
649976c7fc5fSjoergelse
650076c7fc5fSjoerg  case $SED in
650176c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
650276c7fc5fSjoerg  ac_cv_path_SED="$SED" # Let the user override the test with a path.
650376c7fc5fSjoerg  ;;
650476c7fc5fSjoerg  *)
650576c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
650676c7fc5fSjoergfor as_dir in $PATH
650776c7fc5fSjoergdo
650876c7fc5fSjoerg  IFS=$as_save_IFS
650976c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
651076c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
651176c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
651276c7fc5fSjoerg    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
651376c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
651476c7fc5fSjoerg    break 2
651576c7fc5fSjoerg  fi
651676c7fc5fSjoergdone
651776c7fc5fSjoerg  done
651876c7fc5fSjoergIFS=$as_save_IFS
651976c7fc5fSjoerg
652076c7fc5fSjoerg  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
652176c7fc5fSjoerg  ;;
652276c7fc5fSjoergesac
652376c7fc5fSjoergfi
652476c7fc5fSjoergSED=$ac_cv_path_SED
652576c7fc5fSjoergif test -n "$SED"; then
652676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
652776c7fc5fSjoerg$as_echo "$SED" >&6; }
652876c7fc5fSjoergelse
652976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
653076c7fc5fSjoerg$as_echo "no" >&6; }
653176c7fc5fSjoergfi
653276c7fc5fSjoerg
653376c7fc5fSjoerg
653476c7fc5fSjoerg# Extract the first word of "tar", so it can be a program name with args.
653576c7fc5fSjoergset dummy tar; ac_word=$2
653676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
653776c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
653876c7fc5fSjoergif ${ac_cv_path_TAR+:} false; then :
653976c7fc5fSjoerg  $as_echo_n "(cached) " >&6
654076c7fc5fSjoergelse
654176c7fc5fSjoerg  case $TAR in
654276c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
654376c7fc5fSjoerg  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
654476c7fc5fSjoerg  ;;
654576c7fc5fSjoerg  *)
654676c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
654776c7fc5fSjoergfor as_dir in $PATH
654876c7fc5fSjoergdo
654976c7fc5fSjoerg  IFS=$as_save_IFS
655076c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
655176c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
655276c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
655376c7fc5fSjoerg    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
655476c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
655576c7fc5fSjoerg    break 2
655676c7fc5fSjoerg  fi
655776c7fc5fSjoergdone
655876c7fc5fSjoerg  done
655976c7fc5fSjoergIFS=$as_save_IFS
656076c7fc5fSjoerg
656176c7fc5fSjoerg  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
656276c7fc5fSjoerg  ;;
656376c7fc5fSjoergesac
656476c7fc5fSjoergfi
656576c7fc5fSjoergTAR=$ac_cv_path_TAR
656676c7fc5fSjoergif test -n "$TAR"; then
656776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
656876c7fc5fSjoerg$as_echo "$TAR" >&6; }
656976c7fc5fSjoergelse
657076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
657176c7fc5fSjoerg$as_echo "no" >&6; }
657276c7fc5fSjoergfi
657376c7fc5fSjoerg
657476c7fc5fSjoerg
657576c7fc5fSjoerg# Extract the first word of "pwd", so it can be a program name with args.
657676c7fc5fSjoergset dummy pwd; ac_word=$2
657776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
657876c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
657976c7fc5fSjoergif ${ac_cv_path_BINPWD+:} false; then :
658076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
658176c7fc5fSjoergelse
658276c7fc5fSjoerg  case $BINPWD in
658376c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
658476c7fc5fSjoerg  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
658576c7fc5fSjoerg  ;;
658676c7fc5fSjoerg  *)
658776c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
658876c7fc5fSjoergfor as_dir in $PATH
658976c7fc5fSjoergdo
659076c7fc5fSjoerg  IFS=$as_save_IFS
659176c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
659276c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
659376c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
659476c7fc5fSjoerg    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
659576c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
659676c7fc5fSjoerg    break 2
659776c7fc5fSjoerg  fi
659876c7fc5fSjoergdone
659976c7fc5fSjoerg  done
660076c7fc5fSjoergIFS=$as_save_IFS
660176c7fc5fSjoerg
660276c7fc5fSjoerg  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
660376c7fc5fSjoerg  ;;
660476c7fc5fSjoergesac
660576c7fc5fSjoergfi
660676c7fc5fSjoergBINPWD=$ac_cv_path_BINPWD
660776c7fc5fSjoergif test -n "$BINPWD"; then
660876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
660976c7fc5fSjoerg$as_echo "$BINPWD" >&6; }
661076c7fc5fSjoergelse
661176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
661276c7fc5fSjoerg$as_echo "no" >&6; }
661376c7fc5fSjoergfi
661476c7fc5fSjoerg
661576c7fc5fSjoerg
661676c7fc5fSjoerg
661776c7fc5fSjoerg# Extract the first word of "dot", so it can be a program name with args.
661876c7fc5fSjoergset dummy dot; ac_word=$2
661976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
662076c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
662176c7fc5fSjoergif ${ac_cv_path_DOT+:} false; then :
662276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
662376c7fc5fSjoergelse
662476c7fc5fSjoerg  case $DOT in
662576c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
662676c7fc5fSjoerg  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
662776c7fc5fSjoerg  ;;
662876c7fc5fSjoerg  *)
662976c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
663076c7fc5fSjoergfor as_dir in $PATH
663176c7fc5fSjoergdo
663276c7fc5fSjoerg  IFS=$as_save_IFS
663376c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
663476c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
663576c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
663676c7fc5fSjoerg    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
663776c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
663876c7fc5fSjoerg    break 2
663976c7fc5fSjoerg  fi
664076c7fc5fSjoergdone
664176c7fc5fSjoerg  done
664276c7fc5fSjoergIFS=$as_save_IFS
664376c7fc5fSjoerg
664476c7fc5fSjoerg  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
664576c7fc5fSjoerg  ;;
664676c7fc5fSjoergesac
664776c7fc5fSjoergfi
664876c7fc5fSjoergDOT=$ac_cv_path_DOT
664976c7fc5fSjoergif test -n "$DOT"; then
665076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
665176c7fc5fSjoerg$as_echo "$DOT" >&6; }
665276c7fc5fSjoergelse
665376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
665476c7fc5fSjoerg$as_echo "no" >&6; }
665576c7fc5fSjoergfi
665676c7fc5fSjoerg
665776c7fc5fSjoerg
665876c7fc5fSjoergif test "$DOT" != "echo dot" ; then
665976c7fc5fSjoerg    if test "$llvm_cv_os_type" = "MingW" ; then
666076c7fc5fSjoerg    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
666176c7fc5fSjoerg  fi
666276c7fc5fSjoergfi
666376c7fc5fSjoerg
666476c7fc5fSjoerg# Find a good install program.  We prefer a C program (faster),
666576c7fc5fSjoerg# so one script is as good as another.  But avoid the broken or
666676c7fc5fSjoerg# incompatible versions:
666776c7fc5fSjoerg# SysV /etc/install, /usr/sbin/install
666876c7fc5fSjoerg# SunOS /usr/etc/install
666976c7fc5fSjoerg# IRIX /sbin/install
667076c7fc5fSjoerg# AIX /bin/install
667176c7fc5fSjoerg# AmigaOS /C/install, which installs bootblocks on floppy discs
667276c7fc5fSjoerg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
667376c7fc5fSjoerg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
667476c7fc5fSjoerg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
667576c7fc5fSjoerg# OS/2's system install, which has a completely different semantic
667676c7fc5fSjoerg# ./install, which can be erroneously created by make from ./install.sh.
667776c7fc5fSjoerg# Reject install programs that cannot install multiple files.
667876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
667976c7fc5fSjoerg$as_echo_n "checking for a BSD-compatible install... " >&6; }
668076c7fc5fSjoergif test -z "$INSTALL"; then
668176c7fc5fSjoergif ${ac_cv_path_install+:} false; then :
668276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
668376c7fc5fSjoergelse
668476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
668576c7fc5fSjoergfor as_dir in $PATH
668676c7fc5fSjoergdo
668776c7fc5fSjoerg  IFS=$as_save_IFS
668876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
668976c7fc5fSjoerg    # Account for people who put trailing slashes in PATH elements.
669076c7fc5fSjoergcase $as_dir/ in #((
669176c7fc5fSjoerg  ./ | .// | /[cC]/* | \
669276c7fc5fSjoerg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
669376c7fc5fSjoerg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
669476c7fc5fSjoerg  /usr/ucb/* ) ;;
669576c7fc5fSjoerg  *)
669676c7fc5fSjoerg    # OSF1 and SCO ODT 3.0 have their own names for install.
669776c7fc5fSjoerg    # Don't use installbsd from OSF since it installs stuff as root
669876c7fc5fSjoerg    # by default.
669976c7fc5fSjoerg    for ac_prog in ginstall scoinst install; do
670076c7fc5fSjoerg      for ac_exec_ext in '' $ac_executable_extensions; do
670176c7fc5fSjoerg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
670276c7fc5fSjoerg	  if test $ac_prog = install &&
670376c7fc5fSjoerg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
670476c7fc5fSjoerg	    # AIX install.  It has an incompatible calling convention.
670576c7fc5fSjoerg	    :
670676c7fc5fSjoerg	  elif test $ac_prog = install &&
670776c7fc5fSjoerg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
670876c7fc5fSjoerg	    # program-specific install script used by HP pwplus--don't use.
670976c7fc5fSjoerg	    :
671076c7fc5fSjoerg	  else
671176c7fc5fSjoerg	    rm -rf conftest.one conftest.two conftest.dir
671276c7fc5fSjoerg	    echo one > conftest.one
671376c7fc5fSjoerg	    echo two > conftest.two
671476c7fc5fSjoerg	    mkdir conftest.dir
671576c7fc5fSjoerg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
671676c7fc5fSjoerg	      test -s conftest.one && test -s conftest.two &&
671776c7fc5fSjoerg	      test -s conftest.dir/conftest.one &&
671876c7fc5fSjoerg	      test -s conftest.dir/conftest.two
671976c7fc5fSjoerg	    then
672076c7fc5fSjoerg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
672176c7fc5fSjoerg	      break 3
672276c7fc5fSjoerg	    fi
672376c7fc5fSjoerg	  fi
672476c7fc5fSjoerg	fi
672576c7fc5fSjoerg      done
672676c7fc5fSjoerg    done
672776c7fc5fSjoerg    ;;
672876c7fc5fSjoergesac
672976c7fc5fSjoerg
673076c7fc5fSjoerg  done
673176c7fc5fSjoergIFS=$as_save_IFS
673276c7fc5fSjoerg
673376c7fc5fSjoergrm -rf conftest.one conftest.two conftest.dir
673476c7fc5fSjoerg
673576c7fc5fSjoergfi
673676c7fc5fSjoerg  if test "${ac_cv_path_install+set}" = set; then
673776c7fc5fSjoerg    INSTALL=$ac_cv_path_install
673876c7fc5fSjoerg  else
673976c7fc5fSjoerg    # As a last resort, use the slow shell script.  Don't cache a
674076c7fc5fSjoerg    # value for INSTALL within a source directory, because that will
674176c7fc5fSjoerg    # break other packages using the cache if that directory is
674276c7fc5fSjoerg    # removed, or if the value is a relative name.
674376c7fc5fSjoerg    INSTALL=$ac_install_sh
674476c7fc5fSjoerg  fi
674576c7fc5fSjoergfi
674676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
674776c7fc5fSjoerg$as_echo "$INSTALL" >&6; }
674876c7fc5fSjoerg
674976c7fc5fSjoerg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
675076c7fc5fSjoerg# It thinks the first close brace ends the variable substitution.
675176c7fc5fSjoergtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
675276c7fc5fSjoerg
675376c7fc5fSjoergtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
675476c7fc5fSjoerg
675576c7fc5fSjoergtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
675676c7fc5fSjoerg
675776c7fc5fSjoergcase "$INSTALL" in
675876c7fc5fSjoerg [\\/$]* | ?:[\\/]* ) ;;
675976c7fc5fSjoerg *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
676076c7fc5fSjoergesac
676176c7fc5fSjoerg
676276c7fc5fSjoerg# Extract the first word of "bzip2", so it can be a program name with args.
676376c7fc5fSjoergset dummy bzip2; ac_word=$2
676476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
676576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
676676c7fc5fSjoergif ${ac_cv_path_BZIP2+:} false; then :
676776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
676876c7fc5fSjoergelse
676976c7fc5fSjoerg  case $BZIP2 in
677076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
677176c7fc5fSjoerg  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
677276c7fc5fSjoerg  ;;
677376c7fc5fSjoerg  *)
677476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
677576c7fc5fSjoergfor as_dir in $PATH
677676c7fc5fSjoergdo
677776c7fc5fSjoerg  IFS=$as_save_IFS
677876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
677976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
678076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
678176c7fc5fSjoerg    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
678276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
678376c7fc5fSjoerg    break 2
678476c7fc5fSjoerg  fi
678576c7fc5fSjoergdone
678676c7fc5fSjoerg  done
678776c7fc5fSjoergIFS=$as_save_IFS
678876c7fc5fSjoerg
678976c7fc5fSjoerg  ;;
679076c7fc5fSjoergesac
679176c7fc5fSjoergfi
679276c7fc5fSjoergBZIP2=$ac_cv_path_BZIP2
679376c7fc5fSjoergif test -n "$BZIP2"; then
679476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
679576c7fc5fSjoerg$as_echo "$BZIP2" >&6; }
679676c7fc5fSjoergelse
679776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
679876c7fc5fSjoerg$as_echo "no" >&6; }
679976c7fc5fSjoergfi
680076c7fc5fSjoerg
680176c7fc5fSjoerg
680276c7fc5fSjoerg# Extract the first word of "cat", so it can be a program name with args.
680376c7fc5fSjoergset dummy cat; ac_word=$2
680476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
680576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
680676c7fc5fSjoergif ${ac_cv_path_CAT+:} false; then :
680776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
680876c7fc5fSjoergelse
680976c7fc5fSjoerg  case $CAT in
681076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
681176c7fc5fSjoerg  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
681276c7fc5fSjoerg  ;;
681376c7fc5fSjoerg  *)
681476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
681576c7fc5fSjoergfor as_dir in $PATH
681676c7fc5fSjoergdo
681776c7fc5fSjoerg  IFS=$as_save_IFS
681876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
681976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
682076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
682176c7fc5fSjoerg    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
682276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
682376c7fc5fSjoerg    break 2
682476c7fc5fSjoerg  fi
682576c7fc5fSjoergdone
682676c7fc5fSjoerg  done
682776c7fc5fSjoergIFS=$as_save_IFS
682876c7fc5fSjoerg
682976c7fc5fSjoerg  ;;
683076c7fc5fSjoergesac
683176c7fc5fSjoergfi
683276c7fc5fSjoergCAT=$ac_cv_path_CAT
683376c7fc5fSjoergif test -n "$CAT"; then
683476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
683576c7fc5fSjoerg$as_echo "$CAT" >&6; }
683676c7fc5fSjoergelse
683776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
683876c7fc5fSjoerg$as_echo "no" >&6; }
683976c7fc5fSjoergfi
684076c7fc5fSjoerg
684176c7fc5fSjoerg
684276c7fc5fSjoerg# Extract the first word of "doxygen", so it can be a program name with args.
684376c7fc5fSjoergset dummy doxygen; ac_word=$2
684476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
684576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
684676c7fc5fSjoergif ${ac_cv_path_DOXYGEN+:} false; then :
684776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
684876c7fc5fSjoergelse
684976c7fc5fSjoerg  case $DOXYGEN in
685076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
685176c7fc5fSjoerg  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
685276c7fc5fSjoerg  ;;
685376c7fc5fSjoerg  *)
685476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
685576c7fc5fSjoergfor as_dir in $PATH
685676c7fc5fSjoergdo
685776c7fc5fSjoerg  IFS=$as_save_IFS
685876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
685976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
686076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
686176c7fc5fSjoerg    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
686276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
686376c7fc5fSjoerg    break 2
686476c7fc5fSjoerg  fi
686576c7fc5fSjoergdone
686676c7fc5fSjoerg  done
686776c7fc5fSjoergIFS=$as_save_IFS
686876c7fc5fSjoerg
686976c7fc5fSjoerg  ;;
687076c7fc5fSjoergesac
687176c7fc5fSjoergfi
687276c7fc5fSjoergDOXYGEN=$ac_cv_path_DOXYGEN
687376c7fc5fSjoergif test -n "$DOXYGEN"; then
687476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
687576c7fc5fSjoerg$as_echo "$DOXYGEN" >&6; }
687676c7fc5fSjoergelse
687776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
687876c7fc5fSjoerg$as_echo "no" >&6; }
687976c7fc5fSjoergfi
688076c7fc5fSjoerg
688176c7fc5fSjoerg
688276c7fc5fSjoerg# Extract the first word of "groff", so it can be a program name with args.
688376c7fc5fSjoergset dummy groff; ac_word=$2
688476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
688576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
688676c7fc5fSjoergif ${ac_cv_path_GROFF+:} false; then :
688776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
688876c7fc5fSjoergelse
688976c7fc5fSjoerg  case $GROFF in
689076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
689176c7fc5fSjoerg  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
689276c7fc5fSjoerg  ;;
689376c7fc5fSjoerg  *)
689476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
689576c7fc5fSjoergfor as_dir in $PATH
689676c7fc5fSjoergdo
689776c7fc5fSjoerg  IFS=$as_save_IFS
689876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
689976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
690076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
690176c7fc5fSjoerg    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
690276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
690376c7fc5fSjoerg    break 2
690476c7fc5fSjoerg  fi
690576c7fc5fSjoergdone
690676c7fc5fSjoerg  done
690776c7fc5fSjoergIFS=$as_save_IFS
690876c7fc5fSjoerg
690976c7fc5fSjoerg  ;;
691076c7fc5fSjoergesac
691176c7fc5fSjoergfi
691276c7fc5fSjoergGROFF=$ac_cv_path_GROFF
691376c7fc5fSjoergif test -n "$GROFF"; then
691476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
691576c7fc5fSjoerg$as_echo "$GROFF" >&6; }
691676c7fc5fSjoergelse
691776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
691876c7fc5fSjoerg$as_echo "no" >&6; }
691976c7fc5fSjoergfi
692076c7fc5fSjoerg
692176c7fc5fSjoerg
692276c7fc5fSjoerg# Extract the first word of "gzip", so it can be a program name with args.
692376c7fc5fSjoergset dummy gzip; ac_word=$2
692476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
692576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
692676c7fc5fSjoergif ${ac_cv_path_GZIPBIN+:} false; then :
692776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
692876c7fc5fSjoergelse
692976c7fc5fSjoerg  case $GZIPBIN in
693076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
693176c7fc5fSjoerg  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
693276c7fc5fSjoerg  ;;
693376c7fc5fSjoerg  *)
693476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
693576c7fc5fSjoergfor as_dir in $PATH
693676c7fc5fSjoergdo
693776c7fc5fSjoerg  IFS=$as_save_IFS
693876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
693976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
694076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
694176c7fc5fSjoerg    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
694276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
694376c7fc5fSjoerg    break 2
694476c7fc5fSjoerg  fi
694576c7fc5fSjoergdone
694676c7fc5fSjoerg  done
694776c7fc5fSjoergIFS=$as_save_IFS
694876c7fc5fSjoerg
694976c7fc5fSjoerg  ;;
695076c7fc5fSjoergesac
695176c7fc5fSjoergfi
695276c7fc5fSjoergGZIPBIN=$ac_cv_path_GZIPBIN
695376c7fc5fSjoergif test -n "$GZIPBIN"; then
695476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPBIN" >&5
695576c7fc5fSjoerg$as_echo "$GZIPBIN" >&6; }
695676c7fc5fSjoergelse
695776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
695876c7fc5fSjoerg$as_echo "no" >&6; }
695976c7fc5fSjoergfi
696076c7fc5fSjoerg
696176c7fc5fSjoerg
696276c7fc5fSjoerg# Extract the first word of "pdfroff", so it can be a program name with args.
696376c7fc5fSjoergset dummy pdfroff; ac_word=$2
696476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
696576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
696676c7fc5fSjoergif ${ac_cv_path_PDFROFF+:} false; then :
696776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
696876c7fc5fSjoergelse
696976c7fc5fSjoerg  case $PDFROFF in
697076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
697176c7fc5fSjoerg  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
697276c7fc5fSjoerg  ;;
697376c7fc5fSjoerg  *)
697476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
697576c7fc5fSjoergfor as_dir in $PATH
697676c7fc5fSjoergdo
697776c7fc5fSjoerg  IFS=$as_save_IFS
697876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
697976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
698076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
698176c7fc5fSjoerg    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
698276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
698376c7fc5fSjoerg    break 2
698476c7fc5fSjoerg  fi
698576c7fc5fSjoergdone
698676c7fc5fSjoerg  done
698776c7fc5fSjoergIFS=$as_save_IFS
698876c7fc5fSjoerg
698976c7fc5fSjoerg  ;;
699076c7fc5fSjoergesac
699176c7fc5fSjoergfi
699276c7fc5fSjoergPDFROFF=$ac_cv_path_PDFROFF
699376c7fc5fSjoergif test -n "$PDFROFF"; then
699476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5
699576c7fc5fSjoerg$as_echo "$PDFROFF" >&6; }
699676c7fc5fSjoergelse
699776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
699876c7fc5fSjoerg$as_echo "no" >&6; }
699976c7fc5fSjoergfi
700076c7fc5fSjoerg
700176c7fc5fSjoerg
700276c7fc5fSjoerg# Extract the first word of "zip", so it can be a program name with args.
700376c7fc5fSjoergset dummy zip; ac_word=$2
700476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
700576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
700676c7fc5fSjoergif ${ac_cv_path_ZIP+:} false; then :
700776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
700876c7fc5fSjoergelse
700976c7fc5fSjoerg  case $ZIP in
701076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
701176c7fc5fSjoerg  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
701276c7fc5fSjoerg  ;;
701376c7fc5fSjoerg  *)
701476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
701576c7fc5fSjoergfor as_dir in $PATH
701676c7fc5fSjoergdo
701776c7fc5fSjoerg  IFS=$as_save_IFS
701876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
701976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
702076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
702176c7fc5fSjoerg    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
702276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
702376c7fc5fSjoerg    break 2
702476c7fc5fSjoerg  fi
702576c7fc5fSjoergdone
702676c7fc5fSjoerg  done
702776c7fc5fSjoergIFS=$as_save_IFS
702876c7fc5fSjoerg
702976c7fc5fSjoerg  ;;
703076c7fc5fSjoergesac
703176c7fc5fSjoergfi
703276c7fc5fSjoergZIP=$ac_cv_path_ZIP
703376c7fc5fSjoergif test -n "$ZIP"; then
703476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
703576c7fc5fSjoerg$as_echo "$ZIP" >&6; }
703676c7fc5fSjoergelse
703776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
703876c7fc5fSjoerg$as_echo "no" >&6; }
703976c7fc5fSjoergfi
704076c7fc5fSjoerg
704176c7fc5fSjoerg
704276c7fc5fSjoerg# Extract the first word of "go", so it can be a program name with args.
704376c7fc5fSjoergset dummy go; ac_word=$2
704476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
704576c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
704676c7fc5fSjoergif ${ac_cv_path_GO+:} false; then :
704776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
704876c7fc5fSjoergelse
704976c7fc5fSjoerg  case $GO in
705076c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
705176c7fc5fSjoerg  ac_cv_path_GO="$GO" # Let the user override the test with a path.
705276c7fc5fSjoerg  ;;
705376c7fc5fSjoerg  *)
705476c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
705576c7fc5fSjoergfor as_dir in $PATH
705676c7fc5fSjoergdo
705776c7fc5fSjoerg  IFS=$as_save_IFS
705876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
705976c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
706076c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
706176c7fc5fSjoerg    ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
706276c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
706376c7fc5fSjoerg    break 2
706476c7fc5fSjoerg  fi
706576c7fc5fSjoergdone
706676c7fc5fSjoerg  done
706776c7fc5fSjoergIFS=$as_save_IFS
706876c7fc5fSjoerg
706976c7fc5fSjoerg  ;;
707076c7fc5fSjoergesac
707176c7fc5fSjoergfi
707276c7fc5fSjoergGO=$ac_cv_path_GO
707376c7fc5fSjoergif test -n "$GO"; then
707476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5
707576c7fc5fSjoerg$as_echo "$GO" >&6; }
707676c7fc5fSjoergelse
707776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
707876c7fc5fSjoerg$as_echo "no" >&6; }
707976c7fc5fSjoergfi
708076c7fc5fSjoerg
708176c7fc5fSjoerg
708276c7fc5fSjoergfor ac_prog in ocamlfind
708376c7fc5fSjoergdo
708476c7fc5fSjoerg  # Extract the first word of "$ac_prog", so it can be a program name with args.
708576c7fc5fSjoergset dummy $ac_prog; ac_word=$2
708676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
708776c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
708876c7fc5fSjoergif ${ac_cv_path_OCAMLFIND+:} false; then :
708976c7fc5fSjoerg  $as_echo_n "(cached) " >&6
709076c7fc5fSjoergelse
709176c7fc5fSjoerg  case $OCAMLFIND in
709276c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
709376c7fc5fSjoerg  ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
709476c7fc5fSjoerg  ;;
709576c7fc5fSjoerg  *)
709676c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
709776c7fc5fSjoergfor as_dir in $PATH
709876c7fc5fSjoergdo
709976c7fc5fSjoerg  IFS=$as_save_IFS
710076c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
710176c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
710276c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
710376c7fc5fSjoerg    ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
710476c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
710576c7fc5fSjoerg    break 2
710676c7fc5fSjoerg  fi
710776c7fc5fSjoergdone
710876c7fc5fSjoerg  done
710976c7fc5fSjoergIFS=$as_save_IFS
711076c7fc5fSjoerg
711176c7fc5fSjoerg  ;;
711276c7fc5fSjoergesac
711376c7fc5fSjoergfi
711476c7fc5fSjoergOCAMLFIND=$ac_cv_path_OCAMLFIND
711576c7fc5fSjoergif test -n "$OCAMLFIND"; then
711676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
711776c7fc5fSjoerg$as_echo "$OCAMLFIND" >&6; }
711876c7fc5fSjoergelse
711976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
712076c7fc5fSjoerg$as_echo "no" >&6; }
712176c7fc5fSjoergfi
712276c7fc5fSjoerg
712376c7fc5fSjoerg
712476c7fc5fSjoerg  test -n "$OCAMLFIND" && break
712576c7fc5fSjoergdone
712676c7fc5fSjoerg
712776c7fc5fSjoergfor ac_prog in gas as
712876c7fc5fSjoergdo
712976c7fc5fSjoerg  # Extract the first word of "$ac_prog", so it can be a program name with args.
713076c7fc5fSjoergset dummy $ac_prog; ac_word=$2
713176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
713276c7fc5fSjoerg$as_echo_n "checking for $ac_word... " >&6; }
713376c7fc5fSjoergif ${ac_cv_path_GAS+:} false; then :
713476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
713576c7fc5fSjoergelse
713676c7fc5fSjoerg  case $GAS in
713776c7fc5fSjoerg  [\\/]* | ?:[\\/]*)
713876c7fc5fSjoerg  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
713976c7fc5fSjoerg  ;;
714076c7fc5fSjoerg  *)
714176c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
714276c7fc5fSjoergfor as_dir in $PATH
714376c7fc5fSjoergdo
714476c7fc5fSjoerg  IFS=$as_save_IFS
714576c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
714676c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
714776c7fc5fSjoerg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
714876c7fc5fSjoerg    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
714976c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
715076c7fc5fSjoerg    break 2
715176c7fc5fSjoerg  fi
715276c7fc5fSjoergdone
715376c7fc5fSjoerg  done
715476c7fc5fSjoergIFS=$as_save_IFS
715576c7fc5fSjoerg
715676c7fc5fSjoerg  ;;
715776c7fc5fSjoergesac
715876c7fc5fSjoergfi
715976c7fc5fSjoergGAS=$ac_cv_path_GAS
716076c7fc5fSjoergif test -n "$GAS"; then
716176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
716276c7fc5fSjoerg$as_echo "$GAS" >&6; }
716376c7fc5fSjoergelse
716476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
716576c7fc5fSjoerg$as_echo "no" >&6; }
716676c7fc5fSjoergfi
716776c7fc5fSjoerg
716876c7fc5fSjoerg
716976c7fc5fSjoerg  test -n "$GAS" && break
717076c7fc5fSjoergdone
717176c7fc5fSjoerg
717276c7fc5fSjoerg
717376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5
717476c7fc5fSjoerg$as_echo_n "checking for linker version... " >&6; }
717576c7fc5fSjoergif ${llvm_cv_link_version+:} false; then :
717676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
717776c7fc5fSjoergelse
717876c7fc5fSjoerg
717976c7fc5fSjoerg   version_string="$(${LD:-ld} -v 2>&1 | head -1)"
718076c7fc5fSjoerg
718176c7fc5fSjoerg   # Check for ld64.
718276c7fc5fSjoerg   if (echo "$version_string" | grep -q "ld64"); then
718376c7fc5fSjoerg     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
718476c7fc5fSjoerg   else
718576c7fc5fSjoerg     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
718676c7fc5fSjoerg   fi
718776c7fc5fSjoerg
718876c7fc5fSjoergfi
718976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5
719076c7fc5fSjoerg$as_echo "$llvm_cv_link_version" >&6; }
719176c7fc5fSjoerg
719276c7fc5fSjoergcat >>confdefs.h <<_ACEOF
719376c7fc5fSjoerg#define HOST_LINK_VERSION "$llvm_cv_link_version"
719476c7fc5fSjoerg_ACEOF
719576c7fc5fSjoerg
719676c7fc5fSjoerg
719776c7fc5fSjoerg
719876c7fc5fSjoerg
719976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5
720076c7fc5fSjoerg$as_echo_n "checking for compiler -Wl,--version-script option... " >&6; }
720176c7fc5fSjoergif ${llvm_cv_link_use_version_script+:} false; then :
720276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
720376c7fc5fSjoergelse
720476c7fc5fSjoerg   ac_ext=c
720576c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
720676c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
720776c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
720876c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
720976c7fc5fSjoerg
721076c7fc5fSjoerg  oldcflags="$CFLAGS"
721176c7fc5fSjoerg
721276c7fc5fSjoerg  # The following code is from the autoconf manual,
721376c7fc5fSjoerg  # "11.13: Limitations of Usual Tools".
721476c7fc5fSjoerg  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
721576c7fc5fSjoerg  # Use mktemp if possible; otherwise fall back on mkdir,
721676c7fc5fSjoerg  # with $RANDOM to make collisions less likely.
721776c7fc5fSjoerg  : ${TMPDIR=/tmp}
721876c7fc5fSjoerg  {
721976c7fc5fSjoerg    tmp=`
722076c7fc5fSjoerg      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
722176c7fc5fSjoerg    ` &&
722276c7fc5fSjoerg    test -n "$tmp" && test -d "$tmp"
722376c7fc5fSjoerg  } || {
722476c7fc5fSjoerg    tmp=$TMPDIR/foo$$-$RANDOM
722576c7fc5fSjoerg    (umask 077 && mkdir "$tmp")
722676c7fc5fSjoerg  } || exit $?
722776c7fc5fSjoerg
722876c7fc5fSjoerg  echo "{" > "$tmp/export.map"
722976c7fc5fSjoerg  echo "  global: main;" >> "$tmp/export.map"
723076c7fc5fSjoerg  echo "  local: *;" >> "$tmp/export.map"
723176c7fc5fSjoerg  echo "};" >> "$tmp/export.map"
723276c7fc5fSjoerg
723376c7fc5fSjoerg  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
723476c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
723576c7fc5fSjoerg/* end confdefs.h.  */
723676c7fc5fSjoerg
723776c7fc5fSjoergint
723876c7fc5fSjoergmain ()
723976c7fc5fSjoerg{
724076c7fc5fSjoerg
724176c7fc5fSjoerg  ;
724276c7fc5fSjoerg  return 0;
724376c7fc5fSjoerg}
724476c7fc5fSjoerg_ACEOF
724576c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
724676c7fc5fSjoerg  llvm_cv_link_use_version_script=yes
724776c7fc5fSjoergelse
724876c7fc5fSjoerg  llvm_cv_link_use_version_script=no
724976c7fc5fSjoergfi
725076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
725176c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
725276c7fc5fSjoerg  rm "$tmp/export.map"
725376c7fc5fSjoerg  rmdir "$tmp"
725476c7fc5fSjoerg  CFLAGS="$oldcflags"
725576c7fc5fSjoerg  ac_ext=c
725676c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
725776c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
725876c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
725976c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
726076c7fc5fSjoerg
726176c7fc5fSjoerg
726276c7fc5fSjoergfi
726376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5
726476c7fc5fSjoerg$as_echo "$llvm_cv_link_use_version_script" >&6; }
726576c7fc5fSjoergif test "$llvm_cv_link_use_version_script" = yes ; then
726676c7fc5fSjoerg  HAVE_LINK_VERSION_SCRIPT=1
726776c7fc5fSjoerg
726876c7fc5fSjoerg  fi
726976c7fc5fSjoerg
727076c7fc5fSjoerg
727176c7fc5fSjoerg
727276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
727376c7fc5fSjoerg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
727476c7fc5fSjoergif ${ac_cv_path_GREP+:} false; then :
727576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
727676c7fc5fSjoergelse
727776c7fc5fSjoerg  if test -z "$GREP"; then
727876c7fc5fSjoerg  ac_path_GREP_found=false
727976c7fc5fSjoerg  # Loop through the user's path and test for each of PROGNAME-LIST
728076c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
728176c7fc5fSjoergfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
728276c7fc5fSjoergdo
728376c7fc5fSjoerg  IFS=$as_save_IFS
728476c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
728576c7fc5fSjoerg    for ac_prog in grep ggrep; do
728676c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
728776c7fc5fSjoerg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
728876c7fc5fSjoerg      as_fn_executable_p "$ac_path_GREP" || continue
728976c7fc5fSjoerg# Check for GNU ac_path_GREP and select it if it is found.
729076c7fc5fSjoerg  # Check for GNU $ac_path_GREP
729176c7fc5fSjoergcase `"$ac_path_GREP" --version 2>&1` in
729276c7fc5fSjoerg*GNU*)
729376c7fc5fSjoerg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
729476c7fc5fSjoerg*)
729576c7fc5fSjoerg  ac_count=0
729676c7fc5fSjoerg  $as_echo_n 0123456789 >"conftest.in"
729776c7fc5fSjoerg  while :
729876c7fc5fSjoerg  do
729976c7fc5fSjoerg    cat "conftest.in" "conftest.in" >"conftest.tmp"
730076c7fc5fSjoerg    mv "conftest.tmp" "conftest.in"
730176c7fc5fSjoerg    cp "conftest.in" "conftest.nl"
730276c7fc5fSjoerg    $as_echo 'GREP' >> "conftest.nl"
730376c7fc5fSjoerg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
730476c7fc5fSjoerg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
730576c7fc5fSjoerg    as_fn_arith $ac_count + 1 && ac_count=$as_val
730676c7fc5fSjoerg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
730776c7fc5fSjoerg      # Best one so far, save it but keep looking for a better one
730876c7fc5fSjoerg      ac_cv_path_GREP="$ac_path_GREP"
730976c7fc5fSjoerg      ac_path_GREP_max=$ac_count
731076c7fc5fSjoerg    fi
731176c7fc5fSjoerg    # 10*(2^10) chars as input seems more than enough
731276c7fc5fSjoerg    test $ac_count -gt 10 && break
731376c7fc5fSjoerg  done
731476c7fc5fSjoerg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
731576c7fc5fSjoergesac
731676c7fc5fSjoerg
731776c7fc5fSjoerg      $ac_path_GREP_found && break 3
731876c7fc5fSjoerg    done
731976c7fc5fSjoerg  done
732076c7fc5fSjoerg  done
732176c7fc5fSjoergIFS=$as_save_IFS
732276c7fc5fSjoerg  if test -z "$ac_cv_path_GREP"; then
732376c7fc5fSjoerg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
732476c7fc5fSjoerg  fi
732576c7fc5fSjoergelse
732676c7fc5fSjoerg  ac_cv_path_GREP=$GREP
732776c7fc5fSjoergfi
732876c7fc5fSjoerg
732976c7fc5fSjoergfi
733076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
733176c7fc5fSjoerg$as_echo "$ac_cv_path_GREP" >&6; }
733276c7fc5fSjoerg GREP="$ac_cv_path_GREP"
733376c7fc5fSjoerg
733476c7fc5fSjoerg
733576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
733676c7fc5fSjoerg$as_echo_n "checking for egrep... " >&6; }
733776c7fc5fSjoergif ${ac_cv_path_EGREP+:} false; then :
733876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
733976c7fc5fSjoergelse
734076c7fc5fSjoerg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
734176c7fc5fSjoerg   then ac_cv_path_EGREP="$GREP -E"
734276c7fc5fSjoerg   else
734376c7fc5fSjoerg     if test -z "$EGREP"; then
734476c7fc5fSjoerg  ac_path_EGREP_found=false
734576c7fc5fSjoerg  # Loop through the user's path and test for each of PROGNAME-LIST
734676c7fc5fSjoerg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
734776c7fc5fSjoergfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
734876c7fc5fSjoergdo
734976c7fc5fSjoerg  IFS=$as_save_IFS
735076c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
735176c7fc5fSjoerg    for ac_prog in egrep; do
735276c7fc5fSjoerg    for ac_exec_ext in '' $ac_executable_extensions; do
735376c7fc5fSjoerg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
735476c7fc5fSjoerg      as_fn_executable_p "$ac_path_EGREP" || continue
735576c7fc5fSjoerg# Check for GNU ac_path_EGREP and select it if it is found.
735676c7fc5fSjoerg  # Check for GNU $ac_path_EGREP
735776c7fc5fSjoergcase `"$ac_path_EGREP" --version 2>&1` in
735876c7fc5fSjoerg*GNU*)
735976c7fc5fSjoerg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
736076c7fc5fSjoerg*)
736176c7fc5fSjoerg  ac_count=0
736276c7fc5fSjoerg  $as_echo_n 0123456789 >"conftest.in"
736376c7fc5fSjoerg  while :
736476c7fc5fSjoerg  do
736576c7fc5fSjoerg    cat "conftest.in" "conftest.in" >"conftest.tmp"
736676c7fc5fSjoerg    mv "conftest.tmp" "conftest.in"
736776c7fc5fSjoerg    cp "conftest.in" "conftest.nl"
736876c7fc5fSjoerg    $as_echo 'EGREP' >> "conftest.nl"
736976c7fc5fSjoerg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
737076c7fc5fSjoerg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
737176c7fc5fSjoerg    as_fn_arith $ac_count + 1 && ac_count=$as_val
737276c7fc5fSjoerg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
737376c7fc5fSjoerg      # Best one so far, save it but keep looking for a better one
737476c7fc5fSjoerg      ac_cv_path_EGREP="$ac_path_EGREP"
737576c7fc5fSjoerg      ac_path_EGREP_max=$ac_count
737676c7fc5fSjoerg    fi
737776c7fc5fSjoerg    # 10*(2^10) chars as input seems more than enough
737876c7fc5fSjoerg    test $ac_count -gt 10 && break
737976c7fc5fSjoerg  done
738076c7fc5fSjoerg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
738176c7fc5fSjoergesac
738276c7fc5fSjoerg
738376c7fc5fSjoerg      $ac_path_EGREP_found && break 3
738476c7fc5fSjoerg    done
738576c7fc5fSjoerg  done
738676c7fc5fSjoerg  done
738776c7fc5fSjoergIFS=$as_save_IFS
738876c7fc5fSjoerg  if test -z "$ac_cv_path_EGREP"; then
738976c7fc5fSjoerg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
739076c7fc5fSjoerg  fi
739176c7fc5fSjoergelse
739276c7fc5fSjoerg  ac_cv_path_EGREP=$EGREP
739376c7fc5fSjoergfi
739476c7fc5fSjoerg
739576c7fc5fSjoerg   fi
739676c7fc5fSjoergfi
739776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
739876c7fc5fSjoerg$as_echo "$ac_cv_path_EGREP" >&6; }
739976c7fc5fSjoerg EGREP="$ac_cv_path_EGREP"
740076c7fc5fSjoerg
740176c7fc5fSjoerg
740276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
740376c7fc5fSjoerg$as_echo_n "checking for ANSI C header files... " >&6; }
740476c7fc5fSjoergif ${ac_cv_header_stdc+:} false; then :
740576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
740676c7fc5fSjoergelse
740776c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
740876c7fc5fSjoerg/* end confdefs.h.  */
740976c7fc5fSjoerg#include <stdlib.h>
741076c7fc5fSjoerg#include <stdarg.h>
741176c7fc5fSjoerg#include <string.h>
741276c7fc5fSjoerg#include <float.h>
741376c7fc5fSjoerg
741476c7fc5fSjoergint
741576c7fc5fSjoergmain ()
741676c7fc5fSjoerg{
741776c7fc5fSjoerg
741876c7fc5fSjoerg  ;
741976c7fc5fSjoerg  return 0;
742076c7fc5fSjoerg}
742176c7fc5fSjoerg_ACEOF
742276c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
742376c7fc5fSjoerg  ac_cv_header_stdc=yes
742476c7fc5fSjoergelse
742576c7fc5fSjoerg  ac_cv_header_stdc=no
742676c7fc5fSjoergfi
742776c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
742876c7fc5fSjoerg
742976c7fc5fSjoergif test $ac_cv_header_stdc = yes; then
743076c7fc5fSjoerg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
743176c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
743276c7fc5fSjoerg/* end confdefs.h.  */
743376c7fc5fSjoerg#include <string.h>
743476c7fc5fSjoerg
743576c7fc5fSjoerg_ACEOF
743676c7fc5fSjoergif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
743776c7fc5fSjoerg  $EGREP "memchr" >/dev/null 2>&1; then :
743876c7fc5fSjoerg
743976c7fc5fSjoergelse
744076c7fc5fSjoerg  ac_cv_header_stdc=no
744176c7fc5fSjoergfi
744276c7fc5fSjoergrm -f conftest*
744376c7fc5fSjoerg
744476c7fc5fSjoergfi
744576c7fc5fSjoerg
744676c7fc5fSjoergif test $ac_cv_header_stdc = yes; then
744776c7fc5fSjoerg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
744876c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
744976c7fc5fSjoerg/* end confdefs.h.  */
745076c7fc5fSjoerg#include <stdlib.h>
745176c7fc5fSjoerg
745276c7fc5fSjoerg_ACEOF
745376c7fc5fSjoergif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
745476c7fc5fSjoerg  $EGREP "free" >/dev/null 2>&1; then :
745576c7fc5fSjoerg
745676c7fc5fSjoergelse
745776c7fc5fSjoerg  ac_cv_header_stdc=no
745876c7fc5fSjoergfi
745976c7fc5fSjoergrm -f conftest*
746076c7fc5fSjoerg
746176c7fc5fSjoergfi
746276c7fc5fSjoerg
746376c7fc5fSjoergif test $ac_cv_header_stdc = yes; then
746476c7fc5fSjoerg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
746576c7fc5fSjoerg  if test "$cross_compiling" = yes; then :
746676c7fc5fSjoerg  :
746776c7fc5fSjoergelse
746876c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
746976c7fc5fSjoerg/* end confdefs.h.  */
747076c7fc5fSjoerg#include <ctype.h>
747176c7fc5fSjoerg#include <stdlib.h>
747276c7fc5fSjoerg#if ((' ' & 0x0FF) == 0x020)
747376c7fc5fSjoerg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
747476c7fc5fSjoerg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
747576c7fc5fSjoerg#else
747676c7fc5fSjoerg# define ISLOWER(c) \
747776c7fc5fSjoerg		   (('a' <= (c) && (c) <= 'i') \
747876c7fc5fSjoerg		     || ('j' <= (c) && (c) <= 'r') \
747976c7fc5fSjoerg		     || ('s' <= (c) && (c) <= 'z'))
748076c7fc5fSjoerg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
748176c7fc5fSjoerg#endif
748276c7fc5fSjoerg
748376c7fc5fSjoerg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
748476c7fc5fSjoergint
748576c7fc5fSjoergmain ()
748676c7fc5fSjoerg{
748776c7fc5fSjoerg  int i;
748876c7fc5fSjoerg  for (i = 0; i < 256; i++)
748976c7fc5fSjoerg    if (XOR (islower (i), ISLOWER (i))
749076c7fc5fSjoerg	|| toupper (i) != TOUPPER (i))
749176c7fc5fSjoerg      return 2;
749276c7fc5fSjoerg  return 0;
749376c7fc5fSjoerg}
749476c7fc5fSjoerg_ACEOF
749576c7fc5fSjoergif ac_fn_c_try_run "$LINENO"; then :
749676c7fc5fSjoerg
749776c7fc5fSjoergelse
749876c7fc5fSjoerg  ac_cv_header_stdc=no
749976c7fc5fSjoergfi
750076c7fc5fSjoergrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
750176c7fc5fSjoerg  conftest.$ac_objext conftest.beam conftest.$ac_ext
750276c7fc5fSjoergfi
750376c7fc5fSjoerg
750476c7fc5fSjoergfi
750576c7fc5fSjoergfi
750676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
750776c7fc5fSjoerg$as_echo "$ac_cv_header_stdc" >&6; }
750876c7fc5fSjoergif test $ac_cv_header_stdc = yes; then
750976c7fc5fSjoerg
751076c7fc5fSjoerg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
751176c7fc5fSjoerg
751276c7fc5fSjoergfi
751376c7fc5fSjoerg
751476c7fc5fSjoerg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
751576c7fc5fSjoergfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
751676c7fc5fSjoerg		  inttypes.h stdint.h unistd.h
751776c7fc5fSjoergdo :
751876c7fc5fSjoerg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
751976c7fc5fSjoergac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
752076c7fc5fSjoerg"
752176c7fc5fSjoergif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
752276c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
752376c7fc5fSjoerg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
752476c7fc5fSjoerg_ACEOF
752576c7fc5fSjoerg
752676c7fc5fSjoergfi
752776c7fc5fSjoerg
752876c7fc5fSjoergdone
752976c7fc5fSjoerg
753076c7fc5fSjoerg
753176c7fc5fSjoergfor ac_header in errno.h
753276c7fc5fSjoergdo :
753376c7fc5fSjoerg  ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
753476c7fc5fSjoergif test "x$ac_cv_header_errno_h" = xyes; then :
753576c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
753676c7fc5fSjoerg#define HAVE_ERRNO_H 1
753776c7fc5fSjoerg_ACEOF
753876c7fc5fSjoerg
753976c7fc5fSjoergfi
754076c7fc5fSjoerg
754176c7fc5fSjoergdone
754276c7fc5fSjoerg
754376c7fc5fSjoerg
754476c7fc5fSjoergcase "$llvm_cv_os_type" in
754576c7fc5fSjoerg  Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
754676c7fc5fSjoerg  Darwin) llvm_shlib_ext=.dylib ;;
754776c7fc5fSjoerg  *) llvm_shlib_ext=.so ;;
754876c7fc5fSjoergesac
754976c7fc5fSjoerg
755076c7fc5fSjoerg
755176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
755276c7fc5fSjoerg#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
755376c7fc5fSjoerg_ACEOF
755476c7fc5fSjoerg
755576c7fc5fSjoerg
755676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
755776c7fc5fSjoerg$as_echo_n "checking tool compatibility... " >&6; }
755876c7fc5fSjoerg
755976c7fc5fSjoergICC=no
756076c7fc5fSjoergIXX=no
756176c7fc5fSjoergcase $CC in
756276c7fc5fSjoerg  icc*|icpc*)
756376c7fc5fSjoerg    ICC=yes
756476c7fc5fSjoerg    IXX=yes
756576c7fc5fSjoerg    ;;
756676c7fc5fSjoerg   *)
756776c7fc5fSjoerg    ;;
756876c7fc5fSjoergesac
756976c7fc5fSjoerg
757076c7fc5fSjoergif test "$GCC" != "yes" && test "$ICC" != "yes"
757176c7fc5fSjoergthen
757276c7fc5fSjoerg  as_fn_error $? "gcc|icc required but not found" "$LINENO" 5
757376c7fc5fSjoergfi
757476c7fc5fSjoerg
757576c7fc5fSjoergif test "$GXX" != "yes" && test "$IXX" != "yes"
757676c7fc5fSjoergthen
757776c7fc5fSjoerg  as_fn_error $? "g++|clang++|icc required but not found" "$LINENO" 5
757876c7fc5fSjoergfi
757976c7fc5fSjoerg
758076c7fc5fSjoergif test "$GCC" = "yes"
758176c7fc5fSjoergthen
758276c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
758376c7fc5fSjoerg/* end confdefs.h.  */
758476c7fc5fSjoerg
758576c7fc5fSjoerg
758676c7fc5fSjoerg    #if !defined(__GNUC__) || __GNUC__ < 3
758776c7fc5fSjoerg    #error Unsupported GCC version
758876c7fc5fSjoerg    #endif
758976c7fc5fSjoerg
759076c7fc5fSjoerg
759176c7fc5fSjoerg_ACEOF
759276c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
759376c7fc5fSjoerg
759476c7fc5fSjoergelse
759576c7fc5fSjoerg  as_fn_error $? "gcc 3.x required, but you have a lower version" "$LINENO" 5
759676c7fc5fSjoergfi
759776c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
759876c7fc5fSjoergfi
759976c7fc5fSjoerg
760076c7fc5fSjoergif test -z "$llvm_cv_gnu_make_command"
760176c7fc5fSjoergthen
760276c7fc5fSjoerg  as_fn_error $? "GNU Make required but not found" "$LINENO" 5
760376c7fc5fSjoergfi
760476c7fc5fSjoerg
760576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
760676c7fc5fSjoerg$as_echo "ok" >&6; }
760776c7fc5fSjoerg
760876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
760976c7fc5fSjoerg$as_echo_n "checking optional compiler flags... " >&6; }
761076c7fc5fSjoergcase "$llvm_cv_cxx_compiler" in
761176c7fc5fSjoerg  clang)
761276c7fc5fSjoerg    NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
761376c7fc5fSjoerg
761476c7fc5fSjoerg    MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers`
761576c7fc5fSjoerg
761676c7fc5fSjoerg    COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
761776c7fc5fSjoerg
761876c7fc5fSjoerg    ;;
761976c7fc5fSjoerg  gcc)
762076c7fc5fSjoerg                MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
762176c7fc5fSjoerg
762276c7fc5fSjoerg    NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
762376c7fc5fSjoerg
762476c7fc5fSjoerg    COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
762576c7fc5fSjoerg
762676c7fc5fSjoerg    NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
762776c7fc5fSjoerg
762876c7fc5fSjoerg                if test -z "$NO_MAYBE_UNINITIALIZED"
762976c7fc5fSjoerg    then
763076c7fc5fSjoerg      NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
763176c7fc5fSjoerg
763276c7fc5fSjoerg    fi
763376c7fc5fSjoerg    ;;
763476c7fc5fSjoerg  unknown)
763576c7fc5fSjoerg    ;;
763676c7fc5fSjoergesac
763776c7fc5fSjoerg
763876c7fc5fSjoergno_comment=
763976c7fc5fSjoergllvm_cv_old_cxxflags="$CXXFLAGS"
764076c7fc5fSjoergCXXFLAGS="$CXXFLAGS -Wcomment -Werror"
764176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
764276c7fc5fSjoerg/* end confdefs.h.  */
764376c7fc5fSjoerg
764476c7fc5fSjoerg  // Comment \o\
764576c7fc5fSjoerg// Another comment
764676c7fc5fSjoergint main() { return 0; }
764776c7fc5fSjoerg
764876c7fc5fSjoerg
764976c7fc5fSjoerg_ACEOF
765076c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
765176c7fc5fSjoerg
765276c7fc5fSjoerg  no_comment=-Wno-comment
765376c7fc5fSjoerg
765476c7fc5fSjoergfi
765576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
765676c7fc5fSjoergNO_COMMENT=$no_comment
765776c7fc5fSjoerg
765876c7fc5fSjoergCXXFLAGS="$llvm_cv_old_cxxflags"
765976c7fc5fSjoerg
766076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
766176c7fc5fSjoerg$as_echo "$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
766276c7fc5fSjoerg
766376c7fc5fSjoerg
766476c7fc5fSjoergif test "$llvm_cv_os_type" = "MingW" ; then
766576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
766676c7fc5fSjoerg$as_echo_n "checking for main in -lpsapi... " >&6; }
766776c7fc5fSjoergif ${ac_cv_lib_psapi_main+:} false; then :
766876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
766976c7fc5fSjoergelse
767076c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
767176c7fc5fSjoergLIBS="-lpsapi  $LIBS"
767276c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
767376c7fc5fSjoerg/* end confdefs.h.  */
767476c7fc5fSjoerg
767576c7fc5fSjoerg
767676c7fc5fSjoergint
767776c7fc5fSjoergmain ()
767876c7fc5fSjoerg{
767976c7fc5fSjoergreturn main ();
768076c7fc5fSjoerg  ;
768176c7fc5fSjoerg  return 0;
768276c7fc5fSjoerg}
768376c7fc5fSjoerg_ACEOF
768476c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
768576c7fc5fSjoerg  ac_cv_lib_psapi_main=yes
768676c7fc5fSjoergelse
768776c7fc5fSjoerg  ac_cv_lib_psapi_main=no
768876c7fc5fSjoergfi
768976c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
769076c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
769176c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
769276c7fc5fSjoergfi
769376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
769476c7fc5fSjoerg$as_echo "$ac_cv_lib_psapi_main" >&6; }
769576c7fc5fSjoergif test "x$ac_cv_lib_psapi_main" = xyes; then :
769676c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
769776c7fc5fSjoerg#define HAVE_LIBPSAPI 1
769876c7fc5fSjoerg_ACEOF
769976c7fc5fSjoerg
770076c7fc5fSjoerg  LIBS="-lpsapi $LIBS"
770176c7fc5fSjoerg
770276c7fc5fSjoergfi
770376c7fc5fSjoerg
770476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lshell32" >&5
770576c7fc5fSjoerg$as_echo_n "checking for main in -lshell32... " >&6; }
770676c7fc5fSjoergif ${ac_cv_lib_shell32_main+:} false; then :
770776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
770876c7fc5fSjoergelse
770976c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
771076c7fc5fSjoergLIBS="-lshell32  $LIBS"
771176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
771276c7fc5fSjoerg/* end confdefs.h.  */
771376c7fc5fSjoerg
771476c7fc5fSjoerg
771576c7fc5fSjoergint
771676c7fc5fSjoergmain ()
771776c7fc5fSjoerg{
771876c7fc5fSjoergreturn main ();
771976c7fc5fSjoerg  ;
772076c7fc5fSjoerg  return 0;
772176c7fc5fSjoerg}
772276c7fc5fSjoerg_ACEOF
772376c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
772476c7fc5fSjoerg  ac_cv_lib_shell32_main=yes
772576c7fc5fSjoergelse
772676c7fc5fSjoerg  ac_cv_lib_shell32_main=no
772776c7fc5fSjoergfi
772876c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
772976c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
773076c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
773176c7fc5fSjoergfi
773276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shell32_main" >&5
773376c7fc5fSjoerg$as_echo "$ac_cv_lib_shell32_main" >&6; }
773476c7fc5fSjoergif test "x$ac_cv_lib_shell32_main" = xyes; then :
773576c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
773676c7fc5fSjoerg#define HAVE_LIBSHELL32 1
773776c7fc5fSjoerg_ACEOF
773876c7fc5fSjoerg
773976c7fc5fSjoerg  LIBS="-lshell32 $LIBS"
774076c7fc5fSjoerg
774176c7fc5fSjoergfi
774276c7fc5fSjoerg
774376c7fc5fSjoergfi
774476c7fc5fSjoerg
774576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
774676c7fc5fSjoerg$as_echo_n "checking for library containing dlopen... " >&6; }
774776c7fc5fSjoergif ${ac_cv_search_dlopen+:} false; then :
774876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
774976c7fc5fSjoergelse
775076c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
775176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
775276c7fc5fSjoerg/* end confdefs.h.  */
775376c7fc5fSjoerg
775476c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
775576c7fc5fSjoerg   Use char because int might match the return type of a GCC
775676c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
775776c7fc5fSjoerg#ifdef __cplusplus
775876c7fc5fSjoergextern "C"
775976c7fc5fSjoerg#endif
776076c7fc5fSjoergchar dlopen ();
776176c7fc5fSjoergint
776276c7fc5fSjoergmain ()
776376c7fc5fSjoerg{
776476c7fc5fSjoergreturn dlopen ();
776576c7fc5fSjoerg  ;
776676c7fc5fSjoerg  return 0;
776776c7fc5fSjoerg}
776876c7fc5fSjoerg_ACEOF
776976c7fc5fSjoergfor ac_lib in '' dl; do
777076c7fc5fSjoerg  if test -z "$ac_lib"; then
777176c7fc5fSjoerg    ac_res="none required"
777276c7fc5fSjoerg  else
777376c7fc5fSjoerg    ac_res=-l$ac_lib
777476c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
777576c7fc5fSjoerg  fi
777676c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
777776c7fc5fSjoerg  ac_cv_search_dlopen=$ac_res
777876c7fc5fSjoergfi
777976c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
778076c7fc5fSjoerg    conftest$ac_exeext
778176c7fc5fSjoerg  if ${ac_cv_search_dlopen+:} false; then :
778276c7fc5fSjoerg  break
778376c7fc5fSjoergfi
778476c7fc5fSjoergdone
778576c7fc5fSjoergif ${ac_cv_search_dlopen+:} false; then :
778676c7fc5fSjoerg
778776c7fc5fSjoergelse
778876c7fc5fSjoerg  ac_cv_search_dlopen=no
778976c7fc5fSjoergfi
779076c7fc5fSjoergrm conftest.$ac_ext
779176c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
779276c7fc5fSjoergfi
779376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
779476c7fc5fSjoerg$as_echo "$ac_cv_search_dlopen" >&6; }
779576c7fc5fSjoergac_res=$ac_cv_search_dlopen
779676c7fc5fSjoergif test "$ac_res" != no; then :
779776c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
779876c7fc5fSjoerg
779976c7fc5fSjoerg
780076c7fc5fSjoerg$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
780176c7fc5fSjoerg
780276c7fc5fSjoergHAVE_DLOPEN='1'
780376c7fc5fSjoerg
780476c7fc5fSjoerg
780576c7fc5fSjoergelse
780676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
780776c7fc5fSjoerg$as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
780876c7fc5fSjoergfi
780976c7fc5fSjoerg
781076c7fc5fSjoerg
781176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
781276c7fc5fSjoerg$as_echo_n "checking for library containing clock_gettime... " >&6; }
781376c7fc5fSjoergif ${ac_cv_search_clock_gettime+:} false; then :
781476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
781576c7fc5fSjoergelse
781676c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
781776c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
781876c7fc5fSjoerg/* end confdefs.h.  */
781976c7fc5fSjoerg
782076c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
782176c7fc5fSjoerg   Use char because int might match the return type of a GCC
782276c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
782376c7fc5fSjoerg#ifdef __cplusplus
782476c7fc5fSjoergextern "C"
782576c7fc5fSjoerg#endif
782676c7fc5fSjoergchar clock_gettime ();
782776c7fc5fSjoergint
782876c7fc5fSjoergmain ()
782976c7fc5fSjoerg{
783076c7fc5fSjoergreturn clock_gettime ();
783176c7fc5fSjoerg  ;
783276c7fc5fSjoerg  return 0;
783376c7fc5fSjoerg}
783476c7fc5fSjoerg_ACEOF
783576c7fc5fSjoergfor ac_lib in '' rt; do
783676c7fc5fSjoerg  if test -z "$ac_lib"; then
783776c7fc5fSjoerg    ac_res="none required"
783876c7fc5fSjoerg  else
783976c7fc5fSjoerg    ac_res=-l$ac_lib
784076c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
784176c7fc5fSjoerg  fi
784276c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
784376c7fc5fSjoerg  ac_cv_search_clock_gettime=$ac_res
784476c7fc5fSjoergfi
784576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
784676c7fc5fSjoerg    conftest$ac_exeext
784776c7fc5fSjoerg  if ${ac_cv_search_clock_gettime+:} false; then :
784876c7fc5fSjoerg  break
784976c7fc5fSjoergfi
785076c7fc5fSjoergdone
785176c7fc5fSjoergif ${ac_cv_search_clock_gettime+:} false; then :
785276c7fc5fSjoerg
785376c7fc5fSjoergelse
785476c7fc5fSjoerg  ac_cv_search_clock_gettime=no
785576c7fc5fSjoergfi
785676c7fc5fSjoergrm conftest.$ac_ext
785776c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
785876c7fc5fSjoergfi
785976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
786076c7fc5fSjoerg$as_echo "$ac_cv_search_clock_gettime" >&6; }
786176c7fc5fSjoergac_res=$ac_cv_search_clock_gettime
786276c7fc5fSjoergif test "$ac_res" != no; then :
786376c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
786476c7fc5fSjoerg
786576c7fc5fSjoergfi
786676c7fc5fSjoerg
786776c7fc5fSjoerg
786876c7fc5fSjoergif test "$llvm_cv_enable_terminfo" = "yes" ; then
786976c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setupterm" >&5
787076c7fc5fSjoerg$as_echo_n "checking for library containing setupterm... " >&6; }
787176c7fc5fSjoergif ${ac_cv_search_setupterm+:} false; then :
787276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
787376c7fc5fSjoergelse
787476c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
787576c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
787676c7fc5fSjoerg/* end confdefs.h.  */
787776c7fc5fSjoerg
787876c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
787976c7fc5fSjoerg   Use char because int might match the return type of a GCC
788076c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
788176c7fc5fSjoerg#ifdef __cplusplus
788276c7fc5fSjoergextern "C"
788376c7fc5fSjoerg#endif
788476c7fc5fSjoergchar setupterm ();
788576c7fc5fSjoergint
788676c7fc5fSjoergmain ()
788776c7fc5fSjoerg{
788876c7fc5fSjoergreturn setupterm ();
788976c7fc5fSjoerg  ;
789076c7fc5fSjoerg  return 0;
789176c7fc5fSjoerg}
789276c7fc5fSjoerg_ACEOF
789376c7fc5fSjoergfor ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
789476c7fc5fSjoerg  if test -z "$ac_lib"; then
789576c7fc5fSjoerg    ac_res="none required"
789676c7fc5fSjoerg  else
789776c7fc5fSjoerg    ac_res=-l$ac_lib
789876c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
789976c7fc5fSjoerg  fi
790076c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
790176c7fc5fSjoerg  ac_cv_search_setupterm=$ac_res
790276c7fc5fSjoergfi
790376c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
790476c7fc5fSjoerg    conftest$ac_exeext
790576c7fc5fSjoerg  if ${ac_cv_search_setupterm+:} false; then :
790676c7fc5fSjoerg  break
790776c7fc5fSjoergfi
790876c7fc5fSjoergdone
790976c7fc5fSjoergif ${ac_cv_search_setupterm+:} false; then :
791076c7fc5fSjoerg
791176c7fc5fSjoergelse
791276c7fc5fSjoerg  ac_cv_search_setupterm=no
791376c7fc5fSjoergfi
791476c7fc5fSjoergrm conftest.$ac_ext
791576c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
791676c7fc5fSjoergfi
791776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5
791876c7fc5fSjoerg$as_echo "$ac_cv_search_setupterm" >&6; }
791976c7fc5fSjoergac_res=$ac_cv_search_setupterm
792076c7fc5fSjoergif test "$ac_res" != no; then :
792176c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
792276c7fc5fSjoerg
792376c7fc5fSjoerg
792476c7fc5fSjoerg$as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
792576c7fc5fSjoerg
792676c7fc5fSjoergHAVE_TERMINFO='1'
792776c7fc5fSjoerg
792876c7fc5fSjoerg
792976c7fc5fSjoergfi
793076c7fc5fSjoerg
793176c7fc5fSjoergfi
793276c7fc5fSjoerg
793376c7fc5fSjoergif test "$llvm_cv_enable_libedit" = "yes" ; then
793476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing el_init" >&5
793576c7fc5fSjoerg$as_echo_n "checking for library containing el_init... " >&6; }
793676c7fc5fSjoergif ${ac_cv_search_el_init+:} false; then :
793776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
793876c7fc5fSjoergelse
793976c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
794076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
794176c7fc5fSjoerg/* end confdefs.h.  */
794276c7fc5fSjoerg
794376c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
794476c7fc5fSjoerg   Use char because int might match the return type of a GCC
794576c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
794676c7fc5fSjoerg#ifdef __cplusplus
794776c7fc5fSjoergextern "C"
794876c7fc5fSjoerg#endif
794976c7fc5fSjoergchar el_init ();
795076c7fc5fSjoergint
795176c7fc5fSjoergmain ()
795276c7fc5fSjoerg{
795376c7fc5fSjoergreturn el_init ();
795476c7fc5fSjoerg  ;
795576c7fc5fSjoerg  return 0;
795676c7fc5fSjoerg}
795776c7fc5fSjoerg_ACEOF
795876c7fc5fSjoergfor ac_lib in '' edit; do
795976c7fc5fSjoerg  if test -z "$ac_lib"; then
796076c7fc5fSjoerg    ac_res="none required"
796176c7fc5fSjoerg  else
796276c7fc5fSjoerg    ac_res=-l$ac_lib
796376c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
796476c7fc5fSjoerg  fi
796576c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
796676c7fc5fSjoerg  ac_cv_search_el_init=$ac_res
796776c7fc5fSjoergfi
796876c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
796976c7fc5fSjoerg    conftest$ac_exeext
797076c7fc5fSjoerg  if ${ac_cv_search_el_init+:} false; then :
797176c7fc5fSjoerg  break
797276c7fc5fSjoergfi
797376c7fc5fSjoergdone
797476c7fc5fSjoergif ${ac_cv_search_el_init+:} false; then :
797576c7fc5fSjoerg
797676c7fc5fSjoergelse
797776c7fc5fSjoerg  ac_cv_search_el_init=no
797876c7fc5fSjoergfi
797976c7fc5fSjoergrm conftest.$ac_ext
798076c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
798176c7fc5fSjoergfi
798276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_el_init" >&5
798376c7fc5fSjoerg$as_echo "$ac_cv_search_el_init" >&6; }
798476c7fc5fSjoergac_res=$ac_cv_search_el_init
798576c7fc5fSjoergif test "$ac_res" != no; then :
798676c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
798776c7fc5fSjoerg
798876c7fc5fSjoerg$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
798976c7fc5fSjoerg
799076c7fc5fSjoergfi
799176c7fc5fSjoerg
799276c7fc5fSjoergfi
799376c7fc5fSjoerg
799476c7fc5fSjoergif test "$llvm_cv_enable_libffi" = "yes" ; then
799576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
799676c7fc5fSjoerg$as_echo_n "checking for library containing ffi_call... " >&6; }
799776c7fc5fSjoergif ${ac_cv_search_ffi_call+:} false; then :
799876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
799976c7fc5fSjoergelse
800076c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
800176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
800276c7fc5fSjoerg/* end confdefs.h.  */
800376c7fc5fSjoerg
800476c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
800576c7fc5fSjoerg   Use char because int might match the return type of a GCC
800676c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
800776c7fc5fSjoerg#ifdef __cplusplus
800876c7fc5fSjoergextern "C"
800976c7fc5fSjoerg#endif
801076c7fc5fSjoergchar ffi_call ();
801176c7fc5fSjoergint
801276c7fc5fSjoergmain ()
801376c7fc5fSjoerg{
801476c7fc5fSjoergreturn ffi_call ();
801576c7fc5fSjoerg  ;
801676c7fc5fSjoerg  return 0;
801776c7fc5fSjoerg}
801876c7fc5fSjoerg_ACEOF
801976c7fc5fSjoergfor ac_lib in '' ffi; do
802076c7fc5fSjoerg  if test -z "$ac_lib"; then
802176c7fc5fSjoerg    ac_res="none required"
802276c7fc5fSjoerg  else
802376c7fc5fSjoerg    ac_res=-l$ac_lib
802476c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
802576c7fc5fSjoerg  fi
802676c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
802776c7fc5fSjoerg  ac_cv_search_ffi_call=$ac_res
802876c7fc5fSjoergfi
802976c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
803076c7fc5fSjoerg    conftest$ac_exeext
803176c7fc5fSjoerg  if ${ac_cv_search_ffi_call+:} false; then :
803276c7fc5fSjoerg  break
803376c7fc5fSjoergfi
803476c7fc5fSjoergdone
803576c7fc5fSjoergif ${ac_cv_search_ffi_call+:} false; then :
803676c7fc5fSjoerg
803776c7fc5fSjoergelse
803876c7fc5fSjoerg  ac_cv_search_ffi_call=no
803976c7fc5fSjoergfi
804076c7fc5fSjoergrm conftest.$ac_ext
804176c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
804276c7fc5fSjoergfi
804376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
804476c7fc5fSjoerg$as_echo "$ac_cv_search_ffi_call" >&6; }
804576c7fc5fSjoergac_res=$ac_cv_search_ffi_call
804676c7fc5fSjoergif test "$ac_res" != no; then :
804776c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
804876c7fc5fSjoerg
804976c7fc5fSjoerg$as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
805076c7fc5fSjoerg
805176c7fc5fSjoergelse
805276c7fc5fSjoerg  as_fn_error $? "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5
805376c7fc5fSjoergfi
805476c7fc5fSjoerg
805576c7fc5fSjoergfi
805676c7fc5fSjoerg
805776c7fc5fSjoergfor ac_func in mallinfo mallctl
805876c7fc5fSjoergdo :
805976c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
806076c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
806176c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
806276c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
806376c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
806476c7fc5fSjoerg_ACEOF
806576c7fc5fSjoerg
806676c7fc5fSjoergfi
806776c7fc5fSjoergdone
806876c7fc5fSjoerg
806976c7fc5fSjoerg
807076c7fc5fSjoergif test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
807176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
807276c7fc5fSjoerg$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
807376c7fc5fSjoergif ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
807476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
807576c7fc5fSjoergelse
807676c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
807776c7fc5fSjoergLIBS="-lpthread  $LIBS"
807876c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
807976c7fc5fSjoerg/* end confdefs.h.  */
808076c7fc5fSjoerg
808176c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
808276c7fc5fSjoerg   Use char because int might match the return type of a GCC
808376c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
808476c7fc5fSjoerg#ifdef __cplusplus
808576c7fc5fSjoergextern "C"
808676c7fc5fSjoerg#endif
808776c7fc5fSjoergchar pthread_mutex_init ();
808876c7fc5fSjoergint
808976c7fc5fSjoergmain ()
809076c7fc5fSjoerg{
809176c7fc5fSjoergreturn pthread_mutex_init ();
809276c7fc5fSjoerg  ;
809376c7fc5fSjoerg  return 0;
809476c7fc5fSjoerg}
809576c7fc5fSjoerg_ACEOF
809676c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
809776c7fc5fSjoerg  ac_cv_lib_pthread_pthread_mutex_init=yes
809876c7fc5fSjoergelse
809976c7fc5fSjoerg  ac_cv_lib_pthread_pthread_mutex_init=no
810076c7fc5fSjoergfi
810176c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
810276c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
810376c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
810476c7fc5fSjoergfi
810576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
810676c7fc5fSjoerg$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
810776c7fc5fSjoergif test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
810876c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
810976c7fc5fSjoerg#define HAVE_LIBPTHREAD 1
811076c7fc5fSjoerg_ACEOF
811176c7fc5fSjoerg
811276c7fc5fSjoerg  LIBS="-lpthread $LIBS"
811376c7fc5fSjoerg
811476c7fc5fSjoergfi
811576c7fc5fSjoerg
811676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
811776c7fc5fSjoerg$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
811876c7fc5fSjoergif ${ac_cv_search_pthread_mutex_lock+:} false; then :
811976c7fc5fSjoerg  $as_echo_n "(cached) " >&6
812076c7fc5fSjoergelse
812176c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
812276c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
812376c7fc5fSjoerg/* end confdefs.h.  */
812476c7fc5fSjoerg
812576c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
812676c7fc5fSjoerg   Use char because int might match the return type of a GCC
812776c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
812876c7fc5fSjoerg#ifdef __cplusplus
812976c7fc5fSjoergextern "C"
813076c7fc5fSjoerg#endif
813176c7fc5fSjoergchar pthread_mutex_lock ();
813276c7fc5fSjoergint
813376c7fc5fSjoergmain ()
813476c7fc5fSjoerg{
813576c7fc5fSjoergreturn pthread_mutex_lock ();
813676c7fc5fSjoerg  ;
813776c7fc5fSjoerg  return 0;
813876c7fc5fSjoerg}
813976c7fc5fSjoerg_ACEOF
814076c7fc5fSjoergfor ac_lib in '' pthread; do
814176c7fc5fSjoerg  if test -z "$ac_lib"; then
814276c7fc5fSjoerg    ac_res="none required"
814376c7fc5fSjoerg  else
814476c7fc5fSjoerg    ac_res=-l$ac_lib
814576c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
814676c7fc5fSjoerg  fi
814776c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
814876c7fc5fSjoerg  ac_cv_search_pthread_mutex_lock=$ac_res
814976c7fc5fSjoergfi
815076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
815176c7fc5fSjoerg    conftest$ac_exeext
815276c7fc5fSjoerg  if ${ac_cv_search_pthread_mutex_lock+:} false; then :
815376c7fc5fSjoerg  break
815476c7fc5fSjoergfi
815576c7fc5fSjoergdone
815676c7fc5fSjoergif ${ac_cv_search_pthread_mutex_lock+:} false; then :
815776c7fc5fSjoerg
815876c7fc5fSjoergelse
815976c7fc5fSjoerg  ac_cv_search_pthread_mutex_lock=no
816076c7fc5fSjoergfi
816176c7fc5fSjoergrm conftest.$ac_ext
816276c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
816376c7fc5fSjoergfi
816476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
816576c7fc5fSjoerg$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
816676c7fc5fSjoergac_res=$ac_cv_search_pthread_mutex_lock
816776c7fc5fSjoergif test "$ac_res" != no; then :
816876c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
816976c7fc5fSjoerg
817076c7fc5fSjoerg$as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
817176c7fc5fSjoerg
817276c7fc5fSjoergfi
817376c7fc5fSjoerg
817476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
817576c7fc5fSjoerg$as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
817676c7fc5fSjoergif ${ac_cv_search_pthread_rwlock_init+:} false; then :
817776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
817876c7fc5fSjoergelse
817976c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
818076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
818176c7fc5fSjoerg/* end confdefs.h.  */
818276c7fc5fSjoerg
818376c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
818476c7fc5fSjoerg   Use char because int might match the return type of a GCC
818576c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
818676c7fc5fSjoerg#ifdef __cplusplus
818776c7fc5fSjoergextern "C"
818876c7fc5fSjoerg#endif
818976c7fc5fSjoergchar pthread_rwlock_init ();
819076c7fc5fSjoergint
819176c7fc5fSjoergmain ()
819276c7fc5fSjoerg{
819376c7fc5fSjoergreturn pthread_rwlock_init ();
819476c7fc5fSjoerg  ;
819576c7fc5fSjoerg  return 0;
819676c7fc5fSjoerg}
819776c7fc5fSjoerg_ACEOF
819876c7fc5fSjoergfor ac_lib in '' pthread; do
819976c7fc5fSjoerg  if test -z "$ac_lib"; then
820076c7fc5fSjoerg    ac_res="none required"
820176c7fc5fSjoerg  else
820276c7fc5fSjoerg    ac_res=-l$ac_lib
820376c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
820476c7fc5fSjoerg  fi
820576c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
820676c7fc5fSjoerg  ac_cv_search_pthread_rwlock_init=$ac_res
820776c7fc5fSjoergfi
820876c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
820976c7fc5fSjoerg    conftest$ac_exeext
821076c7fc5fSjoerg  if ${ac_cv_search_pthread_rwlock_init+:} false; then :
821176c7fc5fSjoerg  break
821276c7fc5fSjoergfi
821376c7fc5fSjoergdone
821476c7fc5fSjoergif ${ac_cv_search_pthread_rwlock_init+:} false; then :
821576c7fc5fSjoerg
821676c7fc5fSjoergelse
821776c7fc5fSjoerg  ac_cv_search_pthread_rwlock_init=no
821876c7fc5fSjoergfi
821976c7fc5fSjoergrm conftest.$ac_ext
822076c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
822176c7fc5fSjoergfi
822276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
822376c7fc5fSjoerg$as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
822476c7fc5fSjoergac_res=$ac_cv_search_pthread_rwlock_init
822576c7fc5fSjoergif test "$ac_res" != no; then :
822676c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
822776c7fc5fSjoerg
822876c7fc5fSjoerg$as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
822976c7fc5fSjoerg
823076c7fc5fSjoergfi
823176c7fc5fSjoerg
823276c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
823376c7fc5fSjoerg$as_echo_n "checking for library containing pthread_getspecific... " >&6; }
823476c7fc5fSjoergif ${ac_cv_search_pthread_getspecific+:} false; then :
823576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
823676c7fc5fSjoergelse
823776c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
823876c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
823976c7fc5fSjoerg/* end confdefs.h.  */
824076c7fc5fSjoerg
824176c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
824276c7fc5fSjoerg   Use char because int might match the return type of a GCC
824376c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
824476c7fc5fSjoerg#ifdef __cplusplus
824576c7fc5fSjoergextern "C"
824676c7fc5fSjoerg#endif
824776c7fc5fSjoergchar pthread_getspecific ();
824876c7fc5fSjoergint
824976c7fc5fSjoergmain ()
825076c7fc5fSjoerg{
825176c7fc5fSjoergreturn pthread_getspecific ();
825276c7fc5fSjoerg  ;
825376c7fc5fSjoerg  return 0;
825476c7fc5fSjoerg}
825576c7fc5fSjoerg_ACEOF
825676c7fc5fSjoergfor ac_lib in '' pthread; do
825776c7fc5fSjoerg  if test -z "$ac_lib"; then
825876c7fc5fSjoerg    ac_res="none required"
825976c7fc5fSjoerg  else
826076c7fc5fSjoerg    ac_res=-l$ac_lib
826176c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
826276c7fc5fSjoerg  fi
826376c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
826476c7fc5fSjoerg  ac_cv_search_pthread_getspecific=$ac_res
826576c7fc5fSjoergfi
826676c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
826776c7fc5fSjoerg    conftest$ac_exeext
826876c7fc5fSjoerg  if ${ac_cv_search_pthread_getspecific+:} false; then :
826976c7fc5fSjoerg  break
827076c7fc5fSjoergfi
827176c7fc5fSjoergdone
827276c7fc5fSjoergif ${ac_cv_search_pthread_getspecific+:} false; then :
827376c7fc5fSjoerg
827476c7fc5fSjoergelse
827576c7fc5fSjoerg  ac_cv_search_pthread_getspecific=no
827676c7fc5fSjoergfi
827776c7fc5fSjoergrm conftest.$ac_ext
827876c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
827976c7fc5fSjoergfi
828076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
828176c7fc5fSjoerg$as_echo "$ac_cv_search_pthread_getspecific" >&6; }
828276c7fc5fSjoergac_res=$ac_cv_search_pthread_getspecific
828376c7fc5fSjoergif test "$ac_res" != no; then :
828476c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
828576c7fc5fSjoerg
828676c7fc5fSjoerg$as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
828776c7fc5fSjoerg
828876c7fc5fSjoergfi
828976c7fc5fSjoerg
829076c7fc5fSjoergfi
829176c7fc5fSjoerg
829276c7fc5fSjoergif test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
829376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
829476c7fc5fSjoerg$as_echo_n "checking for compress2 in -lz... " >&6; }
829576c7fc5fSjoergif ${ac_cv_lib_z_compress2+:} false; then :
829676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
829776c7fc5fSjoergelse
829876c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
829976c7fc5fSjoergLIBS="-lz  $LIBS"
830076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
830176c7fc5fSjoerg/* end confdefs.h.  */
830276c7fc5fSjoerg
830376c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
830476c7fc5fSjoerg   Use char because int might match the return type of a GCC
830576c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
830676c7fc5fSjoerg#ifdef __cplusplus
830776c7fc5fSjoergextern "C"
830876c7fc5fSjoerg#endif
830976c7fc5fSjoergchar compress2 ();
831076c7fc5fSjoergint
831176c7fc5fSjoergmain ()
831276c7fc5fSjoerg{
831376c7fc5fSjoergreturn compress2 ();
831476c7fc5fSjoerg  ;
831576c7fc5fSjoerg  return 0;
831676c7fc5fSjoerg}
831776c7fc5fSjoerg_ACEOF
831876c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
831976c7fc5fSjoerg  ac_cv_lib_z_compress2=yes
832076c7fc5fSjoergelse
832176c7fc5fSjoerg  ac_cv_lib_z_compress2=no
832276c7fc5fSjoergfi
832376c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
832476c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
832576c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
832676c7fc5fSjoergfi
832776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
832876c7fc5fSjoerg$as_echo "$ac_cv_lib_z_compress2" >&6; }
832976c7fc5fSjoergif test "x$ac_cv_lib_z_compress2" = xyes; then :
833076c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
833176c7fc5fSjoerg#define HAVE_LIBZ 1
833276c7fc5fSjoerg_ACEOF
833376c7fc5fSjoerg
833476c7fc5fSjoerg  LIBS="-lz $LIBS"
833576c7fc5fSjoerg
833676c7fc5fSjoergfi
833776c7fc5fSjoerg
833876c7fc5fSjoergfi
833976c7fc5fSjoerg
834076c7fc5fSjoergUSE_OPROFILE=0
834176c7fc5fSjoerg
834276c7fc5fSjoerg# Check whether --with-oprofile was given.
834376c7fc5fSjoergif test "${with_oprofile+set}" = set; then :
834476c7fc5fSjoerg  withval=$with_oprofile;
834576c7fc5fSjoerg      case "$withval" in
834676c7fc5fSjoerg      no) ;;
834776c7fc5fSjoerg      *)
834876c7fc5fSjoerg          USE_OPROFILE=1
834976c7fc5fSjoerg          ;;
835076c7fc5fSjoerg      esac
835176c7fc5fSjoerg      case "$withval" in
835276c7fc5fSjoerg        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
835376c7fc5fSjoerg        no) llvm_cv_oppath= ;;
835476c7fc5fSjoerg        *) llvm_cv_oppath="${withval}/lib/oprofile"
835576c7fc5fSjoerg           CPPFLAGS="-I${withval}/include";;
835676c7fc5fSjoerg      esac
835776c7fc5fSjoerg      case $llvm_cv_os_type in
835876c7fc5fSjoerg        Linux)
835976c7fc5fSjoerg          if test -n "$llvm_cv_oppath" ; then
836076c7fc5fSjoerg            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
836176c7fc5fSjoerg                                                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
836276c7fc5fSjoerg$as_echo_n "checking for library containing bfd_init... " >&6; }
836376c7fc5fSjoergif ${ac_cv_search_bfd_init+:} false; then :
836476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
836576c7fc5fSjoergelse
836676c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
836776c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
836876c7fc5fSjoerg/* end confdefs.h.  */
836976c7fc5fSjoerg
837076c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
837176c7fc5fSjoerg   Use char because int might match the return type of a GCC
837276c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
837376c7fc5fSjoerg#ifdef __cplusplus
837476c7fc5fSjoergextern "C"
837576c7fc5fSjoerg#endif
837676c7fc5fSjoergchar bfd_init ();
837776c7fc5fSjoergint
837876c7fc5fSjoergmain ()
837976c7fc5fSjoerg{
838076c7fc5fSjoergreturn bfd_init ();
838176c7fc5fSjoerg  ;
838276c7fc5fSjoerg  return 0;
838376c7fc5fSjoerg}
838476c7fc5fSjoerg_ACEOF
838576c7fc5fSjoergfor ac_lib in '' bfd; do
838676c7fc5fSjoerg  if test -z "$ac_lib"; then
838776c7fc5fSjoerg    ac_res="none required"
838876c7fc5fSjoerg  else
838976c7fc5fSjoerg    ac_res=-l$ac_lib
839076c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
839176c7fc5fSjoerg  fi
839276c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
839376c7fc5fSjoerg  ac_cv_search_bfd_init=$ac_res
839476c7fc5fSjoergfi
839576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
839676c7fc5fSjoerg    conftest$ac_exeext
839776c7fc5fSjoerg  if ${ac_cv_search_bfd_init+:} false; then :
839876c7fc5fSjoerg  break
839976c7fc5fSjoergfi
840076c7fc5fSjoergdone
840176c7fc5fSjoergif ${ac_cv_search_bfd_init+:} false; then :
840276c7fc5fSjoerg
840376c7fc5fSjoergelse
840476c7fc5fSjoerg  ac_cv_search_bfd_init=no
840576c7fc5fSjoergfi
840676c7fc5fSjoergrm conftest.$ac_ext
840776c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
840876c7fc5fSjoergfi
840976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
841076c7fc5fSjoerg$as_echo "$ac_cv_search_bfd_init" >&6; }
841176c7fc5fSjoergac_res=$ac_cv_search_bfd_init
841276c7fc5fSjoergif test "$ac_res" != no; then :
841376c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
841476c7fc5fSjoerg
841576c7fc5fSjoergfi
841676c7fc5fSjoerg
841776c7fc5fSjoerg            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
841876c7fc5fSjoerg$as_echo_n "checking for library containing op_open_agent... " >&6; }
841976c7fc5fSjoergif ${ac_cv_search_op_open_agent+:} false; then :
842076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
842176c7fc5fSjoergelse
842276c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
842376c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
842476c7fc5fSjoerg/* end confdefs.h.  */
842576c7fc5fSjoerg
842676c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
842776c7fc5fSjoerg   Use char because int might match the return type of a GCC
842876c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
842976c7fc5fSjoerg#ifdef __cplusplus
843076c7fc5fSjoergextern "C"
843176c7fc5fSjoerg#endif
843276c7fc5fSjoergchar op_open_agent ();
843376c7fc5fSjoergint
843476c7fc5fSjoergmain ()
843576c7fc5fSjoerg{
843676c7fc5fSjoergreturn op_open_agent ();
843776c7fc5fSjoerg  ;
843876c7fc5fSjoerg  return 0;
843976c7fc5fSjoerg}
844076c7fc5fSjoerg_ACEOF
844176c7fc5fSjoergfor ac_lib in '' opagent; do
844276c7fc5fSjoerg  if test -z "$ac_lib"; then
844376c7fc5fSjoerg    ac_res="none required"
844476c7fc5fSjoerg  else
844576c7fc5fSjoerg    ac_res=-l$ac_lib
844676c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
844776c7fc5fSjoerg  fi
844876c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
844976c7fc5fSjoerg  ac_cv_search_op_open_agent=$ac_res
845076c7fc5fSjoergfi
845176c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
845276c7fc5fSjoerg    conftest$ac_exeext
845376c7fc5fSjoerg  if ${ac_cv_search_op_open_agent+:} false; then :
845476c7fc5fSjoerg  break
845576c7fc5fSjoergfi
845676c7fc5fSjoergdone
845776c7fc5fSjoergif ${ac_cv_search_op_open_agent+:} false; then :
845876c7fc5fSjoerg
845976c7fc5fSjoergelse
846076c7fc5fSjoerg  ac_cv_search_op_open_agent=no
846176c7fc5fSjoergfi
846276c7fc5fSjoergrm conftest.$ac_ext
846376c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
846476c7fc5fSjoergfi
846576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
846676c7fc5fSjoerg$as_echo "$ac_cv_search_op_open_agent" >&6; }
846776c7fc5fSjoergac_res=$ac_cv_search_op_open_agent
846876c7fc5fSjoergif test "$ac_res" != no; then :
846976c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
847076c7fc5fSjoerg
847176c7fc5fSjoergelse
847276c7fc5fSjoerg
847376c7fc5fSjoerg              echo "Error! You need to have libopagent around."
847476c7fc5fSjoerg              exit 1
847576c7fc5fSjoerg
847676c7fc5fSjoergfi
847776c7fc5fSjoerg
847876c7fc5fSjoerg            ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
847976c7fc5fSjoergif test "x$ac_cv_header_opagent_h" = xyes; then :
848076c7fc5fSjoerg
848176c7fc5fSjoergelse
848276c7fc5fSjoerg
848376c7fc5fSjoerg              echo "Error! You need to have opagent.h around."
848476c7fc5fSjoerg              exit 1
848576c7fc5fSjoerg
848676c7fc5fSjoergfi
848776c7fc5fSjoerg
848876c7fc5fSjoerg
848976c7fc5fSjoerg          fi ;;
849076c7fc5fSjoerg        *)
849176c7fc5fSjoerg          as_fn_error $? "OProfile support is available on Linux only." "$LINENO" 5 ;;
849276c7fc5fSjoerg      esac
849376c7fc5fSjoerg
849476c7fc5fSjoergfi
849576c7fc5fSjoerg
849676c7fc5fSjoergUSE_OPROFILE=$USE_OPROFILE
849776c7fc5fSjoerg
849876c7fc5fSjoerg
849976c7fc5fSjoergcat >>confdefs.h <<_ACEOF
850076c7fc5fSjoerg#define LLVM_USE_OPROFILE $USE_OPROFILE
850176c7fc5fSjoerg_ACEOF
850276c7fc5fSjoerg
850376c7fc5fSjoerg
850476c7fc5fSjoerg
850576c7fc5fSjoerg# Check whether --with-intel-jitevents was given.
850676c7fc5fSjoergif test "${with_intel_jitevents+set}" = set; then :
850776c7fc5fSjoerg  withval=$with_intel_jitevents;
850876c7fc5fSjoerg       case "$withval" in
850976c7fc5fSjoerg          yes) USE_INTEL_JITEVENTS=1
851076c7fc5fSjoerg;;
851176c7fc5fSjoerg          no)  USE_INTEL_JITEVENTS=0
851276c7fc5fSjoerg;;
851376c7fc5fSjoerg          *) as_fn_error $? "Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" "$LINENO" 5;;
851476c7fc5fSjoerg       esac
851576c7fc5fSjoerg
851676c7fc5fSjoerg      case $llvm_cv_os_type in
851776c7fc5fSjoerg        Linux|Win32|Cygwin|MingW) ;;
851876c7fc5fSjoerg        *) as_fn_error $? "Intel JIT API support is available on Linux and Windows only." "$LINENO" 5;;
851976c7fc5fSjoerg      esac
852076c7fc5fSjoerg
852176c7fc5fSjoerg      case "$llvm_cv_target_arch" in
852276c7fc5fSjoerg        x86|x86_64) ;;
852376c7fc5fSjoerg        *) as_fn_error $? "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." "$LINENO" 5;;
852476c7fc5fSjoerg      esac
852576c7fc5fSjoerg
852676c7fc5fSjoergelse
852776c7fc5fSjoerg
852876c7fc5fSjoerg      USE_INTEL_JITEVENTS=0
852976c7fc5fSjoerg
853076c7fc5fSjoerg
853176c7fc5fSjoergfi
853276c7fc5fSjoerg
853376c7fc5fSjoerg
853476c7fc5fSjoergcat >>confdefs.h <<_ACEOF
853576c7fc5fSjoerg#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
853676c7fc5fSjoerg_ACEOF
853776c7fc5fSjoerg
853876c7fc5fSjoerg
853976c7fc5fSjoerg
854076c7fc5fSjoergac_header_dirent=no
854176c7fc5fSjoergfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
854276c7fc5fSjoerg  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
854376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
854476c7fc5fSjoerg$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
854576c7fc5fSjoergif eval \${$as_ac_Header+:} false; then :
854676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
854776c7fc5fSjoergelse
854876c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
854976c7fc5fSjoerg/* end confdefs.h.  */
855076c7fc5fSjoerg#include <sys/types.h>
855176c7fc5fSjoerg#include <$ac_hdr>
855276c7fc5fSjoerg
855376c7fc5fSjoergint
855476c7fc5fSjoergmain ()
855576c7fc5fSjoerg{
855676c7fc5fSjoergif ((DIR *) 0)
855776c7fc5fSjoergreturn 0;
855876c7fc5fSjoerg  ;
855976c7fc5fSjoerg  return 0;
856076c7fc5fSjoerg}
856176c7fc5fSjoerg_ACEOF
856276c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
856376c7fc5fSjoerg  eval "$as_ac_Header=yes"
856476c7fc5fSjoergelse
856576c7fc5fSjoerg  eval "$as_ac_Header=no"
856676c7fc5fSjoergfi
856776c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
856876c7fc5fSjoergfi
856976c7fc5fSjoergeval ac_res=\$$as_ac_Header
857076c7fc5fSjoerg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
857176c7fc5fSjoerg$as_echo "$ac_res" >&6; }
857276c7fc5fSjoergif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
857376c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
857476c7fc5fSjoerg#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
857576c7fc5fSjoerg_ACEOF
857676c7fc5fSjoerg
857776c7fc5fSjoergac_header_dirent=$ac_hdr; break
857876c7fc5fSjoergfi
857976c7fc5fSjoerg
858076c7fc5fSjoergdone
858176c7fc5fSjoerg# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
858276c7fc5fSjoergif test $ac_header_dirent = dirent.h; then
858376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
858476c7fc5fSjoerg$as_echo_n "checking for library containing opendir... " >&6; }
858576c7fc5fSjoergif ${ac_cv_search_opendir+:} false; then :
858676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
858776c7fc5fSjoergelse
858876c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
858976c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
859076c7fc5fSjoerg/* end confdefs.h.  */
859176c7fc5fSjoerg
859276c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
859376c7fc5fSjoerg   Use char because int might match the return type of a GCC
859476c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
859576c7fc5fSjoerg#ifdef __cplusplus
859676c7fc5fSjoergextern "C"
859776c7fc5fSjoerg#endif
859876c7fc5fSjoergchar opendir ();
859976c7fc5fSjoergint
860076c7fc5fSjoergmain ()
860176c7fc5fSjoerg{
860276c7fc5fSjoergreturn opendir ();
860376c7fc5fSjoerg  ;
860476c7fc5fSjoerg  return 0;
860576c7fc5fSjoerg}
860676c7fc5fSjoerg_ACEOF
860776c7fc5fSjoergfor ac_lib in '' dir; do
860876c7fc5fSjoerg  if test -z "$ac_lib"; then
860976c7fc5fSjoerg    ac_res="none required"
861076c7fc5fSjoerg  else
861176c7fc5fSjoerg    ac_res=-l$ac_lib
861276c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
861376c7fc5fSjoerg  fi
861476c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
861576c7fc5fSjoerg  ac_cv_search_opendir=$ac_res
861676c7fc5fSjoergfi
861776c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
861876c7fc5fSjoerg    conftest$ac_exeext
861976c7fc5fSjoerg  if ${ac_cv_search_opendir+:} false; then :
862076c7fc5fSjoerg  break
862176c7fc5fSjoergfi
862276c7fc5fSjoergdone
862376c7fc5fSjoergif ${ac_cv_search_opendir+:} false; then :
862476c7fc5fSjoerg
862576c7fc5fSjoergelse
862676c7fc5fSjoerg  ac_cv_search_opendir=no
862776c7fc5fSjoergfi
862876c7fc5fSjoergrm conftest.$ac_ext
862976c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
863076c7fc5fSjoergfi
863176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
863276c7fc5fSjoerg$as_echo "$ac_cv_search_opendir" >&6; }
863376c7fc5fSjoergac_res=$ac_cv_search_opendir
863476c7fc5fSjoergif test "$ac_res" != no; then :
863576c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
863676c7fc5fSjoerg
863776c7fc5fSjoergfi
863876c7fc5fSjoerg
863976c7fc5fSjoergelse
864076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
864176c7fc5fSjoerg$as_echo_n "checking for library containing opendir... " >&6; }
864276c7fc5fSjoergif ${ac_cv_search_opendir+:} false; then :
864376c7fc5fSjoerg  $as_echo_n "(cached) " >&6
864476c7fc5fSjoergelse
864576c7fc5fSjoerg  ac_func_search_save_LIBS=$LIBS
864676c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
864776c7fc5fSjoerg/* end confdefs.h.  */
864876c7fc5fSjoerg
864976c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
865076c7fc5fSjoerg   Use char because int might match the return type of a GCC
865176c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
865276c7fc5fSjoerg#ifdef __cplusplus
865376c7fc5fSjoergextern "C"
865476c7fc5fSjoerg#endif
865576c7fc5fSjoergchar opendir ();
865676c7fc5fSjoergint
865776c7fc5fSjoergmain ()
865876c7fc5fSjoerg{
865976c7fc5fSjoergreturn opendir ();
866076c7fc5fSjoerg  ;
866176c7fc5fSjoerg  return 0;
866276c7fc5fSjoerg}
866376c7fc5fSjoerg_ACEOF
866476c7fc5fSjoergfor ac_lib in '' x; do
866576c7fc5fSjoerg  if test -z "$ac_lib"; then
866676c7fc5fSjoerg    ac_res="none required"
866776c7fc5fSjoerg  else
866876c7fc5fSjoerg    ac_res=-l$ac_lib
866976c7fc5fSjoerg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
867076c7fc5fSjoerg  fi
867176c7fc5fSjoerg  if ac_fn_c_try_link "$LINENO"; then :
867276c7fc5fSjoerg  ac_cv_search_opendir=$ac_res
867376c7fc5fSjoergfi
867476c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
867576c7fc5fSjoerg    conftest$ac_exeext
867676c7fc5fSjoerg  if ${ac_cv_search_opendir+:} false; then :
867776c7fc5fSjoerg  break
867876c7fc5fSjoergfi
867976c7fc5fSjoergdone
868076c7fc5fSjoergif ${ac_cv_search_opendir+:} false; then :
868176c7fc5fSjoerg
868276c7fc5fSjoergelse
868376c7fc5fSjoerg  ac_cv_search_opendir=no
868476c7fc5fSjoergfi
868576c7fc5fSjoergrm conftest.$ac_ext
868676c7fc5fSjoergLIBS=$ac_func_search_save_LIBS
868776c7fc5fSjoergfi
868876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
868976c7fc5fSjoerg$as_echo "$ac_cv_search_opendir" >&6; }
869076c7fc5fSjoergac_res=$ac_cv_search_opendir
869176c7fc5fSjoergif test "$ac_res" != no; then :
869276c7fc5fSjoerg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
869376c7fc5fSjoerg
869476c7fc5fSjoergfi
869576c7fc5fSjoerg
869676c7fc5fSjoergfi
869776c7fc5fSjoerg
869876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
869976c7fc5fSjoerg$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
870076c7fc5fSjoergif ${ac_cv_header_stat_broken+:} false; then :
870176c7fc5fSjoerg  $as_echo_n "(cached) " >&6
870276c7fc5fSjoergelse
870376c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
870476c7fc5fSjoerg/* end confdefs.h.  */
870576c7fc5fSjoerg#include <sys/types.h>
870676c7fc5fSjoerg#include <sys/stat.h>
870776c7fc5fSjoerg
870876c7fc5fSjoerg#if defined S_ISBLK && defined S_IFDIR
870976c7fc5fSjoergextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
871076c7fc5fSjoerg#endif
871176c7fc5fSjoerg
871276c7fc5fSjoerg#if defined S_ISBLK && defined S_IFCHR
871376c7fc5fSjoergextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
871476c7fc5fSjoerg#endif
871576c7fc5fSjoerg
871676c7fc5fSjoerg#if defined S_ISLNK && defined S_IFREG
871776c7fc5fSjoergextern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
871876c7fc5fSjoerg#endif
871976c7fc5fSjoerg
872076c7fc5fSjoerg#if defined S_ISSOCK && defined S_IFREG
872176c7fc5fSjoergextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
872276c7fc5fSjoerg#endif
872376c7fc5fSjoerg
872476c7fc5fSjoerg_ACEOF
872576c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
872676c7fc5fSjoerg  ac_cv_header_stat_broken=no
872776c7fc5fSjoergelse
872876c7fc5fSjoerg  ac_cv_header_stat_broken=yes
872976c7fc5fSjoergfi
873076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
873176c7fc5fSjoergfi
873276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
873376c7fc5fSjoerg$as_echo "$ac_cv_header_stat_broken" >&6; }
873476c7fc5fSjoergif test $ac_cv_header_stat_broken = yes; then
873576c7fc5fSjoerg
873676c7fc5fSjoerg$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
873776c7fc5fSjoerg
873876c7fc5fSjoergfi
873976c7fc5fSjoerg
874076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
874176c7fc5fSjoerg$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
874276c7fc5fSjoergif ${ac_cv_header_time+:} false; then :
874376c7fc5fSjoerg  $as_echo_n "(cached) " >&6
874476c7fc5fSjoergelse
874576c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
874676c7fc5fSjoerg/* end confdefs.h.  */
874776c7fc5fSjoerg#include <sys/types.h>
874876c7fc5fSjoerg#include <sys/time.h>
874976c7fc5fSjoerg#include <time.h>
875076c7fc5fSjoerg
875176c7fc5fSjoergint
875276c7fc5fSjoergmain ()
875376c7fc5fSjoerg{
875476c7fc5fSjoergif ((struct tm *) 0)
875576c7fc5fSjoergreturn 0;
875676c7fc5fSjoerg  ;
875776c7fc5fSjoerg  return 0;
875876c7fc5fSjoerg}
875976c7fc5fSjoerg_ACEOF
876076c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
876176c7fc5fSjoerg  ac_cv_header_time=yes
876276c7fc5fSjoergelse
876376c7fc5fSjoerg  ac_cv_header_time=no
876476c7fc5fSjoergfi
876576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
876676c7fc5fSjoergfi
876776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
876876c7fc5fSjoerg$as_echo "$ac_cv_header_time" >&6; }
876976c7fc5fSjoergif test $ac_cv_header_time = yes; then
877076c7fc5fSjoerg
877176c7fc5fSjoerg$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
877276c7fc5fSjoerg
877376c7fc5fSjoergfi
877476c7fc5fSjoerg
877576c7fc5fSjoerg
877676c7fc5fSjoergfor ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
877776c7fc5fSjoergdo :
877876c7fc5fSjoerg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
877976c7fc5fSjoergac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
878076c7fc5fSjoergif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
878176c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
878276c7fc5fSjoerg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
878376c7fc5fSjoerg_ACEOF
878476c7fc5fSjoerg
878576c7fc5fSjoergfi
878676c7fc5fSjoerg
878776c7fc5fSjoergdone
878876c7fc5fSjoerg
8789*53d1339bSjoergfor ac_header in signal.h stdint.h sysexits.h termios.h unistd.h
879076c7fc5fSjoergdo :
879176c7fc5fSjoerg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
879276c7fc5fSjoergac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
879376c7fc5fSjoergif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
879476c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
879576c7fc5fSjoerg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
879676c7fc5fSjoerg_ACEOF
879776c7fc5fSjoerg
879876c7fc5fSjoergfi
879976c7fc5fSjoerg
880076c7fc5fSjoergdone
880176c7fc5fSjoerg
880276c7fc5fSjoergfor ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
880376c7fc5fSjoergdo :
880476c7fc5fSjoerg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
880576c7fc5fSjoergac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
880676c7fc5fSjoergif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
880776c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
880876c7fc5fSjoerg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
880976c7fc5fSjoerg_ACEOF
881076c7fc5fSjoerg
881176c7fc5fSjoergfi
881276c7fc5fSjoerg
881376c7fc5fSjoergdone
881476c7fc5fSjoerg
881576c7fc5fSjoergfor ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
881676c7fc5fSjoergdo :
881776c7fc5fSjoerg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
881876c7fc5fSjoergac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
881976c7fc5fSjoergif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
882076c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
882176c7fc5fSjoerg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
882276c7fc5fSjoerg_ACEOF
882376c7fc5fSjoerg
882476c7fc5fSjoergfi
882576c7fc5fSjoerg
882676c7fc5fSjoergdone
882776c7fc5fSjoerg
882876c7fc5fSjoergfor ac_header in valgrind/valgrind.h
882976c7fc5fSjoergdo :
883076c7fc5fSjoerg  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
883176c7fc5fSjoergif test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
883276c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
883376c7fc5fSjoerg#define HAVE_VALGRIND_VALGRIND_H 1
883476c7fc5fSjoerg_ACEOF
883576c7fc5fSjoerg
883676c7fc5fSjoergfi
883776c7fc5fSjoerg
883876c7fc5fSjoergdone
883976c7fc5fSjoerg
884076c7fc5fSjoergfor ac_header in fenv.h
884176c7fc5fSjoergdo :
884276c7fc5fSjoerg  ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
884376c7fc5fSjoergif test "x$ac_cv_header_fenv_h" = xyes; then :
884476c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
884576c7fc5fSjoerg#define HAVE_FENV_H 1
884676c7fc5fSjoerg_ACEOF
884776c7fc5fSjoerg
884876c7fc5fSjoergfi
884976c7fc5fSjoerg
885076c7fc5fSjoergdone
885176c7fc5fSjoerg
885276c7fc5fSjoergac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "#include <stdlib.h>
885376c7fc5fSjoerg"
885476c7fc5fSjoergif test "x$ac_cv_have_decl_arc4random" = xyes; then :
885576c7fc5fSjoerg  ac_have_decl=1
885676c7fc5fSjoergelse
885776c7fc5fSjoerg  ac_have_decl=0
885876c7fc5fSjoergfi
885976c7fc5fSjoerg
886076c7fc5fSjoergcat >>confdefs.h <<_ACEOF
886176c7fc5fSjoerg#define HAVE_DECL_ARC4RANDOM $ac_have_decl
886276c7fc5fSjoerg_ACEOF
886376c7fc5fSjoerg
886476c7fc5fSjoergac_fn_c_check_decl "$LINENO" "FE_ALL_EXCEPT" "ac_cv_have_decl_FE_ALL_EXCEPT" "#include <fenv.h>
886576c7fc5fSjoerg"
886676c7fc5fSjoergif test "x$ac_cv_have_decl_FE_ALL_EXCEPT" = xyes; then :
886776c7fc5fSjoerg  ac_have_decl=1
886876c7fc5fSjoergelse
886976c7fc5fSjoerg  ac_have_decl=0
887076c7fc5fSjoergfi
887176c7fc5fSjoerg
887276c7fc5fSjoergcat >>confdefs.h <<_ACEOF
887376c7fc5fSjoerg#define HAVE_DECL_FE_ALL_EXCEPT $ac_have_decl
887476c7fc5fSjoerg_ACEOF
887576c7fc5fSjoergac_fn_c_check_decl "$LINENO" "FE_INEXACT" "ac_cv_have_decl_FE_INEXACT" "#include <fenv.h>
887676c7fc5fSjoerg"
887776c7fc5fSjoergif test "x$ac_cv_have_decl_FE_INEXACT" = xyes; then :
887876c7fc5fSjoerg  ac_have_decl=1
887976c7fc5fSjoergelse
888076c7fc5fSjoerg  ac_have_decl=0
888176c7fc5fSjoergfi
888276c7fc5fSjoerg
888376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
888476c7fc5fSjoerg#define HAVE_DECL_FE_INEXACT $ac_have_decl
888576c7fc5fSjoerg_ACEOF
888676c7fc5fSjoerg
888776c7fc5fSjoergif test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
888876c7fc5fSjoerg  for ac_header in pthread.h
888976c7fc5fSjoergdo :
889076c7fc5fSjoerg  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
889176c7fc5fSjoergif test "x$ac_cv_header_pthread_h" = xyes; then :
889276c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
889376c7fc5fSjoerg#define HAVE_PTHREAD_H 1
889476c7fc5fSjoerg_ACEOF
889576c7fc5fSjoerg HAVE_PTHREAD=1
889676c7fc5fSjoerg
889776c7fc5fSjoergelse
889876c7fc5fSjoerg  HAVE_PTHREAD=0
889976c7fc5fSjoerg
890076c7fc5fSjoergfi
890176c7fc5fSjoerg
890276c7fc5fSjoergdone
890376c7fc5fSjoerg
890476c7fc5fSjoergelse
890576c7fc5fSjoerg  HAVE_PTHREAD=0
890676c7fc5fSjoerg
890776c7fc5fSjoergfi
890876c7fc5fSjoergif test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
890976c7fc5fSjoerg  for ac_header in zlib.h
891076c7fc5fSjoergdo :
891176c7fc5fSjoerg  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
891276c7fc5fSjoergif test "x$ac_cv_header_zlib_h" = xyes; then :
891376c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
891476c7fc5fSjoerg#define HAVE_ZLIB_H 1
891576c7fc5fSjoerg_ACEOF
891676c7fc5fSjoerg HAVE_LIBZ=1
891776c7fc5fSjoerg
891876c7fc5fSjoergelse
891976c7fc5fSjoerg  HAVE_LIBZ=0
892076c7fc5fSjoerg
892176c7fc5fSjoergfi
892276c7fc5fSjoerg
892376c7fc5fSjoergdone
892476c7fc5fSjoerg
892576c7fc5fSjoergelse
892676c7fc5fSjoerg  HAVE_LIBZ=0
892776c7fc5fSjoerg
892876c7fc5fSjoergfi
892976c7fc5fSjoerg
893076c7fc5fSjoergif test "$llvm_cv_enable_libffi" = "yes" ; then
893176c7fc5fSjoerg  for ac_header in ffi.h ffi/ffi.h
893276c7fc5fSjoergdo :
893376c7fc5fSjoerg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
893476c7fc5fSjoergac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
893576c7fc5fSjoergif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
893676c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
893776c7fc5fSjoerg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
893876c7fc5fSjoerg_ACEOF
893976c7fc5fSjoerg
894076c7fc5fSjoergfi
894176c7fc5fSjoerg
894276c7fc5fSjoergdone
894376c7fc5fSjoerg
894476c7fc5fSjoergfi
894576c7fc5fSjoerg
894676c7fc5fSjoergfor ac_header in CrashReporterClient.h
894776c7fc5fSjoergdo :
894876c7fc5fSjoerg  ac_fn_c_check_header_mongrel "$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default"
894976c7fc5fSjoergif test "x$ac_cv_header_CrashReporterClient_h" = xyes; then :
895076c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
895176c7fc5fSjoerg#define HAVE_CRASHREPORTERCLIENT_H 1
895276c7fc5fSjoerg_ACEOF
895376c7fc5fSjoerg
895476c7fc5fSjoergfi
895576c7fc5fSjoerg
895676c7fc5fSjoergdone
895776c7fc5fSjoerg
895876c7fc5fSjoerg
895976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __crashreporter_info__" >&5
896076c7fc5fSjoerg$as_echo_n "checking __crashreporter_info__... " >&6; }
896176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
896276c7fc5fSjoerg/* end confdefs.h.  */
896376c7fc5fSjoerg
896476c7fc5fSjoerg
896576c7fc5fSjoerg    extern const char *__crashreporter_info__;
896676c7fc5fSjoerg    int main() {
896776c7fc5fSjoerg      __crashreporter_info__ = "test";
896876c7fc5fSjoerg      return 0;
896976c7fc5fSjoerg    }
897076c7fc5fSjoerg
897176c7fc5fSjoerg
897276c7fc5fSjoerg_ACEOF
897376c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
897476c7fc5fSjoerg
897576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
897676c7fc5fSjoerg$as_echo "yes" >&6; }
897776c7fc5fSjoerg
897876c7fc5fSjoerg$as_echo "#define HAVE_CRASHREPORTER_INFO 1" >>confdefs.h
897976c7fc5fSjoerg
898076c7fc5fSjoerg
898176c7fc5fSjoergelse
898276c7fc5fSjoerg
898376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
898476c7fc5fSjoerg$as_echo "no" >&6; }
898576c7fc5fSjoerg
898676c7fc5fSjoerg$as_echo "#define HAVE_CRASHREPORTER_INFO 0" >>confdefs.h
898776c7fc5fSjoerg
898876c7fc5fSjoerg
898976c7fc5fSjoergfi
899076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
899176c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
899276c7fc5fSjoerg
899376c7fc5fSjoerg
899476c7fc5fSjoerg$as_echo "#define HAVE_DIA_SDK 0" >>confdefs.h
899576c7fc5fSjoerg
899676c7fc5fSjoerg
899776c7fc5fSjoerg
899876c7fc5fSjoerg
899976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
900076c7fc5fSjoerg$as_echo_n "checking for HUGE_VAL sanity... " >&6; }
900176c7fc5fSjoergif ${ac_cv_huge_val_sanity+:} false; then :
900276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
900376c7fc5fSjoergelse
900476c7fc5fSjoerg
900576c7fc5fSjoerg    ac_ext=cpp
900676c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
900776c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
900876c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
900976c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
901076c7fc5fSjoerg
901176c7fc5fSjoerg    ac_save_CXXFLAGS=$CXXFLAGS
901276c7fc5fSjoerg    CXXFLAGS="$CXXFLAGS -pedantic"
901376c7fc5fSjoerg    if test "$cross_compiling" = yes; then :
901476c7fc5fSjoerg  ac_cv_huge_val_sanity=yes
901576c7fc5fSjoergelse
901676c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
901776c7fc5fSjoerg/* end confdefs.h.  */
901876c7fc5fSjoerg#include <math.h>
901976c7fc5fSjoergint
902076c7fc5fSjoergmain ()
902176c7fc5fSjoerg{
902276c7fc5fSjoergdouble x = HUGE_VAL; return x != x;
902376c7fc5fSjoerg  ;
902476c7fc5fSjoerg  return 0;
902576c7fc5fSjoerg}
902676c7fc5fSjoerg_ACEOF
902776c7fc5fSjoergif ac_fn_cxx_try_run "$LINENO"; then :
902876c7fc5fSjoerg  ac_cv_huge_val_sanity=yes
902976c7fc5fSjoergelse
903076c7fc5fSjoerg  ac_cv_huge_val_sanity=no
903176c7fc5fSjoergfi
903276c7fc5fSjoergrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
903376c7fc5fSjoerg  conftest.$ac_objext conftest.beam conftest.$ac_ext
903476c7fc5fSjoergfi
903576c7fc5fSjoerg
903676c7fc5fSjoerg    CXXFLAGS=$ac_save_CXXFLAGS
903776c7fc5fSjoerg    ac_ext=c
903876c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
903976c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
904076c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
904176c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
904276c7fc5fSjoerg
904376c7fc5fSjoerg
904476c7fc5fSjoergfi
904576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
904676c7fc5fSjoerg$as_echo "$ac_cv_huge_val_sanity" >&6; }
904776c7fc5fSjoerg  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
904876c7fc5fSjoerg
904976c7fc5fSjoerg
905076c7fc5fSjoergac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
905176c7fc5fSjoergif test "x$ac_cv_type_pid_t" = xyes; then :
905276c7fc5fSjoerg
905376c7fc5fSjoergelse
905476c7fc5fSjoerg
905576c7fc5fSjoergcat >>confdefs.h <<_ACEOF
905676c7fc5fSjoerg#define pid_t int
905776c7fc5fSjoerg_ACEOF
905876c7fc5fSjoerg
905976c7fc5fSjoergfi
906076c7fc5fSjoerg
906176c7fc5fSjoergac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
906276c7fc5fSjoergif test "x$ac_cv_type_size_t" = xyes; then :
906376c7fc5fSjoerg
906476c7fc5fSjoergelse
906576c7fc5fSjoerg
906676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
906776c7fc5fSjoerg#define size_t unsigned int
906876c7fc5fSjoerg_ACEOF
906976c7fc5fSjoerg
907076c7fc5fSjoergfi
907176c7fc5fSjoerg
907276c7fc5fSjoerg
907376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
907476c7fc5fSjoerg#define RETSIGTYPE void
907576c7fc5fSjoerg_ACEOF
907676c7fc5fSjoerg
907776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
907876c7fc5fSjoerg$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
907976c7fc5fSjoergif ${ac_cv_struct_tm+:} false; then :
908076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
908176c7fc5fSjoergelse
908276c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
908376c7fc5fSjoerg/* end confdefs.h.  */
908476c7fc5fSjoerg#include <sys/types.h>
908576c7fc5fSjoerg#include <time.h>
908676c7fc5fSjoerg
908776c7fc5fSjoergint
908876c7fc5fSjoergmain ()
908976c7fc5fSjoerg{
909076c7fc5fSjoergstruct tm tm;
909176c7fc5fSjoerg				     int *p = &tm.tm_sec;
909276c7fc5fSjoerg				     return !p;
909376c7fc5fSjoerg  ;
909476c7fc5fSjoerg  return 0;
909576c7fc5fSjoerg}
909676c7fc5fSjoerg_ACEOF
909776c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
909876c7fc5fSjoerg  ac_cv_struct_tm=time.h
909976c7fc5fSjoergelse
910076c7fc5fSjoerg  ac_cv_struct_tm=sys/time.h
910176c7fc5fSjoergfi
910276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
910376c7fc5fSjoergfi
910476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
910576c7fc5fSjoerg$as_echo "$ac_cv_struct_tm" >&6; }
910676c7fc5fSjoergif test $ac_cv_struct_tm = sys/time.h; then
910776c7fc5fSjoerg
910876c7fc5fSjoerg$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
910976c7fc5fSjoerg
911076c7fc5fSjoergfi
911176c7fc5fSjoerg
911276c7fc5fSjoergac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
911376c7fc5fSjoergif test "x$ac_cv_type_int64_t" = xyes; then :
911476c7fc5fSjoerg
911576c7fc5fSjoergcat >>confdefs.h <<_ACEOF
911676c7fc5fSjoerg#define HAVE_INT64_T 1
911776c7fc5fSjoerg_ACEOF
911876c7fc5fSjoerg
911976c7fc5fSjoerg
912076c7fc5fSjoergelse
912176c7fc5fSjoerg  as_fn_error $? "Type int64_t required but not found" "$LINENO" 5
912276c7fc5fSjoergfi
912376c7fc5fSjoerg
912476c7fc5fSjoergac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
912576c7fc5fSjoergif test "x$ac_cv_type_uint64_t" = xyes; then :
912676c7fc5fSjoerg
912776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
912876c7fc5fSjoerg#define HAVE_UINT64_T 1
912976c7fc5fSjoerg_ACEOF
913076c7fc5fSjoerg
913176c7fc5fSjoerg
913276c7fc5fSjoergelse
913376c7fc5fSjoerg  ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
913476c7fc5fSjoergif test "x$ac_cv_type_u_int64_t" = xyes; then :
913576c7fc5fSjoerg
913676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
913776c7fc5fSjoerg#define HAVE_U_INT64_T 1
913876c7fc5fSjoerg_ACEOF
913976c7fc5fSjoerg
914076c7fc5fSjoerg
914176c7fc5fSjoergelse
914276c7fc5fSjoerg  as_fn_error $? "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
914376c7fc5fSjoergfi
914476c7fc5fSjoerg
914576c7fc5fSjoergfi
914676c7fc5fSjoerg
914776c7fc5fSjoerg
914876c7fc5fSjoergac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec.tv_nsec" "ac_cv_member_struct_stat_st_mtimensec_tv_nsec" "#include <sys/stat.h>
914976c7fc5fSjoerg"
915076c7fc5fSjoergif test "x$ac_cv_member_struct_stat_st_mtimensec_tv_nsec" = xyes; then :
915176c7fc5fSjoerg
915276c7fc5fSjoergcat >>confdefs.h <<_ACEOF
915376c7fc5fSjoerg#define HAVE_STRUCT_STAT_ST_MTIMENSEC_TV_NSEC 1
915476c7fc5fSjoerg_ACEOF
915576c7fc5fSjoerg
915676c7fc5fSjoerg
915776c7fc5fSjoergfi
915876c7fc5fSjoergac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h>
915976c7fc5fSjoerg"
916076c7fc5fSjoergif test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
916176c7fc5fSjoerg
916276c7fc5fSjoergcat >>confdefs.h <<_ACEOF
916376c7fc5fSjoerg#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
916476c7fc5fSjoerg_ACEOF
916576c7fc5fSjoerg
916676c7fc5fSjoerg
916776c7fc5fSjoergfi
916876c7fc5fSjoerg
916976c7fc5fSjoerg
917076c7fc5fSjoerg
917176c7fc5fSjoergfor ac_func in _Unwind_Backtrace backtrace getcwd
917276c7fc5fSjoergdo :
917376c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
917476c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
917576c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
917676c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
917776c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
917876c7fc5fSjoerg_ACEOF
917976c7fc5fSjoerg
918076c7fc5fSjoergfi
918176c7fc5fSjoergdone
918276c7fc5fSjoerg
918376c7fc5fSjoergfor ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
918476c7fc5fSjoergdo :
918576c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
918676c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
918776c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
918876c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
918976c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
919076c7fc5fSjoerg_ACEOF
919176c7fc5fSjoerg
919276c7fc5fSjoergfi
919376c7fc5fSjoergdone
919476c7fc5fSjoerg
919576c7fc5fSjoergfor ac_func in isatty mkdtemp mkstemp
919676c7fc5fSjoergdo :
919776c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
919876c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
919976c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
920076c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
920176c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
920276c7fc5fSjoerg_ACEOF
920376c7fc5fSjoerg
920476c7fc5fSjoergfi
920576c7fc5fSjoergdone
920676c7fc5fSjoerg
920776c7fc5fSjoergfor ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
920876c7fc5fSjoergdo :
920976c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
921076c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
921176c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
921276c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
921376c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
921476c7fc5fSjoerg_ACEOF
921576c7fc5fSjoerg
921676c7fc5fSjoergfi
921776c7fc5fSjoergdone
921876c7fc5fSjoerg
921976c7fc5fSjoergfor ac_func in strerror strerror_r setenv
922076c7fc5fSjoergdo :
922176c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
922276c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
922376c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
922476c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
922576c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
922676c7fc5fSjoerg_ACEOF
922776c7fc5fSjoerg
922876c7fc5fSjoergfi
922976c7fc5fSjoergdone
923076c7fc5fSjoerg
923176c7fc5fSjoergfor ac_func in strtoll sysconf malloc_zone_statistics
923276c7fc5fSjoergdo :
923376c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
923476c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
923576c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
923676c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
923776c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
923876c7fc5fSjoerg_ACEOF
923976c7fc5fSjoerg
924076c7fc5fSjoergfi
924176c7fc5fSjoergdone
924276c7fc5fSjoerg
924376c7fc5fSjoergfor ac_func in sigaltstack writev posix_fallocate
924476c7fc5fSjoergdo :
924576c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
924676c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
924776c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
924876c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
924976c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
925076c7fc5fSjoerg_ACEOF
925176c7fc5fSjoerg
925276c7fc5fSjoergfi
925376c7fc5fSjoergdone
925476c7fc5fSjoerg
925576c7fc5fSjoergfor ac_func in futimes futimens _chsize_s
925676c7fc5fSjoergdo :
925776c7fc5fSjoerg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
925876c7fc5fSjoergac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
925976c7fc5fSjoergif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
926076c7fc5fSjoerg  cat >>confdefs.h <<_ACEOF
926176c7fc5fSjoerg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
926276c7fc5fSjoerg_ACEOF
926376c7fc5fSjoerg
926476c7fc5fSjoergfi
926576c7fc5fSjoergdone
926676c7fc5fSjoerg
926776c7fc5fSjoerg
926876c7fc5fSjoergac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
926976c7fc5fSjoergif test "x$ac_cv_have_decl_arc4random" = xyes; then :
927076c7fc5fSjoerg  ac_have_decl=1
927176c7fc5fSjoergelse
927276c7fc5fSjoerg  ac_have_decl=0
927376c7fc5fSjoergfi
927476c7fc5fSjoerg
927576c7fc5fSjoergcat >>confdefs.h <<_ACEOF
927676c7fc5fSjoerg#define HAVE_DECL_ARC4RANDOM $ac_have_decl
927776c7fc5fSjoerg_ACEOF
927876c7fc5fSjoerg
927976c7fc5fSjoerg
928076c7fc5fSjoergac_fn_c_check_decl "$LINENO" "strerror_s" "ac_cv_have_decl_strerror_s" "$ac_includes_default"
928176c7fc5fSjoergif test "x$ac_cv_have_decl_strerror_s" = xyes; then :
928276c7fc5fSjoerg  ac_have_decl=1
928376c7fc5fSjoergelse
928476c7fc5fSjoerg  ac_have_decl=0
928576c7fc5fSjoergfi
928676c7fc5fSjoerg
928776c7fc5fSjoergcat >>confdefs.h <<_ACEOF
928876c7fc5fSjoerg#define HAVE_DECL_STRERROR_S $ac_have_decl
928976c7fc5fSjoerg_ACEOF
929076c7fc5fSjoerg
929176c7fc5fSjoerg
929276c7fc5fSjoergif test "$llvm_cv_os_type" = "MingW" ; then
929376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _alloca in -lgcc" >&5
929476c7fc5fSjoerg$as_echo_n "checking for _alloca in -lgcc... " >&6; }
929576c7fc5fSjoergif ${ac_cv_lib_gcc__alloca+:} false; then :
929676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
929776c7fc5fSjoergelse
929876c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
929976c7fc5fSjoergLIBS="-lgcc  $LIBS"
930076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
930176c7fc5fSjoerg/* end confdefs.h.  */
930276c7fc5fSjoerg
930376c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
930476c7fc5fSjoerg   Use char because int might match the return type of a GCC
930576c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
930676c7fc5fSjoerg#ifdef __cplusplus
930776c7fc5fSjoergextern "C"
930876c7fc5fSjoerg#endif
930976c7fc5fSjoergchar _alloca ();
931076c7fc5fSjoergint
931176c7fc5fSjoergmain ()
931276c7fc5fSjoerg{
931376c7fc5fSjoergreturn _alloca ();
931476c7fc5fSjoerg  ;
931576c7fc5fSjoerg  return 0;
931676c7fc5fSjoerg}
931776c7fc5fSjoerg_ACEOF
931876c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
931976c7fc5fSjoerg  ac_cv_lib_gcc__alloca=yes
932076c7fc5fSjoergelse
932176c7fc5fSjoerg  ac_cv_lib_gcc__alloca=no
932276c7fc5fSjoergfi
932376c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
932476c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
932576c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
932676c7fc5fSjoergfi
932776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__alloca" >&5
932876c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc__alloca" >&6; }
932976c7fc5fSjoergif test "x$ac_cv_lib_gcc__alloca" = xyes; then :
933076c7fc5fSjoerg
933176c7fc5fSjoerg$as_echo "#define HAVE__ALLOCA 1" >>confdefs.h
933276c7fc5fSjoerg
933376c7fc5fSjoergfi
933476c7fc5fSjoerg
933576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __alloca in -lgcc" >&5
933676c7fc5fSjoerg$as_echo_n "checking for __alloca in -lgcc... " >&6; }
933776c7fc5fSjoergif ${ac_cv_lib_gcc___alloca+:} false; then :
933876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
933976c7fc5fSjoergelse
934076c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
934176c7fc5fSjoergLIBS="-lgcc  $LIBS"
934276c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
934376c7fc5fSjoerg/* end confdefs.h.  */
934476c7fc5fSjoerg
934576c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
934676c7fc5fSjoerg   Use char because int might match the return type of a GCC
934776c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
934876c7fc5fSjoerg#ifdef __cplusplus
934976c7fc5fSjoergextern "C"
935076c7fc5fSjoerg#endif
935176c7fc5fSjoergchar __alloca ();
935276c7fc5fSjoergint
935376c7fc5fSjoergmain ()
935476c7fc5fSjoerg{
935576c7fc5fSjoergreturn __alloca ();
935676c7fc5fSjoerg  ;
935776c7fc5fSjoerg  return 0;
935876c7fc5fSjoerg}
935976c7fc5fSjoerg_ACEOF
936076c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
936176c7fc5fSjoerg  ac_cv_lib_gcc___alloca=yes
936276c7fc5fSjoergelse
936376c7fc5fSjoerg  ac_cv_lib_gcc___alloca=no
936476c7fc5fSjoergfi
936576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
936676c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
936776c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
936876c7fc5fSjoergfi
936976c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___alloca" >&5
937076c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___alloca" >&6; }
937176c7fc5fSjoergif test "x$ac_cv_lib_gcc___alloca" = xyes; then :
937276c7fc5fSjoerg
937376c7fc5fSjoerg$as_echo "#define HAVE___ALLOCA 1" >>confdefs.h
937476c7fc5fSjoerg
937576c7fc5fSjoergfi
937676c7fc5fSjoerg
937776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk in -lgcc" >&5
937876c7fc5fSjoerg$as_echo_n "checking for __chkstk in -lgcc... " >&6; }
937976c7fc5fSjoergif ${ac_cv_lib_gcc___chkstk+:} false; then :
938076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
938176c7fc5fSjoergelse
938276c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
938376c7fc5fSjoergLIBS="-lgcc  $LIBS"
938476c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
938576c7fc5fSjoerg/* end confdefs.h.  */
938676c7fc5fSjoerg
938776c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
938876c7fc5fSjoerg   Use char because int might match the return type of a GCC
938976c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
939076c7fc5fSjoerg#ifdef __cplusplus
939176c7fc5fSjoergextern "C"
939276c7fc5fSjoerg#endif
939376c7fc5fSjoergchar __chkstk ();
939476c7fc5fSjoergint
939576c7fc5fSjoergmain ()
939676c7fc5fSjoerg{
939776c7fc5fSjoergreturn __chkstk ();
939876c7fc5fSjoerg  ;
939976c7fc5fSjoerg  return 0;
940076c7fc5fSjoerg}
940176c7fc5fSjoerg_ACEOF
940276c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
940376c7fc5fSjoerg  ac_cv_lib_gcc___chkstk=yes
940476c7fc5fSjoergelse
940576c7fc5fSjoerg  ac_cv_lib_gcc___chkstk=no
940676c7fc5fSjoergfi
940776c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
940876c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
940976c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
941076c7fc5fSjoergfi
941176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk" >&5
941276c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___chkstk" >&6; }
941376c7fc5fSjoergif test "x$ac_cv_lib_gcc___chkstk" = xyes; then :
941476c7fc5fSjoerg
941576c7fc5fSjoerg$as_echo "#define HAVE___CHKSTK 1" >>confdefs.h
941676c7fc5fSjoerg
941776c7fc5fSjoergfi
941876c7fc5fSjoerg
941976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk_ms in -lgcc" >&5
942076c7fc5fSjoerg$as_echo_n "checking for __chkstk_ms in -lgcc... " >&6; }
942176c7fc5fSjoergif ${ac_cv_lib_gcc___chkstk_ms+:} false; then :
942276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
942376c7fc5fSjoergelse
942476c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
942576c7fc5fSjoergLIBS="-lgcc  $LIBS"
942676c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
942776c7fc5fSjoerg/* end confdefs.h.  */
942876c7fc5fSjoerg
942976c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
943076c7fc5fSjoerg   Use char because int might match the return type of a GCC
943176c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
943276c7fc5fSjoerg#ifdef __cplusplus
943376c7fc5fSjoergextern "C"
943476c7fc5fSjoerg#endif
943576c7fc5fSjoergchar __chkstk_ms ();
943676c7fc5fSjoergint
943776c7fc5fSjoergmain ()
943876c7fc5fSjoerg{
943976c7fc5fSjoergreturn __chkstk_ms ();
944076c7fc5fSjoerg  ;
944176c7fc5fSjoerg  return 0;
944276c7fc5fSjoerg}
944376c7fc5fSjoerg_ACEOF
944476c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
944576c7fc5fSjoerg  ac_cv_lib_gcc___chkstk_ms=yes
944676c7fc5fSjoergelse
944776c7fc5fSjoerg  ac_cv_lib_gcc___chkstk_ms=no
944876c7fc5fSjoergfi
944976c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
945076c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
945176c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
945276c7fc5fSjoergfi
945376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk_ms" >&5
945476c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___chkstk_ms" >&6; }
945576c7fc5fSjoergif test "x$ac_cv_lib_gcc___chkstk_ms" = xyes; then :
945676c7fc5fSjoerg
945776c7fc5fSjoerg$as_echo "#define HAVE___CHKSTK_MS 1" >>confdefs.h
945876c7fc5fSjoerg
945976c7fc5fSjoergfi
946076c7fc5fSjoerg
946176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk in -lgcc" >&5
946276c7fc5fSjoerg$as_echo_n "checking for ___chkstk in -lgcc... " >&6; }
946376c7fc5fSjoergif ${ac_cv_lib_gcc____chkstk+:} false; then :
946476c7fc5fSjoerg  $as_echo_n "(cached) " >&6
946576c7fc5fSjoergelse
946676c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
946776c7fc5fSjoergLIBS="-lgcc  $LIBS"
946876c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
946976c7fc5fSjoerg/* end confdefs.h.  */
947076c7fc5fSjoerg
947176c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
947276c7fc5fSjoerg   Use char because int might match the return type of a GCC
947376c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
947476c7fc5fSjoerg#ifdef __cplusplus
947576c7fc5fSjoergextern "C"
947676c7fc5fSjoerg#endif
947776c7fc5fSjoergchar ___chkstk ();
947876c7fc5fSjoergint
947976c7fc5fSjoergmain ()
948076c7fc5fSjoerg{
948176c7fc5fSjoergreturn ___chkstk ();
948276c7fc5fSjoerg  ;
948376c7fc5fSjoerg  return 0;
948476c7fc5fSjoerg}
948576c7fc5fSjoerg_ACEOF
948676c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
948776c7fc5fSjoerg  ac_cv_lib_gcc____chkstk=yes
948876c7fc5fSjoergelse
948976c7fc5fSjoerg  ac_cv_lib_gcc____chkstk=no
949076c7fc5fSjoergfi
949176c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
949276c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
949376c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
949476c7fc5fSjoergfi
949576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk" >&5
949676c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc____chkstk" >&6; }
949776c7fc5fSjoergif test "x$ac_cv_lib_gcc____chkstk" = xyes; then :
949876c7fc5fSjoerg
949976c7fc5fSjoerg$as_echo "#define HAVE____CHKSTK 1" >>confdefs.h
950076c7fc5fSjoerg
950176c7fc5fSjoergfi
950276c7fc5fSjoerg
950376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk_ms in -lgcc" >&5
950476c7fc5fSjoerg$as_echo_n "checking for ___chkstk_ms in -lgcc... " >&6; }
950576c7fc5fSjoergif ${ac_cv_lib_gcc____chkstk_ms+:} false; then :
950676c7fc5fSjoerg  $as_echo_n "(cached) " >&6
950776c7fc5fSjoergelse
950876c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
950976c7fc5fSjoergLIBS="-lgcc  $LIBS"
951076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
951176c7fc5fSjoerg/* end confdefs.h.  */
951276c7fc5fSjoerg
951376c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
951476c7fc5fSjoerg   Use char because int might match the return type of a GCC
951576c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
951676c7fc5fSjoerg#ifdef __cplusplus
951776c7fc5fSjoergextern "C"
951876c7fc5fSjoerg#endif
951976c7fc5fSjoergchar ___chkstk_ms ();
952076c7fc5fSjoergint
952176c7fc5fSjoergmain ()
952276c7fc5fSjoerg{
952376c7fc5fSjoergreturn ___chkstk_ms ();
952476c7fc5fSjoerg  ;
952576c7fc5fSjoerg  return 0;
952676c7fc5fSjoerg}
952776c7fc5fSjoerg_ACEOF
952876c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
952976c7fc5fSjoerg  ac_cv_lib_gcc____chkstk_ms=yes
953076c7fc5fSjoergelse
953176c7fc5fSjoerg  ac_cv_lib_gcc____chkstk_ms=no
953276c7fc5fSjoergfi
953376c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
953476c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
953576c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
953676c7fc5fSjoergfi
953776c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk_ms" >&5
953876c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc____chkstk_ms" >&6; }
953976c7fc5fSjoergif test "x$ac_cv_lib_gcc____chkstk_ms" = xyes; then :
954076c7fc5fSjoerg
954176c7fc5fSjoerg$as_echo "#define HAVE____CHKSTK_MS 1" >>confdefs.h
954276c7fc5fSjoerg
954376c7fc5fSjoergfi
954476c7fc5fSjoerg
954576c7fc5fSjoerg
954676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashldi3 in -lgcc" >&5
954776c7fc5fSjoerg$as_echo_n "checking for __ashldi3 in -lgcc... " >&6; }
954876c7fc5fSjoergif ${ac_cv_lib_gcc___ashldi3+:} false; then :
954976c7fc5fSjoerg  $as_echo_n "(cached) " >&6
955076c7fc5fSjoergelse
955176c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
955276c7fc5fSjoergLIBS="-lgcc  $LIBS"
955376c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
955476c7fc5fSjoerg/* end confdefs.h.  */
955576c7fc5fSjoerg
955676c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
955776c7fc5fSjoerg   Use char because int might match the return type of a GCC
955876c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
955976c7fc5fSjoerg#ifdef __cplusplus
956076c7fc5fSjoergextern "C"
956176c7fc5fSjoerg#endif
956276c7fc5fSjoergchar __ashldi3 ();
956376c7fc5fSjoergint
956476c7fc5fSjoergmain ()
956576c7fc5fSjoerg{
956676c7fc5fSjoergreturn __ashldi3 ();
956776c7fc5fSjoerg  ;
956876c7fc5fSjoerg  return 0;
956976c7fc5fSjoerg}
957076c7fc5fSjoerg_ACEOF
957176c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
957276c7fc5fSjoerg  ac_cv_lib_gcc___ashldi3=yes
957376c7fc5fSjoergelse
957476c7fc5fSjoerg  ac_cv_lib_gcc___ashldi3=no
957576c7fc5fSjoergfi
957676c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
957776c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
957876c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
957976c7fc5fSjoergfi
958076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashldi3" >&5
958176c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___ashldi3" >&6; }
958276c7fc5fSjoergif test "x$ac_cv_lib_gcc___ashldi3" = xyes; then :
958376c7fc5fSjoerg
958476c7fc5fSjoerg$as_echo "#define HAVE___ASHLDI3 1" >>confdefs.h
958576c7fc5fSjoerg
958676c7fc5fSjoergfi
958776c7fc5fSjoerg
958876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashrdi3 in -lgcc" >&5
958976c7fc5fSjoerg$as_echo_n "checking for __ashrdi3 in -lgcc... " >&6; }
959076c7fc5fSjoergif ${ac_cv_lib_gcc___ashrdi3+:} false; then :
959176c7fc5fSjoerg  $as_echo_n "(cached) " >&6
959276c7fc5fSjoergelse
959376c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
959476c7fc5fSjoergLIBS="-lgcc  $LIBS"
959576c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
959676c7fc5fSjoerg/* end confdefs.h.  */
959776c7fc5fSjoerg
959876c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
959976c7fc5fSjoerg   Use char because int might match the return type of a GCC
960076c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
960176c7fc5fSjoerg#ifdef __cplusplus
960276c7fc5fSjoergextern "C"
960376c7fc5fSjoerg#endif
960476c7fc5fSjoergchar __ashrdi3 ();
960576c7fc5fSjoergint
960676c7fc5fSjoergmain ()
960776c7fc5fSjoerg{
960876c7fc5fSjoergreturn __ashrdi3 ();
960976c7fc5fSjoerg  ;
961076c7fc5fSjoerg  return 0;
961176c7fc5fSjoerg}
961276c7fc5fSjoerg_ACEOF
961376c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
961476c7fc5fSjoerg  ac_cv_lib_gcc___ashrdi3=yes
961576c7fc5fSjoergelse
961676c7fc5fSjoerg  ac_cv_lib_gcc___ashrdi3=no
961776c7fc5fSjoergfi
961876c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
961976c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
962076c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
962176c7fc5fSjoergfi
962276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashrdi3" >&5
962376c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___ashrdi3" >&6; }
962476c7fc5fSjoergif test "x$ac_cv_lib_gcc___ashrdi3" = xyes; then :
962576c7fc5fSjoerg
962676c7fc5fSjoerg$as_echo "#define HAVE___ASHRDI3 1" >>confdefs.h
962776c7fc5fSjoerg
962876c7fc5fSjoergfi
962976c7fc5fSjoerg
963076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __divdi3 in -lgcc" >&5
963176c7fc5fSjoerg$as_echo_n "checking for __divdi3 in -lgcc... " >&6; }
963276c7fc5fSjoergif ${ac_cv_lib_gcc___divdi3+:} false; then :
963376c7fc5fSjoerg  $as_echo_n "(cached) " >&6
963476c7fc5fSjoergelse
963576c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
963676c7fc5fSjoergLIBS="-lgcc  $LIBS"
963776c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
963876c7fc5fSjoerg/* end confdefs.h.  */
963976c7fc5fSjoerg
964076c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
964176c7fc5fSjoerg   Use char because int might match the return type of a GCC
964276c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
964376c7fc5fSjoerg#ifdef __cplusplus
964476c7fc5fSjoergextern "C"
964576c7fc5fSjoerg#endif
964676c7fc5fSjoergchar __divdi3 ();
964776c7fc5fSjoergint
964876c7fc5fSjoergmain ()
964976c7fc5fSjoerg{
965076c7fc5fSjoergreturn __divdi3 ();
965176c7fc5fSjoerg  ;
965276c7fc5fSjoerg  return 0;
965376c7fc5fSjoerg}
965476c7fc5fSjoerg_ACEOF
965576c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
965676c7fc5fSjoerg  ac_cv_lib_gcc___divdi3=yes
965776c7fc5fSjoergelse
965876c7fc5fSjoerg  ac_cv_lib_gcc___divdi3=no
965976c7fc5fSjoergfi
966076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
966176c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
966276c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
966376c7fc5fSjoergfi
966476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___divdi3" >&5
966576c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___divdi3" >&6; }
966676c7fc5fSjoergif test "x$ac_cv_lib_gcc___divdi3" = xyes; then :
966776c7fc5fSjoerg
966876c7fc5fSjoerg$as_echo "#define HAVE___DIVDI3 1" >>confdefs.h
966976c7fc5fSjoerg
967076c7fc5fSjoergfi
967176c7fc5fSjoerg
967276c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixdfdi in -lgcc" >&5
967376c7fc5fSjoerg$as_echo_n "checking for __fixdfdi in -lgcc... " >&6; }
967476c7fc5fSjoergif ${ac_cv_lib_gcc___fixdfdi+:} false; then :
967576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
967676c7fc5fSjoergelse
967776c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
967876c7fc5fSjoergLIBS="-lgcc  $LIBS"
967976c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
968076c7fc5fSjoerg/* end confdefs.h.  */
968176c7fc5fSjoerg
968276c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
968376c7fc5fSjoerg   Use char because int might match the return type of a GCC
968476c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
968576c7fc5fSjoerg#ifdef __cplusplus
968676c7fc5fSjoergextern "C"
968776c7fc5fSjoerg#endif
968876c7fc5fSjoergchar __fixdfdi ();
968976c7fc5fSjoergint
969076c7fc5fSjoergmain ()
969176c7fc5fSjoerg{
969276c7fc5fSjoergreturn __fixdfdi ();
969376c7fc5fSjoerg  ;
969476c7fc5fSjoerg  return 0;
969576c7fc5fSjoerg}
969676c7fc5fSjoerg_ACEOF
969776c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
969876c7fc5fSjoerg  ac_cv_lib_gcc___fixdfdi=yes
969976c7fc5fSjoergelse
970076c7fc5fSjoerg  ac_cv_lib_gcc___fixdfdi=no
970176c7fc5fSjoergfi
970276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
970376c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
970476c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
970576c7fc5fSjoergfi
970676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixdfdi" >&5
970776c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___fixdfdi" >&6; }
970876c7fc5fSjoergif test "x$ac_cv_lib_gcc___fixdfdi" = xyes; then :
970976c7fc5fSjoerg
971076c7fc5fSjoerg$as_echo "#define HAVE___FIXDFDI 1" >>confdefs.h
971176c7fc5fSjoerg
971276c7fc5fSjoergfi
971376c7fc5fSjoerg
971476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixsfdi in -lgcc" >&5
971576c7fc5fSjoerg$as_echo_n "checking for __fixsfdi in -lgcc... " >&6; }
971676c7fc5fSjoergif ${ac_cv_lib_gcc___fixsfdi+:} false; then :
971776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
971876c7fc5fSjoergelse
971976c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
972076c7fc5fSjoergLIBS="-lgcc  $LIBS"
972176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
972276c7fc5fSjoerg/* end confdefs.h.  */
972376c7fc5fSjoerg
972476c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
972576c7fc5fSjoerg   Use char because int might match the return type of a GCC
972676c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
972776c7fc5fSjoerg#ifdef __cplusplus
972876c7fc5fSjoergextern "C"
972976c7fc5fSjoerg#endif
973076c7fc5fSjoergchar __fixsfdi ();
973176c7fc5fSjoergint
973276c7fc5fSjoergmain ()
973376c7fc5fSjoerg{
973476c7fc5fSjoergreturn __fixsfdi ();
973576c7fc5fSjoerg  ;
973676c7fc5fSjoerg  return 0;
973776c7fc5fSjoerg}
973876c7fc5fSjoerg_ACEOF
973976c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
974076c7fc5fSjoerg  ac_cv_lib_gcc___fixsfdi=yes
974176c7fc5fSjoergelse
974276c7fc5fSjoerg  ac_cv_lib_gcc___fixsfdi=no
974376c7fc5fSjoergfi
974476c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
974576c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
974676c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
974776c7fc5fSjoergfi
974876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixsfdi" >&5
974976c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___fixsfdi" >&6; }
975076c7fc5fSjoergif test "x$ac_cv_lib_gcc___fixsfdi" = xyes; then :
975176c7fc5fSjoerg
975276c7fc5fSjoerg$as_echo "#define HAVE___FIXSFDI 1" >>confdefs.h
975376c7fc5fSjoerg
975476c7fc5fSjoergfi
975576c7fc5fSjoerg
975676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __floatdidf in -lgcc" >&5
975776c7fc5fSjoerg$as_echo_n "checking for __floatdidf in -lgcc... " >&6; }
975876c7fc5fSjoergif ${ac_cv_lib_gcc___floatdidf+:} false; then :
975976c7fc5fSjoerg  $as_echo_n "(cached) " >&6
976076c7fc5fSjoergelse
976176c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
976276c7fc5fSjoergLIBS="-lgcc  $LIBS"
976376c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
976476c7fc5fSjoerg/* end confdefs.h.  */
976576c7fc5fSjoerg
976676c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
976776c7fc5fSjoerg   Use char because int might match the return type of a GCC
976876c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
976976c7fc5fSjoerg#ifdef __cplusplus
977076c7fc5fSjoergextern "C"
977176c7fc5fSjoerg#endif
977276c7fc5fSjoergchar __floatdidf ();
977376c7fc5fSjoergint
977476c7fc5fSjoergmain ()
977576c7fc5fSjoerg{
977676c7fc5fSjoergreturn __floatdidf ();
977776c7fc5fSjoerg  ;
977876c7fc5fSjoerg  return 0;
977976c7fc5fSjoerg}
978076c7fc5fSjoerg_ACEOF
978176c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
978276c7fc5fSjoerg  ac_cv_lib_gcc___floatdidf=yes
978376c7fc5fSjoergelse
978476c7fc5fSjoerg  ac_cv_lib_gcc___floatdidf=no
978576c7fc5fSjoergfi
978676c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
978776c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
978876c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
978976c7fc5fSjoergfi
979076c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___floatdidf" >&5
979176c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___floatdidf" >&6; }
979276c7fc5fSjoergif test "x$ac_cv_lib_gcc___floatdidf" = xyes; then :
979376c7fc5fSjoerg
979476c7fc5fSjoerg$as_echo "#define HAVE___FLOATDIDF 1" >>confdefs.h
979576c7fc5fSjoerg
979676c7fc5fSjoergfi
979776c7fc5fSjoerg
979876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __lshrdi3 in -lgcc" >&5
979976c7fc5fSjoerg$as_echo_n "checking for __lshrdi3 in -lgcc... " >&6; }
980076c7fc5fSjoergif ${ac_cv_lib_gcc___lshrdi3+:} false; then :
980176c7fc5fSjoerg  $as_echo_n "(cached) " >&6
980276c7fc5fSjoergelse
980376c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
980476c7fc5fSjoergLIBS="-lgcc  $LIBS"
980576c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
980676c7fc5fSjoerg/* end confdefs.h.  */
980776c7fc5fSjoerg
980876c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
980976c7fc5fSjoerg   Use char because int might match the return type of a GCC
981076c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
981176c7fc5fSjoerg#ifdef __cplusplus
981276c7fc5fSjoergextern "C"
981376c7fc5fSjoerg#endif
981476c7fc5fSjoergchar __lshrdi3 ();
981576c7fc5fSjoergint
981676c7fc5fSjoergmain ()
981776c7fc5fSjoerg{
981876c7fc5fSjoergreturn __lshrdi3 ();
981976c7fc5fSjoerg  ;
982076c7fc5fSjoerg  return 0;
982176c7fc5fSjoerg}
982276c7fc5fSjoerg_ACEOF
982376c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
982476c7fc5fSjoerg  ac_cv_lib_gcc___lshrdi3=yes
982576c7fc5fSjoergelse
982676c7fc5fSjoerg  ac_cv_lib_gcc___lshrdi3=no
982776c7fc5fSjoergfi
982876c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
982976c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
983076c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
983176c7fc5fSjoergfi
983276c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___lshrdi3" >&5
983376c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___lshrdi3" >&6; }
983476c7fc5fSjoergif test "x$ac_cv_lib_gcc___lshrdi3" = xyes; then :
983576c7fc5fSjoerg
983676c7fc5fSjoerg$as_echo "#define HAVE___LSHRDI3 1" >>confdefs.h
983776c7fc5fSjoerg
983876c7fc5fSjoergfi
983976c7fc5fSjoerg
984076c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __moddi3 in -lgcc" >&5
984176c7fc5fSjoerg$as_echo_n "checking for __moddi3 in -lgcc... " >&6; }
984276c7fc5fSjoergif ${ac_cv_lib_gcc___moddi3+:} false; then :
984376c7fc5fSjoerg  $as_echo_n "(cached) " >&6
984476c7fc5fSjoergelse
984576c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
984676c7fc5fSjoergLIBS="-lgcc  $LIBS"
984776c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
984876c7fc5fSjoerg/* end confdefs.h.  */
984976c7fc5fSjoerg
985076c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
985176c7fc5fSjoerg   Use char because int might match the return type of a GCC
985276c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
985376c7fc5fSjoerg#ifdef __cplusplus
985476c7fc5fSjoergextern "C"
985576c7fc5fSjoerg#endif
985676c7fc5fSjoergchar __moddi3 ();
985776c7fc5fSjoergint
985876c7fc5fSjoergmain ()
985976c7fc5fSjoerg{
986076c7fc5fSjoergreturn __moddi3 ();
986176c7fc5fSjoerg  ;
986276c7fc5fSjoerg  return 0;
986376c7fc5fSjoerg}
986476c7fc5fSjoerg_ACEOF
986576c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
986676c7fc5fSjoerg  ac_cv_lib_gcc___moddi3=yes
986776c7fc5fSjoergelse
986876c7fc5fSjoerg  ac_cv_lib_gcc___moddi3=no
986976c7fc5fSjoergfi
987076c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
987176c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
987276c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
987376c7fc5fSjoergfi
987476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___moddi3" >&5
987576c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___moddi3" >&6; }
987676c7fc5fSjoergif test "x$ac_cv_lib_gcc___moddi3" = xyes; then :
987776c7fc5fSjoerg
987876c7fc5fSjoerg$as_echo "#define HAVE___MODDI3 1" >>confdefs.h
987976c7fc5fSjoerg
988076c7fc5fSjoergfi
988176c7fc5fSjoerg
988276c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __udivdi3 in -lgcc" >&5
988376c7fc5fSjoerg$as_echo_n "checking for __udivdi3 in -lgcc... " >&6; }
988476c7fc5fSjoergif ${ac_cv_lib_gcc___udivdi3+:} false; then :
988576c7fc5fSjoerg  $as_echo_n "(cached) " >&6
988676c7fc5fSjoergelse
988776c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
988876c7fc5fSjoergLIBS="-lgcc  $LIBS"
988976c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
989076c7fc5fSjoerg/* end confdefs.h.  */
989176c7fc5fSjoerg
989276c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
989376c7fc5fSjoerg   Use char because int might match the return type of a GCC
989476c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
989576c7fc5fSjoerg#ifdef __cplusplus
989676c7fc5fSjoergextern "C"
989776c7fc5fSjoerg#endif
989876c7fc5fSjoergchar __udivdi3 ();
989976c7fc5fSjoergint
990076c7fc5fSjoergmain ()
990176c7fc5fSjoerg{
990276c7fc5fSjoergreturn __udivdi3 ();
990376c7fc5fSjoerg  ;
990476c7fc5fSjoerg  return 0;
990576c7fc5fSjoerg}
990676c7fc5fSjoerg_ACEOF
990776c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
990876c7fc5fSjoerg  ac_cv_lib_gcc___udivdi3=yes
990976c7fc5fSjoergelse
991076c7fc5fSjoerg  ac_cv_lib_gcc___udivdi3=no
991176c7fc5fSjoergfi
991276c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
991376c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
991476c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
991576c7fc5fSjoergfi
991676c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___udivdi3" >&5
991776c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___udivdi3" >&6; }
991876c7fc5fSjoergif test "x$ac_cv_lib_gcc___udivdi3" = xyes; then :
991976c7fc5fSjoerg
992076c7fc5fSjoerg$as_echo "#define HAVE___UDIVDI3 1" >>confdefs.h
992176c7fc5fSjoerg
992276c7fc5fSjoergfi
992376c7fc5fSjoerg
992476c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __umoddi3 in -lgcc" >&5
992576c7fc5fSjoerg$as_echo_n "checking for __umoddi3 in -lgcc... " >&6; }
992676c7fc5fSjoergif ${ac_cv_lib_gcc___umoddi3+:} false; then :
992776c7fc5fSjoerg  $as_echo_n "(cached) " >&6
992876c7fc5fSjoergelse
992976c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
993076c7fc5fSjoergLIBS="-lgcc  $LIBS"
993176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
993276c7fc5fSjoerg/* end confdefs.h.  */
993376c7fc5fSjoerg
993476c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
993576c7fc5fSjoerg   Use char because int might match the return type of a GCC
993676c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
993776c7fc5fSjoerg#ifdef __cplusplus
993876c7fc5fSjoergextern "C"
993976c7fc5fSjoerg#endif
994076c7fc5fSjoergchar __umoddi3 ();
994176c7fc5fSjoergint
994276c7fc5fSjoergmain ()
994376c7fc5fSjoerg{
994476c7fc5fSjoergreturn __umoddi3 ();
994576c7fc5fSjoerg  ;
994676c7fc5fSjoerg  return 0;
994776c7fc5fSjoerg}
994876c7fc5fSjoerg_ACEOF
994976c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
995076c7fc5fSjoerg  ac_cv_lib_gcc___umoddi3=yes
995176c7fc5fSjoergelse
995276c7fc5fSjoerg  ac_cv_lib_gcc___umoddi3=no
995376c7fc5fSjoergfi
995476c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
995576c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
995676c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
995776c7fc5fSjoergfi
995876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___umoddi3" >&5
995976c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___umoddi3" >&6; }
996076c7fc5fSjoergif test "x$ac_cv_lib_gcc___umoddi3" = xyes; then :
996176c7fc5fSjoerg
996276c7fc5fSjoerg$as_echo "#define HAVE___UMODDI3 1" >>confdefs.h
996376c7fc5fSjoerg
996476c7fc5fSjoergfi
996576c7fc5fSjoerg
996676c7fc5fSjoerg
996776c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __main in -lgcc" >&5
996876c7fc5fSjoerg$as_echo_n "checking for __main in -lgcc... " >&6; }
996976c7fc5fSjoergif ${ac_cv_lib_gcc___main+:} false; then :
997076c7fc5fSjoerg  $as_echo_n "(cached) " >&6
997176c7fc5fSjoergelse
997276c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
997376c7fc5fSjoergLIBS="-lgcc  $LIBS"
997476c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
997576c7fc5fSjoerg/* end confdefs.h.  */
997676c7fc5fSjoerg
997776c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
997876c7fc5fSjoerg   Use char because int might match the return type of a GCC
997976c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
998076c7fc5fSjoerg#ifdef __cplusplus
998176c7fc5fSjoergextern "C"
998276c7fc5fSjoerg#endif
998376c7fc5fSjoergchar __main ();
998476c7fc5fSjoergint
998576c7fc5fSjoergmain ()
998676c7fc5fSjoerg{
998776c7fc5fSjoergreturn __main ();
998876c7fc5fSjoerg  ;
998976c7fc5fSjoerg  return 0;
999076c7fc5fSjoerg}
999176c7fc5fSjoerg_ACEOF
999276c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
999376c7fc5fSjoerg  ac_cv_lib_gcc___main=yes
999476c7fc5fSjoergelse
999576c7fc5fSjoerg  ac_cv_lib_gcc___main=no
999676c7fc5fSjoergfi
999776c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
999876c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
999976c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
1000076c7fc5fSjoergfi
1000176c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___main" >&5
1000276c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___main" >&6; }
1000376c7fc5fSjoergif test "x$ac_cv_lib_gcc___main" = xyes; then :
1000476c7fc5fSjoerg
1000576c7fc5fSjoerg$as_echo "#define HAVE___MAIN 1" >>confdefs.h
1000676c7fc5fSjoerg
1000776c7fc5fSjoergfi
1000876c7fc5fSjoerg
1000976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cmpdi2 in -lgcc" >&5
1001076c7fc5fSjoerg$as_echo_n "checking for __cmpdi2 in -lgcc... " >&6; }
1001176c7fc5fSjoergif ${ac_cv_lib_gcc___cmpdi2+:} false; then :
1001276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
1001376c7fc5fSjoergelse
1001476c7fc5fSjoerg  ac_check_lib_save_LIBS=$LIBS
1001576c7fc5fSjoergLIBS="-lgcc  $LIBS"
1001676c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1001776c7fc5fSjoerg/* end confdefs.h.  */
1001876c7fc5fSjoerg
1001976c7fc5fSjoerg/* Override any GCC internal prototype to avoid an error.
1002076c7fc5fSjoerg   Use char because int might match the return type of a GCC
1002176c7fc5fSjoerg   builtin and then its argument prototype would still apply.  */
1002276c7fc5fSjoerg#ifdef __cplusplus
1002376c7fc5fSjoergextern "C"
1002476c7fc5fSjoerg#endif
1002576c7fc5fSjoergchar __cmpdi2 ();
1002676c7fc5fSjoergint
1002776c7fc5fSjoergmain ()
1002876c7fc5fSjoerg{
1002976c7fc5fSjoergreturn __cmpdi2 ();
1003076c7fc5fSjoerg  ;
1003176c7fc5fSjoerg  return 0;
1003276c7fc5fSjoerg}
1003376c7fc5fSjoerg_ACEOF
1003476c7fc5fSjoergif ac_fn_c_try_link "$LINENO"; then :
1003576c7fc5fSjoerg  ac_cv_lib_gcc___cmpdi2=yes
1003676c7fc5fSjoergelse
1003776c7fc5fSjoerg  ac_cv_lib_gcc___cmpdi2=no
1003876c7fc5fSjoergfi
1003976c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
1004076c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
1004176c7fc5fSjoergLIBS=$ac_check_lib_save_LIBS
1004276c7fc5fSjoergfi
1004376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___cmpdi2" >&5
1004476c7fc5fSjoerg$as_echo "$ac_cv_lib_gcc___cmpdi2" >&6; }
1004576c7fc5fSjoergif test "x$ac_cv_lib_gcc___cmpdi2" = xyes; then :
1004676c7fc5fSjoerg
1004776c7fc5fSjoerg$as_echo "#define HAVE___CMPDI2 1" >>confdefs.h
1004876c7fc5fSjoerg
1004976c7fc5fSjoergfi
1005076c7fc5fSjoerg
1005176c7fc5fSjoergfi
1005276c7fc5fSjoerg
1005376c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
1005476c7fc5fSjoerg$as_echo_n "checking for GCC atomic builtins... " >&6; }
1005576c7fc5fSjoergac_ext=cpp
1005676c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
1005776c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1005876c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1005976c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1006076c7fc5fSjoerg
1006176c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006276c7fc5fSjoerg/* end confdefs.h.  */
1006376c7fc5fSjoerg
1006476c7fc5fSjoerg
1006576c7fc5fSjoerg    int main() {
1006676c7fc5fSjoerg      volatile unsigned long val = 1;
1006776c7fc5fSjoerg      __sync_synchronize();
1006876c7fc5fSjoerg      __sync_val_compare_and_swap(&val, 1, 0);
1006976c7fc5fSjoerg      __sync_add_and_fetch(&val, 1);
1007076c7fc5fSjoerg      __sync_sub_and_fetch(&val, 1);
1007176c7fc5fSjoerg      return 0;
1007276c7fc5fSjoerg    }
1007376c7fc5fSjoerg
1007476c7fc5fSjoerg
1007576c7fc5fSjoerg_ACEOF
1007676c7fc5fSjoergif ac_fn_cxx_try_link "$LINENO"; then :
1007776c7fc5fSjoerg
1007876c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1007976c7fc5fSjoerg$as_echo "yes" >&6; }
1008076c7fc5fSjoerg
1008176c7fc5fSjoerg$as_echo "#define LLVM_HAS_ATOMICS 1" >>confdefs.h
1008276c7fc5fSjoerg
1008376c7fc5fSjoerg
1008476c7fc5fSjoergelse
1008576c7fc5fSjoerg
1008676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1008776c7fc5fSjoerg$as_echo "no" >&6; }
1008876c7fc5fSjoerg
1008976c7fc5fSjoerg$as_echo "#define LLVM_HAS_ATOMICS 0" >>confdefs.h
1009076c7fc5fSjoerg
1009176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
1009276c7fc5fSjoerg$as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
1009376c7fc5fSjoerg
1009476c7fc5fSjoergfi
1009576c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
1009676c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
1009776c7fc5fSjoergac_ext=c
1009876c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
1009976c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1010076c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1010176c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
1010276c7fc5fSjoerg
1010376c7fc5fSjoerg
1010476c7fc5fSjoergac_ext=cpp
1010576c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
1010676c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1010776c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1010876c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1010976c7fc5fSjoerg
1011076c7fc5fSjoergcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1011176c7fc5fSjoerg/* end confdefs.h.  */
1011276c7fc5fSjoerg
1011376c7fc5fSjoerg
1011476c7fc5fSjoerg#include <type_traits>
1011576c7fc5fSjoergstruct T { int val; };
1011676c7fc5fSjoergstatic_assert(std::is_trivially_copyable<T>::value, "ok");
1011776c7fc5fSjoergint main() { return 0; }
1011876c7fc5fSjoerg
1011976c7fc5fSjoerg
1012076c7fc5fSjoerg_ACEOF
1012176c7fc5fSjoergif ac_fn_cxx_try_link "$LINENO"; then :
1012276c7fc5fSjoerg
1012376c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1012476c7fc5fSjoerg$as_echo "yes" >&6; }
1012576c7fc5fSjoerg
1012676c7fc5fSjoerg$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 1" >>confdefs.h
1012776c7fc5fSjoerg
1012876c7fc5fSjoerg
1012976c7fc5fSjoergelse
1013076c7fc5fSjoerg
1013176c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1013276c7fc5fSjoerg$as_echo "no" >&6; }
1013376c7fc5fSjoerg
1013476c7fc5fSjoerg$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 0" >>confdefs.h
1013576c7fc5fSjoerg
1013676c7fc5fSjoerg
1013776c7fc5fSjoergfi
1013876c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext \
1013976c7fc5fSjoerg    conftest$ac_exeext conftest.$ac_ext
1014076c7fc5fSjoergac_ext=c
1014176c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
1014276c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1014376c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1014476c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
1014576c7fc5fSjoerg
1014676c7fc5fSjoerg
1014776c7fc5fSjoerg
1014876c7fc5fSjoergif test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
1014976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
1015076c7fc5fSjoerg$as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
1015176c7fc5fSjoergif ${llvm_cv_linux_mixed+:} false; then :
1015276c7fc5fSjoerg  $as_echo_n "(cached) " >&6
1015376c7fc5fSjoergelse
1015476c7fc5fSjoerg   ac_ext=c
1015576c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
1015676c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1015776c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1015876c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
1015976c7fc5fSjoerg
1016076c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1016176c7fc5fSjoerg/* end confdefs.h.  */
1016276c7fc5fSjoerg#ifndef __x86_64__
1016376c7fc5fSjoerg       error: Not x86-64 even if uname says so!
1016476c7fc5fSjoerg      #endif
1016576c7fc5fSjoerg
1016676c7fc5fSjoergint
1016776c7fc5fSjoergmain ()
1016876c7fc5fSjoerg{
1016976c7fc5fSjoerg
1017076c7fc5fSjoerg  ;
1017176c7fc5fSjoerg  return 0;
1017276c7fc5fSjoerg}
1017376c7fc5fSjoerg_ACEOF
1017476c7fc5fSjoergif ac_fn_c_try_compile "$LINENO"; then :
1017576c7fc5fSjoerg  llvm_cv_linux_mixed=no
1017676c7fc5fSjoergelse
1017776c7fc5fSjoerg  llvm_cv_linux_mixed=yes
1017876c7fc5fSjoergfi
1017976c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1018076c7fc5fSjoerg  ac_ext=c
1018176c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
1018276c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1018376c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1018476c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
1018576c7fc5fSjoerg
1018676c7fc5fSjoerg
1018776c7fc5fSjoergfi
1018876c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
1018976c7fc5fSjoerg$as_echo "$llvm_cv_linux_mixed" >&6; }
1019076c7fc5fSjoerg
1019176c7fc5fSjoerg  if test "$llvm_cv_linux_mixed" = "yes"; then
1019276c7fc5fSjoerg    llvm_cv_target_arch="x86"
1019376c7fc5fSjoerg    ARCH="x86"
1019476c7fc5fSjoerg  fi
1019576c7fc5fSjoergfi
1019676c7fc5fSjoerg
1019776c7fc5fSjoergSHLIBEXT=$llvm_shlib_ext
1019876c7fc5fSjoerg
1019976c7fc5fSjoerg
1020076c7fc5fSjoergif test "${prefix}" = "NONE" ; then
1020176c7fc5fSjoerg  prefix="/usr/local"
1020276c7fc5fSjoergfi
1020376c7fc5fSjoergeval LLVM_PREFIX="${prefix}";
1020476c7fc5fSjoerg
1020576c7fc5fSjoerg
1020676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
1020776c7fc5fSjoerg#define LLVM_PREFIX "$LLVM_PREFIX"
1020876c7fc5fSjoerg_ACEOF
1020976c7fc5fSjoerg
1021076c7fc5fSjoerg
1021176c7fc5fSjoergcat >>confdefs.h <<_ACEOF
1021276c7fc5fSjoerg#define LLVM_HOST_TRIPLE "$host"
1021376c7fc5fSjoerg_ACEOF
1021476c7fc5fSjoerg
1021576c7fc5fSjoerg
1021676c7fc5fSjoergcat >>confdefs.h <<_ACEOF
1021776c7fc5fSjoerg#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
1021876c7fc5fSjoerg_ACEOF
1021976c7fc5fSjoerg
1022076c7fc5fSjoerg
1022176c7fc5fSjoergif test "$BINDINGS_TO_BUILD" = auto ; then
1022276c7fc5fSjoerg  BINDINGS_TO_BUILD=""
1022376c7fc5fSjoerg  if test "x$OCAMLFIND" != x ; then
1022476c7fc5fSjoerg    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
1022576c7fc5fSjoerg  fi
1022676c7fc5fSjoerg  if test "x$GO" != x ; then
1022776c7fc5fSjoerg    if $GO run ${srcdir}/bindings/go/conftest.go ; then
1022876c7fc5fSjoerg      BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
1022976c7fc5fSjoerg    fi
1023076c7fc5fSjoerg  fi
1023176c7fc5fSjoergfi
1023276c7fc5fSjoergBINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
1023376c7fc5fSjoerg
1023476c7fc5fSjoerg
1023576c7fc5fSjoergbinding_prereqs_failed=0
1023676c7fc5fSjoergfor a_binding in $BINDINGS_TO_BUILD ; do
1023776c7fc5fSjoerg  case "$a_binding" in
1023876c7fc5fSjoerg  ocaml)
1023976c7fc5fSjoerg    if test "x$OCAMLFIND" = x ; then
1024076c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
1024176c7fc5fSjoerg$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
1024276c7fc5fSjoerg      binding_prereqs_failed=1
1024376c7fc5fSjoerg    fi
1024476c7fc5fSjoerg
1024576c7fc5fSjoerg    if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
1024676c7fc5fSjoerg      HAVE_OCAMLOPT=1
1024776c7fc5fSjoerg    else
1024876c7fc5fSjoerg      HAVE_OCAMLOPT=0
1024976c7fc5fSjoerg    fi
1025076c7fc5fSjoerg
1025176c7fc5fSjoerg
1025276c7fc5fSjoerg    if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
1025376c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
1025476c7fc5fSjoerg$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
1025576c7fc5fSjoerg      binding_prereqs_failed=1
1025676c7fc5fSjoerg    fi
1025776c7fc5fSjoerg
1025876c7fc5fSjoerg    if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
1025976c7fc5fSjoerg      HAVE_OCAML_OUNIT=1
1026076c7fc5fSjoerg    else
1026176c7fc5fSjoerg      HAVE_OCAML_OUNIT=0
1026276c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
1026376c7fc5fSjoerg$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
1026476c7fc5fSjoerg          fi
1026576c7fc5fSjoerg
1026676c7fc5fSjoerg
1026776c7fc5fSjoerg    if test "x$with_ocaml_libdir" != xauto ; then
1026876c7fc5fSjoerg      OCAML_LIBDIR=$with_ocaml_libdir
1026976c7fc5fSjoerg
1027076c7fc5fSjoerg    else
1027176c7fc5fSjoerg      ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
1027276c7fc5fSjoerg      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
1027376c7fc5fSjoerg      then
1027476c7fc5fSjoerg        # ocaml stdlib is beneath our prefix; use stdlib
1027576c7fc5fSjoerg        OCAML_LIBDIR=$ocaml_stdlib
1027676c7fc5fSjoerg
1027776c7fc5fSjoerg      else
1027876c7fc5fSjoerg        # ocaml stdlib is outside our prefix; use libdir/ocaml
1027976c7fc5fSjoerg        OCAML_LIBDIR=${prefix}/lib/ocaml
1028076c7fc5fSjoerg
1028176c7fc5fSjoerg      fi
1028276c7fc5fSjoerg    fi
1028376c7fc5fSjoerg    ;;
1028476c7fc5fSjoerg  go)
1028576c7fc5fSjoerg    if test "x$GO" = x ; then
1028676c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
1028776c7fc5fSjoerg$as_echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
1028876c7fc5fSjoerg      binding_prereqs_failed=1
1028976c7fc5fSjoerg    else
1029076c7fc5fSjoerg      if $GO run ${srcdir}/bindings/go/conftest.go ; then
1029176c7fc5fSjoerg        :
1029276c7fc5fSjoerg      else
1029376c7fc5fSjoerg        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
1029476c7fc5fSjoerg$as_echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
1029576c7fc5fSjoerg        binding_prereqs_failed=1
1029676c7fc5fSjoerg      fi
1029776c7fc5fSjoerg    fi
1029876c7fc5fSjoerg    ;;
1029976c7fc5fSjoerg  esac
1030076c7fc5fSjoergdone
1030176c7fc5fSjoergif test "$binding_prereqs_failed" = 1 ; then
1030276c7fc5fSjoerg  as_fn_error $? "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
1030376c7fc5fSjoergfi
1030476c7fc5fSjoerg
1030576c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
1030676c7fc5fSjoerg$as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
1030776c7fc5fSjoergif ${llvm_cv_cxx_visibility_inlines_hidden+:} false; then :
1030876c7fc5fSjoerg  $as_echo_n "(cached) " >&6
1030976c7fc5fSjoergelse
1031076c7fc5fSjoerg   ac_ext=cpp
1031176c7fc5fSjoergac_cpp='$CXXCPP $CPPFLAGS'
1031276c7fc5fSjoergac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1031376c7fc5fSjoergac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1031476c7fc5fSjoergac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1031576c7fc5fSjoerg
1031676c7fc5fSjoerg  oldcxxflags="$CXXFLAGS"
1031776c7fc5fSjoerg  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
1031876c7fc5fSjoerg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1031976c7fc5fSjoerg/* end confdefs.h.  */
1032076c7fc5fSjoergtemplate <typename T> struct X { void __attribute__((noinline)) f() {} };
1032176c7fc5fSjoergint
1032276c7fc5fSjoergmain ()
1032376c7fc5fSjoerg{
1032476c7fc5fSjoergX<int>().f();
1032576c7fc5fSjoerg  ;
1032676c7fc5fSjoerg  return 0;
1032776c7fc5fSjoerg}
1032876c7fc5fSjoerg_ACEOF
1032976c7fc5fSjoergif ac_fn_cxx_try_compile "$LINENO"; then :
1033076c7fc5fSjoerg  llvm_cv_cxx_visibility_inlines_hidden=yes
1033176c7fc5fSjoergelse
1033276c7fc5fSjoerg  llvm_cv_cxx_visibility_inlines_hidden=no
1033376c7fc5fSjoergfi
1033476c7fc5fSjoergrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1033576c7fc5fSjoerg  CXXFLAGS="$oldcxxflags"
1033676c7fc5fSjoerg  ac_ext=c
1033776c7fc5fSjoergac_cpp='$CPP $CPPFLAGS'
1033876c7fc5fSjoergac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1033976c7fc5fSjoergac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1034076c7fc5fSjoergac_compiler_gnu=$ac_cv_c_compiler_gnu
1034176c7fc5fSjoerg
1034276c7fc5fSjoerg
1034376c7fc5fSjoergfi
1034476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
1034576c7fc5fSjoerg$as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
1034676c7fc5fSjoergif test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
1034776c7fc5fSjoerg  ENABLE_VISIBILITY_INLINES_HIDDEN=1
1034876c7fc5fSjoerg
1034976c7fc5fSjoergelse
1035076c7fc5fSjoerg  ENABLE_VISIBILITY_INLINES_HIDDEN=0
1035176c7fc5fSjoerg
1035276c7fc5fSjoergfi
1035376c7fc5fSjoerg
1035476c7fc5fSjoerg
1035576c7fc5fSjoergif test "$llvm_cv_link_use_r" = "yes" ; then
1035676c7fc5fSjoerg  RPATH="-Wl,-R"
1035776c7fc5fSjoergelse
1035876c7fc5fSjoerg  RPATH="-Wl,-rpath"
1035976c7fc5fSjoergfi
1036076c7fc5fSjoerg
1036176c7fc5fSjoerg
1036276c7fc5fSjoergif test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
1036376c7fc5fSjoerg  RDYNAMIC="-rdynamic"
1036476c7fc5fSjoergelse
1036576c7fc5fSjoerg  RDYNAMIC=""
1036676c7fc5fSjoergfi
1036776c7fc5fSjoerg
1036876c7fc5fSjoerg
1036976c7fc5fSjoerg
1037076c7fc5fSjoerg$as_echo "#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0" >>confdefs.h
1037176c7fc5fSjoerg
1037276c7fc5fSjoerg
1037376c7fc5fSjoergcat >>confdefs.h <<_ACEOF
1037476c7fc5fSjoerg#define BACKTRACE_HEADER <execinfo.h>
1037576c7fc5fSjoerg_ACEOF
1037676c7fc5fSjoerg
1037776c7fc5fSjoerg
1037876c7fc5fSjoerg
1037976c7fc5fSjoerg$as_echo "#define LLVM_ENABLE_CRASH_DUMPS 0" >>confdefs.h
1038076c7fc5fSjoerg
1038176c7fc5fSjoerg
1038276c7fc5fSjoerg$as_echo "#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0" >>confdefs.h
1038376c7fc5fSjoerg
1038476c7fc5fSjoerg
1038576c7fc5fSjoerg
1038676c7fc5fSjoergac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h include/llvm/Config/abi-breaking.h"
1038776c7fc5fSjoerg
1038876c7fc5fSjoerg
1038976c7fc5fSjoerg
1039076c7fc5fSjoerg
1039176c7fc5fSjoergac_config_files="$ac_config_files include/llvm/Config/Targets.def"
1039276c7fc5fSjoerg
1039376c7fc5fSjoergac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
1039476c7fc5fSjoerg
1039576c7fc5fSjoergac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
1039676c7fc5fSjoerg
1039776c7fc5fSjoergac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
1039876c7fc5fSjoerg
1039976c7fc5fSjoergac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1040076c7fc5fSjoerg
1040176c7fc5fSjoerg
1040276c7fc5fSjoergif test "${clang_src_root}" = ""; then
1040376c7fc5fSjoerg  clang_src_root="$srcdir/tools/clang"
1040476c7fc5fSjoergfi
1040576c7fc5fSjoergif test -f ${clang_src_root}/README.txt; then
1040676c7fc5fSjoerg  ac_config_headers="$ac_config_headers include/clang/Config/config.h"
1040776c7fc5fSjoerg
1040876c7fc5fSjoergfi
1040976c7fc5fSjoerg
1041076c7fc5fSjoergcat >confcache <<\_ACEOF
1041176c7fc5fSjoerg# This file is a shell script that caches the results of configure
1041276c7fc5fSjoerg# tests run on this system so they can be shared between configure
1041376c7fc5fSjoerg# scripts and configure runs, see configure's option --config-cache.
1041476c7fc5fSjoerg# It is not useful on other systems.  If it contains results you don't
1041576c7fc5fSjoerg# want to keep, you may remove or edit it.
1041676c7fc5fSjoerg#
1041776c7fc5fSjoerg# config.status only pays attention to the cache file if you give it
1041876c7fc5fSjoerg# the --recheck option to rerun configure.
1041976c7fc5fSjoerg#
1042076c7fc5fSjoerg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1042176c7fc5fSjoerg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1042276c7fc5fSjoerg# following values.
1042376c7fc5fSjoerg
1042476c7fc5fSjoerg_ACEOF
1042576c7fc5fSjoerg
1042676c7fc5fSjoerg# The following way of writing the cache mishandles newlines in values,
1042776c7fc5fSjoerg# but we know of no workaround that is simple, portable, and efficient.
1042876c7fc5fSjoerg# So, we kill variables containing newlines.
1042976c7fc5fSjoerg# Ultrix sh set writes to stderr and can't be redirected directly,
1043076c7fc5fSjoerg# and sets the high bit in the cache file unless we assign to the vars.
1043176c7fc5fSjoerg(
1043276c7fc5fSjoerg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1043376c7fc5fSjoerg    eval ac_val=\$$ac_var
1043476c7fc5fSjoerg    case $ac_val in #(
1043576c7fc5fSjoerg    *${as_nl}*)
1043676c7fc5fSjoerg      case $ac_var in #(
1043776c7fc5fSjoerg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1043876c7fc5fSjoerg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1043976c7fc5fSjoerg      esac
1044076c7fc5fSjoerg      case $ac_var in #(
1044176c7fc5fSjoerg      _ | IFS | as_nl) ;; #(
1044276c7fc5fSjoerg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1044376c7fc5fSjoerg      *) { eval $ac_var=; unset $ac_var;} ;;
1044476c7fc5fSjoerg      esac ;;
1044576c7fc5fSjoerg    esac
1044676c7fc5fSjoerg  done
1044776c7fc5fSjoerg
1044876c7fc5fSjoerg  (set) 2>&1 |
1044976c7fc5fSjoerg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1045076c7fc5fSjoerg    *${as_nl}ac_space=\ *)
1045176c7fc5fSjoerg      # `set' does not quote correctly, so add quotes: double-quote
1045276c7fc5fSjoerg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1045376c7fc5fSjoerg      sed -n \
1045476c7fc5fSjoerg	"s/'/'\\\\''/g;
1045576c7fc5fSjoerg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1045676c7fc5fSjoerg      ;; #(
1045776c7fc5fSjoerg    *)
1045876c7fc5fSjoerg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1045976c7fc5fSjoerg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1046076c7fc5fSjoerg      ;;
1046176c7fc5fSjoerg    esac |
1046276c7fc5fSjoerg    sort
1046376c7fc5fSjoerg) |
1046476c7fc5fSjoerg  sed '
1046576c7fc5fSjoerg     /^ac_cv_env_/b end
1046676c7fc5fSjoerg     t clear
1046776c7fc5fSjoerg     :clear
1046876c7fc5fSjoerg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1046976c7fc5fSjoerg     t end
1047076c7fc5fSjoerg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1047176c7fc5fSjoerg     :end' >>confcache
1047276c7fc5fSjoergif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1047376c7fc5fSjoerg  if test -w "$cache_file"; then
1047476c7fc5fSjoerg    if test "x$cache_file" != "x/dev/null"; then
1047576c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1047676c7fc5fSjoerg$as_echo "$as_me: updating cache $cache_file" >&6;}
1047776c7fc5fSjoerg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1047876c7fc5fSjoerg	cat confcache >"$cache_file"
1047976c7fc5fSjoerg      else
1048076c7fc5fSjoerg        case $cache_file in #(
1048176c7fc5fSjoerg        */* | ?:*)
1048276c7fc5fSjoerg	  mv -f confcache "$cache_file"$$ &&
1048376c7fc5fSjoerg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1048476c7fc5fSjoerg        *)
1048576c7fc5fSjoerg	  mv -f confcache "$cache_file" ;;
1048676c7fc5fSjoerg	esac
1048776c7fc5fSjoerg      fi
1048876c7fc5fSjoerg    fi
1048976c7fc5fSjoerg  else
1049076c7fc5fSjoerg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1049176c7fc5fSjoerg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1049276c7fc5fSjoerg  fi
1049376c7fc5fSjoergfi
1049476c7fc5fSjoergrm -f confcache
1049576c7fc5fSjoerg
1049676c7fc5fSjoergtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1049776c7fc5fSjoerg# Let make expand exec_prefix.
1049876c7fc5fSjoergtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1049976c7fc5fSjoerg
1050076c7fc5fSjoergDEFS=-DHAVE_CONFIG_H
1050176c7fc5fSjoerg
1050276c7fc5fSjoergac_libobjs=
1050376c7fc5fSjoergac_ltlibobjs=
1050476c7fc5fSjoergU=
1050576c7fc5fSjoergfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1050676c7fc5fSjoerg  # 1. Remove the extension, and $U if already installed.
1050776c7fc5fSjoerg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1050876c7fc5fSjoerg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1050976c7fc5fSjoerg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1051076c7fc5fSjoerg  #    will be set to the directory where LIBOBJS objects are built.
1051176c7fc5fSjoerg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1051276c7fc5fSjoerg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1051376c7fc5fSjoergdone
1051476c7fc5fSjoergLIBOBJS=$ac_libobjs
1051576c7fc5fSjoerg
1051676c7fc5fSjoergLTLIBOBJS=$ac_ltlibobjs
1051776c7fc5fSjoerg
1051876c7fc5fSjoerg
1051976c7fc5fSjoerg
1052076c7fc5fSjoerg: "${CONFIG_STATUS=./config.status}"
1052176c7fc5fSjoergac_write_fail=0
1052276c7fc5fSjoergac_clean_files_save=$ac_clean_files
1052376c7fc5fSjoergac_clean_files="$ac_clean_files $CONFIG_STATUS"
1052476c7fc5fSjoerg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1052576c7fc5fSjoerg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1052676c7fc5fSjoergas_write_fail=0
1052776c7fc5fSjoergcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1052876c7fc5fSjoerg#! $SHELL
1052976c7fc5fSjoerg# Generated by $as_me.
1053076c7fc5fSjoerg# Run this file to recreate the current configuration.
1053176c7fc5fSjoerg# Compiler output produced by configure, useful for debugging
1053276c7fc5fSjoerg# configure, is in config.log if it exists.
1053376c7fc5fSjoerg
1053476c7fc5fSjoergdebug=false
1053576c7fc5fSjoergac_cs_recheck=false
1053676c7fc5fSjoergac_cs_silent=false
1053776c7fc5fSjoerg
1053876c7fc5fSjoergSHELL=\${CONFIG_SHELL-$SHELL}
1053976c7fc5fSjoergexport SHELL
1054076c7fc5fSjoerg_ASEOF
1054176c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1054276c7fc5fSjoerg## -------------------- ##
1054376c7fc5fSjoerg## M4sh Initialization. ##
1054476c7fc5fSjoerg## -------------------- ##
1054576c7fc5fSjoerg
1054676c7fc5fSjoerg# Be more Bourne compatible
1054776c7fc5fSjoergDUALCASE=1; export DUALCASE # for MKS sh
1054876c7fc5fSjoergif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1054976c7fc5fSjoerg  emulate sh
1055076c7fc5fSjoerg  NULLCMD=:
1055176c7fc5fSjoerg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1055276c7fc5fSjoerg  # is contrary to our usage.  Disable this feature.
1055376c7fc5fSjoerg  alias -g '${1+"$@"}'='"$@"'
1055476c7fc5fSjoerg  setopt NO_GLOB_SUBST
1055576c7fc5fSjoergelse
1055676c7fc5fSjoerg  case `(set -o) 2>/dev/null` in #(
1055776c7fc5fSjoerg  *posix*) :
1055876c7fc5fSjoerg    set -o posix ;; #(
1055976c7fc5fSjoerg  *) :
1056076c7fc5fSjoerg     ;;
1056176c7fc5fSjoergesac
1056276c7fc5fSjoergfi
1056376c7fc5fSjoerg
1056476c7fc5fSjoerg
1056576c7fc5fSjoergas_nl='
1056676c7fc5fSjoerg'
1056776c7fc5fSjoergexport as_nl
1056876c7fc5fSjoerg# Printing a long string crashes Solaris 7 /usr/bin/printf.
1056976c7fc5fSjoergas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1057076c7fc5fSjoergas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
1057176c7fc5fSjoergas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1057276c7fc5fSjoerg# Prefer a ksh shell builtin over an external printf program on Solaris,
1057376c7fc5fSjoerg# but without wasting forks for bash or zsh.
1057476c7fc5fSjoergif test -z "$BASH_VERSION$ZSH_VERSION" \
1057576c7fc5fSjoerg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1057676c7fc5fSjoerg  as_echo='print -r --'
1057776c7fc5fSjoerg  as_echo_n='print -rn --'
1057876c7fc5fSjoergelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1057976c7fc5fSjoerg  as_echo='printf %s\n'
1058076c7fc5fSjoerg  as_echo_n='printf %s'
1058176c7fc5fSjoergelse
1058276c7fc5fSjoerg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
1058376c7fc5fSjoerg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
1058476c7fc5fSjoerg    as_echo_n='/usr/ucb/echo -n'
1058576c7fc5fSjoerg  else
1058676c7fc5fSjoerg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
1058776c7fc5fSjoerg    as_echo_n_body='eval
1058876c7fc5fSjoerg      arg=$1;
1058976c7fc5fSjoerg      case $arg in #(
1059076c7fc5fSjoerg      *"$as_nl"*)
1059176c7fc5fSjoerg	expr "X$arg" : "X\\(.*\\)$as_nl";
1059276c7fc5fSjoerg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
1059376c7fc5fSjoerg      esac;
1059476c7fc5fSjoerg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
1059576c7fc5fSjoerg    '
1059676c7fc5fSjoerg    export as_echo_n_body
1059776c7fc5fSjoerg    as_echo_n='sh -c $as_echo_n_body as_echo'
1059876c7fc5fSjoerg  fi
1059976c7fc5fSjoerg  export as_echo_body
1060076c7fc5fSjoerg  as_echo='sh -c $as_echo_body as_echo'
1060176c7fc5fSjoergfi
1060276c7fc5fSjoerg
1060376c7fc5fSjoerg# The user is always right.
1060476c7fc5fSjoergif test "${PATH_SEPARATOR+set}" != set; then
1060576c7fc5fSjoerg  PATH_SEPARATOR=:
1060676c7fc5fSjoerg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1060776c7fc5fSjoerg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1060876c7fc5fSjoerg      PATH_SEPARATOR=';'
1060976c7fc5fSjoerg  }
1061076c7fc5fSjoergfi
1061176c7fc5fSjoerg
1061276c7fc5fSjoerg
1061376c7fc5fSjoerg# IFS
1061476c7fc5fSjoerg# We need space, tab and new line, in precisely that order.  Quoting is
1061576c7fc5fSjoerg# there to prevent editors from complaining about space-tab.
1061676c7fc5fSjoerg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1061776c7fc5fSjoerg# splitting by setting IFS to empty value.)
1061876c7fc5fSjoergIFS=" ""	$as_nl"
1061976c7fc5fSjoerg
1062076c7fc5fSjoerg# Find who we are.  Look in the path if we contain no directory separator.
1062176c7fc5fSjoergas_myself=
1062276c7fc5fSjoergcase $0 in #((
1062376c7fc5fSjoerg  *[\\/]* ) as_myself=$0 ;;
1062476c7fc5fSjoerg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062576c7fc5fSjoergfor as_dir in $PATH
1062676c7fc5fSjoergdo
1062776c7fc5fSjoerg  IFS=$as_save_IFS
1062876c7fc5fSjoerg  test -z "$as_dir" && as_dir=.
1062976c7fc5fSjoerg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1063076c7fc5fSjoerg  done
1063176c7fc5fSjoergIFS=$as_save_IFS
1063276c7fc5fSjoerg
1063376c7fc5fSjoerg     ;;
1063476c7fc5fSjoergesac
1063576c7fc5fSjoerg# We did not find ourselves, most probably we were run as `sh COMMAND'
1063676c7fc5fSjoerg# in which case we are not to be found in the path.
1063776c7fc5fSjoergif test "x$as_myself" = x; then
1063876c7fc5fSjoerg  as_myself=$0
1063976c7fc5fSjoergfi
1064076c7fc5fSjoergif test ! -f "$as_myself"; then
1064176c7fc5fSjoerg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1064276c7fc5fSjoerg  exit 1
1064376c7fc5fSjoergfi
1064476c7fc5fSjoerg
1064576c7fc5fSjoerg# Unset variables that we do not need and which cause bugs (e.g. in
1064676c7fc5fSjoerg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1064776c7fc5fSjoerg# suppresses any "Segmentation fault" message there.  '((' could
1064876c7fc5fSjoerg# trigger a bug in pdksh 5.2.14.
1064976c7fc5fSjoergfor as_var in BASH_ENV ENV MAIL MAILPATH
1065076c7fc5fSjoergdo eval test x\${$as_var+set} = xset \
1065176c7fc5fSjoerg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1065276c7fc5fSjoergdone
1065376c7fc5fSjoergPS1='$ '
1065476c7fc5fSjoergPS2='> '
1065576c7fc5fSjoergPS4='+ '
1065676c7fc5fSjoerg
1065776c7fc5fSjoerg# NLS nuisances.
1065876c7fc5fSjoergLC_ALL=C
1065976c7fc5fSjoergexport LC_ALL
1066076c7fc5fSjoergLANGUAGE=C
1066176c7fc5fSjoergexport LANGUAGE
1066276c7fc5fSjoerg
1066376c7fc5fSjoerg# CDPATH.
1066476c7fc5fSjoerg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1066576c7fc5fSjoerg
1066676c7fc5fSjoerg
1066776c7fc5fSjoerg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1066876c7fc5fSjoerg# ----------------------------------------
1066976c7fc5fSjoerg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1067076c7fc5fSjoerg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1067176c7fc5fSjoerg# script with STATUS, using 1 if that was 0.
1067276c7fc5fSjoergas_fn_error ()
1067376c7fc5fSjoerg{
1067476c7fc5fSjoerg  as_status=$1; test $as_status -eq 0 && as_status=1
1067576c7fc5fSjoerg  if test "$4"; then
1067676c7fc5fSjoerg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1067776c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1067876c7fc5fSjoerg  fi
1067976c7fc5fSjoerg  $as_echo "$as_me: error: $2" >&2
1068076c7fc5fSjoerg  as_fn_exit $as_status
1068176c7fc5fSjoerg} # as_fn_error
1068276c7fc5fSjoerg
1068376c7fc5fSjoerg
1068476c7fc5fSjoerg# as_fn_set_status STATUS
1068576c7fc5fSjoerg# -----------------------
1068676c7fc5fSjoerg# Set $? to STATUS, without forking.
1068776c7fc5fSjoergas_fn_set_status ()
1068876c7fc5fSjoerg{
1068976c7fc5fSjoerg  return $1
1069076c7fc5fSjoerg} # as_fn_set_status
1069176c7fc5fSjoerg
1069276c7fc5fSjoerg# as_fn_exit STATUS
1069376c7fc5fSjoerg# -----------------
1069476c7fc5fSjoerg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1069576c7fc5fSjoergas_fn_exit ()
1069676c7fc5fSjoerg{
1069776c7fc5fSjoerg  set +e
1069876c7fc5fSjoerg  as_fn_set_status $1
1069976c7fc5fSjoerg  exit $1
1070076c7fc5fSjoerg} # as_fn_exit
1070176c7fc5fSjoerg
1070276c7fc5fSjoerg# as_fn_unset VAR
1070376c7fc5fSjoerg# ---------------
1070476c7fc5fSjoerg# Portably unset VAR.
1070576c7fc5fSjoergas_fn_unset ()
1070676c7fc5fSjoerg{
1070776c7fc5fSjoerg  { eval $1=; unset $1;}
1070876c7fc5fSjoerg}
1070976c7fc5fSjoergas_unset=as_fn_unset
1071076c7fc5fSjoerg# as_fn_append VAR VALUE
1071176c7fc5fSjoerg# ----------------------
1071276c7fc5fSjoerg# Append the text in VALUE to the end of the definition contained in VAR. Take
1071376c7fc5fSjoerg# advantage of any shell optimizations that allow amortized linear growth over
1071476c7fc5fSjoerg# repeated appends, instead of the typical quadratic growth present in naive
1071576c7fc5fSjoerg# implementations.
1071676c7fc5fSjoergif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1071776c7fc5fSjoerg  eval 'as_fn_append ()
1071876c7fc5fSjoerg  {
1071976c7fc5fSjoerg    eval $1+=\$2
1072076c7fc5fSjoerg  }'
1072176c7fc5fSjoergelse
1072276c7fc5fSjoerg  as_fn_append ()
1072376c7fc5fSjoerg  {
1072476c7fc5fSjoerg    eval $1=\$$1\$2
1072576c7fc5fSjoerg  }
1072676c7fc5fSjoergfi # as_fn_append
1072776c7fc5fSjoerg
1072876c7fc5fSjoerg# as_fn_arith ARG...
1072976c7fc5fSjoerg# ------------------
1073076c7fc5fSjoerg# Perform arithmetic evaluation on the ARGs, and store the result in the
1073176c7fc5fSjoerg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1073276c7fc5fSjoerg# must be portable across $(()) and expr.
1073376c7fc5fSjoergif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1073476c7fc5fSjoerg  eval 'as_fn_arith ()
1073576c7fc5fSjoerg  {
1073676c7fc5fSjoerg    as_val=$(( $* ))
1073776c7fc5fSjoerg  }'
1073876c7fc5fSjoergelse
1073976c7fc5fSjoerg  as_fn_arith ()
1074076c7fc5fSjoerg  {
1074176c7fc5fSjoerg    as_val=`expr "$@" || test $? -eq 1`
1074276c7fc5fSjoerg  }
1074376c7fc5fSjoergfi # as_fn_arith
1074476c7fc5fSjoerg
1074576c7fc5fSjoerg
1074676c7fc5fSjoergif expr a : '\(a\)' >/dev/null 2>&1 &&
1074776c7fc5fSjoerg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1074876c7fc5fSjoerg  as_expr=expr
1074976c7fc5fSjoergelse
1075076c7fc5fSjoerg  as_expr=false
1075176c7fc5fSjoergfi
1075276c7fc5fSjoerg
1075376c7fc5fSjoergif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1075476c7fc5fSjoerg  as_basename=basename
1075576c7fc5fSjoergelse
1075676c7fc5fSjoerg  as_basename=false
1075776c7fc5fSjoergfi
1075876c7fc5fSjoerg
1075976c7fc5fSjoergif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1076076c7fc5fSjoerg  as_dirname=dirname
1076176c7fc5fSjoergelse
1076276c7fc5fSjoerg  as_dirname=false
1076376c7fc5fSjoergfi
1076476c7fc5fSjoerg
1076576c7fc5fSjoergas_me=`$as_basename -- "$0" ||
1076676c7fc5fSjoerg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1076776c7fc5fSjoerg	 X"$0" : 'X\(//\)$' \| \
1076876c7fc5fSjoerg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1076976c7fc5fSjoerg$as_echo X/"$0" |
1077076c7fc5fSjoerg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1077176c7fc5fSjoerg	    s//\1/
1077276c7fc5fSjoerg	    q
1077376c7fc5fSjoerg	  }
1077476c7fc5fSjoerg	  /^X\/\(\/\/\)$/{
1077576c7fc5fSjoerg	    s//\1/
1077676c7fc5fSjoerg	    q
1077776c7fc5fSjoerg	  }
1077876c7fc5fSjoerg	  /^X\/\(\/\).*/{
1077976c7fc5fSjoerg	    s//\1/
1078076c7fc5fSjoerg	    q
1078176c7fc5fSjoerg	  }
1078276c7fc5fSjoerg	  s/.*/./; q'`
1078376c7fc5fSjoerg
1078476c7fc5fSjoerg# Avoid depending upon Character Ranges.
1078576c7fc5fSjoergas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1078676c7fc5fSjoergas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1078776c7fc5fSjoergas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1078876c7fc5fSjoergas_cr_digits='0123456789'
1078976c7fc5fSjoergas_cr_alnum=$as_cr_Letters$as_cr_digits
1079076c7fc5fSjoerg
1079176c7fc5fSjoergECHO_C= ECHO_N= ECHO_T=
1079276c7fc5fSjoergcase `echo -n x` in #(((((
1079376c7fc5fSjoerg-n*)
1079476c7fc5fSjoerg  case `echo 'xy\c'` in
1079576c7fc5fSjoerg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1079676c7fc5fSjoerg  xy)  ECHO_C='\c';;
1079776c7fc5fSjoerg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1079876c7fc5fSjoerg       ECHO_T='	';;
1079976c7fc5fSjoerg  esac;;
1080076c7fc5fSjoerg*)
1080176c7fc5fSjoerg  ECHO_N='-n';;
1080276c7fc5fSjoergesac
1080376c7fc5fSjoerg
1080476c7fc5fSjoergrm -f conf$$ conf$$.exe conf$$.file
1080576c7fc5fSjoergif test -d conf$$.dir; then
1080676c7fc5fSjoerg  rm -f conf$$.dir/conf$$.file
1080776c7fc5fSjoergelse
1080876c7fc5fSjoerg  rm -f conf$$.dir
1080976c7fc5fSjoerg  mkdir conf$$.dir 2>/dev/null
1081076c7fc5fSjoergfi
1081176c7fc5fSjoergif (echo >conf$$.file) 2>/dev/null; then
1081276c7fc5fSjoerg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1081376c7fc5fSjoerg    as_ln_s='ln -s'
1081476c7fc5fSjoerg    # ... but there are two gotchas:
1081576c7fc5fSjoerg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1081676c7fc5fSjoerg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1081776c7fc5fSjoerg    # In both cases, we have to default to `cp -pR'.
1081876c7fc5fSjoerg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1081976c7fc5fSjoerg      as_ln_s='cp -pR'
1082076c7fc5fSjoerg  elif ln conf$$.file conf$$ 2>/dev/null; then
1082176c7fc5fSjoerg    as_ln_s=ln
1082276c7fc5fSjoerg  else
1082376c7fc5fSjoerg    as_ln_s='cp -pR'
1082476c7fc5fSjoerg  fi
1082576c7fc5fSjoergelse
1082676c7fc5fSjoerg  as_ln_s='cp -pR'
1082776c7fc5fSjoergfi
1082876c7fc5fSjoergrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1082976c7fc5fSjoergrmdir conf$$.dir 2>/dev/null
1083076c7fc5fSjoerg
1083176c7fc5fSjoerg
1083276c7fc5fSjoerg# as_fn_mkdir_p
1083376c7fc5fSjoerg# -------------
1083476c7fc5fSjoerg# Create "$as_dir" as a directory, including parents if necessary.
1083576c7fc5fSjoergas_fn_mkdir_p ()
1083676c7fc5fSjoerg{
1083776c7fc5fSjoerg
1083876c7fc5fSjoerg  case $as_dir in #(
1083976c7fc5fSjoerg  -*) as_dir=./$as_dir;;
1084076c7fc5fSjoerg  esac
1084176c7fc5fSjoerg  test -d "$as_dir" || eval $as_mkdir_p || {
1084276c7fc5fSjoerg    as_dirs=
1084376c7fc5fSjoerg    while :; do
1084476c7fc5fSjoerg      case $as_dir in #(
1084576c7fc5fSjoerg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1084676c7fc5fSjoerg      *) as_qdir=$as_dir;;
1084776c7fc5fSjoerg      esac
1084876c7fc5fSjoerg      as_dirs="'$as_qdir' $as_dirs"
1084976c7fc5fSjoerg      as_dir=`$as_dirname -- "$as_dir" ||
1085076c7fc5fSjoerg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1085176c7fc5fSjoerg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1085276c7fc5fSjoerg	 X"$as_dir" : 'X\(//\)$' \| \
1085376c7fc5fSjoerg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1085476c7fc5fSjoerg$as_echo X"$as_dir" |
1085576c7fc5fSjoerg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1085676c7fc5fSjoerg	    s//\1/
1085776c7fc5fSjoerg	    q
1085876c7fc5fSjoerg	  }
1085976c7fc5fSjoerg	  /^X\(\/\/\)[^/].*/{
1086076c7fc5fSjoerg	    s//\1/
1086176c7fc5fSjoerg	    q
1086276c7fc5fSjoerg	  }
1086376c7fc5fSjoerg	  /^X\(\/\/\)$/{
1086476c7fc5fSjoerg	    s//\1/
1086576c7fc5fSjoerg	    q
1086676c7fc5fSjoerg	  }
1086776c7fc5fSjoerg	  /^X\(\/\).*/{
1086876c7fc5fSjoerg	    s//\1/
1086976c7fc5fSjoerg	    q
1087076c7fc5fSjoerg	  }
1087176c7fc5fSjoerg	  s/.*/./; q'`
1087276c7fc5fSjoerg      test -d "$as_dir" && break
1087376c7fc5fSjoerg    done
1087476c7fc5fSjoerg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1087576c7fc5fSjoerg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1087676c7fc5fSjoerg
1087776c7fc5fSjoerg
1087876c7fc5fSjoerg} # as_fn_mkdir_p
1087976c7fc5fSjoergif mkdir -p . 2>/dev/null; then
1088076c7fc5fSjoerg  as_mkdir_p='mkdir -p "$as_dir"'
1088176c7fc5fSjoergelse
1088276c7fc5fSjoerg  test -d ./-p && rmdir ./-p
1088376c7fc5fSjoerg  as_mkdir_p=false
1088476c7fc5fSjoergfi
1088576c7fc5fSjoerg
1088676c7fc5fSjoerg
1088776c7fc5fSjoerg# as_fn_executable_p FILE
1088876c7fc5fSjoerg# -----------------------
1088976c7fc5fSjoerg# Test if FILE is an executable regular file.
1089076c7fc5fSjoergas_fn_executable_p ()
1089176c7fc5fSjoerg{
1089276c7fc5fSjoerg  test -f "$1" && test -x "$1"
1089376c7fc5fSjoerg} # as_fn_executable_p
1089476c7fc5fSjoergas_test_x='test -x'
1089576c7fc5fSjoergas_executable_p=as_fn_executable_p
1089676c7fc5fSjoerg
1089776c7fc5fSjoerg# Sed expression to map a string onto a valid CPP name.
1089876c7fc5fSjoergas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1089976c7fc5fSjoerg
1090076c7fc5fSjoerg# Sed expression to map a string onto a valid variable name.
1090176c7fc5fSjoergas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1090276c7fc5fSjoerg
1090376c7fc5fSjoerg
1090476c7fc5fSjoergexec 6>&1
1090576c7fc5fSjoerg## ----------------------------------- ##
1090676c7fc5fSjoerg## Main body of $CONFIG_STATUS script. ##
1090776c7fc5fSjoerg## ----------------------------------- ##
1090876c7fc5fSjoerg_ASEOF
1090976c7fc5fSjoergtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1091076c7fc5fSjoerg
1091176c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1091276c7fc5fSjoerg# Save the log message, to keep $0 and so on meaningful, and to
1091376c7fc5fSjoerg# report actual input values of CONFIG_FILES etc. instead of their
1091476c7fc5fSjoerg# values after options handling.
1091576c7fc5fSjoergac_log="
1091676c7fc5fSjoergThis file was extended by LLVM $as_me 4.0.0svn, which was
1091776c7fc5fSjoerggenerated by GNU Autoconf 2.69.  Invocation command line was
1091876c7fc5fSjoerg
1091976c7fc5fSjoerg  CONFIG_FILES    = $CONFIG_FILES
1092076c7fc5fSjoerg  CONFIG_HEADERS  = $CONFIG_HEADERS
1092176c7fc5fSjoerg  CONFIG_LINKS    = $CONFIG_LINKS
1092276c7fc5fSjoerg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1092376c7fc5fSjoerg  $ $0 $@
1092476c7fc5fSjoerg
1092576c7fc5fSjoergon `(hostname || uname -n) 2>/dev/null | sed 1q`
1092676c7fc5fSjoerg"
1092776c7fc5fSjoerg
1092876c7fc5fSjoerg_ACEOF
1092976c7fc5fSjoerg
1093076c7fc5fSjoergcase $ac_config_files in *"
1093176c7fc5fSjoerg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1093276c7fc5fSjoergesac
1093376c7fc5fSjoerg
1093476c7fc5fSjoergcase $ac_config_headers in *"
1093576c7fc5fSjoerg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1093676c7fc5fSjoergesac
1093776c7fc5fSjoerg
1093876c7fc5fSjoerg
1093976c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1094076c7fc5fSjoerg# Files that config.status was made for.
1094176c7fc5fSjoergconfig_files="$ac_config_files"
1094276c7fc5fSjoergconfig_headers="$ac_config_headers"
1094376c7fc5fSjoerg
1094476c7fc5fSjoerg_ACEOF
1094576c7fc5fSjoerg
1094676c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1094776c7fc5fSjoergac_cs_usage="\
1094876c7fc5fSjoerg\`$as_me' instantiates files and other configuration actions
1094976c7fc5fSjoergfrom templates according to the current configuration.  Unless the files
1095076c7fc5fSjoergand actions are specified as TAGs, all are instantiated by default.
1095176c7fc5fSjoerg
1095276c7fc5fSjoergUsage: $0 [OPTION]... [TAG]...
1095376c7fc5fSjoerg
1095476c7fc5fSjoerg  -h, --help       print this help, then exit
1095576c7fc5fSjoerg  -V, --version    print version number and configuration settings, then exit
1095676c7fc5fSjoerg      --config     print configuration, then exit
1095776c7fc5fSjoerg  -q, --quiet, --silent
1095876c7fc5fSjoerg                   do not print progress messages
1095976c7fc5fSjoerg  -d, --debug      don't remove temporary files
1096076c7fc5fSjoerg      --recheck    update $as_me by reconfiguring in the same conditions
1096176c7fc5fSjoerg      --file=FILE[:TEMPLATE]
1096276c7fc5fSjoerg                   instantiate the configuration file FILE
1096376c7fc5fSjoerg      --header=FILE[:TEMPLATE]
1096476c7fc5fSjoerg                   instantiate the configuration header FILE
1096576c7fc5fSjoerg
1096676c7fc5fSjoergConfiguration files:
1096776c7fc5fSjoerg$config_files
1096876c7fc5fSjoerg
1096976c7fc5fSjoergConfiguration headers:
1097076c7fc5fSjoerg$config_headers
1097176c7fc5fSjoerg
1097276c7fc5fSjoergReport bugs to <http://llvm.org/bugs/>."
1097376c7fc5fSjoerg
1097476c7fc5fSjoerg_ACEOF
1097576c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1097676c7fc5fSjoergac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1097776c7fc5fSjoergac_cs_version="\\
1097876c7fc5fSjoergLLVM config.status 4.0.0svn
1097976c7fc5fSjoergconfigured by $0, generated by GNU Autoconf 2.69,
1098076c7fc5fSjoerg  with options \\"\$ac_cs_config\\"
1098176c7fc5fSjoerg
1098276c7fc5fSjoergCopyright (C) 2012 Free Software Foundation, Inc.
1098376c7fc5fSjoergThis config.status script is free software; the Free Software Foundation
1098476c7fc5fSjoerggives unlimited permission to copy, distribute and modify it."
1098576c7fc5fSjoerg
1098676c7fc5fSjoergac_pwd='$ac_pwd'
1098776c7fc5fSjoergsrcdir='$srcdir'
1098876c7fc5fSjoergINSTALL='$INSTALL'
1098976c7fc5fSjoergtest -n "\$AWK" || AWK=awk
1099076c7fc5fSjoerg_ACEOF
1099176c7fc5fSjoerg
1099276c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1099376c7fc5fSjoerg# The default lists apply if the user does not specify any file.
1099476c7fc5fSjoergac_need_defaults=:
1099576c7fc5fSjoergwhile test $# != 0
1099676c7fc5fSjoergdo
1099776c7fc5fSjoerg  case $1 in
1099876c7fc5fSjoerg  --*=?*)
1099976c7fc5fSjoerg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1100076c7fc5fSjoerg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1100176c7fc5fSjoerg    ac_shift=:
1100276c7fc5fSjoerg    ;;
1100376c7fc5fSjoerg  --*=)
1100476c7fc5fSjoerg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1100576c7fc5fSjoerg    ac_optarg=
1100676c7fc5fSjoerg    ac_shift=:
1100776c7fc5fSjoerg    ;;
1100876c7fc5fSjoerg  *)
1100976c7fc5fSjoerg    ac_option=$1
1101076c7fc5fSjoerg    ac_optarg=$2
1101176c7fc5fSjoerg    ac_shift=shift
1101276c7fc5fSjoerg    ;;
1101376c7fc5fSjoerg  esac
1101476c7fc5fSjoerg
1101576c7fc5fSjoerg  case $ac_option in
1101676c7fc5fSjoerg  # Handling of the options.
1101776c7fc5fSjoerg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1101876c7fc5fSjoerg    ac_cs_recheck=: ;;
1101976c7fc5fSjoerg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1102076c7fc5fSjoerg    $as_echo "$ac_cs_version"; exit ;;
1102176c7fc5fSjoerg  --config | --confi | --conf | --con | --co | --c )
1102276c7fc5fSjoerg    $as_echo "$ac_cs_config"; exit ;;
1102376c7fc5fSjoerg  --debug | --debu | --deb | --de | --d | -d )
1102476c7fc5fSjoerg    debug=: ;;
1102576c7fc5fSjoerg  --file | --fil | --fi | --f )
1102676c7fc5fSjoerg    $ac_shift
1102776c7fc5fSjoerg    case $ac_optarg in
1102876c7fc5fSjoerg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1102976c7fc5fSjoerg    '') as_fn_error $? "missing file argument" ;;
1103076c7fc5fSjoerg    esac
1103176c7fc5fSjoerg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1103276c7fc5fSjoerg    ac_need_defaults=false;;
1103376c7fc5fSjoerg  --header | --heade | --head | --hea )
1103476c7fc5fSjoerg    $ac_shift
1103576c7fc5fSjoerg    case $ac_optarg in
1103676c7fc5fSjoerg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103776c7fc5fSjoerg    esac
1103876c7fc5fSjoerg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1103976c7fc5fSjoerg    ac_need_defaults=false;;
1104076c7fc5fSjoerg  --he | --h)
1104176c7fc5fSjoerg    # Conflict between --help and --header
1104276c7fc5fSjoerg    as_fn_error $? "ambiguous option: \`$1'
1104376c7fc5fSjoergTry \`$0 --help' for more information.";;
1104476c7fc5fSjoerg  --help | --hel | -h )
1104576c7fc5fSjoerg    $as_echo "$ac_cs_usage"; exit ;;
1104676c7fc5fSjoerg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104776c7fc5fSjoerg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1104876c7fc5fSjoerg    ac_cs_silent=: ;;
1104976c7fc5fSjoerg
1105076c7fc5fSjoerg  # This is an error.
1105176c7fc5fSjoerg  -*) as_fn_error $? "unrecognized option: \`$1'
1105276c7fc5fSjoergTry \`$0 --help' for more information." ;;
1105376c7fc5fSjoerg
1105476c7fc5fSjoerg  *) as_fn_append ac_config_targets " $1"
1105576c7fc5fSjoerg     ac_need_defaults=false ;;
1105676c7fc5fSjoerg
1105776c7fc5fSjoerg  esac
1105876c7fc5fSjoerg  shift
1105976c7fc5fSjoergdone
1106076c7fc5fSjoerg
1106176c7fc5fSjoergac_configure_extra_args=
1106276c7fc5fSjoerg
1106376c7fc5fSjoergif $ac_cs_silent; then
1106476c7fc5fSjoerg  exec 6>/dev/null
1106576c7fc5fSjoerg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1106676c7fc5fSjoergfi
1106776c7fc5fSjoerg
1106876c7fc5fSjoerg_ACEOF
1106976c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1107076c7fc5fSjoergif \$ac_cs_recheck; then
1107176c7fc5fSjoerg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1107276c7fc5fSjoerg  shift
1107376c7fc5fSjoerg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1107476c7fc5fSjoerg  CONFIG_SHELL='$SHELL'
1107576c7fc5fSjoerg  export CONFIG_SHELL
1107676c7fc5fSjoerg  exec "\$@"
1107776c7fc5fSjoergfi
1107876c7fc5fSjoerg
1107976c7fc5fSjoerg_ACEOF
1108076c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1108176c7fc5fSjoergexec 5>>config.log
1108276c7fc5fSjoerg{
1108376c7fc5fSjoerg  echo
1108476c7fc5fSjoerg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1108576c7fc5fSjoerg## Running $as_me. ##
1108676c7fc5fSjoerg_ASBOX
1108776c7fc5fSjoerg  $as_echo "$ac_log"
1108876c7fc5fSjoerg} >&5
1108976c7fc5fSjoerg
1109076c7fc5fSjoerg_ACEOF
1109176c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1109276c7fc5fSjoerg_ACEOF
1109376c7fc5fSjoerg
1109476c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1109576c7fc5fSjoerg
1109676c7fc5fSjoerg# Handling of arguments.
1109776c7fc5fSjoergfor ac_config_target in $ac_config_targets
1109876c7fc5fSjoergdo
1109976c7fc5fSjoerg  case $ac_config_target in
1110076c7fc5fSjoerg    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
1110176c7fc5fSjoerg    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
1110276c7fc5fSjoerg    "include/llvm/Config/abi-breaking.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/abi-breaking.h" ;;
1110376c7fc5fSjoerg    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
1110476c7fc5fSjoerg    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
1110576c7fc5fSjoerg    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
1110676c7fc5fSjoerg    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
1110776c7fc5fSjoerg    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
1110876c7fc5fSjoerg    "include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/clang/Config/config.h" ;;
1110976c7fc5fSjoerg
1111076c7fc5fSjoerg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1111176c7fc5fSjoerg  esac
1111276c7fc5fSjoergdone
1111376c7fc5fSjoerg
1111476c7fc5fSjoerg
1111576c7fc5fSjoerg# If the user did not use the arguments to specify the items to instantiate,
1111676c7fc5fSjoerg# then the envvar interface is used.  Set only those that are not.
1111776c7fc5fSjoerg# We use the long form for the default assignment because of an extremely
1111876c7fc5fSjoerg# bizarre bug on SunOS 4.1.3.
1111976c7fc5fSjoergif $ac_need_defaults; then
1112076c7fc5fSjoerg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1112176c7fc5fSjoerg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1112276c7fc5fSjoergfi
1112376c7fc5fSjoerg
1112476c7fc5fSjoerg# Have a temporary directory for convenience.  Make it in the build tree
1112576c7fc5fSjoerg# simply because there is no reason against having it here, and in addition,
1112676c7fc5fSjoerg# creating and moving files from /tmp can sometimes cause problems.
1112776c7fc5fSjoerg# Hook for its removal unless debugging.
1112876c7fc5fSjoerg# Note that there is a small window in which the directory will not be cleaned:
1112976c7fc5fSjoerg# after its creation but before its name has been assigned to `$tmp'.
1113076c7fc5fSjoerg$debug ||
1113176c7fc5fSjoerg{
1113276c7fc5fSjoerg  tmp= ac_tmp=
1113376c7fc5fSjoerg  trap 'exit_status=$?
1113476c7fc5fSjoerg  : "${ac_tmp:=$tmp}"
1113576c7fc5fSjoerg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1113676c7fc5fSjoerg' 0
1113776c7fc5fSjoerg  trap 'as_fn_exit 1' 1 2 13 15
1113876c7fc5fSjoerg}
1113976c7fc5fSjoerg# Create a (secure) tmp directory for tmp files.
1114076c7fc5fSjoerg
1114176c7fc5fSjoerg{
1114276c7fc5fSjoerg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1114376c7fc5fSjoerg  test -d "$tmp"
1114476c7fc5fSjoerg}  ||
1114576c7fc5fSjoerg{
1114676c7fc5fSjoerg  tmp=./conf$$-$RANDOM
1114776c7fc5fSjoerg  (umask 077 && mkdir "$tmp")
1114876c7fc5fSjoerg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1114976c7fc5fSjoergac_tmp=$tmp
1115076c7fc5fSjoerg
1115176c7fc5fSjoerg# Set up the scripts for CONFIG_FILES section.
1115276c7fc5fSjoerg# No need to generate them if there are no CONFIG_FILES.
1115376c7fc5fSjoerg# This happens for instance with `./config.status config.h'.
1115476c7fc5fSjoergif test -n "$CONFIG_FILES"; then
1115576c7fc5fSjoerg
1115676c7fc5fSjoerg
1115776c7fc5fSjoergac_cr=`echo X | tr X '\015'`
1115876c7fc5fSjoerg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1115976c7fc5fSjoerg# But we know of no other shell where ac_cr would be empty at this
1116076c7fc5fSjoerg# point, so we can use a bashism as a fallback.
1116176c7fc5fSjoergif test "x$ac_cr" = x; then
1116276c7fc5fSjoerg  eval ac_cr=\$\'\\r\'
1116376c7fc5fSjoergfi
1116476c7fc5fSjoergac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1116576c7fc5fSjoergif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1116676c7fc5fSjoerg  ac_cs_awk_cr='\\r'
1116776c7fc5fSjoergelse
1116876c7fc5fSjoerg  ac_cs_awk_cr=$ac_cr
1116976c7fc5fSjoergfi
1117076c7fc5fSjoerg
1117176c7fc5fSjoergecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1117276c7fc5fSjoerg_ACEOF
1117376c7fc5fSjoerg
1117476c7fc5fSjoerg
1117576c7fc5fSjoerg{
1117676c7fc5fSjoerg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1117776c7fc5fSjoerg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1117876c7fc5fSjoerg  echo "_ACEOF"
1117976c7fc5fSjoerg} >conf$$subs.sh ||
1118076c7fc5fSjoerg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1118176c7fc5fSjoergac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1118276c7fc5fSjoergac_delim='%!_!# '
1118376c7fc5fSjoergfor ac_last_try in false false false false false :; do
1118476c7fc5fSjoerg  . ./conf$$subs.sh ||
1118576c7fc5fSjoerg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1118676c7fc5fSjoerg
1118776c7fc5fSjoerg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1118876c7fc5fSjoerg  if test $ac_delim_n = $ac_delim_num; then
1118976c7fc5fSjoerg    break
1119076c7fc5fSjoerg  elif $ac_last_try; then
1119176c7fc5fSjoerg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1119276c7fc5fSjoerg  else
1119376c7fc5fSjoerg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1119476c7fc5fSjoerg  fi
1119576c7fc5fSjoergdone
1119676c7fc5fSjoergrm -f conf$$subs.sh
1119776c7fc5fSjoerg
1119876c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1119976c7fc5fSjoergcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1120076c7fc5fSjoerg_ACEOF
1120176c7fc5fSjoergsed -n '
1120276c7fc5fSjoergh
1120376c7fc5fSjoergs/^/S["/; s/!.*/"]=/
1120476c7fc5fSjoergp
1120576c7fc5fSjoergg
1120676c7fc5fSjoergs/^[^!]*!//
1120776c7fc5fSjoerg:repl
1120876c7fc5fSjoergt repl
1120976c7fc5fSjoergs/'"$ac_delim"'$//
1121076c7fc5fSjoergt delim
1121176c7fc5fSjoerg:nl
1121276c7fc5fSjoergh
1121376c7fc5fSjoergs/\(.\{148\}\)..*/\1/
1121476c7fc5fSjoergt more1
1121576c7fc5fSjoergs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1121676c7fc5fSjoergp
1121776c7fc5fSjoergn
1121876c7fc5fSjoergb repl
1121976c7fc5fSjoerg:more1
1122076c7fc5fSjoergs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1122176c7fc5fSjoergp
1122276c7fc5fSjoergg
1122376c7fc5fSjoergs/.\{148\}//
1122476c7fc5fSjoergt nl
1122576c7fc5fSjoerg:delim
1122676c7fc5fSjoergh
1122776c7fc5fSjoergs/\(.\{148\}\)..*/\1/
1122876c7fc5fSjoergt more2
1122976c7fc5fSjoergs/["\\]/\\&/g; s/^/"/; s/$/"/
1123076c7fc5fSjoergp
1123176c7fc5fSjoergb
1123276c7fc5fSjoerg:more2
1123376c7fc5fSjoergs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1123476c7fc5fSjoergp
1123576c7fc5fSjoergg
1123676c7fc5fSjoergs/.\{148\}//
1123776c7fc5fSjoergt delim
1123876c7fc5fSjoerg' <conf$$subs.awk | sed '
1123976c7fc5fSjoerg/^[^""]/{
1124076c7fc5fSjoerg  N
1124176c7fc5fSjoerg  s/\n//
1124276c7fc5fSjoerg}
1124376c7fc5fSjoerg' >>$CONFIG_STATUS || ac_write_fail=1
1124476c7fc5fSjoergrm -f conf$$subs.awk
1124576c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1124676c7fc5fSjoerg_ACAWK
1124776c7fc5fSjoergcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1124876c7fc5fSjoerg  for (key in S) S_is_set[key] = 1
1124976c7fc5fSjoerg  FS = ""
1125076c7fc5fSjoerg
1125176c7fc5fSjoerg}
1125276c7fc5fSjoerg{
1125376c7fc5fSjoerg  line = $ 0
1125476c7fc5fSjoerg  nfields = split(line, field, "@")
1125576c7fc5fSjoerg  substed = 0
1125676c7fc5fSjoerg  len = length(field[1])
1125776c7fc5fSjoerg  for (i = 2; i < nfields; i++) {
1125876c7fc5fSjoerg    key = field[i]
1125976c7fc5fSjoerg    keylen = length(key)
1126076c7fc5fSjoerg    if (S_is_set[key]) {
1126176c7fc5fSjoerg      value = S[key]
1126276c7fc5fSjoerg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1126376c7fc5fSjoerg      len += length(value) + length(field[++i])
1126476c7fc5fSjoerg      substed = 1
1126576c7fc5fSjoerg    } else
1126676c7fc5fSjoerg      len += 1 + keylen
1126776c7fc5fSjoerg  }
1126876c7fc5fSjoerg
1126976c7fc5fSjoerg  print line
1127076c7fc5fSjoerg}
1127176c7fc5fSjoerg
1127276c7fc5fSjoerg_ACAWK
1127376c7fc5fSjoerg_ACEOF
1127476c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1127576c7fc5fSjoergif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1127676c7fc5fSjoerg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1127776c7fc5fSjoergelse
1127876c7fc5fSjoerg  cat
1127976c7fc5fSjoergfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1128076c7fc5fSjoerg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1128176c7fc5fSjoerg_ACEOF
1128276c7fc5fSjoerg
1128376c7fc5fSjoerg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1128476c7fc5fSjoerg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1128576c7fc5fSjoerg# trailing colons and then remove the whole line if VPATH becomes empty
1128676c7fc5fSjoerg# (actually we leave an empty line to preserve line numbers).
1128776c7fc5fSjoergif test "x$srcdir" = x.; then
1128876c7fc5fSjoerg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1128976c7fc5fSjoergh
1129076c7fc5fSjoergs///
1129176c7fc5fSjoergs/^/:/
1129276c7fc5fSjoergs/[	 ]*$/:/
1129376c7fc5fSjoergs/:\$(srcdir):/:/g
1129476c7fc5fSjoergs/:\${srcdir}:/:/g
1129576c7fc5fSjoergs/:@srcdir@:/:/g
1129676c7fc5fSjoergs/^:*//
1129776c7fc5fSjoergs/:*$//
1129876c7fc5fSjoergx
1129976c7fc5fSjoergs/\(=[	 ]*\).*/\1/
1130076c7fc5fSjoergG
1130176c7fc5fSjoergs/\n//
1130276c7fc5fSjoergs/^[^=]*=[	 ]*$//
1130376c7fc5fSjoerg}'
1130476c7fc5fSjoergfi
1130576c7fc5fSjoerg
1130676c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1130776c7fc5fSjoergfi # test -n "$CONFIG_FILES"
1130876c7fc5fSjoerg
1130976c7fc5fSjoerg# Set up the scripts for CONFIG_HEADERS section.
1131076c7fc5fSjoerg# No need to generate them if there are no CONFIG_HEADERS.
1131176c7fc5fSjoerg# This happens for instance with `./config.status Makefile'.
1131276c7fc5fSjoergif test -n "$CONFIG_HEADERS"; then
1131376c7fc5fSjoergcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1131476c7fc5fSjoergBEGIN {
1131576c7fc5fSjoerg_ACEOF
1131676c7fc5fSjoerg
1131776c7fc5fSjoerg# Transform confdefs.h into an awk script `defines.awk', embedded as
1131876c7fc5fSjoerg# here-document in config.status, that substitutes the proper values into
1131976c7fc5fSjoerg# config.h.in to produce config.h.
1132076c7fc5fSjoerg
1132176c7fc5fSjoerg# Create a delimiter string that does not exist in confdefs.h, to ease
1132276c7fc5fSjoerg# handling of long lines.
1132376c7fc5fSjoergac_delim='%!_!# '
1132476c7fc5fSjoergfor ac_last_try in false false :; do
1132576c7fc5fSjoerg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1132676c7fc5fSjoerg  if test -z "$ac_tt"; then
1132776c7fc5fSjoerg    break
1132876c7fc5fSjoerg  elif $ac_last_try; then
1132976c7fc5fSjoerg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1133076c7fc5fSjoerg  else
1133176c7fc5fSjoerg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1133276c7fc5fSjoerg  fi
1133376c7fc5fSjoergdone
1133476c7fc5fSjoerg
1133576c7fc5fSjoerg# For the awk script, D is an array of macro values keyed by name,
1133676c7fc5fSjoerg# likewise P contains macro parameters if any.  Preserve backslash
1133776c7fc5fSjoerg# newline sequences.
1133876c7fc5fSjoerg
1133976c7fc5fSjoergac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1134076c7fc5fSjoergsed -n '
1134176c7fc5fSjoergs/.\{148\}/&'"$ac_delim"'/g
1134276c7fc5fSjoergt rset
1134376c7fc5fSjoerg:rset
1134476c7fc5fSjoergs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1134576c7fc5fSjoergt def
1134676c7fc5fSjoergd
1134776c7fc5fSjoerg:def
1134876c7fc5fSjoergs/\\$//
1134976c7fc5fSjoergt bsnl
1135076c7fc5fSjoergs/["\\]/\\&/g
1135176c7fc5fSjoergs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1135276c7fc5fSjoergD["\1"]=" \3"/p
1135376c7fc5fSjoergs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1135476c7fc5fSjoergd
1135576c7fc5fSjoerg:bsnl
1135676c7fc5fSjoergs/["\\]/\\&/g
1135776c7fc5fSjoergs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1135876c7fc5fSjoergD["\1"]=" \3\\\\\\n"\\/p
1135976c7fc5fSjoergt cont
1136076c7fc5fSjoergs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1136176c7fc5fSjoergt cont
1136276c7fc5fSjoergd
1136376c7fc5fSjoerg:cont
1136476c7fc5fSjoergn
1136576c7fc5fSjoergs/.\{148\}/&'"$ac_delim"'/g
1136676c7fc5fSjoergt clear
1136776c7fc5fSjoerg:clear
1136876c7fc5fSjoergs/\\$//
1136976c7fc5fSjoergt bsnlc
1137076c7fc5fSjoergs/["\\]/\\&/g; s/^/"/; s/$/"/p
1137176c7fc5fSjoergd
1137276c7fc5fSjoerg:bsnlc
1137376c7fc5fSjoergs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1137476c7fc5fSjoergb cont
1137576c7fc5fSjoerg' <confdefs.h | sed '
1137676c7fc5fSjoergs/'"$ac_delim"'/"\\\
1137776c7fc5fSjoerg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1137876c7fc5fSjoerg
1137976c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1138076c7fc5fSjoerg  for (key in D) D_is_set[key] = 1
1138176c7fc5fSjoerg  FS = ""
1138276c7fc5fSjoerg}
1138376c7fc5fSjoerg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1138476c7fc5fSjoerg  line = \$ 0
1138576c7fc5fSjoerg  split(line, arg, " ")
1138676c7fc5fSjoerg  if (arg[1] == "#") {
1138776c7fc5fSjoerg    defundef = arg[2]
1138876c7fc5fSjoerg    mac1 = arg[3]
1138976c7fc5fSjoerg  } else {
1139076c7fc5fSjoerg    defundef = substr(arg[1], 2)
1139176c7fc5fSjoerg    mac1 = arg[2]
1139276c7fc5fSjoerg  }
1139376c7fc5fSjoerg  split(mac1, mac2, "(") #)
1139476c7fc5fSjoerg  macro = mac2[1]
1139576c7fc5fSjoerg  prefix = substr(line, 1, index(line, defundef) - 1)
1139676c7fc5fSjoerg  if (D_is_set[macro]) {
1139776c7fc5fSjoerg    # Preserve the white space surrounding the "#".
1139876c7fc5fSjoerg    print prefix "define", macro P[macro] D[macro]
1139976c7fc5fSjoerg    next
1140076c7fc5fSjoerg  } else {
1140176c7fc5fSjoerg    # Replace #undef with comments.  This is necessary, for example,
1140276c7fc5fSjoerg    # in the case of _POSIX_SOURCE, which is predefined and required
1140376c7fc5fSjoerg    # on some systems where configure will not decide to define it.
1140476c7fc5fSjoerg    if (defundef == "undef") {
1140576c7fc5fSjoerg      print "/*", prefix defundef, macro, "*/"
1140676c7fc5fSjoerg      next
1140776c7fc5fSjoerg    }
1140876c7fc5fSjoerg  }
1140976c7fc5fSjoerg}
1141076c7fc5fSjoerg{ print }
1141176c7fc5fSjoerg_ACAWK
1141276c7fc5fSjoerg_ACEOF
1141376c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1141476c7fc5fSjoerg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1141576c7fc5fSjoergfi # test -n "$CONFIG_HEADERS"
1141676c7fc5fSjoerg
1141776c7fc5fSjoerg
1141876c7fc5fSjoergeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
1141976c7fc5fSjoergshift
1142076c7fc5fSjoergfor ac_tag
1142176c7fc5fSjoergdo
1142276c7fc5fSjoerg  case $ac_tag in
1142376c7fc5fSjoerg  :[FHLC]) ac_mode=$ac_tag; continue;;
1142476c7fc5fSjoerg  esac
1142576c7fc5fSjoerg  case $ac_mode$ac_tag in
1142676c7fc5fSjoerg  :[FHL]*:*);;
1142776c7fc5fSjoerg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1142876c7fc5fSjoerg  :[FH]-) ac_tag=-:-;;
1142976c7fc5fSjoerg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1143076c7fc5fSjoerg  esac
1143176c7fc5fSjoerg  ac_save_IFS=$IFS
1143276c7fc5fSjoerg  IFS=:
1143376c7fc5fSjoerg  set x $ac_tag
1143476c7fc5fSjoerg  IFS=$ac_save_IFS
1143576c7fc5fSjoerg  shift
1143676c7fc5fSjoerg  ac_file=$1
1143776c7fc5fSjoerg  shift
1143876c7fc5fSjoerg
1143976c7fc5fSjoerg  case $ac_mode in
1144076c7fc5fSjoerg  :L) ac_source=$1;;
1144176c7fc5fSjoerg  :[FH])
1144276c7fc5fSjoerg    ac_file_inputs=
1144376c7fc5fSjoerg    for ac_f
1144476c7fc5fSjoerg    do
1144576c7fc5fSjoerg      case $ac_f in
1144676c7fc5fSjoerg      -) ac_f="$ac_tmp/stdin";;
1144776c7fc5fSjoerg      *) # Look for the file first in the build tree, then in the source tree
1144876c7fc5fSjoerg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1144976c7fc5fSjoerg	 # because $ac_f cannot contain `:'.
1145076c7fc5fSjoerg	 test -f "$ac_f" ||
1145176c7fc5fSjoerg	   case $ac_f in
1145276c7fc5fSjoerg	   [\\/$]*) false;;
1145376c7fc5fSjoerg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1145476c7fc5fSjoerg	   esac ||
1145576c7fc5fSjoerg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1145676c7fc5fSjoerg      esac
1145776c7fc5fSjoerg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1145876c7fc5fSjoerg      as_fn_append ac_file_inputs " '$ac_f'"
1145976c7fc5fSjoerg    done
1146076c7fc5fSjoerg
1146176c7fc5fSjoerg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1146276c7fc5fSjoerg    # use $as_me), people would be surprised to read:
1146376c7fc5fSjoerg    #    /* config.h.  Generated by config.status.  */
1146476c7fc5fSjoerg    configure_input='Generated from '`
1146576c7fc5fSjoerg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1146676c7fc5fSjoerg	`' by configure.'
1146776c7fc5fSjoerg    if test x"$ac_file" != x-; then
1146876c7fc5fSjoerg      configure_input="$ac_file.  $configure_input"
1146976c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1147076c7fc5fSjoerg$as_echo "$as_me: creating $ac_file" >&6;}
1147176c7fc5fSjoerg    fi
1147276c7fc5fSjoerg    # Neutralize special characters interpreted by sed in replacement strings.
1147376c7fc5fSjoerg    case $configure_input in #(
1147476c7fc5fSjoerg    *\&* | *\|* | *\\* )
1147576c7fc5fSjoerg       ac_sed_conf_input=`$as_echo "$configure_input" |
1147676c7fc5fSjoerg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1147776c7fc5fSjoerg    *) ac_sed_conf_input=$configure_input;;
1147876c7fc5fSjoerg    esac
1147976c7fc5fSjoerg
1148076c7fc5fSjoerg    case $ac_tag in
1148176c7fc5fSjoerg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1148276c7fc5fSjoerg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1148376c7fc5fSjoerg    esac
1148476c7fc5fSjoerg    ;;
1148576c7fc5fSjoerg  esac
1148676c7fc5fSjoerg
1148776c7fc5fSjoerg  ac_dir=`$as_dirname -- "$ac_file" ||
1148876c7fc5fSjoerg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148976c7fc5fSjoerg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1149076c7fc5fSjoerg	 X"$ac_file" : 'X\(//\)$' \| \
1149176c7fc5fSjoerg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1149276c7fc5fSjoerg$as_echo X"$ac_file" |
1149376c7fc5fSjoerg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1149476c7fc5fSjoerg	    s//\1/
1149576c7fc5fSjoerg	    q
1149676c7fc5fSjoerg	  }
1149776c7fc5fSjoerg	  /^X\(\/\/\)[^/].*/{
1149876c7fc5fSjoerg	    s//\1/
1149976c7fc5fSjoerg	    q
1150076c7fc5fSjoerg	  }
1150176c7fc5fSjoerg	  /^X\(\/\/\)$/{
1150276c7fc5fSjoerg	    s//\1/
1150376c7fc5fSjoerg	    q
1150476c7fc5fSjoerg	  }
1150576c7fc5fSjoerg	  /^X\(\/\).*/{
1150676c7fc5fSjoerg	    s//\1/
1150776c7fc5fSjoerg	    q
1150876c7fc5fSjoerg	  }
1150976c7fc5fSjoerg	  s/.*/./; q'`
1151076c7fc5fSjoerg  as_dir="$ac_dir"; as_fn_mkdir_p
1151176c7fc5fSjoerg  ac_builddir=.
1151276c7fc5fSjoerg
1151376c7fc5fSjoergcase "$ac_dir" in
1151476c7fc5fSjoerg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1151576c7fc5fSjoerg*)
1151676c7fc5fSjoerg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1151776c7fc5fSjoerg  # A ".." for each directory in $ac_dir_suffix.
1151876c7fc5fSjoerg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1151976c7fc5fSjoerg  case $ac_top_builddir_sub in
1152076c7fc5fSjoerg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1152176c7fc5fSjoerg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1152276c7fc5fSjoerg  esac ;;
1152376c7fc5fSjoergesac
1152476c7fc5fSjoergac_abs_top_builddir=$ac_pwd
1152576c7fc5fSjoergac_abs_builddir=$ac_pwd$ac_dir_suffix
1152676c7fc5fSjoerg# for backward compatibility:
1152776c7fc5fSjoergac_top_builddir=$ac_top_build_prefix
1152876c7fc5fSjoerg
1152976c7fc5fSjoergcase $srcdir in
1153076c7fc5fSjoerg  .)  # We are building in place.
1153176c7fc5fSjoerg    ac_srcdir=.
1153276c7fc5fSjoerg    ac_top_srcdir=$ac_top_builddir_sub
1153376c7fc5fSjoerg    ac_abs_top_srcdir=$ac_pwd ;;
1153476c7fc5fSjoerg  [\\/]* | ?:[\\/]* )  # Absolute name.
1153576c7fc5fSjoerg    ac_srcdir=$srcdir$ac_dir_suffix;
1153676c7fc5fSjoerg    ac_top_srcdir=$srcdir
1153776c7fc5fSjoerg    ac_abs_top_srcdir=$srcdir ;;
1153876c7fc5fSjoerg  *) # Relative name.
1153976c7fc5fSjoerg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1154076c7fc5fSjoerg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1154176c7fc5fSjoerg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1154276c7fc5fSjoergesac
1154376c7fc5fSjoergac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1154476c7fc5fSjoerg
1154576c7fc5fSjoerg
1154676c7fc5fSjoerg  case $ac_mode in
1154776c7fc5fSjoerg  :F)
1154876c7fc5fSjoerg  #
1154976c7fc5fSjoerg  # CONFIG_FILE
1155076c7fc5fSjoerg  #
1155176c7fc5fSjoerg
1155276c7fc5fSjoerg  case $INSTALL in
1155376c7fc5fSjoerg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1155476c7fc5fSjoerg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1155576c7fc5fSjoerg  esac
1155676c7fc5fSjoerg_ACEOF
1155776c7fc5fSjoerg
1155876c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1155976c7fc5fSjoerg# If the template does not know about datarootdir, expand it.
1156076c7fc5fSjoerg# FIXME: This hack should be removed a few years after 2.60.
1156176c7fc5fSjoergac_datarootdir_hack=; ac_datarootdir_seen=
1156276c7fc5fSjoergac_sed_dataroot='
1156376c7fc5fSjoerg/datarootdir/ {
1156476c7fc5fSjoerg  p
1156576c7fc5fSjoerg  q
1156676c7fc5fSjoerg}
1156776c7fc5fSjoerg/@datadir@/p
1156876c7fc5fSjoerg/@docdir@/p
1156976c7fc5fSjoerg/@infodir@/p
1157076c7fc5fSjoerg/@localedir@/p
1157176c7fc5fSjoerg/@mandir@/p'
1157276c7fc5fSjoergcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1157376c7fc5fSjoerg*datarootdir*) ac_datarootdir_seen=yes;;
1157476c7fc5fSjoerg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1157576c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1157676c7fc5fSjoerg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1157776c7fc5fSjoerg_ACEOF
1157876c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1157976c7fc5fSjoerg  ac_datarootdir_hack='
1158076c7fc5fSjoerg  s&@datadir@&$datadir&g
1158176c7fc5fSjoerg  s&@docdir@&$docdir&g
1158276c7fc5fSjoerg  s&@infodir@&$infodir&g
1158376c7fc5fSjoerg  s&@localedir@&$localedir&g
1158476c7fc5fSjoerg  s&@mandir@&$mandir&g
1158576c7fc5fSjoerg  s&\\\${datarootdir}&$datarootdir&g' ;;
1158676c7fc5fSjoergesac
1158776c7fc5fSjoerg_ACEOF
1158876c7fc5fSjoerg
1158976c7fc5fSjoerg# Neutralize VPATH when `$srcdir' = `.'.
1159076c7fc5fSjoerg# Shell code in configure.ac might set extrasub.
1159176c7fc5fSjoerg# FIXME: do we really want to maintain this feature?
1159276c7fc5fSjoergcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1159376c7fc5fSjoergac_sed_extra="$ac_vpsub
1159476c7fc5fSjoerg$extrasub
1159576c7fc5fSjoerg_ACEOF
1159676c7fc5fSjoergcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1159776c7fc5fSjoerg:t
1159876c7fc5fSjoerg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1159976c7fc5fSjoergs|@configure_input@|$ac_sed_conf_input|;t t
1160076c7fc5fSjoergs&@top_builddir@&$ac_top_builddir_sub&;t t
1160176c7fc5fSjoergs&@top_build_prefix@&$ac_top_build_prefix&;t t
1160276c7fc5fSjoergs&@srcdir@&$ac_srcdir&;t t
1160376c7fc5fSjoergs&@abs_srcdir@&$ac_abs_srcdir&;t t
1160476c7fc5fSjoergs&@top_srcdir@&$ac_top_srcdir&;t t
1160576c7fc5fSjoergs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1160676c7fc5fSjoergs&@builddir@&$ac_builddir&;t t
1160776c7fc5fSjoergs&@abs_builddir@&$ac_abs_builddir&;t t
1160876c7fc5fSjoergs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1160976c7fc5fSjoergs&@INSTALL@&$ac_INSTALL&;t t
1161076c7fc5fSjoerg$ac_datarootdir_hack
1161176c7fc5fSjoerg"
1161276c7fc5fSjoergeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1161376c7fc5fSjoerg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1161476c7fc5fSjoerg
1161576c7fc5fSjoergtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1161676c7fc5fSjoerg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1161776c7fc5fSjoerg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1161876c7fc5fSjoerg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1161976c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1162076c7fc5fSjoergwhich seems to be undefined.  Please make sure it is defined" >&5
1162176c7fc5fSjoerg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1162276c7fc5fSjoergwhich seems to be undefined.  Please make sure it is defined" >&2;}
1162376c7fc5fSjoerg
1162476c7fc5fSjoerg  rm -f "$ac_tmp/stdin"
1162576c7fc5fSjoerg  case $ac_file in
1162676c7fc5fSjoerg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1162776c7fc5fSjoerg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1162876c7fc5fSjoerg  esac \
1162976c7fc5fSjoerg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1163076c7fc5fSjoerg ;;
1163176c7fc5fSjoerg  :H)
1163276c7fc5fSjoerg  #
1163376c7fc5fSjoerg  # CONFIG_HEADER
1163476c7fc5fSjoerg  #
1163576c7fc5fSjoerg  if test x"$ac_file" != x-; then
1163676c7fc5fSjoerg    {
1163776c7fc5fSjoerg      $as_echo "/* $configure_input  */" \
1163876c7fc5fSjoerg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1163976c7fc5fSjoerg    } >"$ac_tmp/config.h" \
1164076c7fc5fSjoerg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1164176c7fc5fSjoerg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1164276c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1164376c7fc5fSjoerg$as_echo "$as_me: $ac_file is unchanged" >&6;}
1164476c7fc5fSjoerg    else
1164576c7fc5fSjoerg      rm -f "$ac_file"
1164676c7fc5fSjoerg      mv "$ac_tmp/config.h" "$ac_file" \
1164776c7fc5fSjoerg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1164876c7fc5fSjoerg    fi
1164976c7fc5fSjoerg  else
1165076c7fc5fSjoerg    $as_echo "/* $configure_input  */" \
1165176c7fc5fSjoerg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1165276c7fc5fSjoerg      || as_fn_error $? "could not create -" "$LINENO" 5
1165376c7fc5fSjoerg  fi
1165476c7fc5fSjoerg ;;
1165576c7fc5fSjoerg
1165676c7fc5fSjoerg
1165776c7fc5fSjoerg  esac
1165876c7fc5fSjoerg
1165976c7fc5fSjoergdone # for ac_tag
1166076c7fc5fSjoerg
1166176c7fc5fSjoerg
1166276c7fc5fSjoergas_fn_exit 0
1166376c7fc5fSjoerg_ACEOF
1166476c7fc5fSjoergac_clean_files=$ac_clean_files_save
1166576c7fc5fSjoerg
1166676c7fc5fSjoergtest $ac_write_fail = 0 ||
1166776c7fc5fSjoerg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1166876c7fc5fSjoerg
1166976c7fc5fSjoerg
1167076c7fc5fSjoerg# configure is writing to config.log, and then calls config.status.
1167176c7fc5fSjoerg# config.status does its own redirection, appending to config.log.
1167276c7fc5fSjoerg# Unfortunately, on DOS this fails, as config.log is still kept open
1167376c7fc5fSjoerg# by configure, so config.status won't be able to write to it; its
1167476c7fc5fSjoerg# output is simply discarded.  So we exec the FD to /dev/null,
1167576c7fc5fSjoerg# effectively closing config.log, so it can be properly (re)opened and
1167676c7fc5fSjoerg# appended to by config.status.  When coming back to configure, we
1167776c7fc5fSjoerg# need to make the FD available again.
1167876c7fc5fSjoergif test "$no_create" != yes; then
1167976c7fc5fSjoerg  ac_cs_success=:
1168076c7fc5fSjoerg  ac_config_status_args=
1168176c7fc5fSjoerg  test "$silent" = yes &&
1168276c7fc5fSjoerg    ac_config_status_args="$ac_config_status_args --quiet"
1168376c7fc5fSjoerg  exec 5>/dev/null
1168476c7fc5fSjoerg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1168576c7fc5fSjoerg  exec 5>>config.log
1168676c7fc5fSjoerg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1168776c7fc5fSjoerg  # would make configure fail if this is the last instruction.
1168876c7fc5fSjoerg  $ac_cs_success || as_fn_exit 1
1168976c7fc5fSjoergfi
1169076c7fc5fSjoerg
1169176c7fc5fSjoerg#
1169276c7fc5fSjoerg# CONFIG_SUBDIRS section.
1169376c7fc5fSjoerg#
1169476c7fc5fSjoergif test "$no_recursion" != yes; then
1169576c7fc5fSjoerg
1169676c7fc5fSjoerg  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
1169776c7fc5fSjoerg  # so they do not pile up.
1169876c7fc5fSjoerg  ac_sub_configure_args=
1169976c7fc5fSjoerg  ac_prev=
1170076c7fc5fSjoerg  eval "set x $ac_configure_args"
1170176c7fc5fSjoerg  shift
1170276c7fc5fSjoerg  for ac_arg
1170376c7fc5fSjoerg  do
1170476c7fc5fSjoerg    if test -n "$ac_prev"; then
1170576c7fc5fSjoerg      ac_prev=
1170676c7fc5fSjoerg      continue
1170776c7fc5fSjoerg    fi
1170876c7fc5fSjoerg    case $ac_arg in
1170976c7fc5fSjoerg    -cache-file | --cache-file | --cache-fil | --cache-fi \
1171076c7fc5fSjoerg    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1171176c7fc5fSjoerg      ac_prev=cache_file ;;
1171276c7fc5fSjoerg    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1171376c7fc5fSjoerg    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
1171476c7fc5fSjoerg    | --c=*)
1171576c7fc5fSjoerg      ;;
1171676c7fc5fSjoerg    --config-cache | -C)
1171776c7fc5fSjoerg      ;;
1171876c7fc5fSjoerg    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171976c7fc5fSjoerg      ac_prev=srcdir ;;
1172076c7fc5fSjoerg    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172176c7fc5fSjoerg      ;;
1172276c7fc5fSjoerg    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172376c7fc5fSjoerg      ac_prev=prefix ;;
1172476c7fc5fSjoerg    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172576c7fc5fSjoerg      ;;
1172676c7fc5fSjoerg    --disable-option-checking)
1172776c7fc5fSjoerg      ;;
1172876c7fc5fSjoerg    *)
1172976c7fc5fSjoerg      case $ac_arg in
1173076c7fc5fSjoerg      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1173176c7fc5fSjoerg      esac
1173276c7fc5fSjoerg      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1173376c7fc5fSjoerg    esac
1173476c7fc5fSjoerg  done
1173576c7fc5fSjoerg
1173676c7fc5fSjoerg  # Always prepend --prefix to ensure using the same prefix
1173776c7fc5fSjoerg  # in subdir configurations.
1173876c7fc5fSjoerg  ac_arg="--prefix=$prefix"
1173976c7fc5fSjoerg  case $ac_arg in
1174076c7fc5fSjoerg  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1174176c7fc5fSjoerg  esac
1174276c7fc5fSjoerg  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
1174376c7fc5fSjoerg
1174476c7fc5fSjoerg  # Pass --silent
1174576c7fc5fSjoerg  if test "$silent" = yes; then
1174676c7fc5fSjoerg    ac_sub_configure_args="--silent $ac_sub_configure_args"
1174776c7fc5fSjoerg  fi
1174876c7fc5fSjoerg
1174976c7fc5fSjoerg  # Always prepend --disable-option-checking to silence warnings, since
1175076c7fc5fSjoerg  # different subdirs can have different --enable and --with options.
1175176c7fc5fSjoerg  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1175276c7fc5fSjoerg
1175376c7fc5fSjoerg  ac_popdir=`pwd`
1175476c7fc5fSjoerg  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1175576c7fc5fSjoerg
1175676c7fc5fSjoerg    # Do not complain, so a configure script can configure whichever
1175776c7fc5fSjoerg    # parts of a large source tree are present.
1175876c7fc5fSjoerg    test -d "$srcdir/$ac_dir" || continue
1175976c7fc5fSjoerg
1176076c7fc5fSjoerg    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1176176c7fc5fSjoerg    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
1176276c7fc5fSjoerg    $as_echo "$ac_msg" >&6
1176376c7fc5fSjoerg    as_dir="$ac_dir"; as_fn_mkdir_p
1176476c7fc5fSjoerg    ac_builddir=.
1176576c7fc5fSjoerg
1176676c7fc5fSjoergcase "$ac_dir" in
1176776c7fc5fSjoerg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1176876c7fc5fSjoerg*)
1176976c7fc5fSjoerg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1177076c7fc5fSjoerg  # A ".." for each directory in $ac_dir_suffix.
1177176c7fc5fSjoerg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1177276c7fc5fSjoerg  case $ac_top_builddir_sub in
1177376c7fc5fSjoerg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1177476c7fc5fSjoerg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1177576c7fc5fSjoerg  esac ;;
1177676c7fc5fSjoergesac
1177776c7fc5fSjoergac_abs_top_builddir=$ac_pwd
1177876c7fc5fSjoergac_abs_builddir=$ac_pwd$ac_dir_suffix
1177976c7fc5fSjoerg# for backward compatibility:
1178076c7fc5fSjoergac_top_builddir=$ac_top_build_prefix
1178176c7fc5fSjoerg
1178276c7fc5fSjoergcase $srcdir in
1178376c7fc5fSjoerg  .)  # We are building in place.
1178476c7fc5fSjoerg    ac_srcdir=.
1178576c7fc5fSjoerg    ac_top_srcdir=$ac_top_builddir_sub
1178676c7fc5fSjoerg    ac_abs_top_srcdir=$ac_pwd ;;
1178776c7fc5fSjoerg  [\\/]* | ?:[\\/]* )  # Absolute name.
1178876c7fc5fSjoerg    ac_srcdir=$srcdir$ac_dir_suffix;
1178976c7fc5fSjoerg    ac_top_srcdir=$srcdir
1179076c7fc5fSjoerg    ac_abs_top_srcdir=$srcdir ;;
1179176c7fc5fSjoerg  *) # Relative name.
1179276c7fc5fSjoerg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1179376c7fc5fSjoerg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1179476c7fc5fSjoerg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1179576c7fc5fSjoergesac
1179676c7fc5fSjoergac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1179776c7fc5fSjoerg
1179876c7fc5fSjoerg
1179976c7fc5fSjoerg    cd "$ac_dir"
1180076c7fc5fSjoerg
1180176c7fc5fSjoerg    # Check for guested configure; otherwise get Cygnus style configure.
1180276c7fc5fSjoerg    if test -f "$ac_srcdir/configure.gnu"; then
1180376c7fc5fSjoerg      ac_sub_configure=$ac_srcdir/configure.gnu
1180476c7fc5fSjoerg    elif test -f "$ac_srcdir/configure"; then
1180576c7fc5fSjoerg      ac_sub_configure=$ac_srcdir/configure
1180676c7fc5fSjoerg    elif test -f "$ac_srcdir/configure.in"; then
1180776c7fc5fSjoerg      # This should be Cygnus configure.
1180876c7fc5fSjoerg      ac_sub_configure=$ac_aux_dir/configure
1180976c7fc5fSjoerg    else
1181076c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
1181176c7fc5fSjoerg$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1181276c7fc5fSjoerg      ac_sub_configure=
1181376c7fc5fSjoerg    fi
1181476c7fc5fSjoerg
1181576c7fc5fSjoerg    # The recursion is here.
1181676c7fc5fSjoerg    if test -n "$ac_sub_configure"; then
1181776c7fc5fSjoerg      # Make the cache file name correct relative to the subdirectory.
1181876c7fc5fSjoerg      case $cache_file in
1181976c7fc5fSjoerg      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1182076c7fc5fSjoerg      *) # Relative name.
1182176c7fc5fSjoerg	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1182276c7fc5fSjoerg      esac
1182376c7fc5fSjoerg
1182476c7fc5fSjoerg      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
1182576c7fc5fSjoerg$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1182676c7fc5fSjoerg      # The eval makes quoting arguments work.
1182776c7fc5fSjoerg      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
1182876c7fc5fSjoerg	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1182976c7fc5fSjoerg	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1183076c7fc5fSjoerg    fi
1183176c7fc5fSjoerg
1183276c7fc5fSjoerg    cd "$ac_popdir"
1183376c7fc5fSjoerg  done
1183476c7fc5fSjoergfi
1183576c7fc5fSjoergif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1183676c7fc5fSjoerg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1183776c7fc5fSjoerg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1183876c7fc5fSjoergfi
1183976c7fc5fSjoerg
11840