#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.64 for gnash 0.8.8.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
# Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


lt_ltdl_dir='libltdl'


# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$lt_ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

ECHO=${lt_ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  # Yippee, $ECHO works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<_LT_EOF
$*
_LT_EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test -z "$lt_ECHO"; then
  if test "X${echo_test_string+set}" != Xset; then
    # find a string as large as possible, as long as the shell can cope with it
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
      then
        break
      fi
    done
  fi

  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
     test "X$echo_testing_string" = "X$echo_test_string"; then
    :
  else
    # The Solaris, AIX, and Digital Unix default echo programs unquote
    # backslashes.  This makes it impossible to quote backslashes using
    #   echo "$something" | sed 's/\\/\\\\/g'
    #
    # So, first we look for a working echo in the user's PATH.

    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for dir in $PATH /usr/ucb; do
      IFS="$lt_save_ifs"
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        ECHO="$dir/echo"
        break
      fi
    done
    IFS="$lt_save_ifs"

    if test "X$ECHO" = Xecho; then
      # We didn't find a better echo, so look for alternatives.
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        # This shell has a builtin print -r that does the trick.
        ECHO='print -r'
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
        # If we have ksh, try running configure again with it.
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
        export ORIGINAL_CONFIG_SHELL
        CONFIG_SHELL=/bin/ksh
        export CONFIG_SHELL
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
      else
        # Try using printf.
        ECHO='printf %s\n'
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	  # Cool, printf works
	  :
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	  export CONFIG_SHELL
	  SHELL="$CONFIG_SHELL"
	  export SHELL
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        else
	  # maybe with a smaller string...
	  prev=:

	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
	    then
	      break
	    fi
	    prev="$cmd"
	  done

	  if test "$prev" != 'sed 50q "$0"'; then
	    echo_test_string=`eval $prev`
	    export echo_test_string
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
	  else
	    # Oops.  We lost completely, so just stick with echo.
	    ECHO=echo
	  fi
        fi
      fi
    fi
  fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
lt_ECHO=$ECHO
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi




exec 7<&0 </dev/null 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='gnash'
PACKAGE_TARNAME='gnash'
PACKAGE_VERSION='0.8.8'
PACKAGE_STRING='gnash 0.8.8'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

ac_unique_file="libcore/gnash.h"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='ltdl_LTLIBOBJS
ltdl_LIBOBJS
am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
SUPPORTED_GUIS
HWACCEL_CONFIG
RENDERER_CONFIG
RENDERER_LIBS
VISIBILITY_WORKS_FALSE
VISIBILITY_WORKS_TRUE
HAVE_BOOST_FALSE
HAVE_BOOST_TRUE
BOOST_EXTRA_LIBS
BOOST_LIBS
BOOST_CFLAGS
PTHREAD_CFLAGS
PTHREAD_LIBS
PTHREAD_CXX
PTHREAD_CC
pthread_config
pth_config
PCH_FLAGS
ENABLE_PCH_FALSE
ENABLE_PCH_TRUE
CURL_LIBS
CURL_CFLAGS
CURL_FALSE
CURL_TRUE
curlconfig
HAVE_AGG_FALSE
HAVE_AGG_TRUE
DOCBOOK_FALSE
DOCBOOK_TRUE
docbook_styles
DB2X_VERSION
JAVA
ENABLE_MAN_FALSE
ENABLE_MAN_TRUE
ENABLE_XMLTEX_FALSE
ENABLE_XMLTEX_TRUE
ENABLE_FOP_FALSE
ENABLE_FOP_TRUE
ENABLE_HTML_FALSE
ENABLE_HTML_TRUE
ENABLE_PDF_FALSE
ENABLE_PDF_TRUE
ENABLE_TEXI_FALSE
ENABLE_TEXI_TRUE
DB2X_PDF
DB2X_MANXML
DB2X_MAN
DB2X_TEXIXML
DB2X_TEXI
DB2X_XSLTPROC
XSLTPROC
PDFXMLTEX
FOP
ENABLE_INFO_FALSE
ENABLE_INFO_TRUE
INSTALL_INFO
HAS_XFT_FALSE
HAS_XFT_TRUE
HAVE_FLTK2_FALSE
HAVE_FLTK2_TRUE
FLTK2_LIBS
FLTK2_CFLAGS
FLTK2_CONFIG
USE_HAIKU_ENGINE_FALSE
USE_HAIKU_ENGINE_TRUE
USE_GST_ENGINE_FALSE
USE_GST_ENGINE_TRUE
USE_FFMPEG_ENGINE_FALSE
USE_FFMPEG_ENGINE_TRUE
USE_SOUND_MKIT_FALSE
USE_SOUND_MKIT_TRUE
USE_SOUND_AHI_FALSE
USE_SOUND_AHI_TRUE
USE_SOUND_SDL_FALSE
USE_SOUND_SDL_TRUE
HAVE_OPENGL_FALSE
HAVE_OPENGL_TRUE
HAVE_CAIRO_FALSE
HAVE_CAIRO_TRUE
GSTPBUTILS_LIBS
GSTPBUTILS_CFLAGS
GSTPBUTILS_CONFIG
GSTREAMER_LIBS
GSTREAMER_CFLAGS
GSTREAMER_CONFIG
GSTREAMER_APP_LIBS
GSTREAMER_APP_CFLAGS
GSTREAMER_APP_CONFIG
GSTREAMER_PLUGINS_BASE_LIBS
GSTREAMER_PLUGINS_BASE_CFLAGS
GSTREAMER_PLUGINS_BASE_CONFIG
GST_INSPECT
HAVE_GLEXT_FALSE
HAVE_GLEXT_TRUE
HAVE_GTK2_FALSE
HAVE_GTK2_TRUE
unsermake_enable_pch_FALSE
unsermake_enable_pch_TRUE
include_ARTS_FALSE
include_ARTS_TRUE
include_x11_FALSE
include_x11_TRUE
HAS_KDE3_FALSE
HAS_KDE3_TRUE
EXPAT_LIBS
EXPAT_CFLAGS
EXPAT_CONFIG
XFT_LIBS
XFT_CFLAGS
XFT_CONFIG
GHELP_FALSE
GHELP_TRUE
SCROLLINSTALL
SCROLLUPDATE
SCROLLKEEPER
OPENGL_LIBS
OPENGL_CFLAGS
OPENVG_LIBS
OPENVG_CFLAGS
OPENVG_CONFIG
GLES_LIBS
GLES_CFLAGS
EGL_LIBS
EGL_CFLAGS
EGL_CONFIG
KPARTS4_FALSE
KPARTS4_TRUE
KPARTS3_FALSE
KPARTS3_TRUE
NPAPI_FALSE
NPAPI_TRUE
BUILD_HAIKU_GUI_FALSE
BUILD_HAIKU_GUI_TRUE
BUILD_AMIGAOS4_GUI_FALSE
BUILD_AMIGAOS4_GUI_TRUE
BUILD_DUMP_GUI_FALSE
BUILD_DUMP_GUI_TRUE
BUILD_RISCOS_GUI_FALSE
BUILD_RISCOS_GUI_TRUE
BUILD_AQUA_GUI_FALSE
BUILD_AQUA_GUI_TRUE
BUILD_FB_GUI_FALSE
BUILD_FB_GUI_TRUE
BUILD_SDL_GUI_FALSE
BUILD_SDL_GUI_TRUE
BUILD_FLTK_GUI_FALSE
BUILD_FLTK_GUI_TRUE
BUILD_GTK_GUI_FALSE
BUILD_GTK_GUI_TRUE
BUILD_HILDON_GUI_FALSE
BUILD_HILDON_GUI_TRUE
BUILD_ALP_GUI_FALSE
BUILD_ALP_GUI_TRUE
BUILD_KDE4_GUI_FALSE
BUILD_KDE4_GUI_TRUE
BUILD_KDE3_GUI_FALSE
BUILD_KDE3_GUI_TRUE
BUILD_QT4_GUI_FALSE
BUILD_QT4_GUI_TRUE
BUILD_QT3_GUI_FALSE
BUILD_QT3_GUI_TRUE
BUILD_QTOPIA4_GUI_FALSE
BUILD_QTOPIA4_GUI_TRUE
BUILD_QTOPIA3_GUI_FALSE
BUILD_QTOPIA3_GUI_TRUE
HAVE_GLIB_FALSE
HAVE_GLIB_TRUE
GLIB_LIBS
GLIB_CFLAGS
QT_WIN32_FALSE
QT_WIN32_TRUE
QT_OS9_FALSE
QT_OS9_TRUE
QT_OSX_FALSE
QT_OSX_TRUE
QTOPIA_FALSE
QTOPIA_TRUE
QT_X11_FALSE
QT_X11_TRUE
WITH_KDE4_FALSE
WITH_KDE4_TRUE
HAVE_QT4_FALSE
HAVE_QT4_TRUE
HAVE_QT3_FALSE
HAVE_QT3_TRUE
HAVE_KDE4_FALSE
HAVE_KDE4_TRUE
HAVE_KDE3_FALSE
HAVE_KDE3_TRUE
HAVE_QTOPIA4_FALSE
HAVE_QTOPIA4_TRUE
HAVE_QTOPIA3_FALSE
HAVE_QTOPIA3_TRUE
KDE4_APPSDATADIR
KDE4_CONFIGDIR
KDE4_SERVICESDIR
KDE4_PLUGINDIR
KDE4_LIBS
KDE4_CFLAGS
KDE4_CONFIG
QT4_LIBS
QT4_CFLAGS
UIC4
MOC4
KDE3_APPSDATADIR
KDE3_CONFIGDIR
KDE3_SERVICESDIR
KDE3_PLUGINDIR
KDE3_LIBS
KDE3_CFLAGS
KLASH_PLUGIN
KDE3_CONFIG
QT3_LIBS
QT3_CFLAGS
MOC3
HAVE_SDL_FALSE
HAVE_SDL_TRUE
SDL_LIBS
SDL_CFLAGS
SDL_CONFIG
ENABLE_DOXYGEN_FALSE
ENABLE_DOXYGEN_TRUE
DOXYGEN
ENABLE_SWFC_FALSE
ENABLE_SWFC_TRUE
ENABLE_HAXE_FALSE
ENABLE_HAXE_TRUE
ENABLE_MTASC_FALSE
ENABLE_MTASC_TRUE
ENABLE_AS3COMPILE_FALSE
ENABLE_AS3COMPILE_TRUE
SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_FALSE
SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_TRUE
SWFMILL_AS3_SUPPORT_FALSE
SWFMILL_AS3_SUPPORT_TRUE
ENABLE_SWFMILL_FALSE
ENABLE_SWFMILL_TRUE
HAXE_CLASSPATH
HAXE
MTASC_CLASSPATH
MTASC
SWFMILL_VERSION
SWFMILL
SWFC
AS3COMPILE
HAS_WGET_FALSE
HAS_WGET_TRUE
HAS_NETCAT_FALSE
HAS_NETCAT_TRUE
WGET
NETCAT
ENABLE_RED5_TESTING_FALSE
ENABLE_RED5_TESTING_TRUE
RED5_HOST
ENABLE_HTTP_TESTSUITE_FALSE
ENABLE_HTTP_TESTSUITE_TRUE
HTTP_TESTSUITE
ENABLE_SWFDEC_TESTSUITE_FALSE
ENABLE_SWFDEC_TESTSUITE_TRUE
SWFDEC_TESTSUITE
MING_VERSION_0_4_3_FALSE
MING_VERSION_0_4_3_TRUE
MING_SUPPORTS_SWFBUTTON_SET_DEPTH_FALSE
MING_SUPPORTS_SWFBUTTON_SET_DEPTH_TRUE
MING_SUPPORTS_STREAMING_SOUND_FALSE
MING_SUPPORTS_STREAMING_SOUND_TRUE
MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_FALSE
MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_TRUE
MING_SUPPORTS_REPLACE_TAG_FALSE
MING_SUPPORTS_REPLACE_TAG_TRUE
MING_SUPPORTS_INIT_ACTIONS_FALSE
MING_SUPPORTS_INIT_ACTIONS_TRUE
MAKESWF_SUPPORTS_PREBUILT_CLIPS_FALSE
MAKESWF_SUPPORTS_PREBUILT_CLIPS_TRUE
MING_VERSION_0_4_FALSE
MING_VERSION_0_4_TRUE
ENABLE_MING_FALSE
ENABLE_MING_TRUE
MING_LIBS
MING_CFLAGS
MING_VERSION
MING_VERSION_CODE
MAKESWF
MING_CONFIG
FONTCONFIG_LIBS
FONTCONFIG_CFLAGS
FONTCONFIG_CONFIG
FREETYPE2_LIBS
FREETYPE2_CFLAGS
FC_MATCH
FREETYPE_FALSE
FREETYPE_TRUE
SPEEXDSP_LIBS
SPEEXDSP_CFLAGS
SPEEXDSP_CONFIG
HAVE_SPEEX_FALSE
HAVE_SPEEX_TRUE
SPEEX_LIBS
SPEEX_CFLAGS
SPEEX_CONFIG
DEJAGNU_CFLAGS
DEJAGNU_CONFIG
UNGIF_LIBS
UNGIF_CFLAGS
UNGIF_CONFIG
GIF_LIBS
GIF_CFLAGS
GIF_CONFIG
PNG_LIBS
PNG_CFLAGS
PNG_CONFIG
LIBPNG_LIBS
LIBPNG_CFLAGS
LIBPNG_CONFIG
JPEG_LIBS
JPEG_CFLAGS
JPEG_CONFIG
Z_LIBS
Z_CFLAGS
Z_CONFIG
WINDRES
NSPR_LIBS
NSPR_CFLAGS
NSPR_CONFIG
LIBOBJS
BROKEN_FLOAT_FALSE
BROKEN_FLOAT_TRUE
HAVE_X11_FALSE
HAVE_X11_TRUE
X11_LIBS
X11_CFLAGS
HAVE_XV_FALSE
HAVE_XV_TRUE
LIRC_FALSE
LIRC_TRUE
FIREFOX_PLUGINS
ZIP
AUTOTRACE
HAVE_DMALLOC_FALSE
HAVE_DMALLOC_TRUE
USE_PNG_FALSE
USE_PNG_TRUE
USE_GIF_FALSE
USE_GIF_TRUE
HILDON_LIBS
HILDON_CFLAGS
GLEXT_LIBS
GLEXT_CFLAGS
ATK_LIBS
ATK_CFLAGS
ATK_CONFIG
PANGO_LIBS
PANGO_CFLAGS
GTK2_LIBS
GTK2_CFLAGS
ALP_LIBS
ALP_CFLAGS
BARTENDER
SSL_LIBS
SSL_CFLAGS
SSL_CONFIG
BUILD_SSL_FALSE
BUILD_SSL_TRUE
SSH_LIBS
SSH_CFLAGS
SSH_CONFIG
BUILD_SSH_FALSE
BUILD_SSH_TRUE
ENABLE_DBUF_FALSE
ENABLE_DBUF_TRUE
USE_CGI_FALSE
USE_CGI_TRUE
CYGNAL_FALSE
CYGNAL_TRUE
TESTSUITE_FALSE
TESTSUITE_TRUE
SWFTREE_FALSE
SWFTREE_TRUE
MENUS_FALSE
MENUS_TRUE
ALLSTATIC_FALSE
ALLSTATIC_TRUE
DEBUGGER_FALSE
DEBUGGER_TRUE
JEMALLOC_FALSE
JEMALLOC_TRUE
HAVE_MALLINFO_FALSE
HAVE_MALLINFO_TRUE
HAS_PYTHON_FALSE
HAS_PYTHON_TRUE
USE_PYTHON_FALSE
USE_PYTHON_TRUE
PYTHON_LIBS
PYTHON_CFLAGS
PYGTK_DEFSDIR
PYGTK_LIBS
PYGTK_CFLAGS
PYGTK_CODEGEN
PYGOBJECT_CODEGEN
pkgpyexecdir
pyexecdir
pkgpythondir
pythondir
PYTHON_PLATFORM
PYTHON_EXEC_PREFIX
PYTHON_PREFIX
PYTHON_VERSION
PYTHON
pythonconfig
LC_KEY
ENABLE_AVM2_FALSE
ENABLE_AVM2_TRUE
SOLDIR
CLASSLIST
BUILD_HTMLHOST_AS3_FALSE
BUILD_HTMLHOST_AS3_TRUE
BUILD_HTMLPDFCAPABILITY_AS3_FALSE
BUILD_HTMLPDFCAPABILITY_AS3_TRUE
BUILD_HTMLHISTORYITEM_AS3_FALSE
BUILD_HTMLHISTORYITEM_AS3_TRUE
BUILD_HTMLLOADER_AS3_FALSE
BUILD_HTMLLOADER_AS3_TRUE
BUILD_HTMLWINDOWCREATEOPTIONS_AS3_FALSE
BUILD_HTMLWINDOWCREATEOPTIONS_AS3_TRUE
BUILD_DELETEOBJECTSAMPLE_AS3_FALSE
BUILD_DELETEOBJECTSAMPLE_AS3_TRUE
BUILD_NEWOBJECTSAMPLE_AS3_FALSE
BUILD_NEWOBJECTSAMPLE_AS3_TRUE
BUILD_STACKFRAME_AS3_FALSE
BUILD_STACKFRAME_AS3_TRUE
BUILD_SAMPLE_AS3_FALSE
BUILD_SAMPLE_AS3_TRUE
BUILD_SCROLLPANE_AS3_FALSE
BUILD_SCROLLPANE_AS3_TRUE
BUILD_UILOADER_AS3_FALSE
BUILD_UILOADER_AS3_TRUE
BUILD_BASESCROLLPANE_AS3_FALSE
BUILD_BASESCROLLPANE_AS3_TRUE
BUILD_DISPLAYOBJECTCONTAINER_AS3_FALSE
BUILD_DISPLAYOBJECTCONTAINER_AS3_TRUE
BUILD_LOADER_AS3_FALSE
BUILD_LOADER_AS3_TRUE
BUILD_NATIVEWINDOWINITOPTIONS_AS3_FALSE
BUILD_NATIVEWINDOWINITOPTIONS_AS3_TRUE
BUILD_SHAPE_AS3_FALSE
BUILD_SHAPE_AS3_TRUE
BUILD_MORPHSHAPE_AS3_FALSE
BUILD_MORPHSHAPE_AS3_TRUE
BUILD_NATIVEMENU_AS3_FALSE
BUILD_NATIVEMENU_AS3_TRUE
BUILD_BLENDMODE_AS3_FALSE
BUILD_BLENDMODE_AS3_TRUE
BUILD_FOCUSDIRECTION_AS3_FALSE
BUILD_FOCUSDIRECTION_AS3_TRUE
BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_FALSE
BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_TRUE
BUILD_JOINTSTYLE_AS3_FALSE
BUILD_JOINTSTYLE_AS3_TRUE
BUILD_LINESCALEMODE_AS3_FALSE
BUILD_LINESCALEMODE_AS3_TRUE
BUILD_LOADERINFO_AS3_FALSE
BUILD_LOADERINFO_AS3_TRUE
BUILD_ACTIONSCRIPTVERSION_AS3_FALSE
BUILD_ACTIONSCRIPTVERSION_AS3_TRUE
BUILD_PIXELSNAPPING_AS3_FALSE
BUILD_PIXELSNAPPING_AS3_TRUE
BUILD_STAGEQUALITY_AS3_FALSE
BUILD_STAGEQUALITY_AS3_TRUE
BUILD_MOVIECLIP_AS3_FALSE
BUILD_MOVIECLIP_AS3_TRUE
BUILD_BITMAPDATACHANNEL_AS3_FALSE
BUILD_BITMAPDATACHANNEL_AS3_TRUE
BUILD_CAPSSTYLE_AS3_FALSE
BUILD_CAPSSTYLE_AS3_TRUE
BUILD_GRAPHICS_AS3_FALSE
BUILD_GRAPHICS_AS3_TRUE
BUILD_DISPLAYOBJECT_AS3_FALSE
BUILD_DISPLAYOBJECT_AS3_TRUE
BUILD_GRADIENTTYPE_AS3_FALSE
BUILD_GRADIENTTYPE_AS3_TRUE
BUILD_AVM1MOVIE_AS3_FALSE
BUILD_AVM1MOVIE_AS3_TRUE
BUILD_NATIVEWINDOW_AS3_FALSE
BUILD_NATIVEWINDOW_AS3_TRUE
BUILD_NATIVEWINDOWRESIZE_AS3_FALSE
BUILD_NATIVEWINDOWRESIZE_AS3_TRUE
BUILD_SIMPLEBUTTON_AS3_FALSE
BUILD_SIMPLEBUTTON_AS3_TRUE
BUILD_SPREADMETHOD_AS3_FALSE
BUILD_SPREADMETHOD_AS3_TRUE
BUILD_SPRITE_AS3_FALSE
BUILD_SPRITE_AS3_TRUE
BUILD_STAGESCALEMODE_AS3_FALSE
BUILD_STAGESCALEMODE_AS3_TRUE
BUILD_STAGE_AS3_FALSE
BUILD_STAGE_AS3_TRUE
BUILD_SCENE_AS3_FALSE
BUILD_SCENE_AS3_TRUE
BUILD_BITMAPDATA_AS3_FALSE
BUILD_BITMAPDATA_AS3_TRUE
BUILD_INTERACTIVEOBJECT_AS3_FALSE
BUILD_INTERACTIVEOBJECT_AS3_TRUE
BUILD_INTERPOLATIONMETHOD_AS3_FALSE
BUILD_INTERPOLATIONMETHOD_AS3_TRUE
BUILD_NATIVEMENUITEM_AS3_FALSE
BUILD_NATIVEMENUITEM_AS3_TRUE
BUILD_NATIVEWINDOWTYPE_AS3_FALSE
BUILD_NATIVEWINDOWTYPE_AS3_TRUE
BUILD_IBITMAPDRAWABLE_AS3_FALSE
BUILD_IBITMAPDRAWABLE_AS3_TRUE
BUILD_STAGEDISPLAYSTATE_AS3_FALSE
BUILD_STAGEDISPLAYSTATE_AS3_TRUE
BUILD_STAGEALIGN_AS3_FALSE
BUILD_STAGEALIGN_AS3_TRUE
BUILD_SWFVERSION_AS3_FALSE
BUILD_SWFVERSION_AS3_TRUE
BUILD_BITMAP_AS3_FALSE
BUILD_BITMAP_AS3_TRUE
BUILD_SCREEN_AS3_FALSE
BUILD_SCREEN_AS3_TRUE
BUILD_FRAMELABEL_AS3_FALSE
BUILD_FRAMELABEL_AS3_TRUE
BUILD_XMLDOCUMENT_AS3_FALSE
BUILD_XMLDOCUMENT_AS3_TRUE
BUILD_XMLNODETYPE_AS3_FALSE
BUILD_XMLNODETYPE_AS3_TRUE
BUILD_XMLNODE_AS3_FALSE
BUILD_XMLNODE_AS3_TRUE
BUILD_RADIOBUTTON_AS3_FALSE
BUILD_RADIOBUTTON_AS3_TRUE
BUILD_SLIDERDIRECTION_AS3_FALSE
BUILD_SLIDERDIRECTION_AS3_TRUE
BUILD_BUTTONLABELPLACEMENT_AS3_FALSE
BUILD_BUTTONLABELPLACEMENT_AS3_TRUE
BUILD_LIST_AS3_FALSE
BUILD_LIST_AS3_TRUE
BUILD_TILELIST_AS3_FALSE
BUILD_TILELIST_AS3_TRUE
BUILD_CHECKBOX_AS3_FALSE
BUILD_CHECKBOX_AS3_TRUE
BUILD_COLORPICKER_AS3_FALSE
BUILD_COLORPICKER_AS3_TRUE
BUILD_BUTTON_AS3_FALSE
BUILD_BUTTON_AS3_TRUE
BUILD_PROGRESSBAR_AS3_FALSE
BUILD_PROGRESSBAR_AS3_TRUE
BUILD_DATAGRID_AS3_FALSE
BUILD_DATAGRID_AS3_TRUE
BUILD_PROGRESSBARMODE_AS3_FALSE
BUILD_PROGRESSBARMODE_AS3_TRUE
BUILD_UISCROLLBAR_AS3_FALSE
BUILD_UISCROLLBAR_AS3_TRUE
BUILD_NUMERICSTEPPER_AS3_FALSE
BUILD_NUMERICSTEPPER_AS3_TRUE
BUILD_LABELBUTTON_AS3_FALSE
BUILD_LABELBUTTON_AS3_TRUE
BUILD_COMBOBOX_AS3_FALSE
BUILD_COMBOBOX_AS3_TRUE
BUILD_RADIOBUTTONGROUP_AS3_FALSE
BUILD_RADIOBUTTONGROUP_AS3_TRUE
BUILD_SCROLLBARDIRECTION_AS3_FALSE
BUILD_SCROLLBARDIRECTION_AS3_TRUE
BUILD_BASEBUTTON_AS3_FALSE
BUILD_BASEBUTTON_AS3_TRUE
BUILD_SCROLLBAR_AS3_FALSE
BUILD_SCROLLBAR_AS3_TRUE
BUILD_LABEL_AS3_FALSE
BUILD_LABEL_AS3_TRUE
BUILD_SELECTABLELIST_AS3_FALSE
BUILD_SELECTABLELIST_AS3_TRUE
BUILD_TEXTAREA_AS3_FALSE
BUILD_TEXTAREA_AS3_TRUE
BUILD_TEXTINPUT_AS3_FALSE
BUILD_TEXTINPUT_AS3_TRUE
BUILD_SLIDER_AS3_FALSE
BUILD_SLIDER_AS3_TRUE
BUILD_SCROLLPOLICY_AS3_FALSE
BUILD_SCROLLPOLICY_AS3_TRUE
BUILD_PROGRESSBARDIRECTION_AS3_FALSE
BUILD_PROGRESSBARDIRECTION_AS3_TRUE
BUILD_INTERACTIVEICON_AS3_FALSE
BUILD_INTERACTIVEICON_AS3_TRUE
BUILD_ICON_AS3_FALSE
BUILD_ICON_AS3_TRUE
BUILD_SYSTEMTRAYICON_AS3_FALSE
BUILD_SYSTEMTRAYICON_AS3_TRUE
BUILD_DOCKICON_AS3_FALSE
BUILD_DOCKICON_AS3_TRUE
BUILD_NATIVEDRAGOPTIONS_AS3_FALSE
BUILD_NATIVEDRAGOPTIONS_AS3_TRUE
BUILD_CLIPBOARDTRANSFERMODE_AS3_FALSE
BUILD_CLIPBOARDTRANSFERMODE_AS3_TRUE
BUILD_CLIPBOARDFORMATS_AS3_FALSE
BUILD_CLIPBOARDFORMATS_AS3_TRUE
BUILD_NOTIFICATIONTYPE_AS3_FALSE
BUILD_NOTIFICATIONTYPE_AS3_TRUE
BUILD_CLIPBOARD_AS3_FALSE
BUILD_CLIPBOARD_AS3_TRUE
BUILD_NATIVEDRAGACTIONS_AS3_FALSE
BUILD_NATIVEDRAGACTIONS_AS3_TRUE
BUILD_NATIVEAPPLICATION_AS3_FALSE
BUILD_NATIVEAPPLICATION_AS3_TRUE
BUILD_NATIVEDRAGMANAGER_AS3_FALSE
BUILD_NATIVEDRAGMANAGER_AS3_TRUE
BUILD_UPDATER_AS3_FALSE
BUILD_UPDATER_AS3_TRUE
BUILD_SQLERROROPERATION_AS3_FALSE
BUILD_SQLERROROPERATION_AS3_TRUE
BUILD_SCRIPTTIMEOUTERROR_AS3_FALSE
BUILD_SCRIPTTIMEOUTERROR_AS3_TRUE
BUILD_EOFERROR_AS3_FALSE
BUILD_EOFERROR_AS3_TRUE
BUILD_ILLEGALOPERATIONERROR_AS3_FALSE
BUILD_ILLEGALOPERATIONERROR_AS3_TRUE
BUILD_SQLERROR_AS3_FALSE
BUILD_SQLERROR_AS3_TRUE
BUILD_MEMORYERROR_AS3_FALSE
BUILD_MEMORYERROR_AS3_TRUE
BUILD_IOERROR_AS3_FALSE
BUILD_IOERROR_AS3_TRUE
BUILD_STACKOVERFLOWERROR_AS3_FALSE
BUILD_STACKOVERFLOWERROR_AS3_TRUE
BUILD_INVALIDSWFERROR_AS3_FALSE
BUILD_INVALIDSWFERROR_AS3_TRUE
BUILD_SECURITY_AS3_FALSE
BUILD_SECURITY_AS3_TRUE
BUILD_SECURITYDOMAIN_AS3_FALSE
BUILD_SECURITYDOMAIN_AS3_TRUE
BUILD_SYSTEM_AS3_FALSE
BUILD_SYSTEM_AS3_TRUE
BUILD_LOADERCONTEXT_AS3_FALSE
BUILD_LOADERCONTEXT_AS3_TRUE
BUILD_APPLICATIONDOMAIN_AS3_FALSE
BUILD_APPLICATIONDOMAIN_AS3_TRUE
BUILD_CAPABILITIES_AS3_FALSE
BUILD_CAPABILITIES_AS3_TRUE
BUILD_SECURITYPANEL_AS3_FALSE
BUILD_SECURITYPANEL_AS3_TRUE
BUILD_IME_AS3_FALSE
BUILD_IME_AS3_TRUE
BUILD_IMECONVERSIONMODE_AS3_FALSE
BUILD_IMECONVERSIONMODE_AS3_TRUE
BUILD_SQLCOLUMNSCHEMA_AS3_FALSE
BUILD_SQLCOLUMNSCHEMA_AS3_TRUE
BUILD_SQLSTATEMENT_AS3_FALSE
BUILD_SQLSTATEMENT_AS3_TRUE
BUILD_ENCRYPTEDLOCALSTORE_AS3_FALSE
BUILD_ENCRYPTEDLOCALSTORE_AS3_TRUE
BUILD_SQLMODE_AS3_FALSE
BUILD_SQLMODE_AS3_TRUE
BUILD_SQLCOLUMNNAMESTYLE_AS3_FALSE
BUILD_SQLCOLUMNNAMESTYLE_AS3_TRUE
BUILD_SQLVIEWSCHEMA_AS3_FALSE
BUILD_SQLVIEWSCHEMA_AS3_TRUE
BUILD_SQLCOLLATIONTYPE_AS3_FALSE
BUILD_SQLCOLLATIONTYPE_AS3_TRUE
BUILD_SQLSCHEMA_AS3_FALSE
BUILD_SQLSCHEMA_AS3_TRUE
BUILD_SQLRESULT_AS3_FALSE
BUILD_SQLRESULT_AS3_TRUE
BUILD_SQLINDEXSCHEMA_AS3_FALSE
BUILD_SQLINDEXSCHEMA_AS3_TRUE
BUILD_SQLCONNECTION_AS3_FALSE
BUILD_SQLCONNECTION_AS3_TRUE
BUILD_SQLTABLESCHEMA_AS3_FALSE
BUILD_SQLTABLESCHEMA_AS3_TRUE
BUILD_SQLTRIGGERSCHEMA_AS3_FALSE
BUILD_SQLTRIGGERSCHEMA_AS3_TRUE
BUILD_SQLSCHEMARESULT_AS3_FALSE
BUILD_SQLSCHEMARESULT_AS3_TRUE
BUILD_SQLTRANSACTIONLOCKTYPE_AS3_FALSE
BUILD_SQLTRANSACTIONLOCKTYPE_AS3_TRUE
BUILD_TEXTFORMATALIGN_AS3_FALSE
BUILD_TEXTFORMATALIGN_AS3_TRUE
BUILD_TEXTSNAPSHOT_AS3_FALSE
BUILD_TEXTSNAPSHOT_AS3_TRUE
BUILD_TEXTFORMAT_AS3_FALSE
BUILD_TEXTFORMAT_AS3_TRUE
BUILD_STATICTEXT_AS3_FALSE
BUILD_STATICTEXT_AS3_TRUE
BUILD_FONT_AS3_FALSE
BUILD_FONT_AS3_TRUE
BUILD_FONTTYPE_AS3_FALSE
BUILD_FONTTYPE_AS3_TRUE
BUILD_TEXTCOLORTYPE_AS3_FALSE
BUILD_TEXTCOLORTYPE_AS3_TRUE
BUILD_TEXTFIELD_AS3_FALSE
BUILD_TEXTFIELD_AS3_TRUE
BUILD_FONTSTYLE_AS3_FALSE
BUILD_FONTSTYLE_AS3_TRUE
BUILD_TEXTFIELDTYPE_AS3_FALSE
BUILD_TEXTFIELDTYPE_AS3_TRUE
BUILD_STYLESHEET_AS3_FALSE
BUILD_STYLESHEET_AS3_TRUE
BUILD_ANTIALIASTYPE_AS3_FALSE
BUILD_ANTIALIASTYPE_AS3_TRUE
BUILD_GRIDFITTYPE_AS3_FALSE
BUILD_GRIDFITTYPE_AS3_TRUE
BUILD_TEXTLINEMETRICS_AS3_FALSE
BUILD_TEXTLINEMETRICS_AS3_TRUE
BUILD_TEXTDISPLAYMODE_AS3_FALSE
BUILD_TEXTDISPLAYMODE_AS3_TRUE
BUILD_CSMSETTINGS_AS3_FALSE
BUILD_CSMSETTINGS_AS3_TRUE
BUILD_TEXTRENDERER_AS3_FALSE
BUILD_TEXTRENDERER_AS3_TRUE
BUILD_TEXTFIELDAUTOSIZE_AS3_FALSE
BUILD_TEXTFIELDAUTOSIZE_AS3_TRUE
BUILD_SKINERROREVENT_AS3_FALSE
BUILD_SKINERROREVENT_AS3_TRUE
BUILD_VIDEOPROGRESSEVENT_AS3_FALSE
BUILD_VIDEOPROGRESSEVENT_AS3_TRUE
BUILD_CUEPOINTTYPE_AS3_FALSE
BUILD_CUEPOINTTYPE_AS3_TRUE
BUILD_METADATAEVENT_AS3_FALSE
BUILD_METADATAEVENT_AS3_TRUE
BUILD_IVPEVENT_AS3_FALSE
BUILD_IVPEVENT_AS3_TRUE
BUILD_VIDEOEVENT_AS3_FALSE
BUILD_VIDEOEVENT_AS3_TRUE
BUILD_CAPTIONTARGETEVENT_AS3_FALSE
BUILD_CAPTIONTARGETEVENT_AS3_TRUE
BUILD_VIDEOSCALEMODE_AS3_FALSE
BUILD_VIDEOSCALEMODE_AS3_TRUE
BUILD_NCMANAGERNATIVE_AS3_FALSE
BUILD_NCMANAGERNATIVE_AS3_TRUE
BUILD_VIDEOSTATE_AS3_FALSE
BUILD_VIDEOSTATE_AS3_TRUE
BUILD_CAPTIONCHANGEEVENT_AS3_FALSE
BUILD_CAPTIONCHANGEEVENT_AS3_TRUE
BUILD_VIDEOPLAYER_AS3_FALSE
BUILD_VIDEOPLAYER_AS3_TRUE
BUILD_NCMANAGER_AS3_FALSE
BUILD_NCMANAGER_AS3_TRUE
BUILD_VIDEOALIGN_AS3_FALSE
BUILD_VIDEOALIGN_AS3_TRUE
BUILD_FLVPLAYBACK_AS3_FALSE
BUILD_FLVPLAYBACK_AS3_TRUE
BUILD_VIDEOERROR_AS3_FALSE
BUILD_VIDEOERROR_AS3_TRUE
BUILD_INCMANAGER_AS3_FALSE
BUILD_INCMANAGER_AS3_TRUE
BUILD_LAYOUTEVENT_AS3_FALSE
BUILD_LAYOUTEVENT_AS3_TRUE
BUILD_SOUNDEVENT_AS3_FALSE
BUILD_SOUNDEVENT_AS3_TRUE
BUILD_FLVPLAYBACKCAPTIONING_AS3_FALSE
BUILD_FLVPLAYBACKCAPTIONING_AS3_TRUE
BUILD_AUTOLAYOUTEVENT_AS3_FALSE
BUILD_AUTOLAYOUTEVENT_AS3_TRUE
BUILD_COLORMATRIXFILTER_AS3_FALSE
BUILD_COLORMATRIXFILTER_AS3_TRUE
BUILD_DISPLACEMENTMAPFILTERMODE_AS3_FALSE
BUILD_DISPLACEMENTMAPFILTERMODE_AS3_TRUE
BUILD_GRADIENTBEVELFILTER_AS3_FALSE
BUILD_GRADIENTBEVELFILTER_AS3_TRUE
BUILD_BITMAPFILTER_AS3_FALSE
BUILD_BITMAPFILTER_AS3_TRUE
BUILD_DISPLACEMENTMAPFILTER_AS3_FALSE
BUILD_DISPLACEMENTMAPFILTER_AS3_TRUE
BUILD_BLURFILTER_AS3_FALSE
BUILD_BLURFILTER_AS3_TRUE
BUILD_GRADIENTGLOWFILTER_AS3_FALSE
BUILD_GRADIENTGLOWFILTER_AS3_TRUE
BUILD_BITMAPFILTERTYPE_AS3_FALSE
BUILD_BITMAPFILTERTYPE_AS3_TRUE
BUILD_CONVOLUTIONFILTER_AS3_FALSE
BUILD_CONVOLUTIONFILTER_AS3_TRUE
BUILD_GLOWFILTER_AS3_FALSE
BUILD_GLOWFILTER_AS3_TRUE
BUILD_DROPSHADOWFILTER_AS3_FALSE
BUILD_DROPSHADOWFILTER_AS3_TRUE
BUILD_BITMAPFILTERQUALITY_AS3_FALSE
BUILD_BITMAPFILTERQUALITY_AS3_TRUE
BUILD_BEVELFILTER_AS3_FALSE
BUILD_BEVELFILTER_AS3_TRUE
BUILD_ACTIVITYEVENT_AS3_FALSE
BUILD_ACTIVITYEVENT_AS3_TRUE
BUILD_SCREENMOUSEEVENT_AS3_FALSE
BUILD_SCREENMOUSEEVENT_AS3_TRUE
BUILD_SQLERROREVENT_AS3_FALSE
BUILD_SQLERROREVENT_AS3_TRUE
BUILD_KEYBOARDEVENT_AS3_FALSE
BUILD_KEYBOARDEVENT_AS3_TRUE
BUILD_NETSTATUSEVENT_AS3_FALSE
BUILD_NETSTATUSEVENT_AS3_TRUE
BUILD_NATIVEDRAGEVENT_AS3_FALSE
BUILD_NATIVEDRAGEVENT_AS3_TRUE
BUILD_DRMERROREVENT_AS3_FALSE
BUILD_DRMERROREVENT_AS3_TRUE
BUILD_FULLSCREENEVENT_AS3_FALSE
BUILD_FULLSCREENEVENT_AS3_TRUE
BUILD_ERROREVENT_AS3_FALSE
BUILD_ERROREVENT_AS3_TRUE
BUILD_IEVENTDISPATCHER_AS3_FALSE
BUILD_IEVENTDISPATCHER_AS3_TRUE
BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_FALSE
BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_TRUE
BUILD_INVOKEEVENT_AS3_FALSE
BUILD_INVOKEEVENT_AS3_TRUE
BUILD_IOERROREVENT_AS3_FALSE
BUILD_IOERROREVENT_AS3_TRUE
BUILD_CONTEXTMENUEVENT_AS3_FALSE
BUILD_CONTEXTMENUEVENT_AS3_TRUE
BUILD_PROGRESSEVENT_AS3_FALSE
BUILD_PROGRESSEVENT_AS3_TRUE
BUILD_EVENT_AS3_FALSE
BUILD_EVENT_AS3_TRUE
BUILD_TEXTEVENT_AS3_FALSE
BUILD_TEXTEVENT_AS3_TRUE
BUILD_DRMSTATUSEVENT_AS3_FALSE
BUILD_DRMSTATUSEVENT_AS3_TRUE
BUILD_SYNCEVENT_AS3_FALSE
BUILD_SYNCEVENT_AS3_TRUE
BUILD_FILELISTEVENT_AS3_FALSE
BUILD_FILELISTEVENT_AS3_TRUE
BUILD_IMEEVENT_AS3_FALSE
BUILD_IMEEVENT_AS3_TRUE
BUILD_EVENTPHASE_AS3_FALSE
BUILD_EVENTPHASE_AS3_TRUE
BUILD_FOCUSEVENT_AS3_FALSE
BUILD_FOCUSEVENT_AS3_TRUE
BUILD_EVENTDISPATCHER_AS3_FALSE
BUILD_EVENTDISPATCHER_AS3_TRUE
BUILD_STATUSEVENT_AS3_FALSE
BUILD_STATUSEVENT_AS3_TRUE
BUILD_ASYNCERROREVENT_AS3_FALSE
BUILD_ASYNCERROREVENT_AS3_TRUE
BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_FALSE
BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_TRUE
BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_FALSE
BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_TRUE
BUILD_TIMEREVENT_AS3_FALSE
BUILD_TIMEREVENT_AS3_TRUE
BUILD_DATAEVENT_AS3_FALSE
BUILD_DATAEVENT_AS3_TRUE
BUILD_MOUSEEVENT_AS3_FALSE
BUILD_MOUSEEVENT_AS3_TRUE
BUILD_SQLUPDATEEVENT_AS3_FALSE
BUILD_SQLUPDATEEVENT_AS3_TRUE
BUILD_SECURITYERROREVENT_AS3_FALSE
BUILD_SECURITYERROREVENT_AS3_TRUE
BUILD_DRMAUTHENTICATEEVENT_AS3_FALSE
BUILD_DRMAUTHENTICATEEVENT_AS3_TRUE
BUILD_BROWSERINVOKEEVENT_AS3_FALSE
BUILD_BROWSERINVOKEEVENT_AS3_TRUE
BUILD_HTTPSTATUSEVENT_AS3_FALSE
BUILD_HTTPSTATUSEVENT_AS3_TRUE
BUILD_OUTPUTPROGRESSEVENT_AS3_FALSE
BUILD_OUTPUTPROGRESSEVENT_AS3_TRUE
BUILD_SQLEVENT_AS3_FALSE
BUILD_SQLEVENT_AS3_TRUE
BUILD_SELECTABLELISTACCIMPL_AS3_FALSE
BUILD_SELECTABLELISTACCIMPL_AS3_TRUE
BUILD_ACCESSIBILITY_AS3_FALSE
BUILD_ACCESSIBILITY_AS3_TRUE
BUILD_LABELBUTTONACCIMPL_AS3_FALSE
BUILD_LABELBUTTONACCIMPL_AS3_TRUE
BUILD_UICOMPONENTACCIMPL_AS3_FALSE
BUILD_UICOMPONENTACCIMPL_AS3_TRUE
BUILD_COMBOBOXACCIMPL_AS3_FALSE
BUILD_COMBOBOXACCIMPL_AS3_TRUE
BUILD_LISTACCIMPL_AS3_FALSE
BUILD_LISTACCIMPL_AS3_TRUE
BUILD_TILELISTACCIMPL_AS3_FALSE
BUILD_TILELISTACCIMPL_AS3_TRUE
BUILD_ACCIMPL_AS3_FALSE
BUILD_ACCIMPL_AS3_TRUE
BUILD_RADIOBUTTONACCIMPL_AS3_FALSE
BUILD_RADIOBUTTONACCIMPL_AS3_TRUE
BUILD_DATAGRIDACCIMPL_AS3_FALSE
BUILD_DATAGRIDACCIMPL_AS3_TRUE
BUILD_BUTTONACCIMPL_AS3_FALSE
BUILD_BUTTONACCIMPL_AS3_TRUE
BUILD_CHECKBOXACCIMPL_AS3_FALSE
BUILD_CHECKBOXACCIMPL_AS3_TRUE
BUILD_ACCESSIBILITY_PROPERTIES_AS3_FALSE
BUILD_ACCESSIBILITY_PROPERTIES_AS3_TRUE
BUILD_SOUND_AS3_FALSE
BUILD_SOUND_AS3_TRUE
BUILD_SOUNDLOADERCONTEXT_AS3_FALSE
BUILD_SOUNDLOADERCONTEXT_AS3_TRUE
BUILD_ID3INFO_AS3_FALSE
BUILD_ID3INFO_AS3_TRUE
BUILD_MICROPHONE_AS3_FALSE
BUILD_MICROPHONE_AS3_TRUE
BUILD_CAMERA_AS3_FALSE
BUILD_CAMERA_AS3_TRUE
BUILD_VIDEO_AS3_FALSE
BUILD_VIDEO_AS3_TRUE
BUILD_SOUNDMIXER_AS3_FALSE
BUILD_SOUNDMIXER_AS3_TRUE
BUILD_SOUNDTRANSFORM_AS3_FALSE
BUILD_SOUNDTRANSFORM_AS3_TRUE
BUILD_SOUNDCHANNEL_AS3_FALSE
BUILD_SOUNDCHANNEL_AS3_TRUE
BUILD_CONTEXTMENUBUILTINITEMS_AS3_FALSE
BUILD_CONTEXTMENUBUILTINITEMS_AS3_TRUE
BUILD_KEYBOARD_AS3_FALSE
BUILD_KEYBOARD_AS3_TRUE
BUILD_KEYLOCATION_AS3_FALSE
BUILD_KEYLOCATION_AS3_TRUE
BUILD_CONTEXTMENUITEM_AS3_FALSE
BUILD_CONTEXTMENUITEM_AS3_TRUE
BUILD_MOUSE_AS3_FALSE
BUILD_MOUSE_AS3_TRUE
BUILD_CONTEXTMENU_AS3_FALSE
BUILD_CONTEXTMENU_AS3_TRUE
BUILD_RECTANGLE_AS3_FALSE
BUILD_RECTANGLE_AS3_TRUE
BUILD_TRANSFORM_AS3_FALSE
BUILD_TRANSFORM_AS3_TRUE
BUILD_POINT_AS3_FALSE
BUILD_POINT_AS3_TRUE
BUILD_MATRIX_AS3_FALSE
BUILD_MATRIX_AS3_TRUE
BUILD_COLORTRANSFORM_AS3_FALSE
BUILD_COLORTRANSFORM_AS3_TRUE
BUILD_PRINTJOBORIENTATION_AS3_FALSE
BUILD_PRINTJOBORIENTATION_AS3_TRUE
BUILD_PRINTJOBOPTIONS_AS3_FALSE
BUILD_PRINTJOBOPTIONS_AS3_TRUE
BUILD_PRINTJOB_AS3_FALSE
BUILD_PRINTJOB_AS3_TRUE
BUILD_KEYFRAME_AS3_FALSE
BUILD_KEYFRAME_AS3_TRUE
BUILD_ANIMATOR_AS3_FALSE
BUILD_ANIMATOR_AS3_TRUE
BUILD_ROTATEDIRECTION_AS3_FALSE
BUILD_ROTATEDIRECTION_AS3_TRUE
BUILD_COLOR_AS3_FALSE
BUILD_COLOR_AS3_TRUE
BUILD_MOTION_AS3_FALSE
BUILD_MOTION_AS3_TRUE
BUILD_FUNCTIONEASE_AS3_FALSE
BUILD_FUNCTIONEASE_AS3_TRUE
BUILD_BEZIERSEGMENT_AS3_FALSE
BUILD_BEZIERSEGMENT_AS3_TRUE
BUILD_MATRIXTRANSFORMER_AS3_FALSE
BUILD_MATRIXTRANSFORMER_AS3_TRUE
BUILD_BEZIEREASE_AS3_FALSE
BUILD_BEZIEREASE_AS3_TRUE
BUILD_SOURCE_AS3_FALSE
BUILD_SOURCE_AS3_TRUE
BUILD_CUSTOMEASE_AS3_FALSE
BUILD_CUSTOMEASE_AS3_TRUE
BUILD_ITWEEN_AS3_FALSE
BUILD_ITWEEN_AS3_TRUE
BUILD_MOTIONEVENT_AS3_FALSE
BUILD_MOTIONEVENT_AS3_TRUE
BUILD_TWEENABLES_AS3_FALSE
BUILD_TWEENABLES_AS3_TRUE
BUILD_SIMPLEEASE_AS3_FALSE
BUILD_SIMPLEEASE_AS3_TRUE
BUILD_LOCALCONNECTION_AS3_FALSE
BUILD_LOCALCONNECTION_AS3_TRUE
BUILD_SHAREDOBJECT_AS3_FALSE
BUILD_SHAREDOBJECT_AS3_TRUE
BUILD_IDYNAMICPROPERTYOUTPUT_AS3_FALSE
BUILD_IDYNAMICPROPERTYOUTPUT_AS3_TRUE
BUILD_URLSTREAM_AS3_FALSE
BUILD_URLSTREAM_AS3_TRUE
BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_FALSE
BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_TRUE
BUILD_FILEREFERENCE_AS3_FALSE
BUILD_FILEREFERENCE_AS3_TRUE
BUILD_XMLSOCKET_AS3_FALSE
BUILD_XMLSOCKET_AS3_TRUE
BUILD_URLLOADERDATAFORMAT_AS3_FALSE
BUILD_URLLOADERDATAFORMAT_AS3_TRUE
BUILD_SOCKET_AS3_FALSE
BUILD_SOCKET_AS3_TRUE
BUILD_URLREQUESTHEADER_AS3_FALSE
BUILD_URLREQUESTHEADER_AS3_TRUE
BUILD_NETCONNECTION_AS3_FALSE
BUILD_NETCONNECTION_AS3_TRUE
BUILD_URLLOADER_AS3_FALSE
BUILD_URLLOADER_AS3_TRUE
BUILD_URLVARIABLES_AS3_FALSE
BUILD_URLVARIABLES_AS3_TRUE
BUILD_OBJECTENCODING_AS3_FALSE
BUILD_OBJECTENCODING_AS3_TRUE
BUILD_URLREQUESTDEFAULTS_AS3_FALSE
BUILD_URLREQUESTDEFAULTS_AS3_TRUE
BUILD_NETSTREAM_AS3_FALSE
BUILD_NETSTREAM_AS3_TRUE
BUILD_FILEFILTER_AS3_FALSE
BUILD_FILEFILTER_AS3_TRUE
BUILD_URLREQUESTMETHOD_AS3_FALSE
BUILD_URLREQUESTMETHOD_AS3_TRUE
BUILD_URLREQUEST_AS3_FALSE
BUILD_URLREQUEST_AS3_TRUE
BUILD_IDYNAMICPROPERTYWRITER_AS3_FALSE
BUILD_IDYNAMICPROPERTYWRITER_AS3_TRUE
BUILD_RESPONDER_AS3_FALSE
BUILD_RESPONDER_AS3_TRUE
BUILD_FILEREFERENCELIST_AS3_FALSE
BUILD_FILEREFERENCELIST_AS3_TRUE
BUILD_IFOCUSMANAGERCOMPONENT_AS3_FALSE
BUILD_IFOCUSMANAGERCOMPONENT_AS3_TRUE
BUILD_STYLEMANAGER_AS3_FALSE
BUILD_STYLEMANAGER_AS3_TRUE
BUILD_IFOCUSMANAGERGROUP_AS3_FALSE
BUILD_IFOCUSMANAGERGROUP_AS3_TRUE
BUILD_FOCUSMANAGER_AS3_FALSE
BUILD_FOCUSMANAGER_AS3_TRUE
BUILD_IFOCUSMANAGER_AS3_FALSE
BUILD_IFOCUSMANAGER_AS3_TRUE
BUILD_WIPE_AS3_FALSE
BUILD_WIPE_AS3_TRUE
BUILD_TRANSITIONMANAGER_AS3_FALSE
BUILD_TRANSITIONMANAGER_AS3_TRUE
BUILD_PHOTO_AS3_FALSE
BUILD_PHOTO_AS3_TRUE
BUILD_TWEENEVENT_AS3_FALSE
BUILD_TWEENEVENT_AS3_TRUE
BUILD_FLY_AS3_FALSE
BUILD_FLY_AS3_TRUE
BUILD_IRIS_AS3_FALSE
BUILD_IRIS_AS3_TRUE
BUILD_ZOOM_AS3_FALSE
BUILD_ZOOM_AS3_TRUE
BUILD_TWEEN_AS3_FALSE
BUILD_TWEEN_AS3_TRUE
BUILD_FADE_AS3_FALSE
BUILD_FADE_AS3_TRUE
BUILD_TRANSITION_AS3_FALSE
BUILD_TRANSITION_AS3_TRUE
BUILD_SQUEEZE_AS3_FALSE
BUILD_SQUEEZE_AS3_TRUE
BUILD_BLINDS_AS3_FALSE
BUILD_BLINDS_AS3_TRUE
BUILD_PIXELDISSOLVE_AS3_FALSE
BUILD_PIXELDISSOLVE_AS3_TRUE
BUILD_ROTATE_AS3_FALSE
BUILD_ROTATE_AS3_TRUE
BUILD_FILESTREAM_AS3_FALSE
BUILD_FILESTREAM_AS3_TRUE
BUILD_FILEMODE_AS3_FALSE
BUILD_FILEMODE_AS3_TRUE
BUILD_FILE_AS3_FALSE
BUILD_FILE_AS3_TRUE
BUILD_DICTIONARY_AS3_FALSE
BUILD_DICTIONARY_AS3_TRUE
BUILD_TIMER_AS3_FALSE
BUILD_TIMER_AS3_TRUE
BUILD_ENDIAN_AS3_FALSE
BUILD_ENDIAN_AS3_TRUE
BUILD_IDATAOUTPUT_AS3_FALSE
BUILD_IDATAOUTPUT_AS3_TRUE
BUILD_COMPRESSIONALGORITHM_AS3_FALSE
BUILD_COMPRESSIONALGORITHM_AS3_TRUE
BUILD_PROXY_AS3_FALSE
BUILD_PROXY_AS3_TRUE
BUILD_BYTEARRAY_AS3_FALSE
BUILD_BYTEARRAY_AS3_TRUE
BUILD_IEXTERNALIZABLE_AS3_FALSE
BUILD_IEXTERNALIZABLE_AS3_TRUE
BUILD_IDATAINPUT_AS3_FALSE
BUILD_IDATAINPUT_AS3_TRUE
BUILD_REVOCATIONCHECKSETTINGS_AS3_FALSE
BUILD_REVOCATIONCHECKSETTINGS_AS3_TRUE
BUILD_IURIDEREFERENCER_AS3_FALSE
BUILD_IURIDEREFERENCER_AS3_TRUE
BUILD_SIGNATURESTATUS_AS3_FALSE
BUILD_SIGNATURESTATUS_AS3_TRUE
BUILD_XMLSIGNATUREVALIDATOR_AS3_FALSE
BUILD_XMLSIGNATUREVALIDATOR_AS3_TRUE
BUILD_SIGNERTRUSTSETTINGS_AS3_FALSE
BUILD_SIGNERTRUSTSETTINGS_AS3_TRUE
BUILD_EXTERNALINTERFACE_AS3_FALSE
BUILD_EXTERNALINTERFACE_AS3_TRUE
BUILD_INVALIDATIONTYPE_AS3_FALSE
BUILD_INVALIDATIONTYPE_AS3_TRUE
BUILD_UICOMPONENT_AS3_FALSE
BUILD_UICOMPONENT_AS3_TRUE
BUILD_EXTENSIONS_FALSE
BUILD_EXTENSIONS_TRUE
BUILD_DBUS_EXT_FALSE
BUILD_DBUS_EXT_TRUE
BUILD_LIRC_EXT_FALSE
BUILD_LIRC_EXT_TRUE
BUILD_GTK_EXT_FALSE
BUILD_GTK_EXT_TRUE
BUILD_LAUNCHER_EXT_FALSE
BUILD_LAUNCHER_EXT_TRUE
BUILD_MYSQL_EXT_FALSE
BUILD_MYSQL_EXT_TRUE
BUILD_FILEIO_EXT_FALSE
BUILD_FILEIO_EXT_TRUE
BUILD_DEJAGNU_EXT_FALSE
BUILD_DEJAGNU_EXT_TRUE
MYSQL_LIBS
MYSQL_CFLAGS
mconfig
DBUS_LIBS
DBUS_CFLAGS
EXTENSIONS_LIST
USE_LIRC_FALSE
USE_LIRC_TRUE
HAVE_CSOUND_FALSE
HAVE_CSOUND_TRUE
CSOUND
HAVE_PERL_FALSE
HAVE_PERL_TRUE
PERL
HAVE_VAAPI_X11_FALSE
HAVE_VAAPI_X11_TRUE
HAVE_VAAPI_GLX_FALSE
HAVE_VAAPI_GLX_TRUE
HAVE_VAAPI_FALSE
HAVE_VAAPI_TRUE
USE_VAAPI_FALSE
USE_VAAPI_TRUE
BUILD_OMAP_FALSE
BUILD_OMAP_TRUE
LIBVA_GLX_LIBS
LIBVA_GLX_CFLAGS
LIBVA_GLX_CONFIG
LIBVA_X11_LIBS
LIBVA_X11_CFLAGS
LIBVA_X11_CONFIG
LIBVA_LIBS
LIBVA_CFLAGS
LIBVA_CONFIG
AGG_LIBS
AGG_CFLAGS
CAIRO_LIBS
CAIRO_CFLAGS
CAIRO_CONFIG
BUILD_CAIRO_RENDERER_FALSE
BUILD_CAIRO_RENDERER_TRUE
BUILD_AGG_RENDERER_FALSE
BUILD_AGG_RENDERER_TRUE
BUILD_OGL_RENDERER_FALSE
BUILD_OGL_RENDERER_TRUE
BUILD_GLES_RENDERER_FALSE
BUILD_GLES_RENDERER_TRUE
BUILD_OVG_RENDERER_FALSE
BUILD_OVG_RENDERER_TRUE
ENABLE_INPUT_DEVICES_FALSE
ENABLE_INPUT_DEVICES_TRUE
ENABLE_INPUT_EVENTS_FALSE
ENABLE_INPUT_EVENTS_TRUE
ENABLE_MOUSE_FALSE
ENABLE_MOUSE_TRUE
ENABLE_TSLIB_FALSE
ENABLE_TSLIB_TRUE
TS_LIBS
TS_CFLAGS
TS_CONFIG
FFMPEG_LIBS
FFMPEG_CFLAGS
LIBAVCODEC_IDENT
MEDIA_CONFIG
FAKEFB
PKG_CONFIG
CROSS_COMPILING_FALSE
CROSS_COMPILING_TRUE
DLPREOPEN
DLOPEN
HAIKU_LIBS
SECURITY_LIST
STATISTICS_LIST
DEJAGNU
ENABLE_STATIC_FALSE
ENABLE_STATIC_TRUE
ENABLE_SHARED_FALSE
ENABLE_SHARED_TRUE
LIBTOOL_DEPS
LTDLOPEN
LT_CONFIG_H
CONVENIENCE_LTDL_FALSE
CONVENIENCE_LTDL_TRUE
INSTALL_LTDL_FALSE
INSTALL_LTDL_TRUE
ARGZ_H
sys_symbol_underscore
LIBADD_DL
LT_DLPREOPEN
LIBADD_DLD_LINK
LIBADD_SHL_LOAD
LIBADD_DLOPEN
LT_DLLOADERS
CXXCPP
CPP
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
lt_ECHO
RANLIB
AR
LN_S
NM
ac_ct_DUMPBIN
DUMPBIN
LIBTOOL
OBJDUMP
DLLTOOL
AS
INCLTDL
LTDLINCL
LTDLDEPS
LIBLTDL
LIBLTDL1_FALSE
LIBLTDL1_TRUE
LIBLTDL2_FALSE
LIBLTDL2_TRUE
ANDROID_FALSE
ANDROID_TRUE
ANDROID_NDK
HAS_GETTEXT_FALSE
HAS_GETTEXT_TRUE
POSUB
LTLIBINTL
LIBINTL
INTLLIBS
LTLIBICONV
LIBICONV
INTL_MACOSX_LIBS
LD
FGREP
EGREP
GREP
SED
CONFIG_RPATH
MSGMERGE
XGETTEXT
GMSGFMT
MSGFMT
USE_NLS
MKINSTALLDIRS
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
BUILDDATE
HAIKU_FALSE
HAIKU_TRUE
WIN32_FALSE
WIN32_TRUE
PLUGIN_LINK_UNDEFINED_FALSE
PLUGIN_LINK_UNDEFINED_TRUE
DEFAULT_SOL_SAFEDIR
DEFAULT_STREAMS_TIMEOUT
DEFAULT_FLASH_SYSTEM_OS
DEFAULT_FLASH_PLATFORM_ID
DEFAULT_FLASH_REV_NUMBER
DEFAULT_FLASH_MINOR_VERSION
DEFAULT_FLASH_MAJOR_VERSION
LIBEXT
LIBPRE
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
ac_ct_CXX
CXXFLAGS
CXX
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_dependency_tracking
enable_silent_rules
enable_maintainer_mode
enable_nls
with_gnu_ld
enable_rpath
with_libiconv_prefix
with_libintl_prefix
with_top_level
with_sysroot
with_android
with_cpu
enable_static
enable_shared
with_pic
enable_fast_install
enable_libtool_lock
with_included_ltdl
with_ltdl_include
with_ltdl_lib
enable_ltdl_install
with_statistics
with_security
enable_gui
with_fakefb
enable_sound
enable_media
with_ffmpeg_incl
with_ffmpeg_lib
enable_input
with_ts_incl
with_ts_lib
enable_renderer
with_pixelformat
with_cairo_incl
with_cairo_lib
with_agg_incl
with_agg_lib
enable_hwaccel
with_libva_incl
with_libva_lib
with_libva_x11_incl
with_libva_x11_lib
with_libva_glx_incl
with_libva_glx_lib
enable_lirc
enable_extensions
with_dbus_incl
with_dbus_lib
with_mysql_incl
with_mysql_lib
with_classfile
with_soldir
enable_avm2
with_lckey
enable_python
with_python_incl
with_python_lib
enable_jemalloc
enable_debugger
enable_fps_debug
enable_allstatic
with_shm
enable_menus
enable_swftree
enable_testsuite
enable_write
enable_sa_launcher
enable_cygnal
enable_cgibins
enable_i810_lod_bias
enable_doublebuf
enable_offscreen
enable_ssh
with_ssh_incl
with_ssh_lib
enable_ssl
with_cert
with_pem
with_ssl_incl
with_ssl_lib
with_gtk2_incl
with_gtk2_lib
with_pango_incl
with_pango_lib
with_atk_incl
with_atk_lib
enable_glext
with_glext_incl
with_glext_lib
with_hildon_incl
with_hildon_lib
enable_kparts3
enable_kparts4
enable_npapi
enable_plugins
with_plugins_install
with_npapi_install
with_plugindir
with_npapi_plugindir
with_x11_incl
with_x11_lib
with_nspr_incl
with_nspr_lib
with_z_incl
with_z_lib
with_jpeg_incl
with_jpeg_lib
with_libpng_incl
with_libpng_lib
with_png_incl
with_png_lib
with_gif_incl
with_gif_lib
with_ungif_incl
with_ungif_lib
with_dejagnu_incl
with_speex_incl
with_speex_lib
with_speexdsp_incl
with_speexdsp_lib
with_freetype_incl
with_freetype_lib
with_fontconfig_incl
with_fontconfig_lib
with_ming
with_ming_incl
with_ming_lib
with_swfdec_testsuite
enable_http_testsuite
enable_red5_testing
with_swfmill
with_mtasc
with_mtasc_classpath
with_haxe
with_haxe_classpath
with_sdl_incl
with_sdl_lib
with_qt3_incl
with_qt3_lib
with_kde3_incl
with_kde3_prefix
with_kde3_lib
with_kde3_plugindir
with_kde3_servicesdir
with_kde3_configdir
with_kde3_appsdatadir
with_qt4_incl
with_qt4_lib
with_kde4_incl
with_kde4_prefix
with_kde4_lib
with_kde4_plugindir
with_kde4_servicesdir
with_kde4_configdir
with_kde_appsdatadir
with_glib_incl
with_glib_lib
with_EGL_incl
with_EGL_lib
with_gles_includes
with_gles_lib
with_OpenVG_incl
with_OpenVG_lib
with_opengl_includes
with_opengl_lib
enable_ghelp
with_Xft_incl
with_Xft_lib
with_expat_incl
with_expat_lib
with_gstreamer_plugins_base_incl
with_gstreamer_plugins_base_lib
with_gstreamer_app_incl
with_gstreamer_app_lib
with_gstreamer_incl
with_gstreamer_lib
with_gstpbutils_incl
with_gstpbutils_lib
with_fltk2_incl
with_fltk2_lib
enable_docbook
with_docbook_styles
with_curl_incl
with_curl_lib
enable_visibility
enable_pch
with_boost_incl
with_boost_lib
enable_strict
enable_cassert
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CXX
CXXFLAGS
CCC
CPP
CXXCPP
PKG_CONFIG
PYGTK_CFLAGS
PYGTK_LIBS'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information."
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures gnash 0.8.8 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/gnash]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of gnash 0.8.8:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --enable-maintainer-mode  enable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
  --disable-nls           do not use Native Language Support
  --disable-rpath         do not hardcode runtime library paths
  --enable-static[=PKGS]  build static libraries [default=no]
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-ltdl-install   install libltdl
  --enable-gui=           Enable support for the specified GUI toolkits
                          (default=gtk,kde4)
  --enable-sound=sdl|ahi|mkit
                          Use the specified sound handler (default=sdl)
  --enable-media=handler  Enable media handling support using the specified
                          handler: gst, ffmpeg or none (no sound) [gst]
  --enable-input=         Enable support for the specified input devices for
                          the framebuffer GUI
                          (default=ps2mouse|ps2keyboard|events|touchscreen)
  --enable-renderer=      Enable support for the specified renderers
                          (ogl|gles|cairo|agg|all, default=all)
  --enable-hwaccel        Specify which accleration to support to enable
                          (none,vaapi,omap)
  --enable-lirc           Disable support for Lirc
  --enable-extensions=    Specify which extensions to build
  --enable-avm2           Enable support for AS3
  --enable-python         Enable python for the python wrapper
  --enable-jemalloc       Enable jemalloc instead of system malloc
  --enable-debugger       Enable the Flash debugger
  --enable-fps-debug      Enable FPS debugging code
  --enable-allstatic      Enable using static libraries when possible for
                          dependencies
  --disable-menus         Disable the GUI menus
  --disable-swftree       Disable showing SWF properties
  --disable-testsuite     Disable the testsuite, maintainers option only
  --enable-write          Makes the Mozilla plugin write the currently playing
                          SWF movie to /tmp.
  --disable-sa-launcher   Drops support for the NPAPI plugin writing of
                          standalone executable launcher scripts for the
                          currently playing SWF movie to /tmp.
  --enable-cygnal         Enable building of the Cygnal server
  --enable-cgibins        Enable building of the CGIs for Cygnal
  --enable-i810-lod-bias  Enable fix for Intel 810 LOD bias problem
  --enable-doublebuf      Enable support for double buffering when rendering
  --enable-offscreen      Enable support for rendering offscreen
  --enable-ssh            Enable using SSH for network authentication
  --enable-ssl            Enable using OpenSSL directly
  --disable-glext         Disable support for GTK OpenGL extension
  --disable-kparts3       Disable support for Konqueror 3.x plugin (default:
                          enabled if kde3 gui is)
  --disable-kparts4       Disble support for Konqueror 4.x plugin (default:
                          enabled if kde4 gui is)
  --disable-npapi         Disable NPAPI plugin build (default: enabled if gtk
                          or kde4 gui is)
  --disable-plugins       Disable all browser plugins from building
                          (default=no)
	    --enable-http-testsuite=<baseurl>
                          Enable http based testsuite (default url is
                          http://www.gnashdev.org/testcases)
	    --enable-red5-testing=<host>
                          Enable red5 based testing (default host is
                          localhost)
  --enable-ghelp          Enable support for the GNOME help system
  --enable-docbook        Enable support for building documentation with "make
                          html" and "make pdf"
  --enable-visibility     Use ELF visibility attributes
  --enable-pch            Enable precompiled header support
  --enable-strict         Accept only standards compliant code (GCC only)
  --disable-cassert       Disable assertion checking

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  --without-libintl-prefix     don't search for libintl in includedir and libdir
  --with-top-level        top level directory for cross compiling files
  --with-sysroot          system root directory for cross compiling
  --with-android          directory where android NDK is installed
  --with-cpu              specify a cpu when cross compiling.
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-included-ltdl    use the GNU ltdl sources included here
  --with-ltdl-include=DIR use the ltdl headers installed in DIR
  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
  --with-statistics=      Specify which statistics features to enable
  --with-security=        Specify which security features to enable
  --with-fakefb           specify a file to be mapped instead of a real
                          framebuffer
  --with-ffmpeg-incl      directory where avcodec.h is
  --with-ffmpeg-lib       directory where ffmpeg libraries are
  --with-ts-incl          directory where tslib.h is
  --with-ts-lib           directory where ts library is
  --with-pixelformat=     Use the specified pixel format for AGG (default=all)
  --with-cairo-incl       directory where cairo.h is
  --with-cairo-lib        directory where cairo library is
  --with-agg-incl         directory where AGG headers are
  --with-agg-lib          directory where AGG libraries are
  --with-libva-incl       directory where va/va.h is
  --with-libva-lib        directory where libva library is
  --with-libva_x11-incl   directory where va/va_x11.h is
  --with-libva_x11-lib    directory where libva_x11 library is
  --with-libva_glx-incl   directory where va/va_glx.h is
  --with-libva_glx-lib    directory where libva_glx library is
  --with-dbus-incl        directory where libdbus header is
  --with-dbus-lib         directory where dbus library is
  --with-mysql-incl       directory where mysql headers are
  --with-mysql-lib        directory where mysql libraries are
  --with-classfile=       Text file with the list of ActionScript classes to
                          build. Default is build all
  --with-soldir           directory for .sol files
  --with-lckey            shared memory key for your system
  --with-python-incl      directory where libpython header is (w/out the
                          python/ prefix)
  --with-python-lib       directory where python library is
  --with-shm              specify a shared memory type.
  --with-ssh-incl         directory where libssh/libssh.h is
  --with-ssh-lib          directory where ssh library is
  --with-cert             cert file for SSL
  --with-pe               pem file for SSL
  --with-ssl-incl         directory where openssl/ssl.h is
  --with-ssl-lib          directory where ssl library is
  --with-gtk2-incl        directory where libgtk2 header is
  --with-gtk2-lib         directory where gtk2 library is
  --with-pango-incl       directory where libpango header is
  --with-pango-lib        directory where pango library is
  --with-atk-incl         directory where atk/atk.h is
  --with-atk-lib          directory where atk library is
  --with-glext-incl       directory where libglext header is
  --with-glext-lib        directory where gtkglext library is
  --with-hildon-incl      directory where libhildon header is
  --with-hildon-lib       directory where hildon library is
  --with-plugins-install=system|user|prefix
                          Policy for plugins install. Default: user.
  --with-npapi-install=system|user|prefix
                          Policy for NPAPI plugin install. Default: user.

  --with-npapi-plugindir=DIR
                          Directory to install NPAPI plugin in
  --with-x11-incl         Directory where x11 header is
  --with-x11-lib          directory where x11 library is
  --with-nspr-incl        directory where nspr.h is
  --with-nspr-lib         directory where nspr library is
  --with-z-incl           directory where zlib.h is
  --with-z-lib            directory where z library is
  --with-jpeg-incl        directory where jpeglib.h is
  --with-jpeg-lib         directory where jpeg library is
  --with-libpng-incl      directory where png.h is
  --with-libpng-lib       directory where libpng library is
  --with-png-incl         directory where png.h is
  --with-png-lib          directory where png library is
  --with-gif-incl         directory where gif_lib.h is
  --with-gif-lib          directory where gif library is
  --with-ungif-incl       directory where gif_lib.h is
  --with-ungif-lib        directory where ungif library is
  --with-dejagnu-incl     directory where dejagnu.h is
  --with-speex-incl       directory where speex.h is
  --with-speex-lib        directory where speex library is
  --with-speexdsp-incl    directory where speex_resampler.h is
  --with-speexdsp-lib     directory where speexdsp library is
  --with-freetype-incl    directory where libfreetype header is (w/out the
                          freetype/ prefix)
  --with-freetype-lib     directory where freetype library is
  --with-fontconfig-incl  directory where fontconfig/fontconfig.h is
  --with-fontconfig-lib   directory where fontconfig library is
  --with-ming=<ming-config>    Path to the ming-config command
  --with-ming-incl        Directory where Ming header is
  --with-ming-lib         directory where ming library is
  --with-swfdec-testsuite directory where swfdec testsuite (the 'test' dir) is
  --with-swfmill=<path>   Path to the swfmill executable
  --with-mtasc=<path>     Path to the mtasc executable
  --with-mtasc-classpath=<path>
                          CLASSPATH for mtasc
  --with-haxe=<path>      Path to the haxe executable
  --with-haxe-classpath=<path>
                          CLASSPATH for haxe
  --with-sdl-incl         directory where sdl header is
  --with-sdl-lib          directory where sdl library is
  --with-qt3-incl         directory where QT 3.x headers are
  --with-qt3-lib          directory where QT 3.x libraries are
  --with-kde3-incl        directory where KDE 3.x headers are
  --with-kde3-prefix      Prefix for KDE plugin, like /usr
  --with-kde3-lib         directory where KDE 3.x libraries are
  --with-kde3-plugindir=DIR
                          Directory to install KDE 3.x plugin in
  --with-kde3-servicesdir=DIR
                          Directory to install KDE 3.x plugin in
  --with-kde3-configdir=DIR
                          Directory to install KDE 3.x configfile in
  --with-kde3-appsdatadir=DIR
                          Directory to install KDE 3.x data in
  --with-qt4-incl         directory where QT 4.x headers are
  --with-qt4-lib          directory where QT 4.x libraries are
  --with-kde4-incl        directory where KDE 4.x headers are
  --with-kde4-prefix      Prefix for KDE plugin, like /usr
  --with-kde4-lib         directory where KDE 4.x libraries are
  --with-kde4-plugindir=DIR
                          Directory to install KDE 4.x plugin in
  --with-kde4-servicesdir=DIR
                          Directory to install KDE 4.x plugin in
  --with-kde4-configdir=DIR
                          Directory to install KDE KDE 4.x configfile in
  --with-kde-appsdatadir=DIR
                          Directory to install KDE 4.x data in
  --with-glib-incl        directory where libglib header is
  --with-glib-lib         directory where glib library is
  --with-EGL-incl         directory where EGL/egl.h is
  --with-EGL-lib          directory where EGL library is
  --with-gles-includes    directory where OpenGL-ES headers are
  --with-gles-lib         directory where OpenGL-ES libraries are
  --with-OpenVG-incl      directory where vg/openvg.h is
  --with-OpenVG-lib       directory where OpenVG library is
  --with-opengl-includes  directory where OpenGL headers are
  --with-opengl-lib       directory where OpenGL libraries are
  --with-Xft-incl         directory where Xft.h is
  --with-Xft-lib          directory where Xft library is
  --with-expat-incl       directory where expat.h is
  --with-expat-lib        directory where expat library is
  --with-gstreamer_plugins_base-incl
                          directory where gst/interfaces/probeprobe.h is
  --with-gstreamer_plugins_base-lib
                          directory where gstreamer_plugins_base library is
  --with-gstreamer_app-incl
                          directory where gst/app/gstappsink.h is
  --with-gstreamer_app-lib
                          directory where gstreamer_app library is
  --with-gstreamer-incl   directory where gst/gst.h is
  --with-gstreamer-lib    directory where gstreamer library is
  --with-gstpbutils-incl  directory where gst/pbutils/install-plugins.h is
  --with-gstpbutils-lib   directory where gstpbutils library is
  --with-fltk2-incl       directory where fltk/FL_API.h is
  --with-fltk2-lib        directory where fltk2 library is
  --with-docbook-styles   directory where Docbook stylesheets are
  --with-curl-incl        directory where libcurl header is (w/out the curl/
                          prefix)
  --with-curl-lib         directory where curl library is
  --with-boost-incl       directory where boost headers are
  --with-boost-lib        directory where boost libraries are

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor
  CXXCPP      C++ preprocessor
  PKG_CONFIG  path to pkg-config utility
  PYGTK_CFLAGS
              C compiler flags for PYGTK, overriding pkg-config
  PYGTK_LIBS  linker flags for PYGTK, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
gnash configure 0.8.8
generated by GNU Autoconf 2.64

Copyright (C) 2009 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_compile

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_func

# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_decl LINENO SYMBOL VAR
# ------------------------------------
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
ac_fn_c_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
$as_echo_n "checking whether $2 is declared... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
#ifndef $2
  (void) $2;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_decl

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_type

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_mongrel

# ac_fn_cxx_try_run LINENO
# ------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_cxx_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_cxx_try_run
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gnash $as_me 0.8.8, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_config_headers="$ac_config_headers gnashconfig.h"


ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  for ac_t in install-sh install.sh shtool; do
    if test -f "$ac_dir/$ac_t"; then
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/$ac_t -c"
      break 2
    fi
  done
done
if test -z "$ac_aux_dir"; then
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if test "${ac_cv_build+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if test "${ac_cv_host+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac




ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
    rm -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
if test -z "$ac_file"; then :
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
fi
ac_exeext=$ac_cv_exeext

# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
ac_clean_files=$ac_clean_files_save
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of object files: cannot compile
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
    rm -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library file name specifics" >&5
$as_echo_n "checking for library file name specifics... " >&6; }
    LIBEXT="a"
  LIBPRE="lib"

  if test "x$LIBPRE" != "x" ; then
    if test x"$EXEEXT"	= "exe"; then
      LIBPRE="lib"
    fi
  fi

  if test "x$LIBEXT" != "x" ; then
    if test x"$EXEEXT"	= "exe"; then
      LIBEXT="dll"
    fi
  fi

  if test "x$LIBPRE" != "x" -a  "x$LIBEXE" != "x"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi





DEFAULT_FLASH_MAJOR_VERSION="10"
DEFAULT_FLASH_MINOR_VERSION="1"
DEFAULT_FLASH_REV_NUMBER="999"





cat >>confdefs.h <<_ACEOF
#define DEFAULT_FLASH_MAJOR_VERSION "${DEFAULT_FLASH_MAJOR_VERSION}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define DEFAULT_FLASH_MINOR_VERSION "${DEFAULT_FLASH_MINOR_VERSION}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define DEFAULT_FLASH_REV_NUMBER "${DEFAULT_FLASH_REV_NUMBER}"
_ACEOF


case "${host}" in
  *-apple-*)
    DEFAULT_FLASH_PLATFORM_ID="MAC"
    DEFAULT_FLASH_SYSTEM_OS="MacOS"
    ;;
  *-openbsd*)
    DEFAULT_FLASH_PLATFORM_ID="BSD"
    DEFAULT_FLASH_SYSTEM_OS="OpenBSD"
    ;;
  *-freebsd*)
    DEFAULT_FLASH_PLATFORM_ID="BSD"
    DEFAULT_FLASH_SYSTEM_OS="FreeBSD"
    ;;
  *-netbsd*)
    DEFAULT_FLASH_PLATFORM_ID="BSD"
    DEFAULT_FLASH_SYSTEM_OS="NetBSD"
    ;;
  *-linux-gnu)
    DEFAULT_FLASH_PLATFORM_ID="LNX"
    DEFAULT_FLASH_SYSTEM_OS="GNU/Linux"
    ;;
  *-linux*)
    DEFAULT_FLASH_PLATFORM_ID="LNX"
    DEFAULT_FLASH_SYSTEM_OS="Linux"
    ;;
  *-cygwin* | *-mingw* | *-pw32*)
    DEFAULT_FLASH_PLATFORM_ID="WIN"
    DEFAULT_FLASH_SYSTEM_OS="Windows"
    ;;
  *-*solaris*)
    DEFAULT_FLASH_PLATFORM_ID="SUN"
    DEFAULT_FLASH_SYSTEM_OS="Solaris"
    ;;
  *-os2*)
    DEFAULT_FLASH_PLATFORM_ID="OS2"
    DEFAULT_FLASH_SYSTEM_OS="OS/2"
    ;;
  *-sco*)
    DEFAULT_FLASH_PLATFORM_ID="SCO"
    DEFAULT_FLASH_SYSTEM_OS="SCO/Unix"
    ;;
  *-irix*)
    DEFAULT_FLASH_PLATFORM_ID="IRX"
    DEFAULT_FLASH_SYSTEM_OS="IRIX"
    ;;
  *-hpux*)
    DEFAULT_FLASH_PLATFORM_ID="HPX"
    DEFAULT_FLASH_SYSTEM_OS="HPUX"
    ;;
  *-amigaos*)
    DEFAULT_FLASH_PLATFORM_ID="OS4"
    DEFAULT_FLASH_SYSTEM_OS="AmigaOS4"
    ;;
  *-haiku*)
    DEFAULT_FLASH_PLATFORM_ID="HAIKU"
    DEFAULT_FLASH_SYSTEM_OS="Haiku"
    ;;
  *-gnu*)
    DEFAULT_FLASH_PLATFORM_ID="GNU"
    DEFAULT_FLASH_SYSTEM_OS="GNU/HURD"
    ;;
  *)
    DEFAULT_FLASH_PLATFORM_ID="UNK"
    DEFAULT_FLASH_SYSTEM_OS="Unknown"
    ;;
esac


cat >>confdefs.h <<_ACEOF
#define DEFAULT_FLASH_PLATFORM_ID "${DEFAULT_FLASH_PLATFORM_ID}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define DEFAULT_FLASH_SYSTEM_OS "${DEFAULT_FLASH_SYSTEM_OS}"
_ACEOF





DEFAULT_STREAMS_TIMEOUT=60


cat >>confdefs.h <<_ACEOF
#define DEFAULT_STREAMS_TIMEOUT ${DEFAULT_STREAMS_TIMEOUT}
_ACEOF


DEFAULT_SOL_SAFEDIR="~/.gnash/SharedObjects"


cat >>confdefs.h <<_ACEOF
#define DEFAULT_SOL_SAFEDIR "${DEFAULT_SOL_SAFEDIR}"
_ACEOF



case "${host}" in
  powerpc-apple-darwin*)

$as_echo "#define __powerpc64__ 1" >>confdefs.h

    darwin=yes

$as_echo "#define DARWIN_HOST 1" >>confdefs.h

    ;;
  *-apple-darwin*)
    darwin=yes

$as_echo "#define DARWIN_HOST 1" >>confdefs.h

    ;;
              *-openbsd*)
    bsd=yes
    openbsd=yes

$as_echo "#define OPENBSD_HOST 1" >>confdefs.h

    ;;
  *-freebsd*)
    bsd=yes
    freebsd=yes

$as_echo "#define FREEBSD_HOST 1" >>confdefs.h

    ;;
  *-netbsd*)
    bsd=yes
    netbsd=yes

$as_echo "#define NETBSD_HOST 1" >>confdefs.h

    ;;
  *-*solaris*)
    solaris=yes

$as_echo "#define SOLARIS_HOST 1" >>confdefs.h

    ;;
  *-*linux*)
    linux=yes

$as_echo "#define LINUX_HOST 1" >>confdefs.h

    ;;
  *-cygwin* | *-mingw* | *-pw32*)
    windows=yes

$as_echo "#define WIN32_HOST 1" >>confdefs.h

    ;;
  *64-*-*bsd*)
    bsd_os=bsd

$as_echo "#define WORDSIZE 64" >>confdefs.h

    ;;
  *-*amigaos*)
    amigaos4=yes

$as_echo "#define AMIGAOS4_HOST 1" >>confdefs.h

    ;;
  *-*haiku*)
    haiku=yes

$as_echo "#define HAIKU_HOST 1" >>confdefs.h

    ;;
  *-gnu*)
    gnu=yes

$as_echo "#define GNU_HOST 1" >>confdefs.h

    ;;
esac


 if test x$openbsd_os = xopenbsd; then
  PLUGIN_LINK_UNDEFINED_TRUE=
  PLUGIN_LINK_UNDEFINED_FALSE='#'
else
  PLUGIN_LINK_UNDEFINED_TRUE='#'
  PLUGIN_LINK_UNDEFINED_FALSE=
fi

 if test x$windows = xyes; then
  WIN32_TRUE=
  WIN32_FALSE='#'
else
  WIN32_TRUE='#'
  WIN32_FALSE=
fi

 if test x$haiku = xyes; then
  HAIKU_TRUE=
  HAIKU_FALSE='#'
else
  HAIKU_TRUE='#'
  HAIKU_FALSE=
fi


BUILDDATE="`date +%Y%m%d`"


am__api_version='1.11'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t "$srcdir/configure" conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    test -d ./--version && rmdir ./--version
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='gnash'
 VERSION='0.8.8'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'




depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi



# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
    # Check whether --enable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then :
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
else
  USE_MAINTAINER_MODE=no
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
$as_echo "$USE_MAINTAINER_MODE" >&6; }
   if test $USE_MAINTAINER_MODE = yes; then
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
fi

  MAINT=$MAINTAINER_MODE_TRUE


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi




    # Extract the first word of "mkinstalldirs", so it can be a program name with args.
set dummy mkinstalldirs; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MKINSTALLDIRS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MKINSTALLDIRS in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MKINSTALLDIRS="$MKINSTALLDIRS" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MKINSTALLDIRS="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MKINSTALLDIRS=$ac_cv_path_MKINSTALLDIRS
if test -n "$MKINSTALLDIRS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLDIRS" >&5
$as_echo "$MKINSTALLDIRS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


        MKINSTALLDIRS=
  if test -z "$MKINSTALLDIRS"; then
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
$as_echo_n "checking whether NLS is requested... " >&6; }
    # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls; USE_NLS=$enableval
else
  USE_NLS=yes
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
$as_echo "$USE_NLS" >&6; }






# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
  ac_executable_p="test -x"
else
  ac_executable_p="test -f"
fi
rm -f conf$$.file

# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MSGFMT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$MSGFMT" in
  [\\/]* | ?:[\\/]*)
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
    ;;
  *)
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH; do
      IFS="$ac_save_IFS"
      test -z "$ac_dir" && ac_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
            break 2
          fi
        fi
      done
    done
    IFS="$ac_save_IFS"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
    ;;
esac
fi
MSGFMT="$ac_cv_path_MSGFMT"
if test "$MSGFMT" != ":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
$as_echo "$MSGFMT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  # Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GMSGFMT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
esac
fi
GMSGFMT=$ac_cv_path_GMSGFMT
if test -n "$GMSGFMT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
$as_echo "$GMSGFMT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
  ac_executable_p="test -x"
else
  ac_executable_p="test -f"
fi
rm -f conf$$.file

# Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$XGETTEXT" in
  [\\/]* | ?:[\\/]*)
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
    ;;
  *)
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH; do
      IFS="$ac_save_IFS"
      test -z "$ac_dir" && ac_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
            break 2
          fi
        fi
      done
    done
    IFS="$ac_save_IFS"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
    ;;
esac
fi
XGETTEXT="$ac_cv_path_XGETTEXT"
if test "$XGETTEXT" != ":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
$as_echo "$XGETTEXT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

    rm -f messages.po


# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
  ac_executable_p="test -x"
else
  ac_executable_p="test -f"
fi
rm -f conf$$.file

# Extract the first word of "msgmerge", so it can be a program name with args.
set dummy msgmerge; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$MSGMERGE" in
  [\\/]* | ?:[\\/]*)
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
    ;;
  *)
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH; do
      IFS="$ac_save_IFS"
      test -z "$ac_dir" && ac_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
            break 2
          fi
        fi
      done
    done
    IFS="$ac_save_IFS"
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
    ;;
esac
fi
MSGMERGE="$ac_cv_path_MSGMERGE"
if test "$MSGMERGE" != ":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
$as_echo "$MSGMERGE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test "$GMSGFMT" != ":"; then
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
      : ;
    else
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
      GMSGFMT=":"
    fi
  fi

      if test "$XGETTEXT" != ":"; then
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
      : ;
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
      XGETTEXT=":"
    fi
        rm -f messages.po
  fi

  ac_config_commands="$ac_config_commands default-1"



      if test "X$prefix" = "XNONE"; then
    acl_final_prefix="$ac_default_prefix"
  else
    acl_final_prefix="$prefix"
  fi
  if test "X$exec_prefix" = "XNONE"; then
    acl_final_exec_prefix='${prefix}'
  else
    acl_final_exec_prefix="$exec_prefix"
  fi
  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  prefix="$acl_save_prefix"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if test "${ac_cv_path_FGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"


test -z "$GREP" && GREP=grep



















# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld










  # Extract the first word of "config.rpath", so it can be a program name with args.
set dummy config.rpath; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CONFIG_RPATH+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $CONFIG_RPATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CONFIG_RPATH="$CONFIG_RPATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CONFIG_RPATH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_CONFIG_RPATH" && ac_cv_path_CONFIG_RPATH="config.rpath"
  ;;
esac
fi
CONFIG_RPATH=$ac_cv_path_CONFIG_RPATH
if test -n "$CONFIG_RPATH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_RPATH" >&5
$as_echo "$CONFIG_RPATH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


                                                 ac_aux_dir=$srcdir
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
$as_echo_n "checking for shared library run path origin... " >&6; }
if test "${acl_cv_rpath+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
    ${CONFIG_SHELL-/bin/sh} "$srcdir/config.rpath" "$host" > conftest.sh
    . ./conftest.sh
    rm -f ./conftest.sh
    acl_cv_rpath=done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
$as_echo "$acl_cv_rpath" >&6; }
  wl="$acl_cv_wl"
  libext="$acl_cv_libext"
  shlibext="$acl_cv_shlibext"
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  hardcode_direct="$acl_cv_hardcode_direct"
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
    # Check whether --enable-rpath was given.
if test "${enable_rpath+set}" = set; then :
  enableval=$enable_rpath; :
else
  enable_rpath=yes
fi








    use_additional=yes

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"

    eval additional_includedir=\"$includedir\"
    eval additional_libdir=\"$libdir\"

  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"


# Check whether --with-libiconv-prefix was given.
if test "${with_libiconv_prefix+set}" = set; then :
  withval=$with_libiconv_prefix;
    if test "X$withval" = "Xno"; then
      use_additional=no
    else
      if test "X$withval" = "X"; then

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"

          eval additional_includedir=\"$includedir\"
          eval additional_libdir=\"$libdir\"

  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

      else
        additional_includedir="$withval/include"
        additional_libdir="$withval/lib"
      fi
    fi

fi

      LIBICONV=
  LTLIBICONV=
  INCICONV=
  rpathdirs=
  ltrpathdirs=
  names_already_handled=
  names_next_round='iconv '
  while test -n "$names_next_round"; do
    names_this_round="$names_next_round"
    names_next_round=
    for name in $names_this_round; do
      already_handled=
      for n in $names_already_handled; do
        if test "$n" = "$name"; then
          already_handled=yes
          break
        fi
      done
      if test -z "$already_handled"; then
        names_already_handled="$names_already_handled $name"
                        uppername="`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`"
        eval value=\"\$HAVE_LIB$uppername\"
        if test -n "$value"; then
          if test "$value" = yes; then
            eval value=\"\$LIB$uppername\"
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
            eval value=\"\$LTLIB$uppername\"
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
          else
                                    :
          fi
        else
                              found_dir=
          found_la=
          found_so=
          found_a=
          if test $use_additional = yes; then
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
              found_dir="$additional_libdir"
              found_so="$additional_libdir/lib$name.$shlibext"
              if test -f "$additional_libdir/lib$name.la"; then
                found_la="$additional_libdir/lib$name.la"
              fi
            else
              if test -f "$additional_libdir/lib$name.$libext"; then
                found_dir="$additional_libdir"
                found_a="$additional_libdir/lib$name.$libext"
                if test -f "$additional_libdir/lib$name.la"; then
                  found_la="$additional_libdir/lib$name.la"
                fi
              fi
            fi
          fi
          if test "X$found_dir" = "X"; then
            for x in $LDFLAGS $LTLIBICONV; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

              case "$x" in
                -L*)
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
                    found_dir="$dir"
                    found_so="$dir/lib$name.$shlibext"
                    if test -f "$dir/lib$name.la"; then
                      found_la="$dir/lib$name.la"
                    fi
                  else
                    if test -f "$dir/lib$name.$libext"; then
                      found_dir="$dir"
                      found_a="$dir/lib$name.$libext"
                      if test -f "$dir/lib$name.la"; then
                        found_la="$dir/lib$name.la"
                      fi
                    fi
                  fi
                  ;;
              esac
              if test "X$found_dir" != "X"; then
                break
              fi
            done
          fi
          if test "X$found_dir" != "X"; then
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
            if test "X$found_so" != "X"; then
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
              else
                                                                                haveit=
                for x in $ltrpathdirs; do
                  if test "X$x" = "X$found_dir"; then
                    haveit=yes
                    break
                  fi
                done
                if test -z "$haveit"; then
                  ltrpathdirs="$ltrpathdirs $found_dir"
                fi
                                if test "$hardcode_direct" = yes; then
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
                else
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
                                                            haveit=
                    for x in $rpathdirs; do
                      if test "X$x" = "X$found_dir"; then
                        haveit=yes
                        break
                      fi
                    done
                    if test -z "$haveit"; then
                      rpathdirs="$rpathdirs $found_dir"
                    fi
                  else
                                                                                haveit=
                    for x in $LDFLAGS $LIBICONV; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                      if test "X$x" = "X-L$found_dir"; then
                        haveit=yes
                        break
                      fi
                    done
                    if test -z "$haveit"; then
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
                    fi
                    if test "$hardcode_minus_L" != no; then
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
                    else
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
                    fi
                  fi
                fi
              fi
            else
              if test "X$found_a" != "X"; then
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
              else
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
              fi
            fi
                        additional_includedir=
            case "$found_dir" in
              */lib | */lib/)
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
                additional_includedir="$basedir/include"
                ;;
            esac
            if test "X$additional_includedir" != "X"; then
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
                haveit=
                if test "X$additional_includedir" = "X/usr/local/include"; then
                  if test -n "$GCC"; then
                    case $host_os in
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
                    esac
                  fi
                fi
                if test -z "$haveit"; then
                  for x in $CPPFLAGS $INCICONV; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                    if test "X$x" = "X-I$additional_includedir"; then
                      haveit=yes
                      break
                    fi
                  done
                  if test -z "$haveit"; then
                    if test -d "$additional_includedir"; then
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
                    fi
                  fi
                fi
              fi
            fi
                        if test -n "$found_la"; then
                                                        save_libdir="$libdir"
              case "$found_la" in
                */* | *\\*) . "$found_la" ;;
                *) . "./$found_la" ;;
              esac
              libdir="$save_libdir"
                            for dep in $dependency_libs; do
                case "$dep" in
                  -L*)
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
                      haveit=
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
                        if test -n "$GCC"; then
                          case $host_os in
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
                          esac
                        fi
                      fi
                      if test -z "$haveit"; then
                        haveit=
                        for x in $LDFLAGS $LIBICONV; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                          if test "X$x" = "X-L$additional_libdir"; then
                            haveit=yes
                            break
                          fi
                        done
                        if test -z "$haveit"; then
                          if test -d "$additional_libdir"; then
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
                          fi
                        fi
                        haveit=
                        for x in $LDFLAGS $LTLIBICONV; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                          if test "X$x" = "X-L$additional_libdir"; then
                            haveit=yes
                            break
                          fi
                        done
                        if test -z "$haveit"; then
                          if test -d "$additional_libdir"; then
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
                          fi
                        fi
                      fi
                    fi
                    ;;
                  -R*)
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
                    if test "$enable_rpath" != no; then
                                                                  haveit=
                      for x in $rpathdirs; do
                        if test "X$x" = "X$dir"; then
                          haveit=yes
                          break
                        fi
                      done
                      if test -z "$haveit"; then
                        rpathdirs="$rpathdirs $dir"
                      fi
                                                                  haveit=
                      for x in $ltrpathdirs; do
                        if test "X$x" = "X$dir"; then
                          haveit=yes
                          break
                        fi
                      done
                      if test -z "$haveit"; then
                        ltrpathdirs="$ltrpathdirs $dir"
                      fi
                    fi
                    ;;
                  -l*)
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
                    ;;
                  *.la)
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
                    ;;
                  *)
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
                    ;;
                esac
              done
            fi
          else
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
          fi
        fi
      fi
    done
  done
  if test "X$rpathdirs" != "X"; then
    if test -n "$hardcode_libdir_separator"; then
                        alldirs=
      for found_dir in $rpathdirs; do
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
      done
            acl_save_libdir="$libdir"
      libdir="$alldirs"
      eval flag=\"$hardcode_libdir_flag_spec\"
      libdir="$acl_save_libdir"
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
    else
            for found_dir in $rpathdirs; do
        acl_save_libdir="$libdir"
        libdir="$found_dir"
        eval flag=\"$hardcode_libdir_flag_spec\"
        libdir="$acl_save_libdir"
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
      done
    fi
  fi
  if test "X$ltrpathdirs" != "X"; then
            for found_dir in $ltrpathdirs; do
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
    done
  fi



















    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  gt_save_CPPFLAGS="$CPPFLAGS"
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
     gt_save_LIBS="$LIBS"
     LIBS="$LIBS -framework CoreFoundation"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <CFPreferences.h>
int
main ()
{
CFPreferencesCopyAppValue(NULL, NULL)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  gt_cv_func_CFPreferencesCopyAppValue=yes
else
  gt_cv_func_CFPreferencesCopyAppValue=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     CPPFLAGS="$gt_save_CPPFLAGS"
     LIBS="$gt_save_LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then

$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h

  fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  gt_save_CPPFLAGS="$CPPFLAGS"
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
     gt_save_LIBS="$LIBS"
     LIBS="$LIBS -framework CoreFoundation"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <CFLocale.h>
int
main ()
{
CFLocaleCopyCurrent();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  gt_cv_func_CFLocaleCopyCurrent=yes
else
  gt_cv_func_CFLocaleCopyCurrent=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     CPPFLAGS="$gt_save_CPPFLAGS"
     LIBS="$gt_save_LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then

$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h

  fi
  INTL_MACOSX_LIBS=
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
$as_echo_n "checking whether NLS is requested... " >&6; }
    # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls; USE_NLS=$enableval
else
  USE_NLS=yes
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
$as_echo "$USE_NLS" >&6; }




  LIBINTL=
  LTLIBINTL=
  POSUB=

    if test "$USE_NLS" = "yes"; then
    gt_use_preinstalled_gnugettext=no






        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
$as_echo_n "checking for GNU gettext in libc... " >&6; }
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <libintl.h>
extern int _nl_msg_cat_cntr;
extern int *_nl_domain_bindings;
int
main ()
{
bindtextdomain ("", "");
return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  gt_cv_func_gnugettext1_libc=yes
else
  gt_cv_func_gnugettext1_libc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }

        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then





          am_save_CPPFLAGS="$CPPFLAGS"

  for element in $INCICONV; do
    haveit=
    for x in $CPPFLAGS; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

      if test "X$x" = "X$element"; then
        haveit=yes
        break
      fi
    done
    if test -z "$haveit"; then
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
    fi
  done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
$as_echo_n "checking for iconv... " >&6; }
if test "${am_cv_func_iconv+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    am_cv_func_iconv="no, consider installing GNU libiconv"
    am_cv_lib_iconv=no
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <iconv.h>
int
main ()
{
iconv_t cd = iconv_open("","");
       iconv(cd,NULL,NULL,NULL,NULL);
       iconv_close(cd);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  am_cv_func_iconv=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    if test "$am_cv_func_iconv" != yes; then
      am_save_LIBS="$LIBS"
      LIBS="$LIBS $LIBICONV"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <iconv.h>
int
main ()
{
iconv_t cd = iconv_open("","");
         iconv(cd,NULL,NULL,NULL,NULL);
         iconv_close(cd);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  am_cv_lib_iconv=yes
        am_cv_func_iconv=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      LIBS="$am_save_LIBS"
    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
$as_echo "$am_cv_func_iconv" >&6; }
  if test "$am_cv_func_iconv" = yes; then

$as_echo "#define HAVE_ICONV 1" >>confdefs.h

  fi
  if test "$am_cv_lib_iconv" = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
$as_echo_n "checking how to link with libiconv... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
$as_echo "$LIBICONV" >&6; }
  else
            CPPFLAGS="$am_save_CPPFLAGS"
    LIBICONV=
    LTLIBICONV=
  fi






    use_additional=yes

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"

    eval additional_includedir=\"$includedir\"
    eval additional_libdir=\"$libdir\"

  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"


# Check whether --with-libintl-prefix was given.
if test "${with_libintl_prefix+set}" = set; then :
  withval=$with_libintl_prefix;
    if test "X$withval" = "Xno"; then
      use_additional=no
    else
      if test "X$withval" = "X"; then

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"

          eval additional_includedir=\"$includedir\"
          eval additional_libdir=\"$libdir\"

  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

      else
        additional_includedir="$withval/include"
        additional_libdir="$withval/lib"
      fi
    fi

fi

      LIBINTL=
  LTLIBINTL=
  INCINTL=
  rpathdirs=
  ltrpathdirs=
  names_already_handled=
  names_next_round='intl '
  while test -n "$names_next_round"; do
    names_this_round="$names_next_round"
    names_next_round=
    for name in $names_this_round; do
      already_handled=
      for n in $names_already_handled; do
        if test "$n" = "$name"; then
          already_handled=yes
          break
        fi
      done
      if test -z "$already_handled"; then
        names_already_handled="$names_already_handled $name"
                        uppername="`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`"
        eval value=\"\$HAVE_LIB$uppername\"
        if test -n "$value"; then
          if test "$value" = yes; then
            eval value=\"\$LIB$uppername\"
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
            eval value=\"\$LTLIB$uppername\"
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
          else
                                    :
          fi
        else
                              found_dir=
          found_la=
          found_so=
          found_a=
          if test $use_additional = yes; then
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
              found_dir="$additional_libdir"
              found_so="$additional_libdir/lib$name.$shlibext"
              if test -f "$additional_libdir/lib$name.la"; then
                found_la="$additional_libdir/lib$name.la"
              fi
            else
              if test -f "$additional_libdir/lib$name.$libext"; then
                found_dir="$additional_libdir"
                found_a="$additional_libdir/lib$name.$libext"
                if test -f "$additional_libdir/lib$name.la"; then
                  found_la="$additional_libdir/lib$name.la"
                fi
              fi
            fi
          fi
          if test "X$found_dir" = "X"; then
            for x in $LDFLAGS $LTLIBINTL; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

              case "$x" in
                -L*)
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
                    found_dir="$dir"
                    found_so="$dir/lib$name.$shlibext"
                    if test -f "$dir/lib$name.la"; then
                      found_la="$dir/lib$name.la"
                    fi
                  else
                    if test -f "$dir/lib$name.$libext"; then
                      found_dir="$dir"
                      found_a="$dir/lib$name.$libext"
                      if test -f "$dir/lib$name.la"; then
                        found_la="$dir/lib$name.la"
                      fi
                    fi
                  fi
                  ;;
              esac
              if test "X$found_dir" != "X"; then
                break
              fi
            done
          fi
          if test "X$found_dir" != "X"; then
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
            if test "X$found_so" != "X"; then
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
              else
                                                                                haveit=
                for x in $ltrpathdirs; do
                  if test "X$x" = "X$found_dir"; then
                    haveit=yes
                    break
                  fi
                done
                if test -z "$haveit"; then
                  ltrpathdirs="$ltrpathdirs $found_dir"
                fi
                                if test "$hardcode_direct" = yes; then
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
                else
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
                                                            haveit=
                    for x in $rpathdirs; do
                      if test "X$x" = "X$found_dir"; then
                        haveit=yes
                        break
                      fi
                    done
                    if test -z "$haveit"; then
                      rpathdirs="$rpathdirs $found_dir"
                    fi
                  else
                                                                                haveit=
                    for x in $LDFLAGS $LIBINTL; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                      if test "X$x" = "X-L$found_dir"; then
                        haveit=yes
                        break
                      fi
                    done
                    if test -z "$haveit"; then
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
                    fi
                    if test "$hardcode_minus_L" != no; then
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
                    else
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
                    fi
                  fi
                fi
              fi
            else
              if test "X$found_a" != "X"; then
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
              else
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
              fi
            fi
                        additional_includedir=
            case "$found_dir" in
              */lib | */lib/)
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
                additional_includedir="$basedir/include"
                ;;
            esac
            if test "X$additional_includedir" != "X"; then
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
                haveit=
                if test "X$additional_includedir" = "X/usr/local/include"; then
                  if test -n "$GCC"; then
                    case $host_os in
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
                    esac
                  fi
                fi
                if test -z "$haveit"; then
                  for x in $CPPFLAGS $INCINTL; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                    if test "X$x" = "X-I$additional_includedir"; then
                      haveit=yes
                      break
                    fi
                  done
                  if test -z "$haveit"; then
                    if test -d "$additional_includedir"; then
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
                    fi
                  fi
                fi
              fi
            fi
                        if test -n "$found_la"; then
                                                        save_libdir="$libdir"
              case "$found_la" in
                */* | *\\*) . "$found_la" ;;
                *) . "./$found_la" ;;
              esac
              libdir="$save_libdir"
                            for dep in $dependency_libs; do
                case "$dep" in
                  -L*)
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
                      haveit=
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
                        if test -n "$GCC"; then
                          case $host_os in
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
                          esac
                        fi
                      fi
                      if test -z "$haveit"; then
                        haveit=
                        for x in $LDFLAGS $LIBINTL; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                          if test "X$x" = "X-L$additional_libdir"; then
                            haveit=yes
                            break
                          fi
                        done
                        if test -z "$haveit"; then
                          if test -d "$additional_libdir"; then
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
                          fi
                        fi
                        haveit=
                        for x in $LDFLAGS $LTLIBINTL; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

                          if test "X$x" = "X-L$additional_libdir"; then
                            haveit=yes
                            break
                          fi
                        done
                        if test -z "$haveit"; then
                          if test -d "$additional_libdir"; then
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
                          fi
                        fi
                      fi
                    fi
                    ;;
                  -R*)
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
                    if test "$enable_rpath" != no; then
                                                                  haveit=
                      for x in $rpathdirs; do
                        if test "X$x" = "X$dir"; then
                          haveit=yes
                          break
                        fi
                      done
                      if test -z "$haveit"; then
                        rpathdirs="$rpathdirs $dir"
                      fi
                                                                  haveit=
                      for x in $ltrpathdirs; do
                        if test "X$x" = "X$dir"; then
                          haveit=yes
                          break
                        fi
                      done
                      if test -z "$haveit"; then
                        ltrpathdirs="$ltrpathdirs $dir"
                      fi
                    fi
                    ;;
                  -l*)
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
                    ;;
                  *.la)
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
                    ;;
                  *)
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
                    ;;
                esac
              done
            fi
          else
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
          fi
        fi
      fi
    done
  done
  if test "X$rpathdirs" != "X"; then
    if test -n "$hardcode_libdir_separator"; then
                        alldirs=
      for found_dir in $rpathdirs; do
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
      done
            acl_save_libdir="$libdir"
      libdir="$alldirs"
      eval flag=\"$hardcode_libdir_flag_spec\"
      libdir="$acl_save_libdir"
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
    else
            for found_dir in $rpathdirs; do
        acl_save_libdir="$libdir"
        libdir="$found_dir"
        eval flag=\"$hardcode_libdir_flag_spec\"
        libdir="$acl_save_libdir"
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
      done
    fi
  fi
  if test "X$ltrpathdirs" != "X"; then
            for found_dir in $ltrpathdirs; do
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
    done
  fi

          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  gt_save_CPPFLAGS="$CPPFLAGS"
            CPPFLAGS="$CPPFLAGS $INCINTL"
            gt_save_LIBS="$LIBS"
            LIBS="$LIBS $LIBINTL"
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <libintl.h>
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias (const char *);
int
main ()
{
bindtextdomain ("", "");
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  gt_cv_func_gnugettext1_libintl=yes
else
  gt_cv_func_gnugettext1_libintl=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
              LIBS="$LIBS $LIBICONV"
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <libintl.h>
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias (const char *);
int
main ()
{
bindtextdomain ("", "");
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  LIBINTL="$LIBINTL $LIBICONV"
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
                gt_cv_func_gnugettext1_libintl=yes

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
            fi
            CPPFLAGS="$gt_save_CPPFLAGS"
            LIBS="$gt_save_LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
        fi

                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
                && test "$PACKAGE" != gettext-runtime \
                && test "$PACKAGE" != gettext-tools; }; then
          gt_use_preinstalled_gnugettext=yes
        else
                    LIBINTL=
          LTLIBINTL=
          INCINTL=
        fi



    if test -n "$INTL_MACOSX_LIBS"; then
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
      fi
    fi

    if test "$gt_use_preinstalled_gnugettext" = "yes" \
       || test "$nls_cv_use_gnu_gettext" = "yes"; then

$as_echo "#define ENABLE_NLS 1" >>confdefs.h

    else
      USE_NLS=no
    fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
$as_echo_n "checking whether to use NLS... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
$as_echo "$USE_NLS" >&6; }
  if test "$USE_NLS" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
$as_echo_n "checking where the gettext function comes from... " >&6; }
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
        gt_source="external libintl"
      else
        gt_source="libc"
      fi
    else
      gt_source="included intl directory"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
$as_echo "$gt_source" >&6; }
  fi

  if test "$USE_NLS" = "yes"; then

    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
$as_echo_n "checking how to link with libintl... " >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
$as_echo "$LIBINTL" >&6; }

  for element in $INCINTL; do
    haveit=
    for x in $CPPFLAGS; do

  acl_save_prefix="$prefix"
  prefix="$acl_final_prefix"
  acl_save_exec_prefix="$exec_prefix"
  exec_prefix="$acl_final_exec_prefix"
  eval x=\"$x\"
  exec_prefix="$acl_save_exec_prefix"
  prefix="$acl_save_prefix"

      if test "X$x" = "X$element"; then
        haveit=yes
        break
      fi
    done
    if test -z "$haveit"; then
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
    fi
  done

      fi


$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h


$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h

    fi

        POSUB=po
  fi



      if test x"$LTLIBINTL" != x; then
    INTLLIBS="$LIBINTL $LTLIBINTL"
  else
    INTLLIBS="$LIBINTL"
  fi






 if test x$ac_cv_path_XGETTEXT != x; then
  HAS_GETTEXT_TRUE=
  HAS_GETTEXT_FALSE='#'
else
  HAS_GETTEXT_TRUE='#'
  HAS_GETTEXT_FALSE=
fi




# Check whether --with-top_level was given.
if test "${with_top_level+set}" = set; then :
  withval=$with_top_level; with_top_level=${withval} ;
  cross_compiling=yes
fi



# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot; with_top_level=${withval} ;
  cross_compiling=yes
fi


android_ndk=no

# Check whether --with-android was given.
if test "${with_android+set}" = set; then :
  withval=$with_android; android_ndk=${withval}
        if test x"${withval}" != x; then
          android_ndk=${withval}
        else
          android_ndk=/opt/android-ndk-r3/build/platforms/android-5/arch-arm
        fi

fi

CROSS_CXXFLAGS=
if test x"${android_ndk}" != xno; then
  CROSS_CXXFLAGS=-mandroid -fexceptions
  if test x"${with_top_level}" = x; then
    with_top_level=/usr/local/android-arm/sysroot/usr
    cross_compiling=yes
  fi
  ANDROID_NDK=${android_ndk}

$as_echo "#define ANDROID 1" >>confdefs.h

else
  ANDROID_NDK=
fi

 if  test x"${android_ndk}" != xno ; then
  ANDROID_TRUE=
  ANDROID_FALSE='#'
else
  ANDROID_TRUE='#'
  ANDROID_FALSE=
fi



# Check whether --with-cpu was given.
if test "${with_cpu+set}" = set; then :
  withval=$with_cpu; case "${withval}" in
    geode) with_cpu=geode ;;
    *)   as_fn_error "bad value ${enableval} for --with-cpu option" "$LINENO" 5 ;;
   esac
else
  with_cpu=none
fi


if test x"$with_cpu" != x"none"; then
   cross_compiling=yes
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking For the version of libtool" >&5
$as_echo_n "checking For the version of libtool... " >&6; }
if test -d ${srcdir}/libltdl/libltdl; then
  ltver=2.x
else
  ltver=1.x
fi
ltmajor=`echo $ltver | cut -d '.' -f 1`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ltver" >&5
$as_echo "$ltver" >&6; }
 if test $ltmajor -eq 2; then
  LIBLTDL2_TRUE=
  LIBLTDL2_FALSE='#'
else
  LIBLTDL2_TRUE='#'
  LIBLTDL2_FALSE=
fi

 if test $ltmajor -eq 1; then
  LIBLTDL1_TRUE=
  LIBLTDL1_FALSE='#'
else
  LIBLTDL1_TRUE='#'
  LIBLTDL1_FALSE=
fi

if test $ltmajor -eq 1; then






case $enable_ltdl_convenience in
  no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
  "") enable_ltdl_convenience=yes
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
LTDLDEPS=$LIBLTDL
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"





# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"


  enable_dlopen=yes



  if test x"${windows}" = x"yes"; then
            enable_win32_dll=yes

case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
set dummy ${ac_tool_prefix}as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AS"; then
  ac_cv_prog_AS="$AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AS="${ac_tool_prefix}as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AS=$ac_cv_prog_AS
if test -n "$AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
$as_echo "$AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AS"; then
  ac_ct_AS=$AS
  # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AS"; then
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AS="as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AS=$ac_cv_prog_ac_ct_AS
if test -n "$ac_ct_AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
$as_echo "$ac_ct_AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AS" = x; then
    AS="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AS=$ac_ct_AS
  fi
else
  AS="$ac_cv_prog_AS"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

  ;;
esac

test -z "$AS" && AS=as





test -z "$DLLTOOL" && DLLTOOL=dlltool





test -z "$OBJDUMP" && OBJDUMP=objdump







    :
  fi
  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=no
fi









else
  case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.2.6b'
macro_revision='1.3017'













ltmain="$ac_aux_dir/ltmain.sh"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if test "${lt_cv_path_NM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$ac_tool_prefix"; then
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi


  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if test "${lt_cv_nm_interface+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:9181: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:9184: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:9187: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if test "${lt_cv_ld_reload_flag+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if test "${lt_cv_deplibs_check_method+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  if ( file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown












if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru











if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi


































# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF

  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'

	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
const struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@PROGRAM@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi






















# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 10389 "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if test "${lt_cv_cc_needs_belf+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac

need_locks="$enable_libtool_lock"


  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LIPO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
else
  lt_cv_ld_exported_symbols_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done



ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
    rm -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
_lt_caught_CXX_error=yes; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi





# Set options
enable_dlopen=yes
enable_win32_dll=yes

case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
set dummy ${ac_tool_prefix}as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AS"; then
  ac_cv_prog_AS="$AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AS="${ac_tool_prefix}as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AS=$ac_cv_prog_AS
if test -n "$AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
$as_echo "$AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AS"; then
  ac_ct_AS=$AS
  # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AS"; then
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AS="as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AS=$ac_cv_prog_ac_ct_AS
if test -n "$ac_ct_AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
$as_echo "$ac_ct_AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AS" = x; then
    AS="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AS=$ac_ct_AS
  fi
else
  AS="$ac_cv_prog_AS"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

  ;;
esac

test -z "$AS" && AS=as


test -z "$DLLTOOL" && DLLTOOL=dlltool


test -z "$OBJDUMP" && OBJDUMP=objdump

# Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=no
fi









            # Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=yes
fi











# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi











# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if test "${lt_cv_objdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF

















case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

# Use C for the default configuration in the libtool script

lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'







# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:12603: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:12607: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi






  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    linux* | k*bsd*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	*Sun\ F*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
$as_echo "$lt_prog_compiler_pic" >&6; }






#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:12942: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:12946: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi






#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:13047: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:13051: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:13102: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:13106: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec='$convenience'
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_from_new_cmds='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  whole_archive_flag_spec=''
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  fi

      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(void) {}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $RM conftest*
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl
	pic_flag=$lt_prog_compiler_pic
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc=no
        else
	  archive_cmds_need_lc=yes
        fi
        allow_undefined_flag=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $RM conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
$as_echo "$archive_cmds_need_lc" >&6; }
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  else
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Add ABI-specific directories to the system library path.
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line 15472 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line 15568 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"


ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec_CXX='$convenience'
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
        # as there is no search path for DLLs.
        hardcode_libdir_flag_spec_CXX='-L$libdir'
        allow_undefined_flag_CXX=unsupported
        always_export_symbols_CXX=no
        enable_shared_with_static_runtimes_CXX=yes

        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
          # If the export-symbols file already is a .def file (1st line
          # is EXPORTS), use it as is; otherwise, prepend...
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    cp $export_symbols $output_objdir/$soname.def;
          else
	    echo EXPORTS > $output_objdir/$soname.def;
	    cat $export_symbols >> $output_objdir/$soname.def;
          fi~
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
        else
          ld_shlibs_CXX=no
        fi
        ;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  whole_archive_flag_spec_CXX=''
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 will use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
	    ;;
	  xl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='echo'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=echo
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='echo'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case $p in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       else
	 prev=
       fi

       if test "$pre_test_object_deps_done" = no; then
	 case $p in
	 -L* | -R*)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       ;;

    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC*)
	    # IBM XL 8.0 on PPC
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:17524: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:17528: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi



#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:17623: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:17627: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:17675: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:17679: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
  ;;
  cygwin* | mingw* | cegcc*)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  esac
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $RM conftest*
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_CXX
	pic_flag=$lt_prog_compiler_pic_CXX
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
        allow_undefined_flag_CXX=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc_CXX=no
        else
	  archive_cmds_need_lc_CXX=yes
        fi
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $RM conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Add ABI-specific directories to the system library path.
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
if test "${libltdl_cv_shlibext+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

module=yes
eval libltdl_cv_shlibext=$shrext_cmds

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
$as_echo "$libltdl_cv_shlibext" >&6; }
if test -n "$libltdl_cv_shlibext"; then

cat >>confdefs.h <<_ACEOF
#define LT_MODULE_EXT "$libltdl_cv_shlibext"
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
if test "${lt_cv_module_path_var+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_module_path_var="$shlibpath_var"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
$as_echo "$lt_cv_module_path_var" >&6; }
if test -n "$lt_cv_module_path_var"; then

cat >>confdefs.h <<_ACEOF
#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
$as_echo_n "checking for the default library search path... " >&6; }
if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
if test -n "$lt_cv_sys_dlsearch_path"; then
  sys_dlsearch_path=
  for dir in $lt_cv_sys_dlsearch_path; do
    if test -z "$sys_dlsearch_path"; then
      sys_dlsearch_path="$dir"
    else
      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
    fi
  done

cat >>confdefs.h <<_ACEOF
#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
_ACEOF

fi


LT_DLLOADERS=


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


LIBADD_DLOPEN=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
$as_echo_n "checking for library containing dlopen... " >&6; }
if test "${ac_cv_search_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_dlopen=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_dlopen+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_dlopen+set}" = set; then :

else
  ac_cv_search_dlopen=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
$as_echo "$ac_cv_search_dlopen" >&6; }
ac_res=$ac_cv_search_dlopen
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_LIBDL 1" >>confdefs.h

	if test "$ac_cv_search_dlopen" != "none required" ; then
	  LIBADD_DLOPEN="-ldl"
	fi
	libltdl_cv_lib_dl_dlopen="yes"
	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_DLFCN_H
#  include <dlfcn.h>
#endif

int
main ()
{
dlopen(0, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

$as_echo "#define HAVE_LIBDL 1" >>confdefs.h

	    libltdl_cv_func_dlopen="yes"
	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :

$as_echo "#define HAVE_LIBDL 1" >>confdefs.h

	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
fi

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
then
  lt_save_LIBS="$LIBS"
  LIBS="$LIBS $LIBADD_DLOPEN"
  for ac_func in dlerror
do :
  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
if test "x$ac_cv_func_dlerror" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLERROR 1
_ACEOF

fi
done

  LIBS="$lt_save_LIBS"
fi


LIBADD_SHL_LOAD=
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = x""yes; then :

$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h

	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :

$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h

	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
	    LIBADD_SHL_LOAD="-ldld"
fi

fi



case $host_os in
darwin[1567].*)
# We only want this for pre-Mac OS X 10.4.
  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :

$as_echo "#define HAVE_DYLD 1" >>confdefs.h

	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
fi

  ;;
beos*)
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  ;;
cygwin* | mingw* | os2* | pw32*)
  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
"
if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
_ACEOF

  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :

$as_echo "#define HAVE_DLD 1" >>confdefs.h

		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
fi




LT_DLPREOPEN=
if test -n "$LT_DLLOADERS"
then
  for lt_loader in $LT_DLLOADERS; do
    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
  done

$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h

fi


LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sys_symbol_underscore=no
  cat > conftest.$ac_ext <<_LT_EOF
void nm_test_func(){}
int main(){nm_test_func;return 0;}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    ac_nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$ac_nlist"; then
      # See whether the symbols have a leading underscore.
      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
        lt_cv_sys_symbol_underscore=yes
      else
        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
	  :
        else
	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
        fi
      fi
    else
      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "configure: failed program was:" >&5
    cat conftest.c >&5
  fi
  rm -rf conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
  sys_symbol_underscore=$lt_cv_sys_symbol_underscore


if test x"$lt_cv_sys_symbol_underscore" = xyes; then
  if test x"$libltdl_cv_func_dlopen" = xyes ||
     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
if test "${libltdl_cv_need_uscore+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  libltdl_cv_need_uscore=unknown
          save_LIBS="$LIBS"
          LIBS="$LIBS $LIBADD_DLOPEN"
	  if test "$cross_compiling" = yes; then :
  libltdl_cv_need_uscore=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line 19075 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
      x$lt_dlunknown|x*)  ;;
    esac
  else :
    # compilation failed

  fi
fi
rm -fr conftest*

	  LIBS="$save_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
$as_echo "$libltdl_cv_need_uscore" >&6; }
  fi
fi

if test x"$libltdl_cv_need_uscore" = xyes; then

$as_echo "#define NEED_USCORE 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # PORTME does your system automatically load deplibs for dlopen?
  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  # For now, we just catch OSes we know something about -- in the
  # future, we'll try test this programmatically.
  lt_cv_sys_dlopen_deplibs=unknown
  case $host_os in
  aix3*|aix4.1.*|aix4.2.*)
    # Unknown whether this is true for these versions of AIX, but
    # we want this `case' here to explicitly catch those versions.
    lt_cv_sys_dlopen_deplibs=unknown
    ;;
  aix[4-9]*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  amigaos*)
    case $host_cpu in
    powerpc)
      lt_cv_sys_dlopen_deplibs=no
      ;;
    esac
    ;;
  darwin*)
    # Assuming the user has installed a libdl from somewhere, this is true
    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  freebsd* | dragonfly*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  gnu* | linux* | k*bsd*-gnu)
    # GNU and its variants, using gnu ld.so (Glibc)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  hpux10*|hpux11*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  interix*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  irix[12345]*|irix6.[01]*)
    # Catch all versions of IRIX before 6.2, and indicate that we don't
    # know how it worked for any of those versions.
    lt_cv_sys_dlopen_deplibs=unknown
    ;;
  irix*)
    # The case above catches anything before 6.2, and it's known that
    # at 6.2 and later dlopen does load deplibs.
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  netbsd*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  openbsd*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  osf[1234]*)
    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
    # it did *not* use an RPATH in a shared library to find objects the
    # library depends on, so we explicitly say `no'.
    lt_cv_sys_dlopen_deplibs=no
    ;;
  osf5.0|osf5.0a|osf5.1)
    # dlopen *does* load deplibs and with the right loader patch applied
    # it even uses RPATH in a shared library to search for shared objects
    # that the library depends on, but there's no easy way to know if that
    # patch is installed.  Since this is the case, all we can really
    # say is unknown -- it depends on the patch being installed.  If
    # it is, this changes to `yes'.  Without it, it would be `no'.
    lt_cv_sys_dlopen_deplibs=unknown
    ;;
  osf*)
    # the two cases above should catch all versions of osf <= 5.1.  Read
    # the comments above for what we know about them.
    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
    # is used to find them so we can finally say `yes'.
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  qnx*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  solaris*)
    lt_cv_sys_dlopen_deplibs=yes
    ;;
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
    libltdl_cv_sys_dlopen_deplibs=yes
    ;;
  esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
if test "$lt_cv_sys_dlopen_deplibs" != yes; then

$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h

fi

:

for ac_header in argz.h
do :
  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
"
if test "x$ac_cv_header_argz_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARGZ_H 1
_ACEOF

fi

done


ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
#  include <argz.h>
#endif
"
if test "x$ac_cv_type_error_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_ERROR_T 1
_ACEOF


else

$as_echo "#define error_t int" >>confdefs.h


$as_echo "#define __error_t_defined 1" >>confdefs.h

fi


ARGZ_H=
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
	argz_next argz_stringify
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  ARGZ_H=argz.h;

  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"

fi
done


if test -z "$ARGZ_H"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
$as_echo_n "checking if argz actually works... " >&6; }
if test "${lt_cv_sys_argz_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $host_os in #(
	 *cygwin*)
	   lt_cv_sys_argz_works=no
	   if test "$cross_compiling" != no; then
	     lt_cv_sys_argz_works="guessing no"
	   else
	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
	     save_IFS=$IFS
	     IFS=-.
	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
	     IFS=$save_IFS
	     lt_os_major=${2-0}
	     lt_os_minor=${3-0}
	     lt_os_micro=${4-0}
	     if test "$lt_os_major" -gt 1 \
		|| { test "$lt_os_major" -eq 1 \
		  && { test "$lt_os_minor" -gt 5 \
		    || { test "$lt_os_minor" -eq 5 \
		      && test "$lt_os_micro" -gt 24; }; }; }; then
	       lt_cv_sys_argz_works=yes
	     fi
	   fi
	   ;; #(
	 *) lt_cv_sys_argz_works=yes ;;
	 esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
$as_echo "$lt_cv_sys_argz_works" >&6; }
     if test $lt_cv_sys_argz_works = yes; then :

$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h

else
  ARGZ_H=argz.h


  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"

fi
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$lt_cv_sys_global_symbol_pipe"; then
    libltdl_cv_preloaded_symbols=yes
  else
    libltdl_cv_preloaded_symbols=no
  fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
if test x"$libltdl_cv_preloaded_symbols" = xyes; then

$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h

fi

# Set options











# Check whether --with-included_ltdl was given.
if test "${with_included_ltdl+set}" = set; then :
  withval=$with_included_ltdl;
fi


if test "x$with_included_ltdl" != xyes; then
  # We are not being forced to use the included libltdl sources, so
  # decide whether there is a useful installed version we can use.
  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default

"
if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
	    #include <ltdl.h>
"
if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lt_dladvise_preload ();
int
main ()
{
return lt_dladvise_preload ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ltdl_lt_dladvise_preload=yes
else
  ac_cv_lib_ltdl_lt_dladvise_preload=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
  with_included_ltdl=no
else
  with_included_ltdl=yes
fi

else
  with_included_ltdl=yes
fi

else
  with_included_ltdl=yes
fi


fi







# Check whether --with-ltdl_include was given.
if test "${with_ltdl_include+set}" = set; then :
  withval=$with_ltdl_include;
fi


if test -n "$with_ltdl_include"; then
  if test -f "$with_ltdl_include/ltdl.h"; then :
  else
    as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
  fi
else
  with_ltdl_include=no
fi


# Check whether --with-ltdl_lib was given.
if test "${with_ltdl_lib+set}" = set; then :
  withval=$with_ltdl_lib;
fi


if test -n "$with_ltdl_lib"; then
  if test -f "$with_ltdl_lib/libltdl.la"; then :
  else
    as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
  fi
else
  with_ltdl_lib=no
fi

case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
  ,yes,no,no,)
	case $enable_ltdl_convenience in
  no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
  "") enable_ltdl_convenience=yes
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
LTDLDEPS=$LIBLTDL
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"





# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"


	;;
  ,no,no,no,)
	# If the included ltdl is not to be used, then use the
	# preinstalled libltdl we found.

$as_echo "#define HAVE_LTDL 1" >>confdefs.h

	LIBLTDL=-lltdl
	LTDLDEPS=
	LTDLINCL=
	;;
  ,no*,no,*)
	as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
	;;
  *)	with_included_ltdl=no
	LIBLTDL="-L$with_ltdl_lib -lltdl"
	LTDLDEPS=
	LTDLINCL="-I$with_ltdl_include"
	;;
esac
INCLTDL="$LTDLINCL"

# Report our decision...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
$as_echo_n "checking where to find libltdl headers... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
$as_echo "$LTDLINCL" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
$as_echo_n "checking where to find libltdl library... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
$as_echo "$LIBLTDL" >&6; }



# Check whether --enable-ltdl-install was given.
if test "${enable_ltdl_install+set}" = set; then :
  enableval=$enable_ltdl_install;
fi


case ,${enable_ltdl_install},${enable_ltdl_convenience} in
  *yes*) ;;
  *) enable_ltdl_convenience=yes ;;
esac

 if test x"${enable_ltdl_install-no}" != xno; then
  INSTALL_LTDL_TRUE=
  INSTALL_LTDL_FALSE='#'
else
  INSTALL_LTDL_TRUE='#'
  INSTALL_LTDL_FALSE=
fi

  if test x"${enable_ltdl_convenience-no}" != xno; then
  CONVENIENCE_LTDL_TRUE=
  CONVENIENCE_LTDL_FALSE='#'
else
  CONVENIENCE_LTDL_TRUE='#'
  CONVENIENCE_LTDL_FALSE=
fi






# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
# the user used.  This is so that ltdl.h can pick up the parent projects
# config.h file, The first file in AC_CONFIG_HEADERS must contain the
# definitions required by ltdl.c.
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).



for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_func in closedir opendir readdir
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else


  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"

fi
done

for ac_func in strlcat strlcpy
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else


  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"

fi
done



cat >>confdefs.h <<_ACEOF
#define LT_LIBEXT "$libext"
_ACEOF


name=ltdl
LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`








# Only expand once:


fi


 if test x"${enable_ltdl_convenience-no}" != xno; then
  CONVENIENCE_LTDL_TRUE=
  CONVENIENCE_LTDL_FALSE='#'
else
  CONVENIENCE_LTDL_TRUE='#'
  CONVENIENCE_LTDL_FALSE=
fi

 if test x"${enable_ltdl_install-no}" != xno; then
  INSTALL_LTDL_TRUE=
  INSTALL_LTDL_FALSE='#'
else
  INSTALL_LTDL_TRUE='#'
  INSTALL_LTDL_FALSE=
fi


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if test "${ac_cv_c_bigendian+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if test "${ac_cv_c_const+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if test "${ac_cv_c_inline+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac




 if test x"${enable_shared}" = xyes; then
  ENABLE_SHARED_TRUE=
  ENABLE_SHARED_FALSE='#'
else
  ENABLE_SHARED_TRUE='#'
  ENABLE_SHARED_FALSE=
fi

 if test x"${enable_shared}" = xno; then
  ENABLE_STATIC_TRUE=
  ENABLE_STATIC_FALSE='#'
else
  ENABLE_STATIC_TRUE='#'
  ENABLE_STATIC_FALSE=
fi


# Extract the first word of "runtest", so it can be a program name with args.
set dummy runtest; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DEJAGNU+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DEJAGNU in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DEJAGNU="$DEJAGNU" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DEJAGNU="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DEJAGNU=$ac_cv_path_DEJAGNU
if test -n "$DEJAGNU"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEJAGNU" >&5
$as_echo "$DEJAGNU" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




buffers=no
que=no
memory=no
cache=yes

# Check whether --with-statistics was given.
if test "${with_statistics+set}" = set; then :
  withval=$with_statistics; if test -n ${withval}; then
    if test "x${withval}" != "xno"; then
      extlist="${withval}"
      withval=`echo ${withval} | tr '\054' ' ' `
    else
      extlist=""
      withval=""
    fi
  fi
  statistics_list=""
  nstatistics=0
  while test -n "${withval}" ; do
    val=`echo ${withval} | cut -d ' ' -f 1`
    case "${val}" in
      buffers)
        buffers=yes
        nstatistics=$((nstatistics+1))
        ;;
      que)
        que=yes
        nstatistics=$((nstatistics+1))
        ;;
      memory)
        memory=yes
        nstatistics=$((nstatistics+1))
        ;;
      cache)
        cache=yes
        nstatistics=$((nstatistics+1))
        ;;
      all|ALL)
        buffers=yes
        memory=yes
        queu=yes
        cache=yes
        nstatistics=4                   ;;
      *) as_fn_error "invalid statistics feature specified: ${withval} given (accept: buffers|que|memory|all)" "$LINENO" 5
        ;;
      esac
    withval=`echo ${withval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$withval"; then
      break;
    fi
  done

fi

if test x${buffers} = xyes; then
  statistics_list="${statistics_list} buffers"

$as_echo "#define USE_STATS_BUFFERS 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This option will effect your performance" >&5
$as_echo "$as_me: WARNING: This option will effect your performance" >&2;}
fi

if test x${memory} = xyes; then
  statistics_list="${statistics_list} memory"

$as_echo "#define USE_STATS_MEMORY 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This option will effect your performance" >&5
$as_echo "$as_me: WARNING: This option will effect your performance" >&2;}
fi

if test x${que} = xyes; then
  statistics_list="${statistics_list} queues"

$as_echo "#define USE_STATS_QUEUE 1" >>confdefs.h

fi

if test x${cache} = xyes; then
  statistics_list="${statistics_list} cache"

$as_echo "#define USE_STATS_CACHE 1" >>confdefs.h

fi

STATISTICS_LIST="$statistics_list"


#
# These settings are compile time options for the security
# setting for anything that lets gnash exchange data with
# other applications. Currently this only supports Shared
# Objects and Local Connections. Shared Objects are like
# your web browsers cookies, and Local Connections use
# shared memory to execute methods remotely, and to
# exchange data.
#
# The default is to enable everything, and these can
# also be controlled dynamically by the $HOME/.gnashrc
# file.
#
solreadonly=no
localconnection=yes
lctrace=yes


# Check whether --with-security was given.
if test "${with_security+set}" = set; then :
  withval=$with_security; if test -n ${withval}; then
    if test "x${withval}" != "xno"; then
      extlist="${withval}"
      withval=`echo ${withval} | tr '\054' ' ' `
    else
      extlist=""
      withval=""
    fi
  fi
  security_list=""
  nsecurity=0
  while test -n "${withval}" ; do
    val=`echo ${withval} | cut -d ' ' -f 1`
    case "${val}" in
      solreadonly)
        solreadonly=yes
        nsecurity=$((nsecurity+1))
        ;;
      lc)
        localconnection=yes
        nsecurity=$((nsecurity+1))
        ;;
      lctrace)
        lctrace=yes
        nsecurity=$((nsecurity+1))
        ;;
      all|ALL)
        solreadonly=yes
        lc=yes
        lctrace=yes
        nsecurity=3
        ;;
      *) as_fn_error "invalid security feature specified: ${withval} given (accept: solreadonly|lc|lctrace)" "$LINENO" 5
        ;;
      esac
    withval=`echo ${withval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$withval"; then
      break;
    fi
  done

fi

if test xlctrace = xyes; then
  security_list="${security_list} lctrace"

$as_echo "#define USE_LC_TRACE 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: This build supports LocalConnection tracing" >&5
$as_echo "$as_me: This build supports LocalConnection tracing" >&6;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This option will effect your performance" >&5
$as_echo "$as_me: WARNING: This option will effect your performance" >&2;}
fi

if test x$localconnection = xyes; then
  security_list="${security_list} localconnection"

$as_echo "#define USE_LC 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: This build supports LocalConnection" >&5
$as_echo "$as_me: This build supports LocalConnection" >&6;}
fi
if test x$solreadonly = xyes; then
  security_list="${security_list} solreadonly"

$as_echo "#define USE_SOL_READONLY 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: Shared Objects are read-only" >&5
$as_echo "$as_me: Shared Objects are read-only" >&6;}
fi
SECURITY_LIST="$security_list"


if test x"${haiku}" = xyes; then
  HAIKU_LIBS=-lbe

fi

DLOPEN="-dlopen"
DLPREOPEN="-dlpreopen"







{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of library archiver we have" >&5
$as_echo_n "checking which type of library archiver we have... " >&6; }
rm -f .tmp
libtool > .tmp 2>&1
archiver=`grep -c dynamic .tmp 2>&1`
rm -f .tmp
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
if test x"${archiver}" != x && test "${archiver}" -eq 1; then
   export MACOSX_DEPLOYMENT_TARGET="10.3"
   darwin=yes
else
   darwin=no
fi

if test x$cross_compiling = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Gnash for cross compilation" >&5
$as_echo "$as_me: Configuring Gnash for cross compilation" >&6;}
  export pkgroot="`$CXX -print-search-dirs | grep "install:" | sed -e 's/install: //' -e 's:/lib/gcc/.*::'`"
            if test x${pkgroot} = "/usr"; then
    export pkgroot=""
  fi
  export incllist="`eval echo ${with_top_level}/include ${pkgroot}/${host_alias}/include ${pkgroot}/include`"
  export libslist="`eval echo ${with_top_level}/lib ${pkgroot}/${host_alias}/lib ${pkgroot}/lib64 ${pkgroot}/lib32 ${pkgroot}/lib`"
  export pathlist="`eval echo ${pkgroot}/${host_alias}/bin:${pkgroot}/bin`"
  npapi=no
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Gnash for native compilation" >&5
$as_echo "$as_me: Configuring Gnash for native compilation" >&6;}
  export incllist="`eval cat ${srcdir}/macros/incllist`"
  export libslist="`eval cat ${srcdir}/macros/libslist`"
  export pathlist=$PATH
fi

if test x"${android_ndk}" != xno; then
   incllist="${android_ndk}/include ${incllist}"
fi

 if  test x$cross_compiling = xyes ; then
  CROSS_COMPILING_TRUE=
  CROSS_COMPILING_FALSE='#'
else
  CROSS_COMPILING_TRUE='#'
  CROSS_COMPILING_FALSE=
fi





if test x$cross_compiling = xno; then
  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

  fi
  if test -n "$PKG_CONFIG"; then
	  _pkg_min_version=0.9.0
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	  if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	  else
		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		  PKG_CONFIG=""
	  fi
  fi
else
  PKG_CONFIG=$ac_cv_env_PKG_CONFIG_value
fi



has_gtk2=no        build_haiku=no
build_aos4=no      build_kde3=no
build_kde4=no
build_qtopia3=no
build_qtopia4=no
build_gtk=no
build_qt3=no
build_qt4=no
build_fb=no                     build_fltk=no
build_sdl=no
build_riscos=no                 build_aqua=no                   build_hildon=no                 build_alp=no                    build_dump=no
# Check whether --enable-gui was given.
if test "${enable_gui+set}" = set; then :
  enableval=$enable_gui; if test -n ${enableval}; then
    enableval=`echo ${enableval} | tr '\054' ' ' `
  fi
  while test -n "${enableval}" ; do
    val=`echo ${enableval} | cut -d ' ' -f 1`
    case "${val}" in
      hildon|HILDON|hildon2|HILDON2)
        build_hildon=yes

$as_echo "#define USE_HILDON 1" >>confdefs.h

        build_gtk=yes
        ;;
      alp|ALP|alp|ALP)
        build_alp=yes
        build_gtk=yes
        ;;
      gtk|GTK|gtk2|GTK2)
        build_gtk=yes
        ;;
      kde3|KDE3)
        build_qt3=yes
        build_kde3=yes
        ;;
      kde4|KDE4)
        build_qt4=yes
        build_kde4=yes
        ;;
      qtopia3|QTOPIA3)
        build_qtopia3=yes
        build_qt3=yes
        ;;
      qtopia4|QTOPIA4)
        build_qtopia4=yes
        build_qt4=yes
        ;;
      qt3|QT3)
        build_qt3=yes
        ;;
      qt4|QT4)
        build_qt4=yes
        ;;
      sdl|SDL)
        build_sdl=yes
        ;;
      aqua|AQUA|Aqua)
        build_aqua=yes
        ;;
      riscos|RISCOS|RiscOS)
        build_riscos=yes
        ;;
      fltk|FLTK|fltk2|FLTK2)
        build_fltk=yes
        ;;
      fb|FB)
        build_fb=yes
        ;;
      aos4|AOS4)
        build_aos4=yes
        ;;
      haiku|HAIKU)
        build_haiku=yes
        ;;
      dump|DUMP)
        build_dump=yes
        ;;
      all|ALL)
        build_dump=yes
        build_fb=yes
        build_fltk=yes
        build_qt3=yes
        build_kde3=yes
        build_kde4=yes
        build_qt4=yes
        build_sdl=yes
        ;;
      *) as_fn_error "invalid gui ${enableval} given (accept: gtk|kde3|kde4|fltk|sdl|riscos|aqua|fb|hildon|alp|qtopia3|qtopia4|dump|aos4|haiku)" "$LINENO" 5
         ;;
      esac
    enableval=`echo ${enableval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$enableval"; then
      break;
    fi
  done
else
  if test x"${openbsd_os}" = x"openbsd"; then
    build_kde3=yes;
    build_qt3=yes;
    build_gtk=yes;
  else if test x"${haiku}" = xyes; then
    build_haiku=yes;
  else
    build_kde4=yes;
    build_qt4=yes;
    build_gtk=yes;
  fi
  fi

fi


if test x"${build_haiku}" = xyes; then
  if test x"$haiku" != xyes; then
    echo "        ERROR: Can not build Haiku gui outside of Haiku
operating system." >&3
  fi
fi


# Check whether --with-fakefb was given.
if test "${with_fakefb+set}" = set; then :
  withval=$with_fakefb; with_fakefb=${withval}
fi


fakefb=
if test x"${with_fakefb}" = xyes; then
    fakefb=/tmp/fbe_buffer
else
  if test x"${with_fakefb}" != x; then
    fakefb=${with_fakefb}
  fi
fi
FAKEFB=${fakefb}


if test x"${fakefb}" != x; then

$as_echo "#define ENABLE_FAKE_FRAMEBUFFER 1" >>confdefs.h

fi


add_sound=
build_sound_sdl=no
build_sound_ahi=no
build_sound_mkit=no
# Check whether --enable-sound was given.
if test "${enable_sound+set}" = set; then :
  enableval=$enable_sound; case "${enableval}" in
      sdl|SDL|Sdl)
        build_sound_sdl=yes
        add_sound="sdl"
        ;;
      ahi|AHI|Ahi)
        build_sound_ahi=yes
        add_sound="ahi"
        ;;
      mkit|MKIT|Mkit)
        build_sound_mkit=yes
        add_sound="mkit"
        ;;
     esac
else
  if test x"${haiku}" = xyes; then
     build_sound_mkit=yes
     add_sound="mkit"
   else
     build_sound_sdl=yes
     add_sound=sdl
   fi

fi



build_media_gst=no
build_media_ffmpeg=no
# Check whether --enable-media was given.
if test "${enable_media+set}" = set; then :
  enableval=$enable_media; if test -n ${enableval}; then
      enableval=`echo ${enableval} | tr '\054' ' ' `
    fi
    while test -n "${enableval}"; do
      val=`echo ${enableval} | cut -d ' ' -f 1`
      case "${val}" in
        GST|gst)
          build_media_gst=yes
          media_list="${media_list}gst "
          ;;
        FFMPEG|ffmpeg)
          build_media_ffmpeg=yes
          media_list="${media_list}ffmpeg "
          ;;
        no|NO|none)
          media_list="none"
          ;;
        *)
          as_fn_error "bad value ${enableval} for --enable-media option" "$LINENO" 5
          ;;

      esac
      enableval=`echo ${enableval} | cut -d ' ' -f 2-6`
      if test "x$val" = "x$enableval"; then
        break;
      fi
    done
else
  if test x"${build_haiku}" = xyes; then
        build_media_ffmpeg=yes
        build_media_haiku=yes
        media_list="ffmpeg haiku"
     else
        build_media_gst=yes
        media_list="gst"
    fi

fi


MEDIA_CONFIG="${media_list}"


if test x"$build_media_ffmpeg" = x"no" -a x"$build_media_gst" = x"no"; then
   build_media_gst=yes
fi

if test x"$build_media_ffmpeg" = x"yes"; then


    backupLIBS="$LIBS"
  backupCFLAGS="$CFLAGS"
  avcodec_h=""
  ffmpeg_top_incl=""


# Check whether --with-ffmpeg_incl was given.
if test "${with_ffmpeg_incl+set}" = set; then :
  withval=$with_ffmpeg_incl; with_ffmpeg_incl=${withval}
fi

  if test "${ac_cv_path_ffmpeg_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_ffmpeg_incl}" != x ; then
                  ffmpeg_top_incl=`dirname ${with_ffmpeg_incl}`
      if test -f ${with_ffmpeg_incl}/avcodec.h; then
        ac_cv_path_ffmpeg_incl="-I`(cd ${ffmpeg_top_incl}; pwd)`"
        avcodec_h=${with_ffmpeg_incl}/avcodec.h
      else
        as_fn_error "${with_ffmpeg_incl} directory does not contain the avcodec.h header" "$LINENO" 5
      fi
    fi

fi


    if test x${ffmpeg_top_incl} = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of avcodec.h" >&5
$as_echo_n "checking location of avcodec.h... " >&6; }
        if test x"$PKG_CONFIG" != x; then       if $PKG_CONFIG --exists libavcodec; then                                 ffmpeg_pkg=`$PKG_CONFIG --cflags-only-I libavcodec`
        ffmpeg_top_incl=`echo ${ffmpeg_pkg} | sed  -e 's:-I::'`
                        for i in "" ffmpeg libavcodec ffmpeg/libavcodec; do
          if test -f ${ffmpeg_top_incl}/${i}/avcodec.h; then
            ac_cv_path_ffmpeg_incl="-I`(cd ${ffmpeg_top_incl}; pwd)`"
            avcodec_h="${ffmpeg_top_incl}/${i}/avcodec.h"
            break
          fi
        done
      fi
    fi
  fi

        if test x"${ac_cv_path_ffmpeg_incl}" = x ; then
    for ffmpeg_top_incl in $incllist; do
      for i in ffmpeg libavcodec ffmpeg/libavcodec; do
        if test -f ${ffmpeg_top_incl}/${i}/avcodec.h; then
          ac_cv_path_ffmpeg_incl="-I`(cd ${ffmpeg_top_incl}/${i}; pwd)`"
          avcodec_h=${ffmpeg_top_incl}/${i}/avcodec.h
          break
        fi
      done
      if test x"${ac_cv_path_ffmpeg_incl}" != x ; then
	break
      fi
    done
  fi

        newer_ffmpeg=`echo ${avcodec_h} | grep -c libavcodec`
  if test ${newer_ffmpeg} -eq 0; then

$as_echo "#define HAVE_FFMPEG_AVCODEC_H 1" >>confdefs.h

  else

$as_echo "#define HAVE_LIBAVCODEC_AVCODEC_H 1" >>confdefs.h

  fi

  if test x"${ac_cv_path_ffmpeg_incl}" = x ; then
    have_ffmpeg=no
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
  else
    have_ffmpeg=yes
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ffmpeg_incl}" >&5
$as_echo "${ac_cv_path_ffmpeg_incl}" >&6; }
  fi



    if test x"${avcodec_h}" != x; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg version" >&5
$as_echo_n "checking ffmpeg version... " >&6; }

    ffmpeg_major_version=`$EGREP "define LIBAVCODEC_VERSION_MAJOR " ${avcodec_h} | sed -e "s%[^0-9]%%g"`
    ffmpeg_minor_version=`$EGREP "define LIBAVCODEC_VERSION_MINOR " ${avcodec_h} | sed -e "s%[^0-9]%%g"`
    ffmpeg_micro_version=`$EGREP "define LIBAVCODEC_VERSION_MICRO " ${avcodec_h} | sed -e "s%[^0-9]%%g"`

    if test x"${ffmpeg_major_version}" != x ; then

      ffmpeg_version="${ffmpeg_major_version}.${ffmpeg_minor_version}.${ffmpeg_micro_version}"

    else

            ffmpeg_version=`$EGREP "define LIBAVCODEC_VERSION_TRIPLET " ${avcodec_h} | awk '{print $'3'}' | sed -e "s%,%.%g"`

      if test x"${ffmpeg_version}" = x ; then

                ffmpeg_version=`$EGREP "define LIBAVCODEC_VERSION " ${avcodec_h} | awk '{print $'3'}' | sed -e "s%^[0-9]d\.%%"`

        if test x"${ffmpeg_version}" = x ; then
          ffmpeg_version=`$EGREP "define LIBAVCODEC_BUILD " ${avcodec_h} | awk '{print $'3'}'`
        fi
      fi

      if test x"${ffmpeg_version}" != x ; then
        ffmpeg_major_version=`echo ${ffmpeg_version} | cut -d. -f1`
        ffmpeg_minor_version=`echo ${ffmpeg_version} | cut -d. -f2`
        ffmpeg_micro_version=`echo ${ffmpeg_version} | cut -d. -f3`
      fi

    fi

    ffmpeg_num_version=`printf %2.2d%2.2d%2.2d $ffmpeg_major_version $ffmpeg_minor_version $ffmpeg_micro_version`

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ffmpeg_version ($ffmpeg_num_version)" >&5
$as_echo "$ffmpeg_version ($ffmpeg_num_version)" >&6; }



    if test -z "$ffmpeg_num_version" -o "$ffmpeg_num_version" -lt 511100; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Wrong ffmpeg/libavcodec version! 51.11.0 or greater required, $ffmpeg_version detected." >&5
$as_echo "$as_me: WARNING: Wrong ffmpeg/libavcodec version! 51.11.0 or greater required, $ffmpeg_version detected." >&2;}
    else
      ffmpeg_version_check=ok
    fi

    if test ! -z "$ffmpeg_num_version" -a "$ffmpeg_num_version" -gt 512800; then

$as_echo "#define FFMPEG_AUDIO2 1" >>confdefs.h

    fi

    if test -z "$ffmpeg_num_version" -o "$ffmpeg_num_version" -lt 512700; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of ffmpeg/libavcodec ($ffmpeg_version) is not able to play VP6 encoded video: 51.27.0 or higher required!" >&5
$as_echo "$as_me: WARNING: This version of ffmpeg/libavcodec ($ffmpeg_version) is not able to play VP6 encoded video: 51.27.0 or higher required!" >&2;}
    else

$as_echo "#define FFMPEG_VP6 1" >>confdefs.h

    fi

    if test -z "$ffmpeg_num_version" -o "$ffmpeg_num_version" -lt 514900; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of ffmpeg/libavcodec ($ffmpeg_version) is not able to play VP6A encoded video: 51.49.0 or higher required!" >&5
$as_echo "$as_me: WARNING: This version of ffmpeg/libavcodec ($ffmpeg_version) is not able to play VP6A encoded video: 51.49.0 or higher required!" >&2;}
    else

$as_echo "#define FFMPEG_VP6A 1" >>confdefs.h

    fi

    if test -z "$ffmpeg_num_version" -o "$ffmpeg_num_version" -lt 514600; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of ffmpeg/libavcodec ($ffmpeg_version) is not able to decode NELLYMOSER encoded audio: 51.46.0 (r10741) or higher required!" >&5
$as_echo "$as_me: WARNING: This version of ffmpeg/libavcodec ($ffmpeg_version) is not able to decode NELLYMOSER encoded audio: 51.46.0 (r10741) or higher required!" >&2;}
    else

$as_echo "#define FFMPEG_NELLYMOSER 1" >>confdefs.h

    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not check ffmpeg version (can't find avcodec.h file)" >&5
$as_echo "$as_me: WARNING: Could not check ffmpeg version (can't find avcodec.h file)" >&2;}
    # ffmpeg_version_check=ok # this is NOT ok, why would it be ?!
  fi

  LIBAVCODEC_IDENT=${ffmpeg_version}
  FFMPEG_CFLAGS="-D__STDC_CONSTANT_MACROS ${ac_cv_path_ffmpeg_incl}"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat.h" >&5
$as_echo_n "checking for avformat.h... " >&6; }
  if test -f "${ffmpeg_top_incl}/avformat.h"; then

$as_echo "#define HAVE_FFMPEG_AVFORMAT_H 1" >>confdefs.h

    avformat_h="${ffmpeg_top_incl}/avformat.h"
  else
    if test -f "${ffmpeg_top_incl}/libavformat/avformat.h"; then

$as_echo "#define HAVE_LIBAVFORMAT_AVFORMAT_H 1" >>confdefs.h

      avformat_h="${ffmpeg_top_incl}/libavformat/avformat.h"
    else
      avformat_h=""
    fi
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avformat_h" >&5
$as_echo "$avformat_h" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swscale.h" >&5
$as_echo_n "checking for swscale.h... " >&6; }
  have_ffmpeg_swscale=no
  if test -f "${ffmpeg_top_incl}/ffmpeg/swscale.h"; then
    have_ffmpeg_swscale=yes

$as_echo "#define HAVE_FFMPEG_SWSCALE_H 1" >>confdefs.h

  fi
  if test -f "${ffmpeg_top_incl}/libswscale/swscale.h"; then
    have_ffmpeg_swscale=yes

$as_echo "#define HAVE_LIBSWSCALE_SWSCALE_H 1" >>confdefs.h

  fi
  if test -f "${ffmpeg_top_incl}/swscale.h"; then
    have_ffmpeg_swscale=yes

$as_echo "#define HAVE_SWSCALE_H 1" >>confdefs.h

  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffmpeg_swscale" >&5
$as_echo "$have_ffmpeg_swscale" >&6; }

  if test x"$have_ffmpeg_swscale" = "xno" -a 1$ffmpeg_num_version -ge 1"520000"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find swscale.h, required for ffmpeg versions >= 52.0.0 (detected version: $ffmpeg_version)" >&5
$as_echo "$as_me: WARNING: Cannot find swscale.h, required for ffmpeg versions >= 52.0.0 (detected version: $ffmpeg_version)" >&2;}
     ffmpeg_version_check=
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavcodec/vaapi.h" >&5
$as_echo_n "checking for libavcodec/vaapi.h... " >&6; }
  have_ffmpeg_vaapi="no"
  if test -f "${ffmpeg_top_incl}/ffmpeg/vaapi.h"; then
    have_ffmpeg_vaapi="yes"

$as_echo "#define HAVE_FFMPEG_VAAPI_H 1" >>confdefs.h

  fi
  if test -f "${ffmpeg_top_incl}/libavcodec/vaapi.h"; then
    have_ffmpeg_vaapi="yes"

$as_echo "#define HAVE_LIBAVCODEC_VAAPI_H 1" >>confdefs.h

  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffmpeg_vaapi" >&5
$as_echo "$have_ffmpeg_vaapi" >&6; }


  top_lib_dir=""


# Check whether --with-ffmpeg_lib was given.
if test "${with_ffmpeg_lib+set}" = set; then :
  withval=$with_ffmpeg_lib; with_ffmpeg_lib=${withval}
fi

  if test "${ac_cv_path_ffmpeg_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_ffmpeg_lib}" != x ; then
      if test -f ${with_ffmpeg_lib}/libavcodec.a -o -f ${with_ffmpeg_lib}/libavcodec.${shlibext}; then
	      ac_cv_path_ffmpeg_lib="-L`(cd ${with_ffmpeg_lib}; pwd)`"
          libavcodec="-lavcodec"
          LIBS="${ac_cv_path_ffmpeg_lib} $LIBS"           top_lib_dir=${with_ffmpeg_lib}
      else
	      as_fn_error "${with_ffmpeg_lib} directory doesn't contain libavcodec libraries." "$LINENO" 5
      fi
      if test -f ${with_ffmpeg_lib}/libavformat.a -o -f ${with_ffmpeg_lib}/libavformat.${shlibext}; then
	      ac_cv_path_ffmpeg_lib="-L`(cd ${with_ffmpeg_lib}; pwd)`"
          libavformat="-lavformat"
          top_lib_dir=${with_ffmpeg_lib}
      else
	      as_fn_error "${with_ffmpeg_lib} directory doesn't contain libavformat libraries." "$LINENO" 5
      fi
    fi

fi



    if test x"${cross_compiling}" = xno; then
    if test x"$PKG_CONFIG" != x -a x"${libavcodec}" = x; then
      $PKG_CONFIG --exists libavcodec && libavcodec=`$PKG_CONFIG --libs libavcodec`
                                              fi
  fi

  if test x"${libavcodec}" != x; then
    ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libavcodec}"
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavcodec library" >&5
$as_echo_n "checking for libavcodec library... " >&6; }
    for i in $libslist; do
      if test -f $i/libavcodec.a -o -f $i/libavcodec.${shlibext}; then
        if test x${top_lib_dir} = x; then top_lib_dir=$i; fi
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libavcodec" >&5
$as_echo "${top_lib_dir}/libavcodec" >&6; }
	    if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
          ac_cv_path_ffmpeg_lib="-L$i -lavcodec"
       	  break
        else
          ac_cv_path_ffmpeg_lib="-lavcodec"
	      break
        fi
      fi
    done

    if test x"${libavcodec}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      if test x${cross_compiling} = xno; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ff_eval in -lavcodec" >&5
$as_echo_n "checking for ff_eval in -lavcodec... " >&6; }
if test "${ac_cv_lib_avcodec_ff_eval+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lavcodec  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ff_eval ();
int
main ()
{
return ff_eval ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_avcodec_ff_eval=yes
else
  ac_cv_lib_avcodec_ff_eval=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_ff_eval" >&5
$as_echo "$ac_cv_lib_avcodec_ff_eval" >&6; }
if test "x$ac_cv_lib_avcodec_ff_eval" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavcodec"
fi

      fi
    fi
  fi

  if test x$top_lib_dir != x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: ffmpeg top lib dir is $top_lib_dir" >&5
$as_echo "$as_me: ffmpeg top lib dir is $top_lib_dir" >&6;}
  fi

              if test x"${ac_cv_path_ffmpeg_lib}" != x; then

                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdts library" >&5
$as_echo_n "checking for libdts library... " >&6; }
    if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
      $PKG_CONFIG --exists libdts && libdts=`$PKG_CONFIG --libs-only-l libdts`
    else
      libdts=""
    fi
    if test x"${libdts}" = x; then
      if test -f ${top_lib_dir}/libdts.a -o -f ${top_lib_dir}/libdts.${shlibext}; then
        ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -ldts"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libdts" >&5
$as_echo "${top_lib_dir}/libdts" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dts_init in -ldts" >&5
$as_echo_n "checking for dts_init in -ldts... " >&6; }
if test "${ac_cv_lib_dts_dts_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldts  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dts_init ();
int
main ()
{
return dts_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dts_dts_init=yes
else
  ac_cv_lib_dts_dts_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dts_dts_init" >&5
$as_echo "$ac_cv_lib_dts_dts_init" >&6; }
if test "x$ac_cv_lib_dts_dts_init" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -ldts"
fi

        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libdts}" >&5
$as_echo "${libdts}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libdts}"
    fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbisenc library" >&5
$as_echo_n "checking for libvorbisenc library... " >&6; }
    if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
      $PKG_CONFIG --exists vorbisenc && libvorbisenc=`$PKG_CONFIG --libs-only-l vorbisenc`
    else
      libvorbisenc=""
    fi
    if test x"${libvorbisenc}" = x; then
      if test -f ${top_lib_dir}/libvorbisenc.a -o -f ${top_lib_dir}/libvorbisenc.${shlibext}; then
        ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lvorbisenc"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libvorbisenc" >&5
$as_echo "${top_lib_dir}/libvorbisenc" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_encode_init in -lvorbisenc" >&5
$as_echo_n "checking for vorbis_encode_init in -lvorbisenc... " >&6; }
if test "${ac_cv_lib_vorbisenc_vorbis_encode_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvorbisenc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vorbis_encode_init ();
int
main ()
{
return vorbis_encode_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_vorbisenc_vorbis_encode_init=yes
else
  ac_cv_lib_vorbisenc_vorbis_encode_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisenc_vorbis_encode_init" >&5
$as_echo "$ac_cv_lib_vorbisenc_vorbis_encode_init" >&6; }
if test "x$ac_cv_lib_vorbisenc_vorbis_encode_init" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lvorbisenc"
fi

        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libvorbisenc}" >&5
$as_echo "${libvorbisenc}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libvorbisenc}"
    fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavformat library" >&5
$as_echo_n "checking for libavformat library... " >&6; }

        if test x"${cross_compiling}" = xno; then
      if test x"$PKG_CONFIG" != x -a x${libavformat} = x; then
        $PKG_CONFIG --exists libavformat && libavformat=`$PKG_CONFIG --libs-only-l libavformat`
      fi
    fi

    if test x"${libavformat}" = x; then
      if test -f ${top_lib_dir}/libavformat.a -o -f ${top_lib_dir}/libavformat.${shlibext}; then
        ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavformat"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libavformat" >&5
$as_echo "${top_lib_dir}/libavformat" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -llibavformat" >&5
$as_echo_n "checking for av_open_input_file in -llibavformat... " >&6; }
if test "${ac_cv_lib_libavformat_av_open_input_file+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llibavformat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char av_open_input_file ();
int
main ()
{
return av_open_input_file ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_libavformat_av_open_input_file=yes
else
  ac_cv_lib_libavformat_av_open_input_file=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libavformat_av_open_input_file" >&5
$as_echo "$ac_cv_lib_libavformat_av_open_input_file" >&6; }
if test "x$ac_cv_lib_libavformat_av_open_input_file" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavformat"
fi

        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libavformat}" >&5
$as_echo "${libavformat}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libavformat}"
    fi


                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavutil library" >&5
$as_echo_n "checking for libavutil library... " >&6; }
    if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
      $PKG_CONFIG --exists libavutil && libavutil=`$PKG_CONFIG --libs-only-l libavutil`
    else
      libavutil=""
    fi
    if test x"${libavutil}" = x; then
      if test -f ${top_lib_dir}/libavutil.a -o -f ${top_lib_dir}/libavutil.${shlibext}; then
        ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavutil"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libavutil" >&5
$as_echo "${top_lib_dir}/libavutil" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_log in -lavutil" >&5
$as_echo_n "checking for av_log in -lavutil... " >&6; }
if test "${ac_cv_lib_avutil_av_log+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lavutil  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char av_log ();
int
main ()
{
return av_log ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_avutil_av_log=yes
else
  ac_cv_lib_avutil_av_log=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_log" >&5
$as_echo "$ac_cv_lib_avutil_av_log" >&6; }
if test "x$ac_cv_lib_avutil_av_log" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavutil"
fi

        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libavutil}" >&5
$as_echo "${libavutil}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libavutil}"
    fi

                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtheora library" >&5
$as_echo_n "checking for libtheora library... " >&6; }
    if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
      $PKG_CONFIG --exists theora && libtheora=`$PKG_CONFIG --libs-only-l theora`
    else
      libtheora=""
    fi
    if test x"${libtheora}" = x; then
      if test -f ${top_lib_dir}/libtheora.a -o -f ${top_lib_dir}/libtheora.${shlibext}; then
        ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -ltheora"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libtheora" >&5
$as_echo "${top_lib_dir}/libtheora" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for theora_encode_init in -ltheora" >&5
$as_echo_n "checking for theora_encode_init in -ltheora... " >&6; }
if test "${ac_cv_lib_theora_theora_encode_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltheora  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char theora_encode_init ();
int
main ()
{
return theora_encode_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_theora_theora_encode_init=yes
else
  ac_cv_lib_theora_theora_encode_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_theora_theora_encode_init" >&5
$as_echo "$ac_cv_lib_theora_theora_encode_init" >&6; }
if test "x$ac_cv_lib_theora_theora_encode_init" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -ltheora"
fi

        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libtheora}" >&5
$as_echo "${libtheora}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libtheora}"
    fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgsm library" >&5
$as_echo_n "checking for libgsm library... " >&6; }
    if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
      $PKG_CONFIG --exists gsm && libgsm=`$PKG_CONFIG --libs-only-l gsm`
    else
      libgsm=""
    fi

        if test x$openbsd_os != xopenbsd; then
      if test x"${libgsm}" = x; then
        if test -f ${top_lib_dir}/libgsm.a -o -f ${top_lib_dir}/libgsm.${shlibext}; then
          ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lgsm"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libgsm" >&5
$as_echo "${top_lib_dir}/libgsm" >&6; }
        else
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          if test x${cross_compiling} = xno; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_destroy in -lgsm" >&5
$as_echo_n "checking for gsm_destroy in -lgsm... " >&6; }
if test "${ac_cv_lib_gsm_gsm_destroy+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgsm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gsm_destroy ();
int
main ()
{
return gsm_destroy ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gsm_gsm_destroy=yes
else
  ac_cv_lib_gsm_gsm_destroy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_destroy" >&5
$as_echo "$ac_cv_lib_gsm_gsm_destroy" >&6; }
if test "x$ac_cv_lib_gsm_gsm_destroy" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lgsm"
fi

          fi
        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libgsm}" >&5
$as_echo "${libgsm}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libgsm}"
    fi

                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdc1394 library" >&5
$as_echo_n "checking for libdc1394 library... " >&6; }
    if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
      $PKG_CONFIG --exists libdc  && libdc=`$PKG_CONFIG --libs-only-l libdc1394`
    else
      libtdc=""
    fi
    if test x"${libdc}" = x; then
      if test -f ${top_lib_dir}/libdc1394.a -o -f ${top_lib_dir}/libdc1394.${shlibext}; then
        ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -ldc1394"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libdc1394" >&5
$as_echo "${top_lib_dir}/libdc1394" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_is_camera in -ldc1394_control" >&5
$as_echo_n "checking for dc1394_is_camera in -ldc1394_control... " >&6; }
if test "${ac_cv_lib_dc1394_control_dc1394_is_camera+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldc1394_control  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dc1394_is_camera ();
int
main ()
{
return dc1394_is_camera ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dc1394_control_dc1394_is_camera=yes
else
  ac_cv_lib_dc1394_control_dc1394_is_camera=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_control_dc1394_is_camera" >&5
$as_echo "$ac_cv_lib_dc1394_control_dc1394_is_camera" >&6; }
if test "x$ac_cv_lib_dc1394_control_dc1394_is_camera" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -ldc1394_control"
fi

        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libdc}" >&5
$as_echo "${libdc}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libdc}"
    fi

                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libswscale library" >&5
$as_echo_n "checking for libswscale library... " >&6; }
    if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
      $PKG_CONFIG --exists libswscale  && libsws=`$PKG_CONFIG --libs-only-l libswscale`
    else
      libsws=""
    fi
    if test x"${libsws}" = x; then
      if test -f ${top_lib_dir}/libswscale.a -o -f ${top_lib_dir}/libswscale.${shlibext}; then
        ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lswscale"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lswscale  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sws_scale ();
int
main ()
{
return sws_scale ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_swscale_sws_scale=yes
else
  ac_cv_lib_swscale_sws_scale=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :
  ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lswscale"
fi

        fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libsws}" >&5
$as_echo "${libsws}" >&6; }
      ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libsws}"
    fi

  fi

  # Set final compilation flags, eliminating the pointless "-I/usr/include"
  if test x"${ac_cv_path_ffmpeg_lib}" != x ; then
    FFMPEG_LIBS="${ac_cv_path_ffmpeg_lib}"
  else
    FFMPEG_LIBS=""
  fi





  LIBS="$backupLIBS"
  CFLAGS="$backupCFLAGS"

fi


if test x"${build_fb}" = xyes; then
build_ps2mouse=yes
build_ps2keyboard=no
build_input_events=yes
build_tslib=yes
input_events="PS/2 Mouse, Input Devices, Touchscreen via Tslib"
else
build_ps2mouse=no
build_ps2keyboard=no
build_input_events=no
build_tslib=no
input_events=
fi
# Check whether --enable-input was given.
if test "${enable_input+set}" = set; then :
  enableval=$enable_input; if test -n ${enableval}; then
    enableval=`echo ${enableval} | tr '\054' ' ' `
  fi
  while test -n "${enableval}" ; do
    val=`echo ${enableval} | cut -d ' ' -f 1`
    case "${val}" in
      ps2m*|PS2m*|m*|M*)                build_ps2mouse=yes
        input_events="${input_events}, PS/2 Mouse"
        ;;
      ps2k*|PS2K*|k*|K*)                build_ps2keyboard=yes
        input_events="${input_events}, PS/2 Keyboard"
        ;;
      i*|I*|ev*|Ev*)            input_events="${input_events}, Input Event Device"
        build_input_events=yes
        ;;
      t*|T*)         build_tslib=yes
        input_events="${input_events}, Touchscreen"
        ;;
      *) as_fn_error "invalid input device list! ${enableval} given (accept: ps2mouse|keyboard|events,touchscreen)" "$LINENO" 5
         ;;
      esac
    enableval=`echo ${enableval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$enableval"; then
      break;
    fi
  done
fi


if test x"${build_tslib}" = xyes; then

$as_echo "#define USE_TSLIB 1" >>confdefs.h




    ts=yes
    if test x = x; then
      name=ts
    else
      name=ts-
    fi

        if test x"${ts}" = x"yes"; then

# Check whether --with-ts_incl was given.
if test "${with_ts_incl+set}" = set; then :
  withval=$with_ts_incl; with_ts_incl=${withval}
fi

      if test "${ac_cv_path_ts_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_ts_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tslib.h header in specified directory" >&5
$as_echo_n "checking for tslib.h header in specified directory... " >&6; }
        if test -f ${with_ts_incl}/tslib.h ; then
          ac_cv_path_ts_incl="-I`(cd ${with_ts_incl}; pwd)`"
          found_ts_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_ts_incl} directory doesn't contain tslib.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ts_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tslib.h header using pkg-config" >&5
$as_echo_n "checking for tslib.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libts && ac_cv_path_ts_incl="`$PKG_CONFIG --cflags libts`"
      $PKG_CONFIG --exists ts && ac_cv_path_ts_incl="`$PKG_CONFIG --cflags ts`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ts_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ts_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_ts_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ts_incl}" >&5
$as_echo "${ac_cv_path_ts_incl}" >&6; }
        found_ts_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ts_incl}" = x; then
      # Extract the first word of "ts-config", so it can be a program name with args.
set dummy ts-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_TS_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $TS_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TS_CONFIG="$TS_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_TS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
TS_CONFIG=$ac_cv_path_TS_CONFIG
if test -n "$TS_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TS_CONFIG" >&5
$as_echo "$TS_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${TS_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tslib.h header using ts-config" >&5
$as_echo_n "checking for tslib.h header using ts-config... " >&6; }
        ac_cv_path_ts_incl="`${TS_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_ts_incl}" = x; then
          ac_cv_path_ts_incl="`${TS_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_ts_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ts_incl}" >&5
$as_echo "${ac_cv_path_ts_incl}" >&6; }
        	found_ts_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_ts_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default"
if test "x$ac_cv_header_tslib_h" = x""yes; then :
  ac_cv_path_ts_incl=""; found_ts_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "ts/tslib.h" "ac_cv_header_ts_tslib_h" "$ac_includes_default"
if test "x$ac_cv_header_ts_tslib_h" = x""yes; then :
  ac_cv_path_ts_incl="-I/usr/include/ts"; found_ts_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/tslib.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/tslib.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_ts_incl="-I/usr/include/$name"; found_ts_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default"
if test "x$ac_cv_header_tslib_h" = x""yes; then :
  ac_cv_path_ts_incl="-I/usr/include/tslib.h"; found_ts_incl="yes"
else

          if test x"${ac_cv_path_ts_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_ts_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_ts_incl="-I$i"
                else
                  ac_cv_path_ts_incl=""
                fi
                break
              else
                if test -f $i/$name/tslib.h; then
                  found_ts_incl="yes"
                  ac_cv_path_ts_incl="-I$i/$name"
                  break
                else
                  if test -f $i/tslib.h; then
                    found_ts_incl="yes"
                    ac_cv_path_ts_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tslib.h header" >&5
$as_echo_n "checking for tslib.h header... " >&6; }
  if test x"${found_ts_incl}" = "xyes"; then


$as_echo "#define HAVE_TSLIB_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ts_incl}" >&5
$as_echo "${ac_cv_path_ts_incl}" >&6; }
      if test x"${ac_cv_path_ts_incl}" != x -a x"${ac_cv_path_ts_incl}" != x"-I/usr/include"; then
        TS_CFLAGS="${ac_cv_path_ts_incl}"
      else
        TS_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_ts=no
ac_manual=yes

if test x"${ts}" = x"yes"; then

# Check whether --with-ts_lib was given.
if test "${with_ts_lib+set}" = set; then :
  withval=$with_ts_lib; with_ts_lib=${withval}
fi

  if test "${ac_cv_path_ts_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_ts_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libts library in specified directory" >&5
$as_echo_n "checking for libts library in specified directory... " >&6; }
    if test -f ${with_ts_lib}/lib$name.a -o -f ${with_ts_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_ts_lib}; pwd)`"
      ac_cv_path_ts_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_ts_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ts_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libts library using pkg-config" >&5
$as_echo_n "checking for libts library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libts && ac_cv_path_ts_lib="`$PKG_CONFIG --libs libts`"
      $PKG_CONFIG --exists ts && ac_cv_path_ts_lib="`$PKG_CONFIG --libs ts`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ts_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ts_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_ts_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ts_lib}" >&5
$as_echo "${ac_cv_path_ts_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ts_lib}" = x; then
      # Extract the first word of "ts-config", so it can be a program name with args.
set dummy ts-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_TS_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $TS_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TS_CONFIG="$TS_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_TS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
TS_CONFIG=$ac_cv_path_TS_CONFIG
if test -n "$TS_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TS_CONFIG" >&5
$as_echo "$TS_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${TS_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libts library using ts-config" >&5
$as_echo_n "checking for libts library using ts-config... " >&6; }
        ac_cv_path_ts_lib="`${TS_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ts_lib}" >&5
$as_echo "${ac_cv_path_ts_lib}" >&6; }
      fi
      if test x"${ac_cv_path_ts_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_ts_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_ts_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libts.a -o -f $i/libts.${shlibext}; then
        if test -f "$i/libts.a" -o -f "$i/libts.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ts_lib="-L$i -lts "
          else
            ac_cv_path_ts_lib="-lts "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ts_lib="-L$i -l$name "
          else
            ac_cv_path_ts_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_ts_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ts_config" >&5
$as_echo_n "checking for library containing ts_config... " >&6; }
if test "${ac_cv_search_ts_config+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ts_config ();
int
main ()
{
return ts_config ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ts $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_ts_config=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_ts_config+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_ts_config+set}" = set; then :

else
  ac_cv_search_ts_config=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ts_config" >&5
$as_echo "$ac_cv_search_ts_config" >&6; }
ac_res=$ac_cv_search_ts_config
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_ts_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libts library" >&5
$as_echo_n "checking for libts library... " >&6; }
	if test x"${ac_cv_path_ts_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ts_lib}" >&5
$as_echo "${ac_cv_path_ts_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_ts_lib}" != x ; then
    TS_LIBS="${ac_cv_path_ts_lib}"
    has_ts=yes
  else
    TS_LIBS=""
  fi
fi








fi
 if test x${ac_cv_header_tslib_h} != xno; then
  ENABLE_TSLIB_TRUE=
  ENABLE_TSLIB_FALSE='#'
else
  ENABLE_TSLIB_TRUE='#'
  ENABLE_TSLIB_FALSE=
fi


if test x"${build_ps2mouse}" = xyes; then

$as_echo "#define USE_MOUSE_PS2 1" >>confdefs.h

fi
 if test x"${build_ps2mouse}" = xyes; then
  ENABLE_MOUSE_TRUE=
  ENABLE_MOUSE_FALSE='#'
else
  ENABLE_MOUSE_TRUE='#'
  ENABLE_MOUSE_FALSE=
fi


if test x"${build_ps2keyboard}" = xyes; then

$as_echo "#define USE_KEYBOARD_PS2 1" >>confdefs.h

fi
if test x"${build_input_events}" = xyes; then

$as_echo "#define USE_INPUT_EVENTS 1" >>confdefs.h

fi
 if test x"${build_input_events}" = xyes; then
  ENABLE_INPUT_EVENTS_TRUE=
  ENABLE_INPUT_EVENTS_FALSE='#'
else
  ENABLE_INPUT_EVENTS_TRUE='#'
  ENABLE_INPUT_EVENTS_FALSE=
fi

 if test x"${input_events}" != x; then
  ENABLE_INPUT_DEVICES_TRUE=
  ENABLE_INPUT_DEVICES_FALSE='#'
else
  ENABLE_INPUT_DEVICES_TRUE='#'
  ENABLE_INPUT_DEVICES_FALSE=
fi


input_events=
build_ovg=no
build_gles=no
build_ogl=yes
build_agg=yes
build_cairo=yes
renderer_list="OpenGL AGG Cairo"
nrender=3
# Check whether --enable-renderer was given.
if test "${enable_renderer+set}" = set; then :
  enableval=$enable_renderer; if test -n ${enableval}; then
    if test "x${enableval}" != "xno" -o "x${enableval}" != "xnone" ; then
      renderer_list="none"
      enableval=`echo ${enableval} | tr '\054' ' ' `
    else
      renderer_list=""
      enableval=""
    fi
  fi
  renderer_list=""
  nrender=0
  build_ovg=no
  build_ogl=no
  build_gles=no
  build_agg=no
  build_cairo=no
  while test -n "${enableval}" ; do
    val=`echo ${enableval} | cut -d ' ' -f 1`
    case "${val}" in
      no*|NO*)
        renderer_list="none"
        build_ovg=no
        build_ogl=no
        build_gles=no
        build_agg=no
        build_cairo=no
        nrender=1
        ;;
      all|ALL)
        renderer_list="OpenGL, Cairo, AGG"
        build_ogl=yes
        build_agg=yes
        build_cairo=yes
        build_ovg=yes
        nrender=4
        ;;
      ogl|OGL|OpenGL|opengl)
        renderer_list="${renderer_list} OpenGL"
        build_gles=no
        build_ogl=yes
        nrender=$((nrender+1))
        ;;
      gles|GLES|GL-ES|gl-es)
        renderer_list="${renderer_list} OpenGL-ES"
        build_gles=yes
        build_ogl=no
        nrender=$((nrender+1))
        ;;
      ovg|OVG|OpenVG|openvg)
        renderer_list="${renderer_list} OpenVG"
        build_ogv=yes
        nrender=$((nrender+1))
        ;;
      agg|AGG)
        renderer_list="${renderer_list} AGG"
        build_agg=yes
        nrender=$((nrender+1))
        ;;
      cairo|CAIRO|Cairo*)
        renderer_list="${renderer_list} Cairo"
        build_cairo=yes
        nrender=$((nrender+1))
        ;;
      *) as_fn_error "invalid renderer specified: ${enableval} given (accept:  (ogl|cairo|agg|all)" "$LINENO" 5
        ;;
      esac
    enableval=`echo ${enableval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$enableval"; then
      break;
    fi
  done

fi

pixelformat=all

# Check whether --with-pixelformat was given.
if test "${with_pixelformat+set}" = set; then :
  withval=$with_pixelformat; if test -n ${withval}; then
    pixelformat="${withval}"
    withval=`echo ${withval} | tr '\054' ' ' `
  fi
  while test -n "${withval}" ; do
    val=`echo ${withval} | cut -d ' ' -f 1`
    case "${val}" in
      all)
        # allow special value "all" set by user (handled below)
        ;;
      argb32|ARGB32)

$as_echo "#define PIXELFORMAT_ARGB32 1" >>confdefs.h

        ;;
      abgr32|ABGR32)

$as_echo "#define PIXELFORMAT_ABGR32 1" >>confdefs.h

        ;;
      bgra32|BGRA32)

$as_echo "#define PIXELFORMAT_BGRA32 1" >>confdefs.h

        ;;
      bgr24|BGR24)

$as_echo "#define PIXELFORMAT_BGR24 1" >>confdefs.h

        ;;
      rgba32|RGBA32)

$as_echo "#define PIXELFORMAT_RGBA32 1" >>confdefs.h

        ;;
      rgb24|RGB24)

$as_echo "#define PIXELFORMAT_RGB24 1" >>confdefs.h

        ;;
      rgb555|RGB555)

$as_echo "#define PIXELFORMAT_RGB555 1" >>confdefs.h

        ;;
      rgb565|RGB565)

$as_echo "#define PIXELFORMAT_RGB565 1" >>confdefs.h

        ;;
      *) as_fn_error "invalid pixel format ${withval} given (accept: all|RGB555|RGB565|RGB24|BGR24|BGRA32|RGBA32|ARGB32|ABGR32)" "$LINENO" 5
         ;;
      esac
    withval=`echo ${withval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$withval"; then
      break;
    fi
  done
else
  if test x$build_haiku = xyes -a x$build_sdl != xyes; then

$as_echo "#define PIXELFORMAT_BGRA32 1" >>confdefs.h

        pixelformat=BGRA32
   fi

fi


if test x$pixelformat = xall; then
  if test x$build_agg = xyes; then
    ### The fact that we're building GTK doesn't mean we're not also
    ### building KDE or SDL, each needing its own pixel format !
    #if test x$build_gtk = xyes; then
    #  AC_DEFINE(PIXELFORMAT_RGB24, [1], [RGB24 pixel format])
    #  pixelformat="RGB24"
    #else

$as_echo "#define PIXELFORMAT_RGB555 1" >>confdefs.h


$as_echo "#define PIXELFORMAT_RGB565 1" >>confdefs.h


$as_echo "#define PIXELFORMAT_RGB24 1" >>confdefs.h


$as_echo "#define PIXELFORMAT_BGR24 1" >>confdefs.h


$as_echo "#define PIXELFORMAT_RGBA32 1" >>confdefs.h


$as_echo "#define PIXELFORMAT_BGRA32 1" >>confdefs.h


$as_echo "#define PIXELFORMAT_ARGB32 1" >>confdefs.h


$as_echo "#define PIXELFORMAT_ABGR32 1" >>confdefs.h

    #fi
  fi
fi

 if  test x$build_ovg = xyes ; then
  BUILD_OVG_RENDERER_TRUE=
  BUILD_OVG_RENDERER_FALSE='#'
else
  BUILD_OVG_RENDERER_TRUE='#'
  BUILD_OVG_RENDERER_FALSE=
fi

 if  test x$build_gles = xyes ; then
  BUILD_GLES_RENDERER_TRUE=
  BUILD_GLES_RENDERER_FALSE='#'
else
  BUILD_GLES_RENDERER_TRUE='#'
  BUILD_GLES_RENDERER_FALSE=
fi

 if  test x$build_ogl = xyes; then
  BUILD_OGL_RENDERER_TRUE=
  BUILD_OGL_RENDERER_FALSE='#'
else
  BUILD_OGL_RENDERER_TRUE='#'
  BUILD_OGL_RENDERER_FALSE=
fi

 if  test x$build_agg = xyes ; then
  BUILD_AGG_RENDERER_TRUE=
  BUILD_AGG_RENDERER_FALSE='#'
else
  BUILD_AGG_RENDERER_TRUE='#'
  BUILD_AGG_RENDERER_FALSE=
fi

 if  test x$build_cairo = xyes ; then
  BUILD_CAIRO_RENDERER_TRUE=
  BUILD_CAIRO_RENDERER_FALSE='#'
else
  BUILD_CAIRO_RENDERER_TRUE='#'
  BUILD_CAIRO_RENDERER_FALSE=
fi


if test x"${build_ogl}" = xyes; then

$as_echo "#define RENDERER_OPENGL /**/" >>confdefs.h

fi

if test x"$build_agg" = xyes; then

$as_echo "#define RENDERER_AGG /**/" >>confdefs.h

fi

if test x"$build_cairo" = xyes; then



    cairo=yes
    if test x = x; then
      name=cairo
    else
      name=cairo-
    fi

        if test x"${cairo}" = x"yes"; then

# Check whether --with-cairo_incl was given.
if test "${with_cairo_incl+set}" = set; then :
  withval=$with_cairo_incl; with_cairo_incl=${withval}
fi

      if test "${ac_cv_path_cairo_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_cairo_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header in specified directory" >&5
$as_echo_n "checking for cairo.h header in specified directory... " >&6; }
        if test -f ${with_cairo_incl}/cairo.h ; then
          ac_cv_path_cairo_incl="-I`(cd ${with_cairo_incl}; pwd)`"
          found_cairo_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_cairo_incl} directory doesn't contain cairo.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_cairo_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header using pkg-config" >&5
$as_echo_n "checking for cairo.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libcairo && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags libcairo`"
      $PKG_CONFIG --exists cairo && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags cairo`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_cairo_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_incl}" >&5
$as_echo "${ac_cv_path_cairo_incl}" >&6; }
        found_cairo_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_cairo_incl}" = x; then
      # Extract the first word of "cairo-config", so it can be a program name with args.
set dummy cairo-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CAIRO_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $CAIRO_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CAIRO_CONFIG="$CAIRO_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CAIRO_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
CAIRO_CONFIG=$ac_cv_path_CAIRO_CONFIG
if test -n "$CAIRO_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CONFIG" >&5
$as_echo "$CAIRO_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${CAIRO_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header using cairo-config" >&5
$as_echo_n "checking for cairo.h header using cairo-config... " >&6; }
        ac_cv_path_cairo_incl="`${CAIRO_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_cairo_incl}" = x; then
          ac_cv_path_cairo_incl="`${CAIRO_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_cairo_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_incl}" >&5
$as_echo "${ac_cv_path_cairo_incl}" >&6; }
        	found_cairo_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_cairo_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
if test "x$ac_cv_header_cairo_h" = x""yes; then :
  ac_cv_path_cairo_incl=""; found_cairo_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "cairo/cairo.h" "ac_cv_header_cairo_cairo_h" "$ac_includes_default"
if test "x$ac_cv_header_cairo_cairo_h" = x""yes; then :
  ac_cv_path_cairo_incl="-I/usr/include/cairo"; found_cairo_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/cairo.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/cairo.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_cairo_incl="-I/usr/include/$name"; found_cairo_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
if test "x$ac_cv_header_cairo_h" = x""yes; then :
  ac_cv_path_cairo_incl="-I/usr/include/cairo.h"; found_cairo_incl="yes"
else

          if test x"${ac_cv_path_cairo_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_cairo_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_cairo_incl="-I$i"
                else
                  ac_cv_path_cairo_incl=""
                fi
                break
              else
                if test -f $i/$name/cairo.h; then
                  found_cairo_incl="yes"
                  ac_cv_path_cairo_incl="-I$i/$name"
                  break
                else
                  if test -f $i/cairo.h; then
                    found_cairo_incl="yes"
                    ac_cv_path_cairo_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header" >&5
$as_echo_n "checking for cairo.h header... " >&6; }
  if test x"${found_cairo_incl}" = "xyes"; then


$as_echo "#define HAVE_CAIRO_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_incl}" >&5
$as_echo "${ac_cv_path_cairo_incl}" >&6; }
      if test x"${ac_cv_path_cairo_incl}" != x -a x"${ac_cv_path_cairo_incl}" != x"-I/usr/include"; then
        CAIRO_CFLAGS="${ac_cv_path_cairo_incl}"
      else
        CAIRO_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_cairo=no
ac_manual=yes

if test x"${cairo}" = x"yes"; then

# Check whether --with-cairo_lib was given.
if test "${with_cairo_lib+set}" = set; then :
  withval=$with_cairo_lib; with_cairo_lib=${withval}
fi

  if test "${ac_cv_path_cairo_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_cairo_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library in specified directory" >&5
$as_echo_n "checking for libcairo library in specified directory... " >&6; }
    if test -f ${with_cairo_lib}/lib$name.a -o -f ${with_cairo_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_cairo_lib}; pwd)`"
      ac_cv_path_cairo_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_cairo_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_cairo_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library using pkg-config" >&5
$as_echo_n "checking for libcairo library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libcairo && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs libcairo`"
      $PKG_CONFIG --exists cairo && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs cairo`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_cairo_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_lib}" >&5
$as_echo "${ac_cv_path_cairo_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_cairo_lib}" = x; then
      # Extract the first word of "cairo-config", so it can be a program name with args.
set dummy cairo-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CAIRO_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $CAIRO_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CAIRO_CONFIG="$CAIRO_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CAIRO_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
CAIRO_CONFIG=$ac_cv_path_CAIRO_CONFIG
if test -n "$CAIRO_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CONFIG" >&5
$as_echo "$CAIRO_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${CAIRO_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library using cairo-config" >&5
$as_echo_n "checking for libcairo library using cairo-config... " >&6; }
        ac_cv_path_cairo_lib="`${CAIRO_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_lib}" >&5
$as_echo "${ac_cv_path_cairo_lib}" >&6; }
      fi
      if test x"${ac_cv_path_cairo_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_cairo_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_cairo_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libcairo.a -o -f $i/libcairo.${shlibext}; then
        if test -f "$i/libcairo.a" -o -f "$i/libcairo.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_cairo_lib="-L$i -lcairo "
          else
            ac_cv_path_cairo_lib="-lcairo "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_cairo_lib="-L$i -l$name "
          else
            ac_cv_path_cairo_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_cairo_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cairo_status" >&5
$as_echo_n "checking for library containing cairo_status... " >&6; }
if test "${ac_cv_search_cairo_status+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cairo_status ();
int
main ()
{
return cairo_status ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cairo $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cairo_status=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_cairo_status+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_cairo_status+set}" = set; then :

else
  ac_cv_search_cairo_status=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cairo_status" >&5
$as_echo "$ac_cv_search_cairo_status" >&6; }
ac_res=$ac_cv_search_cairo_status
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_cairo_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library" >&5
$as_echo_n "checking for libcairo library... " >&6; }
	if test x"${ac_cv_path_cairo_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_lib}" >&5
$as_echo "${ac_cv_path_cairo_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_cairo_lib}" != x ; then
    CAIRO_LIBS="${ac_cv_path_cairo_lib}"
    has_cairo=yes
  else
    CAIRO_LIBS=""
  fi
fi









$as_echo "#define RENDERER_CAIRO /**/" >>confdefs.h

fi

if test x"${build_agg}" = xyes; then


# Check whether --with-agg_incl was given.
if test "${with_agg_incl+set}" = set; then :
  withval=$with_agg_incl; with_agg_incl=${withval}
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AGG headers" >&5
$as_echo_n "checking for AGG headers... " >&6; }
  if test "${ac_cv_path_agg_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_agg_incl}" != x ; then
      if test -f ${with_agg_incl}/agg_rasterizer_compound_aa.h ; then
        agg_include_dir="`(cd ${with_agg_incl}; pwd)`"
        ac_cv_path_agg_incl="-I${agg_include_dir}"
        agg25=yes
      else
        as_fn_error "${with_agg_incl} directory doesn't contain any headers" "$LINENO" 5
        agg25=no
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_agg_incl}" = x; then
      if $PKG_CONFIG --exists libagg ; then
        ac_cv_path_agg_incl="`$PKG_CONFIG --cflags libagg`"
        $PKG_CONFIG --atleast-version 2.5.0 libagg && agg25=yes

                agg_include_dir="`$PKG_CONFIG --cflags-only-I libagg | cut -d ' ' -f 1 | sed -e 's/-I//g'`"
        if test -f $agg_include_dir/agg_gradient_lut.h ; then
          agg25=yes
        fi
      fi
    fi
  fi

  if test x"${ac_cv_path_agg_incl}" = x; then
    for i in $incllist; do
      if test -f $i/agg2/agg_gradient_lut.h; then
        ac_cv_path_agg_incl="-I$i/agg2"
        agg_include_dir="$i/agg2"
	      agg25=yes
        break
      fi
            if test -f $i/agg/agg_gradient_lut.h; then
        ac_cv_path_agg_incl="-I$i/agg"
        agg_include_dir="$i/agg"
	      agg25=yes
        break
      fi
    done
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_agg_incl}" >&5
$as_echo "${ac_cv_path_agg_incl}" >&6; }

  if test x"${ac_cv_path_agg_incl}" != x ; then
    AGG_CFLAGS="${ac_cv_path_agg_incl}"
  fi





# Check whether --with-agg_lib was given.
if test "${with_agg_lib+set}" = set; then :
  withval=$with_agg_lib; with_agg_lib=${withval}
fi

  if test "${ac_cv_path_agg_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_agg_lib}" != x ; then
      if test -f ${with_agg_lib}/libagg.a -o -f ${with_agg_lib}/libagg.${shlibext}; then
      	ac_cv_path_agg_lib="-L`(cd ${with_agg_lib}; pwd)`"
      else
      	as_fn_error "${with_agg_lib} directory doesn't contain AGG libraries." "$LINENO" 5
      fi
    fi

fi


  pkg=no
  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_agg_lib}" = x; then
      $PKG_CONFIG --exists libagg && ac_cv_path_agg_lib="`$PKG_CONFIG --libs libagg`"
      $PKG_CONFIG --exists libagg && pkg=yes
    fi
  fi

  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

  if test x"${ac_cv_path_agg_lib}" = x; then
    for i in $libslist; do
      if test -f $i/libagg.a -o -f $i/libagg.${shlibext}; then
      	if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
      	  ac_cv_path_agg_lib="-L$i"
      	  break
        else
      	  ac_cv_path_agg_lib=""
      	  break
        fi
      fi
    done
  fi

  if test x"${ac_cv_path_agg_lib}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for agg::gamma_ctrl_impl::calc_points in -lagg" >&5
$as_echo_n "checking for agg::gamma_ctrl_impl::calc_points in -lagg... " >&6; }
if test "${ac_cv_lib_agg_agg__gamma_ctrl_impl__calc_points+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lagg  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char agg::gamma_ctrl_impl::calc_points ();
int
main ()
{
return agg::gamma_ctrl_impl::calc_points ();
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ac_cv_lib_agg_agg__gamma_ctrl_impl__calc_points=yes
else
  ac_cv_lib_agg_agg__gamma_ctrl_impl__calc_points=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_agg_agg__gamma_ctrl_impl__calc_points" >&5
$as_echo "$ac_cv_lib_agg_agg__gamma_ctrl_impl__calc_points" >&6; }
if test "x$ac_cv_lib_agg_agg__gamma_ctrl_impl__calc_points" = x""yes; then :
  ac_cv_path_agg_lib=""
fi

  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libagg library" >&5
$as_echo_n "checking for libagg library... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_agg_lib}" >&5
$as_echo "${ac_cv_path_agg_lib}" >&6; }
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test x"${ac_cv_path_agg_lib}" != x -a x"$pkg" = x"yes"; then
    AGG_LIBS="${ac_cv_path_agg_lib}"
  else
    if test x"$agg25" = x"yes"; then
      AGG_LIBS="${ac_cv_path_agg_lib} -lagg"
    else
      AGG_LIBS=""
    fi
  fi






fi


build_xv=yes
build_vaapi=yes
hwaccel_list="VAAPI XVideo"
nhwaccel=2
# Check whether --enable-hwaccel was given.
if test "${enable_hwaccel+set}" = set; then :
  enableval=$enable_hwaccel; if test -z ${enableval}; then
      hwaccel_list="none"
      nhwaccel=1
      enableval=""
  fi
  while test -n "${enableval}" ; do
    val=`echo ${enableval} | cut -d ' ' -f 1`
    case "${val}" in
      no*|NO*)
        hwaccel_list="none"
        build_vaapi=no
        build_omap=no
                nhwaccel=0
        ;;
      va*|VA*)
        hwaccel_list="${hwaccel_list} vaapi"
        build_vaapi=yes
        nhwaccel=$((nhwaccel+1))
        ;;
      xv*|XV*|Xv*)
        hwaccel_list="${hwaccel_list} XVideo"
                nhwaccel=$((nhwaccel+1))
        ;;
      all|ALL)
        hwaccel_list="XVideo VAAPI OMAP"
        nhwaccel=3
        build_omap=yes
        build_vaapi=yes
                ;;
      omap*|OMAP*)
        hwaccel_list="${hwaccel_list} omap"
        build_omap=yes
        nhwaccel=$((nhwaccel+1))
        ;;
      *) as_fn_error "invalid hwaccel feature specified: ${enableval} given (accept: none,vaapi,omap)" "$LINENO" 5
        ;;
      esac
    enableval=`echo ${enableval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$enableval"; then
      break;
    fi
  done

fi


if test x"${have_ffmpeg_vaapi}" = x"yes" -a x"${build_vaapi}" = x"yes"; then
  use_libva=no
  use_libva_x11=no
  use_libva_glx=no
      if test x"${have_ffmpeg_vaapi}" = xyes; then
    use_libva=yes



    libva=yes
    if test x = x; then
      name=libva
    else
      name=libva-
    fi

        if test x"${libva}" = x"yes"; then

# Check whether --with-libva_incl was given.
if test "${with_libva_incl+set}" = set; then :
  withval=$with_libva_incl; with_libva_incl=${withval}
fi

      if test "${ac_cv_path_libva_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_libva_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va.h header in specified directory" >&5
$as_echo_n "checking for va/va.h header in specified directory... " >&6; }
        if test -f ${with_libva_incl}/va/va.h ; then
          ac_cv_path_libva_incl="-I`(cd ${with_libva_incl}; pwd)`"
          found_libva_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_libva_incl} directory doesn't contain va/va.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libva_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va.h header using pkg-config" >&5
$as_echo_n "checking for va/va.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibva && ac_cv_path_libva_incl="`$PKG_CONFIG --cflags liblibva`"
      $PKG_CONFIG --exists libva && ac_cv_path_libva_incl="`$PKG_CONFIG --cflags libva`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libva_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libva_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_libva_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_incl}" >&5
$as_echo "${ac_cv_path_libva_incl}" >&6; }
        found_libva_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libva_incl}" = x; then
      # Extract the first word of "libva-config", so it can be a program name with args.
set dummy libva-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBVA_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBVA_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBVA_CONFIG="$LIBVA_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBVA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBVA_CONFIG=$ac_cv_path_LIBVA_CONFIG
if test -n "$LIBVA_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_CONFIG" >&5
$as_echo "$LIBVA_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBVA_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va.h header using libva-config" >&5
$as_echo_n "checking for va/va.h header using libva-config... " >&6; }
        ac_cv_path_libva_incl="`${LIBVA_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_libva_incl}" = x; then
          ac_cv_path_libva_incl="`${LIBVA_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_libva_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_incl}" >&5
$as_echo "${ac_cv_path_libva_incl}" >&6; }
        	found_libva_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_libva_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "va/va.h" "ac_cv_header_va_va_h" "$ac_includes_default"
if test "x$ac_cv_header_va_va_h" = x""yes; then :
  ac_cv_path_libva_incl=""; found_libva_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "libva/va/va.h" "ac_cv_header_libva_va_va_h" "$ac_includes_default"
if test "x$ac_cv_header_libva_va_va_h" = x""yes; then :
  ac_cv_path_libva_incl="-I/usr/include/libva"; found_libva_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/va/va.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/va/va.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_libva_incl="-I/usr/include/$name"; found_libva_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "va/va.h" "ac_cv_header_va_va_h" "$ac_includes_default"
if test "x$ac_cv_header_va_va_h" = x""yes; then :
  ac_cv_path_libva_incl="-I/usr/include/va/va.h"; found_libva_incl="yes"
else

          if test x"${ac_cv_path_libva_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_libva_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_libva_incl="-I$i"
                else
                  ac_cv_path_libva_incl=""
                fi
                break
              else
                if test -f $i/$name/va/va.h; then
                  found_libva_incl="yes"
                  ac_cv_path_libva_incl="-I$i/$name"
                  break
                else
                  if test -f $i/va/va.h; then
                    found_libva_incl="yes"
                    ac_cv_path_libva_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va.h header" >&5
$as_echo_n "checking for va/va.h header... " >&6; }
  if test x"${found_libva_incl}" = "xyes"; then


$as_echo "#define HAVE_VA_VA_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_incl}" >&5
$as_echo "${ac_cv_path_libva_incl}" >&6; }
      if test x"${ac_cv_path_libva_incl}" != x -a x"${ac_cv_path_libva_incl}" != x"-I/usr/include"; then
        LIBVA_CFLAGS="${ac_cv_path_libva_incl}"
      else
        LIBVA_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_libva=no
ac_manual=yes

if test x"${libva}" = x"yes"; then

# Check whether --with-libva_lib was given.
if test "${with_libva_lib+set}" = set; then :
  withval=$with_libva_lib; with_libva_lib=${withval}
fi

  if test "${ac_cv_path_libva_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_libva_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva library in specified directory" >&5
$as_echo_n "checking for liblibva library in specified directory... " >&6; }
    if test -f ${with_libva_lib}/lib$name.a -o -f ${with_libva_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_libva_lib}; pwd)`"
      ac_cv_path_libva_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_libva_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libva_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva library using pkg-config" >&5
$as_echo_n "checking for liblibva library using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibva && ac_cv_path_libva_lib="`$PKG_CONFIG --libs liblibva`"
      $PKG_CONFIG --exists libva && ac_cv_path_libva_lib="`$PKG_CONFIG --libs libva`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libva_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libva_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_libva_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_lib}" >&5
$as_echo "${ac_cv_path_libva_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libva_lib}" = x; then
      # Extract the first word of "libva-config", so it can be a program name with args.
set dummy libva-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBVA_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBVA_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBVA_CONFIG="$LIBVA_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBVA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBVA_CONFIG=$ac_cv_path_LIBVA_CONFIG
if test -n "$LIBVA_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_CONFIG" >&5
$as_echo "$LIBVA_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBVA_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva library using libva-config" >&5
$as_echo_n "checking for liblibva library using libva-config... " >&6; }
        ac_cv_path_libva_lib="`${LIBVA_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_lib}" >&5
$as_echo "${ac_cv_path_libva_lib}" >&6; }
      fi
      if test x"${ac_cv_path_libva_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_libva_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_libva_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/liblibva.a -o -f $i/liblibva.${shlibext}; then
        if test -f "$i/liblibva.a" -o -f "$i/liblibva.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libva_lib="-L$i -llibva "
          else
            ac_cv_path_libva_lib="-llibva "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libva_lib="-L$i -l$name "
          else
            ac_cv_path_libva_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_libva_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing vaInitialize
    " >&5
$as_echo_n "checking for library containing vaInitialize
    ... " >&6; }
if test "${ac_cv_search_vaInitialize_____+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vaInitialize
     ();
int
main ()
{
return vaInitialize
     ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' libva $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_vaInitialize_____=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_vaInitialize_____+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_vaInitialize_____+set}" = set; then :

else
  ac_cv_search_vaInitialize_____=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_vaInitialize_____" >&5
$as_echo "$ac_cv_search_vaInitialize_____" >&6; }
ac_res=$ac_cv_search_vaInitialize_____
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_libva_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva library" >&5
$as_echo_n "checking for liblibva library... " >&6; }
	if test x"${ac_cv_path_libva_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_lib}" >&5
$as_echo "${ac_cv_path_libva_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_libva_lib}" != x ; then
    LIBVA_LIBS="${ac_cv_path_libva_lib}"
    has_libva=yes
  else
    LIBVA_LIBS=""
  fi
fi









    use_libva_x11=yes



    libva_x11=yes
    if test x = x; then
      name=libva-x11
    else
      name=libva-x11-
    fi

        if test x"${libva_x11}" = x"yes"; then

# Check whether --with-libva_x11_incl was given.
if test "${with_libva_x11_incl+set}" = set; then :
  withval=$with_libva_x11_incl; with_libva_x11_incl=${withval}
fi

      if test "${ac_cv_path_libva_x11_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_libva_x11_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_x11.h header in specified directory" >&5
$as_echo_n "checking for va/va_x11.h header in specified directory... " >&6; }
        if test -f ${with_libva_x11_incl}/va/va_x11.h ; then
          ac_cv_path_libva_x11_incl="-I`(cd ${with_libva_x11_incl}; pwd)`"
          found_libva_x11_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_libva_x11_incl} directory doesn't contain va/va_x11.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libva_x11_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_x11.h header using pkg-config" >&5
$as_echo_n "checking for va/va_x11.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibva-x11 && ac_cv_path_libva_x11_incl="`$PKG_CONFIG --cflags liblibva-x11`"
      $PKG_CONFIG --exists libva-x11 && ac_cv_path_libva_x11_incl="`$PKG_CONFIG --cflags libva-x11`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libva_x11_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libva_x11_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_libva_x11_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_x11_incl}" >&5
$as_echo "${ac_cv_path_libva_x11_incl}" >&6; }
        found_libva_x11_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libva_x11_incl}" = x; then
      # Extract the first word of "libva_x11-config", so it can be a program name with args.
set dummy libva_x11-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBVA_X11_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBVA_X11_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBVA_X11_CONFIG="$LIBVA_X11_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBVA_X11_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBVA_X11_CONFIG=$ac_cv_path_LIBVA_X11_CONFIG
if test -n "$LIBVA_X11_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_X11_CONFIG" >&5
$as_echo "$LIBVA_X11_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBVA_X11_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_x11.h header using libva_x11-config" >&5
$as_echo_n "checking for va/va_x11.h header using libva_x11-config... " >&6; }
        ac_cv_path_libva_x11_incl="`${LIBVA_X11_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_libva_x11_incl}" = x; then
          ac_cv_path_libva_x11_incl="`${LIBVA_X11_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_libva_x11_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_x11_incl}" >&5
$as_echo "${ac_cv_path_libva_x11_incl}" >&6; }
        	found_libva_x11_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_libva_x11_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "va/va_x11.h" "ac_cv_header_va_va_x11_h" "$ac_includes_default"
if test "x$ac_cv_header_va_va_x11_h" = x""yes; then :
  ac_cv_path_libva_x11_incl=""; found_libva_x11_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "libva_x11/va/va_x11.h" "ac_cv_header_libva_x11_va_va_x11_h" "$ac_includes_default"
if test "x$ac_cv_header_libva_x11_va_va_x11_h" = x""yes; then :
  ac_cv_path_libva_x11_incl="-I/usr/include/libva_x11"; found_libva_x11_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/va/va_x11.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/va/va_x11.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_libva_x11_incl="-I/usr/include/$name"; found_libva_x11_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "va/va_x11.h" "ac_cv_header_va_va_x11_h" "$ac_includes_default"
if test "x$ac_cv_header_va_va_x11_h" = x""yes; then :
  ac_cv_path_libva_x11_incl="-I/usr/include/va/va_x11.h"; found_libva_x11_incl="yes"
else

          if test x"${ac_cv_path_libva_x11_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_libva_x11_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_libva_x11_incl="-I$i"
                else
                  ac_cv_path_libva_x11_incl=""
                fi
                break
              else
                if test -f $i/$name/va/va_x11.h; then
                  found_libva_x11_incl="yes"
                  ac_cv_path_libva_x11_incl="-I$i/$name"
                  break
                else
                  if test -f $i/va/va_x11.h; then
                    found_libva_x11_incl="yes"
                    ac_cv_path_libva_x11_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_x11.h header" >&5
$as_echo_n "checking for va/va_x11.h header... " >&6; }
  if test x"${found_libva_x11_incl}" = "xyes"; then


$as_echo "#define HAVE_VA_VA_X11_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_x11_incl}" >&5
$as_echo "${ac_cv_path_libva_x11_incl}" >&6; }
      if test x"${ac_cv_path_libva_x11_incl}" != x -a x"${ac_cv_path_libva_x11_incl}" != x"-I/usr/include"; then
        LIBVA_X11_CFLAGS="${ac_cv_path_libva_x11_incl}"
      else
        LIBVA_X11_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_libva_x11=no
ac_manual=yes

if test x"${libva_x11}" = x"yes"; then

# Check whether --with-libva_x11_lib was given.
if test "${with_libva_x11_lib+set}" = set; then :
  withval=$with_libva_x11_lib; with_libva_x11_lib=${withval}
fi

  if test "${ac_cv_path_libva_x11_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_libva_x11_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_x11 library in specified directory" >&5
$as_echo_n "checking for liblibva_x11 library in specified directory... " >&6; }
    if test -f ${with_libva_x11_lib}/lib$name.a -o -f ${with_libva_x11_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_libva_x11_lib}; pwd)`"
      ac_cv_path_libva_x11_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_libva_x11_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libva_x11_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_x11 library using pkg-config" >&5
$as_echo_n "checking for liblibva_x11 library using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibva-x11 && ac_cv_path_libva_x11_lib="`$PKG_CONFIG --libs liblibva-x11`"
      $PKG_CONFIG --exists libva-x11 && ac_cv_path_libva_x11_lib="`$PKG_CONFIG --libs libva-x11`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libva_x11_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libva_x11_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_libva_x11_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_x11_lib}" >&5
$as_echo "${ac_cv_path_libva_x11_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libva_x11_lib}" = x; then
      # Extract the first word of "libva_x11-config", so it can be a program name with args.
set dummy libva_x11-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBVA_X11_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBVA_X11_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBVA_X11_CONFIG="$LIBVA_X11_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBVA_X11_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBVA_X11_CONFIG=$ac_cv_path_LIBVA_X11_CONFIG
if test -n "$LIBVA_X11_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_X11_CONFIG" >&5
$as_echo "$LIBVA_X11_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBVA_X11_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_x11 library using libva_x11-config" >&5
$as_echo_n "checking for liblibva_x11 library using libva_x11-config... " >&6; }
        ac_cv_path_libva_x11_lib="`${LIBVA_X11_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_x11_lib}" >&5
$as_echo "${ac_cv_path_libva_x11_lib}" >&6; }
      fi
      if test x"${ac_cv_path_libva_x11_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_libva_x11_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_libva_x11_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/liblibva_x11.a -o -f $i/liblibva_x11.${shlibext}; then
        if test -f "$i/liblibva_x11.a" -o -f "$i/liblibva_x11.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libva_x11_lib="-L$i -llibva_x11 -lva-x11
    "
          else
            ac_cv_path_libva_x11_lib="-llibva_x11 -lva-x11
    "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libva_x11_lib="-L$i -l$name -lva-x11
    "
          else
            ac_cv_path_libva_x11_lib="-l$name -lva-x11
    "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_libva_x11_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing vaGetDisplay" >&5
$as_echo_n "checking for library containing vaGetDisplay... " >&6; }
if test "${ac_cv_search_vaGetDisplay+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vaGetDisplay ();
int
main ()
{
return vaGetDisplay ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' libva_x11 $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_vaGetDisplay=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_vaGetDisplay+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_vaGetDisplay+set}" = set; then :

else
  ac_cv_search_vaGetDisplay=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_vaGetDisplay" >&5
$as_echo "$ac_cv_search_vaGetDisplay" >&6; }
ac_res=$ac_cv_search_vaGetDisplay
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_libva_x11_lib="$LIBS -lva-x11
    "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_x11 library" >&5
$as_echo_n "checking for liblibva_x11 library... " >&6; }
	if test x"${ac_cv_path_libva_x11_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_x11_lib}" >&5
$as_echo "${ac_cv_path_libva_x11_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_libva_x11_lib}" != x ; then
    LIBVA_X11_LIBS="${ac_cv_path_libva_x11_lib}"
    has_libva_x11=yes
  else
    LIBVA_X11_LIBS=""
  fi
fi









    if test x$build_ogl = xyes; then
      use_libva_glx=yes



    libva_glx=yes
    if test x = x; then
      name=libva-glx
    else
      name=libva-glx-
    fi

        if test x"${libva_glx}" = x"yes"; then

# Check whether --with-libva_glx_incl was given.
if test "${with_libva_glx_incl+set}" = set; then :
  withval=$with_libva_glx_incl; with_libva_glx_incl=${withval}
fi

      if test "${ac_cv_path_libva_glx_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_libva_glx_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_glx.h header in specified directory" >&5
$as_echo_n "checking for va/va_glx.h header in specified directory... " >&6; }
        if test -f ${with_libva_glx_incl}/va/va_glx.h ; then
          ac_cv_path_libva_glx_incl="-I`(cd ${with_libva_glx_incl}; pwd)`"
          found_libva_glx_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_libva_glx_incl} directory doesn't contain va/va_glx.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libva_glx_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_glx.h header using pkg-config" >&5
$as_echo_n "checking for va/va_glx.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibva-glx && ac_cv_path_libva_glx_incl="`$PKG_CONFIG --cflags liblibva-glx`"
      $PKG_CONFIG --exists libva-glx && ac_cv_path_libva_glx_incl="`$PKG_CONFIG --cflags libva-glx`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libva_glx_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libva_glx_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_libva_glx_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_glx_incl}" >&5
$as_echo "${ac_cv_path_libva_glx_incl}" >&6; }
        found_libva_glx_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libva_glx_incl}" = x; then
      # Extract the first word of "libva_glx-config", so it can be a program name with args.
set dummy libva_glx-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBVA_GLX_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBVA_GLX_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBVA_GLX_CONFIG="$LIBVA_GLX_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBVA_GLX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBVA_GLX_CONFIG=$ac_cv_path_LIBVA_GLX_CONFIG
if test -n "$LIBVA_GLX_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_GLX_CONFIG" >&5
$as_echo "$LIBVA_GLX_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBVA_GLX_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_glx.h header using libva_glx-config" >&5
$as_echo_n "checking for va/va_glx.h header using libva_glx-config... " >&6; }
        ac_cv_path_libva_glx_incl="`${LIBVA_GLX_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_libva_glx_incl}" = x; then
          ac_cv_path_libva_glx_incl="`${LIBVA_GLX_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_libva_glx_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_glx_incl}" >&5
$as_echo "${ac_cv_path_libva_glx_incl}" >&6; }
        	found_libva_glx_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_libva_glx_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "va/va_glx.h" "ac_cv_header_va_va_glx_h" "$ac_includes_default"
if test "x$ac_cv_header_va_va_glx_h" = x""yes; then :
  ac_cv_path_libva_glx_incl=""; found_libva_glx_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "libva_glx/va/va_glx.h" "ac_cv_header_libva_glx_va_va_glx_h" "$ac_includes_default"
if test "x$ac_cv_header_libva_glx_va_va_glx_h" = x""yes; then :
  ac_cv_path_libva_glx_incl="-I/usr/include/libva_glx"; found_libva_glx_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/va/va_glx.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/va/va_glx.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_libva_glx_incl="-I/usr/include/$name"; found_libva_glx_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "va/va_glx.h" "ac_cv_header_va_va_glx_h" "$ac_includes_default"
if test "x$ac_cv_header_va_va_glx_h" = x""yes; then :
  ac_cv_path_libva_glx_incl="-I/usr/include/va/va_glx.h"; found_libva_glx_incl="yes"
else

          if test x"${ac_cv_path_libva_glx_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_libva_glx_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_libva_glx_incl="-I$i"
                else
                  ac_cv_path_libva_glx_incl=""
                fi
                break
              else
                if test -f $i/$name/va/va_glx.h; then
                  found_libva_glx_incl="yes"
                  ac_cv_path_libva_glx_incl="-I$i/$name"
                  break
                else
                  if test -f $i/va/va_glx.h; then
                    found_libva_glx_incl="yes"
                    ac_cv_path_libva_glx_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va/va_glx.h header" >&5
$as_echo_n "checking for va/va_glx.h header... " >&6; }
  if test x"${found_libva_glx_incl}" = "xyes"; then


$as_echo "#define HAVE_VA_VA_GLX_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_glx_incl}" >&5
$as_echo "${ac_cv_path_libva_glx_incl}" >&6; }
      if test x"${ac_cv_path_libva_glx_incl}" != x -a x"${ac_cv_path_libva_glx_incl}" != x"-I/usr/include"; then
        LIBVA_GLX_CFLAGS="${ac_cv_path_libva_glx_incl}"
      else
        LIBVA_GLX_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_libva_glx=no
ac_manual=yes

if test x"${libva_glx}" = x"yes"; then

# Check whether --with-libva_glx_lib was given.
if test "${with_libva_glx_lib+set}" = set; then :
  withval=$with_libva_glx_lib; with_libva_glx_lib=${withval}
fi

  if test "${ac_cv_path_libva_glx_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_libva_glx_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_glx library in specified directory" >&5
$as_echo_n "checking for liblibva_glx library in specified directory... " >&6; }
    if test -f ${with_libva_glx_lib}/lib$name.a -o -f ${with_libva_glx_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_libva_glx_lib}; pwd)`"
      ac_cv_path_libva_glx_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_libva_glx_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libva_glx_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_glx library using pkg-config" >&5
$as_echo_n "checking for liblibva_glx library using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibva-glx && ac_cv_path_libva_glx_lib="`$PKG_CONFIG --libs liblibva-glx`"
      $PKG_CONFIG --exists libva-glx && ac_cv_path_libva_glx_lib="`$PKG_CONFIG --libs libva-glx`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libva_glx_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libva_glx_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_libva_glx_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_glx_lib}" >&5
$as_echo "${ac_cv_path_libva_glx_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libva_glx_lib}" = x; then
      # Extract the first word of "libva_glx-config", so it can be a program name with args.
set dummy libva_glx-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBVA_GLX_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBVA_GLX_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBVA_GLX_CONFIG="$LIBVA_GLX_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBVA_GLX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBVA_GLX_CONFIG=$ac_cv_path_LIBVA_GLX_CONFIG
if test -n "$LIBVA_GLX_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_GLX_CONFIG" >&5
$as_echo "$LIBVA_GLX_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBVA_GLX_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_glx library using libva_glx-config" >&5
$as_echo_n "checking for liblibva_glx library using libva_glx-config... " >&6; }
        ac_cv_path_libva_glx_lib="`${LIBVA_GLX_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_glx_lib}" >&5
$as_echo "${ac_cv_path_libva_glx_lib}" >&6; }
      fi
      if test x"${ac_cv_path_libva_glx_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_libva_glx_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_libva_glx_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/liblibva_glx.a -o -f $i/liblibva_glx.${shlibext}; then
        if test -f "$i/liblibva_glx.a" -o -f "$i/liblibva_glx.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libva_glx_lib="-L$i -llibva_glx -lva-glx
      "
          else
            ac_cv_path_libva_glx_lib="-llibva_glx -lva-glx
      "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libva_glx_lib="-L$i -l$name -lva-glx
      "
          else
            ac_cv_path_libva_glx_lib="-l$name -lva-glx
      "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_libva_glx_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing vaGetDisplayGLX" >&5
$as_echo_n "checking for library containing vaGetDisplayGLX... " >&6; }
if test "${ac_cv_search_vaGetDisplayGLX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vaGetDisplayGLX ();
int
main ()
{
return vaGetDisplayGLX ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' libva_glx $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_vaGetDisplayGLX=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_vaGetDisplayGLX+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_vaGetDisplayGLX+set}" = set; then :

else
  ac_cv_search_vaGetDisplayGLX=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_vaGetDisplayGLX" >&5
$as_echo "$ac_cv_search_vaGetDisplayGLX" >&6; }
ac_res=$ac_cv_search_vaGetDisplayGLX
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_libva_glx_lib="$LIBS -lva-glx
      "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibva_glx library" >&5
$as_echo_n "checking for liblibva_glx library... " >&6; }
	if test x"${ac_cv_path_libva_glx_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libva_glx_lib}" >&5
$as_echo "${ac_cv_path_libva_glx_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_libva_glx_lib}" != x ; then
    LIBVA_GLX_LIBS="${ac_cv_path_libva_glx_lib}"
    has_libva_glx=yes
  else
    LIBVA_GLX_LIBS=""
  fi
fi








    fi
  fi
fi

 if test x"${build_omap}" = xyes; then
  BUILD_OMAP_TRUE=
  BUILD_OMAP_FALSE='#'
else
  BUILD_OMAP_TRUE='#'
  BUILD_OMAP_FALSE=
fi

 if test x"${use_libva}" = xyes; then
  USE_VAAPI_TRUE=
  USE_VAAPI_FALSE='#'
else
  USE_VAAPI_TRUE='#'
  USE_VAAPI_FALSE=
fi


if test x"${have_ffmpeg_vaapi}" = x"yes" -a x"${found_libva_incl}" = xyes; then
  build_vaapi=yes
  hwaccel_list="VAAPI XVideo"
  nhwaccel=2
else
  build_vaapi=no
  hwaccel_list="XVideo"
  nhwaccel=1
fi

if test x"${build_vaapi}" = x"yes" -a x"${have_ffmpeg}" != x"yes"; then
  as_fn_error "\"Hardware acceleration currently not supported unless using ffmpeg.\"" "$LINENO" 5
fi

 if test x"${found_libva_incl}" = xyes; then
  HAVE_VAAPI_TRUE=
  HAVE_VAAPI_FALSE='#'
else
  HAVE_VAAPI_TRUE='#'
  HAVE_VAAPI_FALSE=
fi

 if test x"${found_libva_glx_incl}" = xyes; then
  HAVE_VAAPI_GLX_TRUE=
  HAVE_VAAPI_GLX_FALSE='#'
else
  HAVE_VAAPI_GLX_TRUE='#'
  HAVE_VAAPI_GLX_FALSE=
fi

 if test x"${found_libva_x11_incl}" = xyes; then
  HAVE_VAAPI_X11_TRUE=
  HAVE_VAAPI_X11_FALSE='#'
else
  HAVE_VAAPI_X11_TRUE='#'
  HAVE_VAAPI_X11_FALSE=
fi



# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PERL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


 if test x"$PERL" != x; then
  HAVE_PERL_TRUE=
  HAVE_PERL_FALSE='#'
else
  HAVE_PERL_TRUE='#'
  HAVE_PERL_FALSE=
fi


# Extract the first word of "csound", so it can be a program name with args.
set dummy csound; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CSOUND+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $CSOUND in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CSOUND="$CSOUND" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CSOUND="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
CSOUND=$ac_cv_path_CSOUND
if test -n "$CSOUND"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSOUND" >&5
$as_echo "$CSOUND" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


 if test x"$CSOUND" != x; then
  HAVE_CSOUND_TRUE=
  HAVE_CSOUND_FALSE='#'
else
  HAVE_CSOUND_TRUE='#'
  HAVE_CSOUND_FALSE=
fi


# Check whether --enable-lirc was given.
if test "${enable_lirc+set}" = set; then :
  enableval=$enable_lirc; case "${enableval}" in
  yes) lirc=yes ;;
  no)  lirc=no ;;
  *)   as_fn_error "bad value ${enableval} for enable-lirc option" "$LINENO" 5 ;;
esac
else
  lirc=no
fi


if test x"$lirc" = x"yes"; then

$as_echo "#define USE_LIRC /**/" >>confdefs.h

fi
 if test x$lirc = xyes; then
  USE_LIRC_TRUE=
  USE_LIRC_FALSE='#'
else
  USE_LIRC_TRUE='#'
  USE_LIRC_FALSE=
fi


extensions_list=
ext_dejagnu=no
ext_mysql=no
ext_fileio=no
ext_gtk=no
ext_lirc=no
ext_dbus=no
ext_all=no
ext_launcher=no
# Check whether --enable-extensions was given.
if test "${enable_extensions+set}" = set; then :
  enableval=$enable_extensions; if test -n ${enableval}; then
    if test "x${enableval}" != "xno"; then
      extlist="${enableval}"
      enableval=`echo ${enableval} | tr '\054' ' ' `
    else
      extlist=""
      enableval=""
    fi
  fi
  nextensions=0
  while test -n "${enableval}" ; do
    val=`echo ${enableval} | cut -d ' ' -f 1`
    extensions_list="${extensions_list} ${val}"
    case "${val}" in
      dejagnu|DEJAGNU|dj|DJ)

$as_echo "#define USE_DEJAGNU_EXT 1" >>confdefs.h

        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding DejaGnu extension" >&5
$as_echo "$as_me: Adding DejaGnu extension" >&6;}
        ext_dejagnu=yes
        nextensions=$((nextensions+1))
        ;;
      mysql|MYSQL|sql|SQL)

$as_echo "#define USE_MYSQL_EXT 1" >>confdefs.h

        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding MySql extension" >&5
$as_echo "$as_me: Adding MySql extension" >&6;}
        ext_mysql=yes
        nextensions=$((nextensions+1))
        ;;
      fileio|FILEIO|io|IO)

$as_echo "#define USE_FILEIO_EXT 1" >>confdefs.h

        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding FileIO extension" >&5
$as_echo "$as_me: Adding FileIO extension" >&6;}
        ext_fileio=yes
        nextensions=$((nextensions+1))
        ;;
      gtk|GTK|gtk2|GTK2)

$as_echo "#define USE_GTK_EXT 1" >>confdefs.h

        ext_gtk=yes
        nextensions=$((nextensions+1))
        ;;
      launcher|LAUNCHER)

$as_echo "#define USE_LAUNCHER_EXT 1" >>confdefs.h

        ext_launcher=yes
        nextensions=$((nextensions+1))
        ;;
      lirc|LIRC)

$as_echo "#define USE_LIRC_EXT 1" >>confdefs.h

        ext_lirc=yes
        nextensions=$((nextensions+1))
        ;;
      dbus|DBUS)

$as_echo "#define USE_DBUS_EXT 1" >>confdefs.h

        ext_dbus=yes
        nextensions=$((nextensions+1))
        ;;
      all|ALL)

$as_echo "#define USE_GTK_EXT 1" >>confdefs.h

        ext_dejagnu=yes
        ext_mysql=yes
        ext_fileio=yes
        ext_gtk=yes
        ext_lirc=yes
        ext_dbus=yes
        ext_launcher=yes
        ext_all=yes
        nextensions=9
        ;;
      *) as_fn_error "invalid extension specified: ${enableval} given (accept: MYSQL|DEJAGNU|FILEIO|GTK|LIRC|DBUS|METOME|ALL)" "$LINENO" 5
         ;;
      esac
    enableval=`echo ${enableval} | cut -d ' ' -f 2-6`
    if test "x$val" = "x$enableval"; then
      break;
    fi
  done
  EXTENSIONS_LIST="$extensions_list"


fi


if test x$ext_dbus = xyes; then



# Check whether --with-dbus_incl was given.
if test "${with_dbus_incl+set}" = set; then :
  withval=$with_dbus_incl; with_dbus_incl=${withval}
fi

  if test "${ac_cv_path_dbus_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_dbus_incl}" != x ; then
      if test -f ${with_dbus_incl}/dbus/dbus.h ; then
        ac_cv_path_dbus_incl="-I`(cd ${with_dbus_incl}; pwd)`"
      else
        as_fn_error "${with_dbus_incl} directory doesn't contain dbus/dbus.h" "$LINENO" 5
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_dbus_incl}" = x; then
      $PKG_CONFIG --exists dbus-1 && ac_cv_path_dbus_incl=`$PKG_CONFIG --cflags dbus-1`
    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Dbus Version" >&5
$as_echo_n "checking for the Dbus Version... " >&6; }

  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x; then
      $PKG_CONFIG --exists dbus-1 && gnash_dbus_version=`$PKG_CONFIG --modversion dbus-1 | cut -d "." -f 1 | awk '{print $'0'".0"}'`
    fi
  fi

  if test x"${gnash_dbus_version}" = x; then
    gnash_dbus_topdir=""
    gnash_dbus_version=""
    for i in $incllist; do
      for j in `ls -dr $i/dbus-[0-9].[0-9] 2>/dev/null`; do
        if test -f $j/dbus.h; then
	      gnash_dbus_topdir=`basename $j`
	      gnash_dbus_version=`echo ${gnash_dbus_topdir} | sed -e 's:dbus-::' -e 's:.0::'`
 	      ac_cv_path_dbus_incl="-I$i/${gnash_dbus_topdir}"
	      break
	    fi
      done
	  if test x$gnash_dbus_version != x; then
	    break;
	  fi
    done
  fi

  if test x"${gnash_dbus_version}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnash_dbus_version}" >&5
$as_echo "${gnash_dbus_version}" >&6; }
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dbus headers" >&5
$as_echo_n "checking for Dbus headers... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_dbus_incl}" >&5
$as_echo "${ac_cv_path_dbus_incl}" >&6; }


# Check whether --with-dbus_lib was given.
if test "${with_dbus_lib+set}" = set; then :
  withval=$with_dbus_lib; with_dbus_lib=${withval}
fi

  if test "${ac_cv_path_dbus_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_dbus_lib}" != x ; then
      if test -f ${with_dbus_lib}/libdbus-1.a -o -f ${with_dbus_lib}/libdbus-1.${shlibext}; then
	      ac_cv_path_dbus_lib="-L`(cd ${with_dbus_lib}; pwd)`"
      else
	      as_fn_error "${with_dbus_lib} directory doesn't contain libdbus." "$LINENO" 5
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_dbus_lib}" = x; then
      $PKG_CONFIG --exists dbus-1 && ac_cv_path_dbus_lib=`$PKG_CONFIG --libs-only-l dbus-1`
    fi
  fi

  if test x"${ac_cv_path_dbus_lib}" = x; then
    newlist="/lib /lib64 $libslist"
    for i in $newlist; do
      if test -f $i/libdbus-${gnash_dbus_version}.a -o -f $i/libdbus-${gnash_dbus_version}.${shlibext}; then
        if test x"$i" != x"/lib"; then
	        ac_cv_path_dbus_lib="-L$i -ldbus-${gnash_dbus_version}"
	        break
        else
	        ac_cv_path_dbus_lib="-ldbus-${gnash_dbus_version}"
	  break
	fi
      fi
    done
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dbus library" >&5
$as_echo_n "checking for Dbus library... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_dbus_lib}" >&5
$as_echo "${ac_cv_path_dbus_lib}" >&6; }

  if test x"${ac_cv_path_dbus_lib}" = x; then
    as_ac_Lib=`$as_echo "ac_cv_lib_dbus-${gnash_dbus_version}''_dbus_engine_shape_class_init" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_engine_shape_class_init in -ldbus-${gnash_dbus_version}" >&5
$as_echo_n "checking for dbus_engine_shape_class_init in -ldbus-${gnash_dbus_version}... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldbus-${gnash_dbus_version}  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dbus_engine_shape_class_init ();
int
main ()
{
return dbus_engine_shape_class_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ac_cv_path_dbus_lib="-ldbus-${gnash_dbus_version}"
fi

  fi

  if test x"${ac_cv_path_dbus_incl}" != x; then
    DBUS_CFLAGS="${ac_cv_path_dbus_incl}"
  else
    DBUS_CFLAGS=""
  fi

  if test x"${ac_cv_path_dbus_lib}" != x; then
    DBUS_LIBS="${ac_cv_path_dbus_lib}"
  else
    DBUS_LIBS=""
  fi




fi

if test x$ext_mysql = xyes; then


# Check whether --with-mysql-incl was given.
if test "${with_mysql_incl+set}" = set; then :
  withval=$with_mysql_incl; with_mysql_incl=${withval}
fi

  if test "${ac_cv_path_mysql_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_mysql_incl}" != x ; then
      if test -f ${with_mysql_incl}/mysql.h ; then
        ac_cv_path_mysql_incl="-I`(cd ${with_mysql_incl}; pwd)`"
      else
        as_fn_error "${with_mysql_incl} directory doesn't contain any headers" "$LINENO" 5
      fi
    fi

fi


  if test x"${ac_cv_path_mysql_incl}" = x; then
    # Extract the first word of "mysql_config", so it can be a program name with args.
set dummy mysql_config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_mconfig+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$mconfig"; then
  ac_cv_prog_mconfig="$mconfig" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_mconfig="mysql_config"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
mconfig=$ac_cv_prog_mconfig
if test -n "$mconfig"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mconfig" >&5
$as_echo "$mconfig" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_prog_mconfig}" >&5
$as_echo "${ac_cv_prog_mconfig}" >&6; }
  fi
  if test x"${ac_cv_prog_mconfig}" = "x" ; then
     # Extract the first word of "mysql-config", so it can be a program name with args.
set dummy mysql-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_mconfig+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$mconfig"; then
  ac_cv_prog_mconfig="$mconfig" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_mconfig="mysql-config"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
mconfig=$ac_cv_prog_mconfig
if test -n "$mconfig"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mconfig" >&5
$as_echo "$mconfig" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi

  if test x"${ac_cv_prog_mconfig}" != "x" ; then
     ac_cv_path_mysql_incl=`${mconfig} --include`
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL headers" >&5
$as_echo_n "checking for MySQL headers... " >&6; }
  if test x"${ac_cv_path_mysql_incl}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql header" >&5
$as_echo_n "checking for mysql header... " >&6; }
    for i in $incllist; do
      if test -f $i/mysql/mysql.h; then
        ac_cv_path_mysql_incl="-I$i/mysql"
        break
      fi
    done
  fi

  if test x"${ac_cv_path_mysql_incl}" != x ; then
    MYSQL_CFLAGS="${ac_cv_path_mysql_incl}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  else
    MYSQL_CFLAGS=""
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi


# Check whether --with-mysql-lib was given.
if test "${with_mysql_lib+set}" = set; then :
  withval=$with_mysql_lib; with_mysql_lib=${withval}
fi

    if test "${ac_cv_path_mysql_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_mysql_lib}" != x ; then
      if test -f ${with_mysql_lib}/libmysqlclient.a -o -f ${with_mysql_lib}/libmysqlclient.${shlibext}; then
	      ac_cv_path_mysql_lib="-L`(cd ${with_mysql_lib}; pwd)`"
      else
        as_fn_error "${with_mysql_lib} directory doesn't contain mysql libraries." "$LINENO" 5
      fi
    fi

fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries" >&5
$as_echo_n "checking for MySQL libraries... " >&6; }
  if test x"${ac_cv_prog_mconfig}" != "x" ; then
     ac_cv_path_mysql_lib=`${mconfig} --libs`
  fi

  if test x"${ac_cv_path_mysql_lib}" = x; then #{

    topdir=""

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mysql_init ();
int
main ()
{
return mysql_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mysqlclient_mysql_init=yes
else
  ac_cv_lib_mysqlclient_mysql_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
if test "x$ac_cv_lib_mysqlclient_mysql_init" = x""yes; then :
  ac_cv_path_mysql_lib="-lmysqlclient"
else

      for i in $libslist; do
	      if test -f $i/libmysqlclient.a -o -f $i/libmysqlclient.${shlibext}; then
          topdir=$i
	        if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
	          ac_cv_path_mysql_lib="-L$i -lmysqlclient"
       	    break
          else
	          ac_cv_path_mysql_lib="-lmysqlclient"
	          break
          fi
        fi
      done

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL client library" >&5
$as_echo_n "checking for MySQL client library... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_mysql_lib}" >&5
$as_echo "${ac_cv_path_mysql_lib}" >&6; }
  fi #}


  if test x"${ac_cv_path_mysql_lib}" != x; then
    MYSQL_LIBS="${ac_cv_path_mysql_lib}"
  else
    MYSQL_LIBS=""
  fi

  if test x"${ac_cv_path_mysql_incl}" != x -a x"${ac_cv_path_mysql_lib}" != x; then

$as_echo "#define HAVE_MYSQL /**/" >>confdefs.h

  fi



fi

 if  test x$ext_dejagnu = xyes ; then
  BUILD_DEJAGNU_EXT_TRUE=
  BUILD_DEJAGNU_EXT_FALSE='#'
else
  BUILD_DEJAGNU_EXT_TRUE='#'
  BUILD_DEJAGNU_EXT_FALSE=
fi

 if  test x$ext_fileio = xyes ; then
  BUILD_FILEIO_EXT_TRUE=
  BUILD_FILEIO_EXT_FALSE='#'
else
  BUILD_FILEIO_EXT_TRUE='#'
  BUILD_FILEIO_EXT_FALSE=
fi

 if  test x$ext_mysql = xyes ; then
  BUILD_MYSQL_EXT_TRUE=
  BUILD_MYSQL_EXT_FALSE='#'
else
  BUILD_MYSQL_EXT_TRUE='#'
  BUILD_MYSQL_EXT_FALSE=
fi

 if  test x$ext_launcher = xyes ; then
  BUILD_LAUNCHER_EXT_TRUE=
  BUILD_LAUNCHER_EXT_FALSE='#'
else
  BUILD_LAUNCHER_EXT_TRUE='#'
  BUILD_LAUNCHER_EXT_FALSE=
fi

 if  test x$ext_gtk = xyes ; then
  BUILD_GTK_EXT_TRUE=
  BUILD_GTK_EXT_FALSE='#'
else
  BUILD_GTK_EXT_TRUE='#'
  BUILD_GTK_EXT_FALSE=
fi

 if  test x$ext_lirc = xyes ; then
  BUILD_LIRC_EXT_TRUE=
  BUILD_LIRC_EXT_FALSE='#'
else
  BUILD_LIRC_EXT_TRUE='#'
  BUILD_LIRC_EXT_FALSE=
fi

 if  test x$ext_dbus = xyes ; then
  BUILD_DBUS_EXT_TRUE=
  BUILD_DBUS_EXT_FALSE='#'
else
  BUILD_DBUS_EXT_TRUE='#'
  BUILD_DBUS_EXT_FALSE=
fi

 if  test -n "$extensions_list"; then
  BUILD_EXTENSIONS_TRUE=
  BUILD_EXTENSIONS_FALSE='#'
else
  BUILD_EXTENSIONS_TRUE='#'
  BUILD_EXTENSIONS_FALSE=
fi




build_all_as3=yes
classfile=all
classlist=

# Check whether --with-classfile was given.
if test "${with_classfile+set}" = set; then :
  withval=$with_classfile; if test -n ${withval}; then
    classfile="${withval}"
    build_all_as3=no
  else
    classfile=
    as_fn_error "No class file was specified! Building everything..." "$LINENO" 5
    build_all_as3=yes
  fi

fi


if test x"${classfile}" != x"all"; then
    if test ! -f ${classfile}; then
    as_fn_error "Specified class file ${classfile} doesn't exist! Building everything..." "$LINENO" 5
    build_all_as3=yes
  else
    build_all_as3=no
  fi
fi

if test x"${build_all_as3}" = x"no"; then
  delim=""
  for i in `cat ${classfile}`; do
    echo $i
    classlist="${classlist}${delim} $i"
    delim=","
  done
fi

# If you add or delete a class file, you should also edit this list of makefile conditionals
 if test x"$UIComponent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_UICOMPONENT_AS3_TRUE=
  BUILD_UICOMPONENT_AS3_FALSE='#'
else
  BUILD_UICOMPONENT_AS3_TRUE='#'
  BUILD_UICOMPONENT_AS3_FALSE=
fi


 if test x"${InvalidationType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_INVALIDATIONTYPE_AS3_TRUE=
  BUILD_INVALIDATIONTYPE_AS3_FALSE='#'
else
  BUILD_INVALIDATIONTYPE_AS3_TRUE='#'
  BUILD_INVALIDATIONTYPE_AS3_FALSE=
fi


 if test x"${ExternalInterface_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_EXTERNALINTERFACE_AS3_TRUE=
  BUILD_EXTERNALINTERFACE_AS3_FALSE='#'
else
  BUILD_EXTERNALINTERFACE_AS3_TRUE='#'
  BUILD_EXTERNALINTERFACE_AS3_FALSE=
fi


 if test x"${SignerTrustSettings_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SIGNERTRUSTSETTINGS_AS3_TRUE=
  BUILD_SIGNERTRUSTSETTINGS_AS3_FALSE='#'
else
  BUILD_SIGNERTRUSTSETTINGS_AS3_TRUE='#'
  BUILD_SIGNERTRUSTSETTINGS_AS3_FALSE=
fi

 if test x"${XMLSignatureValidator_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_XMLSIGNATUREVALIDATOR_AS3_TRUE=
  BUILD_XMLSIGNATUREVALIDATOR_AS3_FALSE='#'
else
  BUILD_XMLSIGNATUREVALIDATOR_AS3_TRUE='#'
  BUILD_XMLSIGNATUREVALIDATOR_AS3_FALSE=
fi

 if test x"${SignatureStatus_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SIGNATURESTATUS_AS3_TRUE=
  BUILD_SIGNATURESTATUS_AS3_FALSE='#'
else
  BUILD_SIGNATURESTATUS_AS3_TRUE='#'
  BUILD_SIGNATURESTATUS_AS3_FALSE=
fi

 if test x"${IURIDereferencer_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IURIDEREFERENCER_AS3_TRUE=
  BUILD_IURIDEREFERENCER_AS3_FALSE='#'
else
  BUILD_IURIDEREFERENCER_AS3_TRUE='#'
  BUILD_IURIDEREFERENCER_AS3_FALSE=
fi

 if test x"${RevocationCheckSettings_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_REVOCATIONCHECKSETTINGS_AS3_TRUE=
  BUILD_REVOCATIONCHECKSETTINGS_AS3_FALSE='#'
else
  BUILD_REVOCATIONCHECKSETTINGS_AS3_TRUE='#'
  BUILD_REVOCATIONCHECKSETTINGS_AS3_FALSE=
fi


 if test x"${IDataInput_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IDATAINPUT_AS3_TRUE=
  BUILD_IDATAINPUT_AS3_FALSE='#'
else
  BUILD_IDATAINPUT_AS3_TRUE='#'
  BUILD_IDATAINPUT_AS3_FALSE=
fi

 if test x"${IExternalizable_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IEXTERNALIZABLE_AS3_TRUE=
  BUILD_IEXTERNALIZABLE_AS3_FALSE='#'
else
  BUILD_IEXTERNALIZABLE_AS3_TRUE='#'
  BUILD_IEXTERNALIZABLE_AS3_FALSE=
fi

 if test x"${ByteArray_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BYTEARRAY_AS3_TRUE=
  BUILD_BYTEARRAY_AS3_FALSE='#'
else
  BUILD_BYTEARRAY_AS3_TRUE='#'
  BUILD_BYTEARRAY_AS3_FALSE=
fi

 if test x"${Proxy_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PROXY_AS3_TRUE=
  BUILD_PROXY_AS3_FALSE='#'
else
  BUILD_PROXY_AS3_TRUE='#'
  BUILD_PROXY_AS3_FALSE=
fi

 if test x"${CompressionAlgorithm_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_COMPRESSIONALGORITHM_AS3_TRUE=
  BUILD_COMPRESSIONALGORITHM_AS3_FALSE='#'
else
  BUILD_COMPRESSIONALGORITHM_AS3_TRUE='#'
  BUILD_COMPRESSIONALGORITHM_AS3_FALSE=
fi


 if test x"${IDataOutput_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IDATAOUTPUT_AS3_TRUE=
  BUILD_IDATAOUTPUT_AS3_FALSE='#'
else
  BUILD_IDATAOUTPUT_AS3_TRUE='#'
  BUILD_IDATAOUTPUT_AS3_FALSE=
fi

 if test x"${Endian_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ENDIAN_AS3_TRUE=
  BUILD_ENDIAN_AS3_FALSE='#'
else
  BUILD_ENDIAN_AS3_TRUE='#'
  BUILD_ENDIAN_AS3_FALSE=
fi

 if test x"${Timer_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TIMER_AS3_TRUE=
  BUILD_TIMER_AS3_FALSE='#'
else
  BUILD_TIMER_AS3_TRUE='#'
  BUILD_TIMER_AS3_FALSE=
fi

 if test x"${Dictionary_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DICTIONARY_AS3_TRUE=
  BUILD_DICTIONARY_AS3_FALSE='#'
else
  BUILD_DICTIONARY_AS3_TRUE='#'
  BUILD_DICTIONARY_AS3_FALSE=
fi


 if test x"${File_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FILE_AS3_TRUE=
  BUILD_FILE_AS3_FALSE='#'
else
  BUILD_FILE_AS3_TRUE='#'
  BUILD_FILE_AS3_FALSE=
fi

 if test x"${FileMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FILEMODE_AS3_TRUE=
  BUILD_FILEMODE_AS3_FALSE='#'
else
  BUILD_FILEMODE_AS3_TRUE='#'
  BUILD_FILEMODE_AS3_FALSE=
fi

 if test x"${FileStream_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FILESTREAM_AS3_TRUE=
  BUILD_FILESTREAM_AS3_FALSE='#'
else
  BUILD_FILESTREAM_AS3_TRUE='#'
  BUILD_FILESTREAM_AS3_FALSE=
fi


 if test x"${Rotate_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ROTATE_AS3_TRUE=
  BUILD_ROTATE_AS3_FALSE='#'
else
  BUILD_ROTATE_AS3_TRUE='#'
  BUILD_ROTATE_AS3_FALSE=
fi

 if test x"${PixelDissolve_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PIXELDISSOLVE_AS3_TRUE=
  BUILD_PIXELDISSOLVE_AS3_FALSE='#'
else
  BUILD_PIXELDISSOLVE_AS3_TRUE='#'
  BUILD_PIXELDISSOLVE_AS3_FALSE=
fi

 if test x"${Blinds_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BLINDS_AS3_TRUE=
  BUILD_BLINDS_AS3_FALSE='#'
else
  BUILD_BLINDS_AS3_TRUE='#'
  BUILD_BLINDS_AS3_FALSE=
fi

 if test x"${Squeeze_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQUEEZE_AS3_TRUE=
  BUILD_SQUEEZE_AS3_FALSE='#'
else
  BUILD_SQUEEZE_AS3_TRUE='#'
  BUILD_SQUEEZE_AS3_FALSE=
fi

 if test x"${Transition_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TRANSITION_AS3_TRUE=
  BUILD_TRANSITION_AS3_FALSE='#'
else
  BUILD_TRANSITION_AS3_TRUE='#'
  BUILD_TRANSITION_AS3_FALSE=
fi

 if test x"${Fade_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FADE_AS3_TRUE=
  BUILD_FADE_AS3_FALSE='#'
else
  BUILD_FADE_AS3_TRUE='#'
  BUILD_FADE_AS3_FALSE=
fi

 if test x"${Tween_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TWEEN_AS3_TRUE=
  BUILD_TWEEN_AS3_FALSE='#'
else
  BUILD_TWEEN_AS3_TRUE='#'
  BUILD_TWEEN_AS3_FALSE=
fi

 if test x"${Zoom_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ZOOM_AS3_TRUE=
  BUILD_ZOOM_AS3_FALSE='#'
else
  BUILD_ZOOM_AS3_TRUE='#'
  BUILD_ZOOM_AS3_FALSE=
fi

 if test x"${Iris_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IRIS_AS3_TRUE=
  BUILD_IRIS_AS3_FALSE='#'
else
  BUILD_IRIS_AS3_TRUE='#'
  BUILD_IRIS_AS3_FALSE=
fi

 if test x"${Fly_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FLY_AS3_TRUE=
  BUILD_FLY_AS3_FALSE='#'
else
  BUILD_FLY_AS3_TRUE='#'
  BUILD_FLY_AS3_FALSE=
fi

 if test x"${TweenEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TWEENEVENT_AS3_TRUE=
  BUILD_TWEENEVENT_AS3_FALSE='#'
else
  BUILD_TWEENEVENT_AS3_TRUE='#'
  BUILD_TWEENEVENT_AS3_FALSE=
fi

 if test x"${Photo_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PHOTO_AS3_TRUE=
  BUILD_PHOTO_AS3_FALSE='#'
else
  BUILD_PHOTO_AS3_TRUE='#'
  BUILD_PHOTO_AS3_FALSE=
fi

 if test x"${TransitionManager_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TRANSITIONMANAGER_AS3_TRUE=
  BUILD_TRANSITIONMANAGER_AS3_FALSE='#'
else
  BUILD_TRANSITIONMANAGER_AS3_TRUE='#'
  BUILD_TRANSITIONMANAGER_AS3_FALSE=
fi

 if test x"${Wipe_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_WIPE_AS3_TRUE=
  BUILD_WIPE_AS3_FALSE='#'
else
  BUILD_WIPE_AS3_TRUE='#'
  BUILD_WIPE_AS3_FALSE=
fi


 if test x"${IFocusManager_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IFOCUSMANAGER_AS3_TRUE=
  BUILD_IFOCUSMANAGER_AS3_FALSE='#'
else
  BUILD_IFOCUSMANAGER_AS3_TRUE='#'
  BUILD_IFOCUSMANAGER_AS3_FALSE=
fi

 if test x"${FocusManager_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FOCUSMANAGER_AS3_TRUE=
  BUILD_FOCUSMANAGER_AS3_FALSE='#'
else
  BUILD_FOCUSMANAGER_AS3_TRUE='#'
  BUILD_FOCUSMANAGER_AS3_FALSE=
fi

 if test x"${IFocusManagerGroup_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IFOCUSMANAGERGROUP_AS3_TRUE=
  BUILD_IFOCUSMANAGERGROUP_AS3_FALSE='#'
else
  BUILD_IFOCUSMANAGERGROUP_AS3_TRUE='#'
  BUILD_IFOCUSMANAGERGROUP_AS3_FALSE=
fi

 if test x"${StyleManager_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STYLEMANAGER_AS3_TRUE=
  BUILD_STYLEMANAGER_AS3_FALSE='#'
else
  BUILD_STYLEMANAGER_AS3_TRUE='#'
  BUILD_STYLEMANAGER_AS3_FALSE=
fi

 if test x"${IFocusManagerComponent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IFOCUSMANAGERCOMPONENT_AS3_TRUE=
  BUILD_IFOCUSMANAGERCOMPONENT_AS3_FALSE='#'
else
  BUILD_IFOCUSMANAGERCOMPONENT_AS3_TRUE='#'
  BUILD_IFOCUSMANAGERCOMPONENT_AS3_FALSE=
fi


 if test x"${FileReferenceList_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FILEREFERENCELIST_AS3_TRUE=
  BUILD_FILEREFERENCELIST_AS3_FALSE='#'
else
  BUILD_FILEREFERENCELIST_AS3_TRUE='#'
  BUILD_FILEREFERENCELIST_AS3_FALSE=
fi

 if test x"${Responder_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_RESPONDER_AS3_TRUE=
  BUILD_RESPONDER_AS3_FALSE='#'
else
  BUILD_RESPONDER_AS3_TRUE='#'
  BUILD_RESPONDER_AS3_FALSE=
fi

 if test x"${IDynamicPropertyWriter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IDYNAMICPROPERTYWRITER_AS3_TRUE=
  BUILD_IDYNAMICPROPERTYWRITER_AS3_FALSE='#'
else
  BUILD_IDYNAMICPROPERTYWRITER_AS3_TRUE='#'
  BUILD_IDYNAMICPROPERTYWRITER_AS3_FALSE=
fi

 if test x"${URLRequest_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLREQUEST_AS3_TRUE=
  BUILD_URLREQUEST_AS3_FALSE='#'
else
  BUILD_URLREQUEST_AS3_TRUE='#'
  BUILD_URLREQUEST_AS3_FALSE=
fi

 if test x"${URLRequestMethod_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLREQUESTMETHOD_AS3_TRUE=
  BUILD_URLREQUESTMETHOD_AS3_FALSE='#'
else
  BUILD_URLREQUESTMETHOD_AS3_TRUE='#'
  BUILD_URLREQUESTMETHOD_AS3_FALSE=
fi

 if test x"${FileFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FILEFILTER_AS3_TRUE=
  BUILD_FILEFILTER_AS3_FALSE='#'
else
  BUILD_FILEFILTER_AS3_TRUE='#'
  BUILD_FILEFILTER_AS3_FALSE=
fi

 if test x"${NetStream_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NETSTREAM_AS3_TRUE=
  BUILD_NETSTREAM_AS3_FALSE='#'
else
  BUILD_NETSTREAM_AS3_TRUE='#'
  BUILD_NETSTREAM_AS3_FALSE=
fi

 if test x"${URLRequestDefaults_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLREQUESTDEFAULTS_AS3_TRUE=
  BUILD_URLREQUESTDEFAULTS_AS3_FALSE='#'
else
  BUILD_URLREQUESTDEFAULTS_AS3_TRUE='#'
  BUILD_URLREQUESTDEFAULTS_AS3_FALSE=
fi

 if test x"${ObjectEncoding_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_OBJECTENCODING_AS3_TRUE=
  BUILD_OBJECTENCODING_AS3_FALSE='#'
else
  BUILD_OBJECTENCODING_AS3_TRUE='#'
  BUILD_OBJECTENCODING_AS3_FALSE=
fi

 if test x"${URLVariables_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLVARIABLES_AS3_TRUE=
  BUILD_URLVARIABLES_AS3_FALSE='#'
else
  BUILD_URLVARIABLES_AS3_TRUE='#'
  BUILD_URLVARIABLES_AS3_FALSE=
fi

 if test x"${URLLoader_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLLOADER_AS3_TRUE=
  BUILD_URLLOADER_AS3_FALSE='#'
else
  BUILD_URLLOADER_AS3_TRUE='#'
  BUILD_URLLOADER_AS3_FALSE=
fi

 if test x"${NetConnection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NETCONNECTION_AS3_TRUE=
  BUILD_NETCONNECTION_AS3_FALSE='#'
else
  BUILD_NETCONNECTION_AS3_TRUE='#'
  BUILD_NETCONNECTION_AS3_FALSE=
fi

 if test x"${URLRequestHeader_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLREQUESTHEADER_AS3_TRUE=
  BUILD_URLREQUESTHEADER_AS3_FALSE='#'
else
  BUILD_URLREQUESTHEADER_AS3_TRUE='#'
  BUILD_URLREQUESTHEADER_AS3_FALSE=
fi

 if test x"${Socket_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOCKET_AS3_TRUE=
  BUILD_SOCKET_AS3_FALSE='#'
else
  BUILD_SOCKET_AS3_TRUE='#'
  BUILD_SOCKET_AS3_FALSE=
fi

 if test x"${URLLoaderDataFormat_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLLOADERDATAFORMAT_AS3_TRUE=
  BUILD_URLLOADERDATAFORMAT_AS3_FALSE='#'
else
  BUILD_URLLOADERDATAFORMAT_AS3_TRUE='#'
  BUILD_URLLOADERDATAFORMAT_AS3_FALSE=
fi

 if test x"${XMLSocket_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_XMLSOCKET_AS3_TRUE=
  BUILD_XMLSOCKET_AS3_FALSE='#'
else
  BUILD_XMLSOCKET_AS3_TRUE='#'
  BUILD_XMLSOCKET_AS3_FALSE=
fi

 if test x"${FileReference_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FILEREFERENCE_AS3_TRUE=
  BUILD_FILEREFERENCE_AS3_FALSE='#'
else
  BUILD_FILEREFERENCE_AS3_TRUE='#'
  BUILD_FILEREFERENCE_AS3_FALSE=
fi

 if test x"${SharedObjectFlushStatus_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_TRUE=
  BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_FALSE='#'
else
  BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_TRUE='#'
  BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_FALSE=
fi

 if test x"${URLStream_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_URLSTREAM_AS3_TRUE=
  BUILD_URLSTREAM_AS3_FALSE='#'
else
  BUILD_URLSTREAM_AS3_TRUE='#'
  BUILD_URLSTREAM_AS3_FALSE=
fi

 if test x"${IDynamicPropertyOutput_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IDYNAMICPROPERTYOUTPUT_AS3_TRUE=
  BUILD_IDYNAMICPROPERTYOUTPUT_AS3_FALSE='#'
else
  BUILD_IDYNAMICPROPERTYOUTPUT_AS3_TRUE='#'
  BUILD_IDYNAMICPROPERTYOUTPUT_AS3_FALSE=
fi

 if test x"${SharedObject_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SHAREDOBJECT_AS3_TRUE=
  BUILD_SHAREDOBJECT_AS3_FALSE='#'
else
  BUILD_SHAREDOBJECT_AS3_TRUE='#'
  BUILD_SHAREDOBJECT_AS3_FALSE=
fi

 if test x"${LocalConnection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LOCALCONNECTION_AS3_TRUE=
  BUILD_LOCALCONNECTION_AS3_FALSE='#'
else
  BUILD_LOCALCONNECTION_AS3_TRUE='#'
  BUILD_LOCALCONNECTION_AS3_FALSE=
fi


 if test x"${SimpleEase_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SIMPLEEASE_AS3_TRUE=
  BUILD_SIMPLEEASE_AS3_FALSE='#'
else
  BUILD_SIMPLEEASE_AS3_TRUE='#'
  BUILD_SIMPLEEASE_AS3_FALSE=
fi

 if test x"${Tweenables_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TWEENABLES_AS3_TRUE=
  BUILD_TWEENABLES_AS3_FALSE='#'
else
  BUILD_TWEENABLES_AS3_TRUE='#'
  BUILD_TWEENABLES_AS3_FALSE=
fi

 if test x"${MotionEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MOTIONEVENT_AS3_TRUE=
  BUILD_MOTIONEVENT_AS3_FALSE='#'
else
  BUILD_MOTIONEVENT_AS3_TRUE='#'
  BUILD_MOTIONEVENT_AS3_FALSE=
fi

 if test x"${ITween_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ITWEEN_AS3_TRUE=
  BUILD_ITWEEN_AS3_FALSE='#'
else
  BUILD_ITWEEN_AS3_TRUE='#'
  BUILD_ITWEEN_AS3_FALSE=
fi

 if test x"${CustomEase_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CUSTOMEASE_AS3_TRUE=
  BUILD_CUSTOMEASE_AS3_FALSE='#'
else
  BUILD_CUSTOMEASE_AS3_TRUE='#'
  BUILD_CUSTOMEASE_AS3_FALSE=
fi

 if test x"${Source_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOURCE_AS3_TRUE=
  BUILD_SOURCE_AS3_FALSE='#'
else
  BUILD_SOURCE_AS3_TRUE='#'
  BUILD_SOURCE_AS3_FALSE=
fi

 if test x"${BezierEase_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BEZIEREASE_AS3_TRUE=
  BUILD_BEZIEREASE_AS3_FALSE='#'
else
  BUILD_BEZIEREASE_AS3_TRUE='#'
  BUILD_BEZIEREASE_AS3_FALSE=
fi

 if test x"${MatrixTransformer_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MATRIXTRANSFORMER_AS3_TRUE=
  BUILD_MATRIXTRANSFORMER_AS3_FALSE='#'
else
  BUILD_MATRIXTRANSFORMER_AS3_TRUE='#'
  BUILD_MATRIXTRANSFORMER_AS3_FALSE=
fi

 if test x"${BezierSegment_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BEZIERSEGMENT_AS3_TRUE=
  BUILD_BEZIERSEGMENT_AS3_FALSE='#'
else
  BUILD_BEZIERSEGMENT_AS3_TRUE='#'
  BUILD_BEZIERSEGMENT_AS3_FALSE=
fi

 if test x"${FunctionEase_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FUNCTIONEASE_AS3_TRUE=
  BUILD_FUNCTIONEASE_AS3_FALSE='#'
else
  BUILD_FUNCTIONEASE_AS3_TRUE='#'
  BUILD_FUNCTIONEASE_AS3_FALSE=
fi

 if test x"${Motion_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MOTION_AS3_TRUE=
  BUILD_MOTION_AS3_FALSE='#'
else
  BUILD_MOTION_AS3_TRUE='#'
  BUILD_MOTION_AS3_FALSE=
fi

 if test x"${Color_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_COLOR_AS3_TRUE=
  BUILD_COLOR_AS3_FALSE='#'
else
  BUILD_COLOR_AS3_TRUE='#'
  BUILD_COLOR_AS3_FALSE=
fi

 if test x"${RotateDirection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ROTATEDIRECTION_AS3_TRUE=
  BUILD_ROTATEDIRECTION_AS3_FALSE='#'
else
  BUILD_ROTATEDIRECTION_AS3_TRUE='#'
  BUILD_ROTATEDIRECTION_AS3_FALSE=
fi

 if test x"${Animator_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ANIMATOR_AS3_TRUE=
  BUILD_ANIMATOR_AS3_FALSE='#'
else
  BUILD_ANIMATOR_AS3_TRUE='#'
  BUILD_ANIMATOR_AS3_FALSE=
fi

 if test x"${Keyframe_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_KEYFRAME_AS3_TRUE=
  BUILD_KEYFRAME_AS3_FALSE='#'
else
  BUILD_KEYFRAME_AS3_TRUE='#'
  BUILD_KEYFRAME_AS3_FALSE=
fi


 if test x"${PrintJob_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PRINTJOB_AS3_TRUE=
  BUILD_PRINTJOB_AS3_FALSE='#'
else
  BUILD_PRINTJOB_AS3_TRUE='#'
  BUILD_PRINTJOB_AS3_FALSE=
fi

 if test x"${PrintJobOptions_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PRINTJOBOPTIONS_AS3_TRUE=
  BUILD_PRINTJOBOPTIONS_AS3_FALSE='#'
else
  BUILD_PRINTJOBOPTIONS_AS3_TRUE='#'
  BUILD_PRINTJOBOPTIONS_AS3_FALSE=
fi

 if test x"${PrintJobOrientation_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PRINTJOBORIENTATION_AS3_TRUE=
  BUILD_PRINTJOBORIENTATION_AS3_FALSE='#'
else
  BUILD_PRINTJOBORIENTATION_AS3_TRUE='#'
  BUILD_PRINTJOBORIENTATION_AS3_FALSE=
fi


 if test x"${ColorTransform_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_COLORTRANSFORM_AS3_TRUE=
  BUILD_COLORTRANSFORM_AS3_FALSE='#'
else
  BUILD_COLORTRANSFORM_AS3_TRUE='#'
  BUILD_COLORTRANSFORM_AS3_FALSE=
fi

 if test x"${Matrix_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MATRIX_AS3_TRUE=
  BUILD_MATRIX_AS3_FALSE='#'
else
  BUILD_MATRIX_AS3_TRUE='#'
  BUILD_MATRIX_AS3_FALSE=
fi

 if test x"${Point_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_POINT_AS3_TRUE=
  BUILD_POINT_AS3_FALSE='#'
else
  BUILD_POINT_AS3_TRUE='#'
  BUILD_POINT_AS3_FALSE=
fi

 if test x"${Transform_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TRANSFORM_AS3_TRUE=
  BUILD_TRANSFORM_AS3_FALSE='#'
else
  BUILD_TRANSFORM_AS3_TRUE='#'
  BUILD_TRANSFORM_AS3_FALSE=
fi

 if test x"${Rectangle_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_RECTANGLE_AS3_TRUE=
  BUILD_RECTANGLE_AS3_FALSE='#'
else
  BUILD_RECTANGLE_AS3_TRUE='#'
  BUILD_RECTANGLE_AS3_FALSE=
fi


 if test x"${ContextMenu_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CONTEXTMENU_AS3_TRUE=
  BUILD_CONTEXTMENU_AS3_FALSE='#'
else
  BUILD_CONTEXTMENU_AS3_TRUE='#'
  BUILD_CONTEXTMENU_AS3_FALSE=
fi

 if test x"${Mouse_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MOUSE_AS3_TRUE=
  BUILD_MOUSE_AS3_FALSE='#'
else
  BUILD_MOUSE_AS3_TRUE='#'
  BUILD_MOUSE_AS3_FALSE=
fi

 if test x"${ContextMenuItem_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CONTEXTMENUITEM_AS3_TRUE=
  BUILD_CONTEXTMENUITEM_AS3_FALSE='#'
else
  BUILD_CONTEXTMENUITEM_AS3_TRUE='#'
  BUILD_CONTEXTMENUITEM_AS3_FALSE=
fi

 if test x"${KeyLocation_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_KEYLOCATION_AS3_TRUE=
  BUILD_KEYLOCATION_AS3_FALSE='#'
else
  BUILD_KEYLOCATION_AS3_TRUE='#'
  BUILD_KEYLOCATION_AS3_FALSE=
fi

 if test x"${Keyboard_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_KEYBOARD_AS3_TRUE=
  BUILD_KEYBOARD_AS3_FALSE='#'
else
  BUILD_KEYBOARD_AS3_TRUE='#'
  BUILD_KEYBOARD_AS3_FALSE=
fi

 if test x"${ContextMenuBuiltInItems_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CONTEXTMENUBUILTINITEMS_AS3_TRUE=
  BUILD_CONTEXTMENUBUILTINITEMS_AS3_FALSE='#'
else
  BUILD_CONTEXTMENUBUILTINITEMS_AS3_TRUE='#'
  BUILD_CONTEXTMENUBUILTINITEMS_AS3_FALSE=
fi


 if test x"${SoundChannel_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOUNDCHANNEL_AS3_TRUE=
  BUILD_SOUNDCHANNEL_AS3_FALSE='#'
else
  BUILD_SOUNDCHANNEL_AS3_TRUE='#'
  BUILD_SOUNDCHANNEL_AS3_FALSE=
fi

 if test x"${SoundTransform_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOUNDTRANSFORM_AS3_TRUE=
  BUILD_SOUNDTRANSFORM_AS3_FALSE='#'
else
  BUILD_SOUNDTRANSFORM_AS3_TRUE='#'
  BUILD_SOUNDTRANSFORM_AS3_FALSE=
fi

 if test x"${SoundMixer_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOUNDMIXER_AS3_TRUE=
  BUILD_SOUNDMIXER_AS3_FALSE='#'
else
  BUILD_SOUNDMIXER_AS3_TRUE='#'
  BUILD_SOUNDMIXER_AS3_FALSE=
fi

 if test x"${Video_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEO_AS3_TRUE=
  BUILD_VIDEO_AS3_FALSE='#'
else
  BUILD_VIDEO_AS3_TRUE='#'
  BUILD_VIDEO_AS3_FALSE=
fi

 if test x"${Camera_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CAMERA_AS3_TRUE=
  BUILD_CAMERA_AS3_FALSE='#'
else
  BUILD_CAMERA_AS3_TRUE='#'
  BUILD_CAMERA_AS3_FALSE=
fi

 if test x"${Microphone_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MICROPHONE_AS3_TRUE=
  BUILD_MICROPHONE_AS3_FALSE='#'
else
  BUILD_MICROPHONE_AS3_TRUE='#'
  BUILD_MICROPHONE_AS3_FALSE=
fi

 if test x"${ID3Info_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ID3INFO_AS3_TRUE=
  BUILD_ID3INFO_AS3_FALSE='#'
else
  BUILD_ID3INFO_AS3_TRUE='#'
  BUILD_ID3INFO_AS3_FALSE=
fi

 if test x"${SoundLoaderContext_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOUNDLOADERCONTEXT_AS3_TRUE=
  BUILD_SOUNDLOADERCONTEXT_AS3_FALSE='#'
else
  BUILD_SOUNDLOADERCONTEXT_AS3_TRUE='#'
  BUILD_SOUNDLOADERCONTEXT_AS3_FALSE=
fi

 if test x"${Sound_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOUND_AS3_TRUE=
  BUILD_SOUND_AS3_FALSE='#'
else
  BUILD_SOUND_AS3_TRUE='#'
  BUILD_SOUND_AS3_FALSE=
fi


 if test x"${AccessibilityProperties_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ACCESSIBILITY_PROPERTIES_AS3_TRUE=
  BUILD_ACCESSIBILITY_PROPERTIES_AS3_FALSE='#'
else
  BUILD_ACCESSIBILITY_PROPERTIES_AS3_TRUE='#'
  BUILD_ACCESSIBILITY_PROPERTIES_AS3_FALSE=
fi

 if test x"${CheckBoxAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CHECKBOXACCIMPL_AS3_TRUE=
  BUILD_CHECKBOXACCIMPL_AS3_FALSE='#'
else
  BUILD_CHECKBOXACCIMPL_AS3_TRUE='#'
  BUILD_CHECKBOXACCIMPL_AS3_FALSE=
fi

 if test x"${ButtonAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BUTTONACCIMPL_AS3_TRUE=
  BUILD_BUTTONACCIMPL_AS3_FALSE='#'
else
  BUILD_BUTTONACCIMPL_AS3_TRUE='#'
  BUILD_BUTTONACCIMPL_AS3_FALSE=
fi

 if test x"${DataGridAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DATAGRIDACCIMPL_AS3_TRUE=
  BUILD_DATAGRIDACCIMPL_AS3_FALSE='#'
else
  BUILD_DATAGRIDACCIMPL_AS3_TRUE='#'
  BUILD_DATAGRIDACCIMPL_AS3_FALSE=
fi

 if test x"${RadioButtonAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_RADIOBUTTONACCIMPL_AS3_TRUE=
  BUILD_RADIOBUTTONACCIMPL_AS3_FALSE='#'
else
  BUILD_RADIOBUTTONACCIMPL_AS3_TRUE='#'
  BUILD_RADIOBUTTONACCIMPL_AS3_FALSE=
fi

 if test x"${AccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ACCIMPL_AS3_TRUE=
  BUILD_ACCIMPL_AS3_FALSE='#'
else
  BUILD_ACCIMPL_AS3_TRUE='#'
  BUILD_ACCIMPL_AS3_FALSE=
fi

 if test x"${TileListAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TILELISTACCIMPL_AS3_TRUE=
  BUILD_TILELISTACCIMPL_AS3_FALSE='#'
else
  BUILD_TILELISTACCIMPL_AS3_TRUE='#'
  BUILD_TILELISTACCIMPL_AS3_FALSE=
fi

 if test x"${ListAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LISTACCIMPL_AS3_TRUE=
  BUILD_LISTACCIMPL_AS3_FALSE='#'
else
  BUILD_LISTACCIMPL_AS3_TRUE='#'
  BUILD_LISTACCIMPL_AS3_FALSE=
fi

 if test x"${ComboBoxAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_COMBOBOXACCIMPL_AS3_TRUE=
  BUILD_COMBOBOXACCIMPL_AS3_FALSE='#'
else
  BUILD_COMBOBOXACCIMPL_AS3_TRUE='#'
  BUILD_COMBOBOXACCIMPL_AS3_FALSE=
fi

 if test x"${UIComponentAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_UICOMPONENTACCIMPL_AS3_TRUE=
  BUILD_UICOMPONENTACCIMPL_AS3_FALSE='#'
else
  BUILD_UICOMPONENTACCIMPL_AS3_TRUE='#'
  BUILD_UICOMPONENTACCIMPL_AS3_FALSE=
fi

 if test x"${LabelButtonAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LABELBUTTONACCIMPL_AS3_TRUE=
  BUILD_LABELBUTTONACCIMPL_AS3_FALSE='#'
else
  BUILD_LABELBUTTONACCIMPL_AS3_TRUE='#'
  BUILD_LABELBUTTONACCIMPL_AS3_FALSE=
fi

 if test x"${Accessibility_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ACCESSIBILITY_AS3_TRUE=
  BUILD_ACCESSIBILITY_AS3_FALSE='#'
else
  BUILD_ACCESSIBILITY_AS3_TRUE='#'
  BUILD_ACCESSIBILITY_AS3_FALSE=
fi

 if test x"${SelectableListAccImpl_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SELECTABLELISTACCIMPL_AS3_TRUE=
  BUILD_SELECTABLELISTACCIMPL_AS3_FALSE='#'
else
  BUILD_SELECTABLELISTACCIMPL_AS3_TRUE='#'
  BUILD_SELECTABLELISTACCIMPL_AS3_FALSE=
fi


 if test x"${SQLEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLEVENT_AS3_TRUE=
  BUILD_SQLEVENT_AS3_FALSE='#'
else
  BUILD_SQLEVENT_AS3_TRUE='#'
  BUILD_SQLEVENT_AS3_FALSE=
fi

 if test x"${OutputProgressEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_OUTPUTPROGRESSEVENT_AS3_TRUE=
  BUILD_OUTPUTPROGRESSEVENT_AS3_FALSE='#'
else
  BUILD_OUTPUTPROGRESSEVENT_AS3_TRUE='#'
  BUILD_OUTPUTPROGRESSEVENT_AS3_FALSE=
fi

 if test x"${HTTPStatusEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_HTTPSTATUSEVENT_AS3_TRUE=
  BUILD_HTTPSTATUSEVENT_AS3_FALSE='#'
else
  BUILD_HTTPSTATUSEVENT_AS3_TRUE='#'
  BUILD_HTTPSTATUSEVENT_AS3_FALSE=
fi

 if test x"${BrowserInvokeEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BROWSERINVOKEEVENT_AS3_TRUE=
  BUILD_BROWSERINVOKEEVENT_AS3_FALSE='#'
else
  BUILD_BROWSERINVOKEEVENT_AS3_TRUE='#'
  BUILD_BROWSERINVOKEEVENT_AS3_FALSE=
fi

 if test x"${DRMAuthenticateEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DRMAUTHENTICATEEVENT_AS3_TRUE=
  BUILD_DRMAUTHENTICATEEVENT_AS3_FALSE='#'
else
  BUILD_DRMAUTHENTICATEEVENT_AS3_TRUE='#'
  BUILD_DRMAUTHENTICATEEVENT_AS3_FALSE=
fi

 if test x"${SecurityErrorEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SECURITYERROREVENT_AS3_TRUE=
  BUILD_SECURITYERROREVENT_AS3_FALSE='#'
else
  BUILD_SECURITYERROREVENT_AS3_TRUE='#'
  BUILD_SECURITYERROREVENT_AS3_FALSE=
fi

 if test x"${SQLUpdateEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLUPDATEEVENT_AS3_TRUE=
  BUILD_SQLUPDATEEVENT_AS3_FALSE='#'
else
  BUILD_SQLUPDATEEVENT_AS3_TRUE='#'
  BUILD_SQLUPDATEEVENT_AS3_FALSE=
fi

 if test x"${MouseEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MOUSEEVENT_AS3_TRUE=
  BUILD_MOUSEEVENT_AS3_FALSE='#'
else
  BUILD_MOUSEEVENT_AS3_TRUE='#'
  BUILD_MOUSEEVENT_AS3_FALSE=
fi

 if test x"${DataEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DATAEVENT_AS3_TRUE=
  BUILD_DATAEVENT_AS3_FALSE='#'
else
  BUILD_DATAEVENT_AS3_TRUE='#'
  BUILD_DATAEVENT_AS3_FALSE=
fi

 if test x"${TimerEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TIMEREVENT_AS3_TRUE=
  BUILD_TIMEREVENT_AS3_FALSE='#'
else
  BUILD_TIMEREVENT_AS3_TRUE='#'
  BUILD_TIMEREVENT_AS3_FALSE=
fi

 if test x"${HTMLUncaughtScriptExceptionEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_TRUE=
  BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_FALSE='#'
else
  BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_TRUE='#'
  BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_FALSE=
fi

 if test x"${NativeWindowDisplayStateEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_TRUE=
  BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_FALSE='#'
else
  BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_TRUE='#'
  BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_FALSE=
fi

 if test x"${AsyncErrorEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ASYNCERROREVENT_AS3_TRUE=
  BUILD_ASYNCERROREVENT_AS3_FALSE='#'
else
  BUILD_ASYNCERROREVENT_AS3_TRUE='#'
  BUILD_ASYNCERROREVENT_AS3_FALSE=
fi

 if test x"${StatusEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STATUSEVENT_AS3_TRUE=
  BUILD_STATUSEVENT_AS3_FALSE='#'
else
  BUILD_STATUSEVENT_AS3_TRUE='#'
  BUILD_STATUSEVENT_AS3_FALSE=
fi

 if test x"${EventDispatcher_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_EVENTDISPATCHER_AS3_TRUE=
  BUILD_EVENTDISPATCHER_AS3_FALSE='#'
else
  BUILD_EVENTDISPATCHER_AS3_TRUE='#'
  BUILD_EVENTDISPATCHER_AS3_FALSE=
fi

 if test x"${FocusEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FOCUSEVENT_AS3_TRUE=
  BUILD_FOCUSEVENT_AS3_FALSE='#'
else
  BUILD_FOCUSEVENT_AS3_TRUE='#'
  BUILD_FOCUSEVENT_AS3_FALSE=
fi

 if test x"${EventPhase_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_EVENTPHASE_AS3_TRUE=
  BUILD_EVENTPHASE_AS3_FALSE='#'
else
  BUILD_EVENTPHASE_AS3_TRUE='#'
  BUILD_EVENTPHASE_AS3_FALSE=
fi

 if test x"${IMEEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IMEEVENT_AS3_TRUE=
  BUILD_IMEEVENT_AS3_FALSE='#'
else
  BUILD_IMEEVENT_AS3_TRUE='#'
  BUILD_IMEEVENT_AS3_FALSE=
fi

 if test x"${FileListEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FILELISTEVENT_AS3_TRUE=
  BUILD_FILELISTEVENT_AS3_FALSE='#'
else
  BUILD_FILELISTEVENT_AS3_TRUE='#'
  BUILD_FILELISTEVENT_AS3_FALSE=
fi

 if test x"${SyncEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SYNCEVENT_AS3_TRUE=
  BUILD_SYNCEVENT_AS3_FALSE='#'
else
  BUILD_SYNCEVENT_AS3_TRUE='#'
  BUILD_SYNCEVENT_AS3_FALSE=
fi

 if test x"${DRMStatusEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DRMSTATUSEVENT_AS3_TRUE=
  BUILD_DRMSTATUSEVENT_AS3_FALSE='#'
else
  BUILD_DRMSTATUSEVENT_AS3_TRUE='#'
  BUILD_DRMSTATUSEVENT_AS3_FALSE=
fi

 if test x"${TextEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTEVENT_AS3_TRUE=
  BUILD_TEXTEVENT_AS3_FALSE='#'
else
  BUILD_TEXTEVENT_AS3_TRUE='#'
  BUILD_TEXTEVENT_AS3_FALSE=
fi

 if test x"${Event_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_EVENT_AS3_TRUE=
  BUILD_EVENT_AS3_FALSE='#'
else
  BUILD_EVENT_AS3_TRUE='#'
  BUILD_EVENT_AS3_FALSE=
fi

 if test x"${ProgressEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PROGRESSEVENT_AS3_TRUE=
  BUILD_PROGRESSEVENT_AS3_FALSE='#'
else
  BUILD_PROGRESSEVENT_AS3_TRUE='#'
  BUILD_PROGRESSEVENT_AS3_FALSE=
fi

 if test x"${ContextMenuEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CONTEXTMENUEVENT_AS3_TRUE=
  BUILD_CONTEXTMENUEVENT_AS3_FALSE='#'
else
  BUILD_CONTEXTMENUEVENT_AS3_TRUE='#'
  BUILD_CONTEXTMENUEVENT_AS3_FALSE=
fi

 if test x"${IOErrorEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IOERROREVENT_AS3_TRUE=
  BUILD_IOERROREVENT_AS3_FALSE='#'
else
  BUILD_IOERROREVENT_AS3_TRUE='#'
  BUILD_IOERROREVENT_AS3_FALSE=
fi

 if test x"${InvokeEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_INVOKEEVENT_AS3_TRUE=
  BUILD_INVOKEEVENT_AS3_FALSE='#'
else
  BUILD_INVOKEEVENT_AS3_TRUE='#'
  BUILD_INVOKEEVENT_AS3_FALSE=
fi

 if test x"${NativeWindowBoundsEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_TRUE=
  BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_FALSE='#'
else
  BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_TRUE='#'
  BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_FALSE=
fi

 if test x"${IEventDispatcher_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IEVENTDISPATCHER_AS3_TRUE=
  BUILD_IEVENTDISPATCHER_AS3_FALSE='#'
else
  BUILD_IEVENTDISPATCHER_AS3_TRUE='#'
  BUILD_IEVENTDISPATCHER_AS3_FALSE=
fi

 if test x"${ErrorEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ERROREVENT_AS3_TRUE=
  BUILD_ERROREVENT_AS3_FALSE='#'
else
  BUILD_ERROREVENT_AS3_TRUE='#'
  BUILD_ERROREVENT_AS3_FALSE=
fi

 if test x"${FullScreenEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FULLSCREENEVENT_AS3_TRUE=
  BUILD_FULLSCREENEVENT_AS3_FALSE='#'
else
  BUILD_FULLSCREENEVENT_AS3_TRUE='#'
  BUILD_FULLSCREENEVENT_AS3_FALSE=
fi

 if test x"${DRMErrorEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DRMERROREVENT_AS3_TRUE=
  BUILD_DRMERROREVENT_AS3_FALSE='#'
else
  BUILD_DRMERROREVENT_AS3_TRUE='#'
  BUILD_DRMERROREVENT_AS3_FALSE=
fi

 if test x"${NativeDragEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEDRAGEVENT_AS3_TRUE=
  BUILD_NATIVEDRAGEVENT_AS3_FALSE='#'
else
  BUILD_NATIVEDRAGEVENT_AS3_TRUE='#'
  BUILD_NATIVEDRAGEVENT_AS3_FALSE=
fi

 if test x"${NetStatusEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NETSTATUSEVENT_AS3_TRUE=
  BUILD_NETSTATUSEVENT_AS3_FALSE='#'
else
  BUILD_NETSTATUSEVENT_AS3_TRUE='#'
  BUILD_NETSTATUSEVENT_AS3_FALSE=
fi

 if test x"${KeyboardEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_KEYBOARDEVENT_AS3_TRUE=
  BUILD_KEYBOARDEVENT_AS3_FALSE='#'
else
  BUILD_KEYBOARDEVENT_AS3_TRUE='#'
  BUILD_KEYBOARDEVENT_AS3_FALSE=
fi

 if test x"${SQLErrorEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLERROREVENT_AS3_TRUE=
  BUILD_SQLERROREVENT_AS3_FALSE='#'
else
  BUILD_SQLERROREVENT_AS3_TRUE='#'
  BUILD_SQLERROREVENT_AS3_FALSE=
fi

 if test x"${ScreenMouseEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCREENMOUSEEVENT_AS3_TRUE=
  BUILD_SCREENMOUSEEVENT_AS3_FALSE='#'
else
  BUILD_SCREENMOUSEEVENT_AS3_TRUE='#'
  BUILD_SCREENMOUSEEVENT_AS3_FALSE=
fi

 if test x"${ActivityEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ACTIVITYEVENT_AS3_TRUE=
  BUILD_ACTIVITYEVENT_AS3_FALSE='#'
else
  BUILD_ACTIVITYEVENT_AS3_TRUE='#'
  BUILD_ACTIVITYEVENT_AS3_FALSE=
fi


 if test x"${BevelFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BEVELFILTER_AS3_TRUE=
  BUILD_BEVELFILTER_AS3_FALSE='#'
else
  BUILD_BEVELFILTER_AS3_TRUE='#'
  BUILD_BEVELFILTER_AS3_FALSE=
fi

 if test x"${BitmapFilterQuality_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BITMAPFILTERQUALITY_AS3_TRUE=
  BUILD_BITMAPFILTERQUALITY_AS3_FALSE='#'
else
  BUILD_BITMAPFILTERQUALITY_AS3_TRUE='#'
  BUILD_BITMAPFILTERQUALITY_AS3_FALSE=
fi

 if test x"${DropShadowFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DROPSHADOWFILTER_AS3_TRUE=
  BUILD_DROPSHADOWFILTER_AS3_FALSE='#'
else
  BUILD_DROPSHADOWFILTER_AS3_TRUE='#'
  BUILD_DROPSHADOWFILTER_AS3_FALSE=
fi

 if test x"${GlowFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_GLOWFILTER_AS3_TRUE=
  BUILD_GLOWFILTER_AS3_FALSE='#'
else
  BUILD_GLOWFILTER_AS3_TRUE='#'
  BUILD_GLOWFILTER_AS3_FALSE=
fi

 if test x"${ConvolutionFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CONVOLUTIONFILTER_AS3_TRUE=
  BUILD_CONVOLUTIONFILTER_AS3_FALSE='#'
else
  BUILD_CONVOLUTIONFILTER_AS3_TRUE='#'
  BUILD_CONVOLUTIONFILTER_AS3_FALSE=
fi

 if test x"${BitmapFilterType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BITMAPFILTERTYPE_AS3_TRUE=
  BUILD_BITMAPFILTERTYPE_AS3_FALSE='#'
else
  BUILD_BITMAPFILTERTYPE_AS3_TRUE='#'
  BUILD_BITMAPFILTERTYPE_AS3_FALSE=
fi

 if test x"${GradientGlowFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_GRADIENTGLOWFILTER_AS3_TRUE=
  BUILD_GRADIENTGLOWFILTER_AS3_FALSE='#'
else
  BUILD_GRADIENTGLOWFILTER_AS3_TRUE='#'
  BUILD_GRADIENTGLOWFILTER_AS3_FALSE=
fi

 if test x"${BlurFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BLURFILTER_AS3_TRUE=
  BUILD_BLURFILTER_AS3_FALSE='#'
else
  BUILD_BLURFILTER_AS3_TRUE='#'
  BUILD_BLURFILTER_AS3_FALSE=
fi

 if test x"${DisplacementMapFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DISPLACEMENTMAPFILTER_AS3_TRUE=
  BUILD_DISPLACEMENTMAPFILTER_AS3_FALSE='#'
else
  BUILD_DISPLACEMENTMAPFILTER_AS3_TRUE='#'
  BUILD_DISPLACEMENTMAPFILTER_AS3_FALSE=
fi

 if test x"${BitmapFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BITMAPFILTER_AS3_TRUE=
  BUILD_BITMAPFILTER_AS3_FALSE='#'
else
  BUILD_BITMAPFILTER_AS3_TRUE='#'
  BUILD_BITMAPFILTER_AS3_FALSE=
fi

 if test x"${GradientBevelFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_GRADIENTBEVELFILTER_AS3_TRUE=
  BUILD_GRADIENTBEVELFILTER_AS3_FALSE='#'
else
  BUILD_GRADIENTBEVELFILTER_AS3_TRUE='#'
  BUILD_GRADIENTBEVELFILTER_AS3_FALSE=
fi

 if test x"${DisplacementMapFilterMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DISPLACEMENTMAPFILTERMODE_AS3_TRUE=
  BUILD_DISPLACEMENTMAPFILTERMODE_AS3_FALSE='#'
else
  BUILD_DISPLACEMENTMAPFILTERMODE_AS3_TRUE='#'
  BUILD_DISPLACEMENTMAPFILTERMODE_AS3_FALSE=
fi

 if test x"${ColorMatrixFilter_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_COLORMATRIXFILTER_AS3_TRUE=
  BUILD_COLORMATRIXFILTER_AS3_FALSE='#'
else
  BUILD_COLORMATRIXFILTER_AS3_TRUE='#'
  BUILD_COLORMATRIXFILTER_AS3_FALSE=
fi


 if test x"${AutoLayoutEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_AUTOLAYOUTEVENT_AS3_TRUE=
  BUILD_AUTOLAYOUTEVENT_AS3_FALSE='#'
else
  BUILD_AUTOLAYOUTEVENT_AS3_TRUE='#'
  BUILD_AUTOLAYOUTEVENT_AS3_FALSE=
fi

 if test x"${FLVPlaybackCaptioning_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FLVPLAYBACKCAPTIONING_AS3_TRUE=
  BUILD_FLVPLAYBACKCAPTIONING_AS3_FALSE='#'
else
  BUILD_FLVPLAYBACKCAPTIONING_AS3_TRUE='#'
  BUILD_FLVPLAYBACKCAPTIONING_AS3_FALSE=
fi

 if test x"${SoundEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SOUNDEVENT_AS3_TRUE=
  BUILD_SOUNDEVENT_AS3_FALSE='#'
else
  BUILD_SOUNDEVENT_AS3_TRUE='#'
  BUILD_SOUNDEVENT_AS3_FALSE=
fi

 if test x"${LayoutEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LAYOUTEVENT_AS3_TRUE=
  BUILD_LAYOUTEVENT_AS3_FALSE='#'
else
  BUILD_LAYOUTEVENT_AS3_TRUE='#'
  BUILD_LAYOUTEVENT_AS3_FALSE=
fi

 if test x"${INCManager_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_INCMANAGER_AS3_TRUE=
  BUILD_INCMANAGER_AS3_FALSE='#'
else
  BUILD_INCMANAGER_AS3_TRUE='#'
  BUILD_INCMANAGER_AS3_FALSE=
fi

 if test x"${VideoError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEOERROR_AS3_TRUE=
  BUILD_VIDEOERROR_AS3_FALSE='#'
else
  BUILD_VIDEOERROR_AS3_TRUE='#'
  BUILD_VIDEOERROR_AS3_FALSE=
fi

 if test x"${FLVPlayback_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FLVPLAYBACK_AS3_TRUE=
  BUILD_FLVPLAYBACK_AS3_FALSE='#'
else
  BUILD_FLVPLAYBACK_AS3_TRUE='#'
  BUILD_FLVPLAYBACK_AS3_FALSE=
fi

 if test x"${VideoAlign_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEOALIGN_AS3_TRUE=
  BUILD_VIDEOALIGN_AS3_FALSE='#'
else
  BUILD_VIDEOALIGN_AS3_TRUE='#'
  BUILD_VIDEOALIGN_AS3_FALSE=
fi

 if test x"${NCManager_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NCMANAGER_AS3_TRUE=
  BUILD_NCMANAGER_AS3_FALSE='#'
else
  BUILD_NCMANAGER_AS3_TRUE='#'
  BUILD_NCMANAGER_AS3_FALSE=
fi

 if test x"${VideoPlayer_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEOPLAYER_AS3_TRUE=
  BUILD_VIDEOPLAYER_AS3_FALSE='#'
else
  BUILD_VIDEOPLAYER_AS3_TRUE='#'
  BUILD_VIDEOPLAYER_AS3_FALSE=
fi

 if test x"${CaptionChangeEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CAPTIONCHANGEEVENT_AS3_TRUE=
  BUILD_CAPTIONCHANGEEVENT_AS3_FALSE='#'
else
  BUILD_CAPTIONCHANGEEVENT_AS3_TRUE='#'
  BUILD_CAPTIONCHANGEEVENT_AS3_FALSE=
fi

 if test x"${VideoState_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEOSTATE_AS3_TRUE=
  BUILD_VIDEOSTATE_AS3_FALSE='#'
else
  BUILD_VIDEOSTATE_AS3_TRUE='#'
  BUILD_VIDEOSTATE_AS3_FALSE=
fi

 if test x"${NCManagerNative_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NCMANAGERNATIVE_AS3_TRUE=
  BUILD_NCMANAGERNATIVE_AS3_FALSE='#'
else
  BUILD_NCMANAGERNATIVE_AS3_TRUE='#'
  BUILD_NCMANAGERNATIVE_AS3_FALSE=
fi

 if test x"${VideoScaleMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEOSCALEMODE_AS3_TRUE=
  BUILD_VIDEOSCALEMODE_AS3_FALSE='#'
else
  BUILD_VIDEOSCALEMODE_AS3_TRUE='#'
  BUILD_VIDEOSCALEMODE_AS3_FALSE=
fi

 if test x"${CaptionTargetEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CAPTIONTARGETEVENT_AS3_TRUE=
  BUILD_CAPTIONTARGETEVENT_AS3_FALSE='#'
else
  BUILD_CAPTIONTARGETEVENT_AS3_TRUE='#'
  BUILD_CAPTIONTARGETEVENT_AS3_FALSE=
fi

 if test x"${VideoEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEOEVENT_AS3_TRUE=
  BUILD_VIDEOEVENT_AS3_FALSE='#'
else
  BUILD_VIDEOEVENT_AS3_TRUE='#'
  BUILD_VIDEOEVENT_AS3_FALSE=
fi

 if test x"${IVPEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IVPEVENT_AS3_TRUE=
  BUILD_IVPEVENT_AS3_FALSE='#'
else
  BUILD_IVPEVENT_AS3_TRUE='#'
  BUILD_IVPEVENT_AS3_FALSE=
fi

 if test x"${MetadataEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_METADATAEVENT_AS3_TRUE=
  BUILD_METADATAEVENT_AS3_FALSE='#'
else
  BUILD_METADATAEVENT_AS3_TRUE='#'
  BUILD_METADATAEVENT_AS3_FALSE=
fi

 if test x"${CuePointType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CUEPOINTTYPE_AS3_TRUE=
  BUILD_CUEPOINTTYPE_AS3_FALSE='#'
else
  BUILD_CUEPOINTTYPE_AS3_TRUE='#'
  BUILD_CUEPOINTTYPE_AS3_FALSE=
fi

 if test x"${VideoProgressEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_VIDEOPROGRESSEVENT_AS3_TRUE=
  BUILD_VIDEOPROGRESSEVENT_AS3_FALSE='#'
else
  BUILD_VIDEOPROGRESSEVENT_AS3_TRUE='#'
  BUILD_VIDEOPROGRESSEVENT_AS3_FALSE=
fi

 if test x"${SkinErrorEvent_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SKINERROREVENT_AS3_TRUE=
  BUILD_SKINERROREVENT_AS3_FALSE='#'
else
  BUILD_SKINERROREVENT_AS3_TRUE='#'
  BUILD_SKINERROREVENT_AS3_FALSE=
fi


 if test x"${TextFieldAutoSize_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTFIELDAUTOSIZE_AS3_TRUE=
  BUILD_TEXTFIELDAUTOSIZE_AS3_FALSE='#'
else
  BUILD_TEXTFIELDAUTOSIZE_AS3_TRUE='#'
  BUILD_TEXTFIELDAUTOSIZE_AS3_FALSE=
fi

 if test x"${TextRenderer_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTRENDERER_AS3_TRUE=
  BUILD_TEXTRENDERER_AS3_FALSE='#'
else
  BUILD_TEXTRENDERER_AS3_TRUE='#'
  BUILD_TEXTRENDERER_AS3_FALSE=
fi

 if test x"${CSMSettings_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CSMSETTINGS_AS3_TRUE=
  BUILD_CSMSETTINGS_AS3_FALSE='#'
else
  BUILD_CSMSETTINGS_AS3_TRUE='#'
  BUILD_CSMSETTINGS_AS3_FALSE=
fi

 if test x"${TextDisplayMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTDISPLAYMODE_AS3_TRUE=
  BUILD_TEXTDISPLAYMODE_AS3_FALSE='#'
else
  BUILD_TEXTDISPLAYMODE_AS3_TRUE='#'
  BUILD_TEXTDISPLAYMODE_AS3_FALSE=
fi

 if test x"${TextLineMetrics_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTLINEMETRICS_AS3_TRUE=
  BUILD_TEXTLINEMETRICS_AS3_FALSE='#'
else
  BUILD_TEXTLINEMETRICS_AS3_TRUE='#'
  BUILD_TEXTLINEMETRICS_AS3_FALSE=
fi

 if test x"${GridFitType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_GRIDFITTYPE_AS3_TRUE=
  BUILD_GRIDFITTYPE_AS3_FALSE='#'
else
  BUILD_GRIDFITTYPE_AS3_TRUE='#'
  BUILD_GRIDFITTYPE_AS3_FALSE=
fi

 if test x"${AntiAliasType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ANTIALIASTYPE_AS3_TRUE=
  BUILD_ANTIALIASTYPE_AS3_FALSE='#'
else
  BUILD_ANTIALIASTYPE_AS3_TRUE='#'
  BUILD_ANTIALIASTYPE_AS3_FALSE=
fi

 if test x"${StyleSheet_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STYLESHEET_AS3_TRUE=
  BUILD_STYLESHEET_AS3_FALSE='#'
else
  BUILD_STYLESHEET_AS3_TRUE='#'
  BUILD_STYLESHEET_AS3_FALSE=
fi

 if test x"${TextFieldType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTFIELDTYPE_AS3_TRUE=
  BUILD_TEXTFIELDTYPE_AS3_FALSE='#'
else
  BUILD_TEXTFIELDTYPE_AS3_TRUE='#'
  BUILD_TEXTFIELDTYPE_AS3_FALSE=
fi

 if test x"${FontStyle_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FONTSTYLE_AS3_TRUE=
  BUILD_FONTSTYLE_AS3_FALSE='#'
else
  BUILD_FONTSTYLE_AS3_TRUE='#'
  BUILD_FONTSTYLE_AS3_FALSE=
fi

 if test x"${TextField_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTFIELD_AS3_TRUE=
  BUILD_TEXTFIELD_AS3_FALSE='#'
else
  BUILD_TEXTFIELD_AS3_TRUE='#'
  BUILD_TEXTFIELD_AS3_FALSE=
fi

 if test x"${TextColorType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTCOLORTYPE_AS3_TRUE=
  BUILD_TEXTCOLORTYPE_AS3_FALSE='#'
else
  BUILD_TEXTCOLORTYPE_AS3_TRUE='#'
  BUILD_TEXTCOLORTYPE_AS3_FALSE=
fi

 if test x"${FontType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FONTTYPE_AS3_TRUE=
  BUILD_FONTTYPE_AS3_FALSE='#'
else
  BUILD_FONTTYPE_AS3_TRUE='#'
  BUILD_FONTTYPE_AS3_FALSE=
fi

 if test x"${Font_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FONT_AS3_TRUE=
  BUILD_FONT_AS3_FALSE='#'
else
  BUILD_FONT_AS3_TRUE='#'
  BUILD_FONT_AS3_FALSE=
fi

 if test x"${StaticText_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STATICTEXT_AS3_TRUE=
  BUILD_STATICTEXT_AS3_FALSE='#'
else
  BUILD_STATICTEXT_AS3_TRUE='#'
  BUILD_STATICTEXT_AS3_FALSE=
fi

 if test x"${TextFormat_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTFORMAT_AS3_TRUE=
  BUILD_TEXTFORMAT_AS3_FALSE='#'
else
  BUILD_TEXTFORMAT_AS3_TRUE='#'
  BUILD_TEXTFORMAT_AS3_FALSE=
fi

 if test x"${TextSnapshot_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTSNAPSHOT_AS3_TRUE=
  BUILD_TEXTSNAPSHOT_AS3_FALSE='#'
else
  BUILD_TEXTSNAPSHOT_AS3_TRUE='#'
  BUILD_TEXTSNAPSHOT_AS3_FALSE=
fi

 if test x"${TextFormatAlign_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTFORMATALIGN_AS3_TRUE=
  BUILD_TEXTFORMATALIGN_AS3_FALSE='#'
else
  BUILD_TEXTFORMATALIGN_AS3_TRUE='#'
  BUILD_TEXTFORMATALIGN_AS3_FALSE=
fi


 if test x"${SQLTransactionLockType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLTRANSACTIONLOCKTYPE_AS3_TRUE=
  BUILD_SQLTRANSACTIONLOCKTYPE_AS3_FALSE='#'
else
  BUILD_SQLTRANSACTIONLOCKTYPE_AS3_TRUE='#'
  BUILD_SQLTRANSACTIONLOCKTYPE_AS3_FALSE=
fi

 if test x"${SQLSchemaResult_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLSCHEMARESULT_AS3_TRUE=
  BUILD_SQLSCHEMARESULT_AS3_FALSE='#'
else
  BUILD_SQLSCHEMARESULT_AS3_TRUE='#'
  BUILD_SQLSCHEMARESULT_AS3_FALSE=
fi

 if test x"${SQLTriggerSchema_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLTRIGGERSCHEMA_AS3_TRUE=
  BUILD_SQLTRIGGERSCHEMA_AS3_FALSE='#'
else
  BUILD_SQLTRIGGERSCHEMA_AS3_TRUE='#'
  BUILD_SQLTRIGGERSCHEMA_AS3_FALSE=
fi

 if test x"${SQLTableSchema_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLTABLESCHEMA_AS3_TRUE=
  BUILD_SQLTABLESCHEMA_AS3_FALSE='#'
else
  BUILD_SQLTABLESCHEMA_AS3_TRUE='#'
  BUILD_SQLTABLESCHEMA_AS3_FALSE=
fi

 if test x"${SQLConnection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLCONNECTION_AS3_TRUE=
  BUILD_SQLCONNECTION_AS3_FALSE='#'
else
  BUILD_SQLCONNECTION_AS3_TRUE='#'
  BUILD_SQLCONNECTION_AS3_FALSE=
fi

 if test x"${SQLIndexSchema_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLINDEXSCHEMA_AS3_TRUE=
  BUILD_SQLINDEXSCHEMA_AS3_FALSE='#'
else
  BUILD_SQLINDEXSCHEMA_AS3_TRUE='#'
  BUILD_SQLINDEXSCHEMA_AS3_FALSE=
fi

 if test x"${SQLResult_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLRESULT_AS3_TRUE=
  BUILD_SQLRESULT_AS3_FALSE='#'
else
  BUILD_SQLRESULT_AS3_TRUE='#'
  BUILD_SQLRESULT_AS3_FALSE=
fi

 if test x"${SQLSchema_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLSCHEMA_AS3_TRUE=
  BUILD_SQLSCHEMA_AS3_FALSE='#'
else
  BUILD_SQLSCHEMA_AS3_TRUE='#'
  BUILD_SQLSCHEMA_AS3_FALSE=
fi

 if test x"${SQLCollationType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLCOLLATIONTYPE_AS3_TRUE=
  BUILD_SQLCOLLATIONTYPE_AS3_FALSE='#'
else
  BUILD_SQLCOLLATIONTYPE_AS3_TRUE='#'
  BUILD_SQLCOLLATIONTYPE_AS3_FALSE=
fi

 if test x"${SQLViewSchema_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLVIEWSCHEMA_AS3_TRUE=
  BUILD_SQLVIEWSCHEMA_AS3_FALSE='#'
else
  BUILD_SQLVIEWSCHEMA_AS3_TRUE='#'
  BUILD_SQLVIEWSCHEMA_AS3_FALSE=
fi

 if test x"${SQLColumnNameStyle_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLCOLUMNNAMESTYLE_AS3_TRUE=
  BUILD_SQLCOLUMNNAMESTYLE_AS3_FALSE='#'
else
  BUILD_SQLCOLUMNNAMESTYLE_AS3_TRUE='#'
  BUILD_SQLCOLUMNNAMESTYLE_AS3_FALSE=
fi

 if test x"${SQLMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLMODE_AS3_TRUE=
  BUILD_SQLMODE_AS3_FALSE='#'
else
  BUILD_SQLMODE_AS3_TRUE='#'
  BUILD_SQLMODE_AS3_FALSE=
fi

 if test x"${EncryptedLocalStore_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ENCRYPTEDLOCALSTORE_AS3_TRUE=
  BUILD_ENCRYPTEDLOCALSTORE_AS3_FALSE='#'
else
  BUILD_ENCRYPTEDLOCALSTORE_AS3_TRUE='#'
  BUILD_ENCRYPTEDLOCALSTORE_AS3_FALSE=
fi

 if test x"${SQLStatement_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLSTATEMENT_AS3_TRUE=
  BUILD_SQLSTATEMENT_AS3_FALSE='#'
else
  BUILD_SQLSTATEMENT_AS3_TRUE='#'
  BUILD_SQLSTATEMENT_AS3_FALSE=
fi

 if test x"${SQLColumnSchema_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLCOLUMNSCHEMA_AS3_TRUE=
  BUILD_SQLCOLUMNSCHEMA_AS3_FALSE='#'
else
  BUILD_SQLCOLUMNSCHEMA_AS3_TRUE='#'
  BUILD_SQLCOLUMNSCHEMA_AS3_FALSE=
fi


 if test x"${IMEConversionMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IMECONVERSIONMODE_AS3_TRUE=
  BUILD_IMECONVERSIONMODE_AS3_FALSE='#'
else
  BUILD_IMECONVERSIONMODE_AS3_TRUE='#'
  BUILD_IMECONVERSIONMODE_AS3_FALSE=
fi

 if test x"${IME_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IME_AS3_TRUE=
  BUILD_IME_AS3_FALSE='#'
else
  BUILD_IME_AS3_TRUE='#'
  BUILD_IME_AS3_FALSE=
fi

 if test x"${SecurityPanel_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SECURITYPANEL_AS3_TRUE=
  BUILD_SECURITYPANEL_AS3_FALSE='#'
else
  BUILD_SECURITYPANEL_AS3_TRUE='#'
  BUILD_SECURITYPANEL_AS3_FALSE=
fi

 if test x"${Capabilities_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CAPABILITIES_AS3_TRUE=
  BUILD_CAPABILITIES_AS3_FALSE='#'
else
  BUILD_CAPABILITIES_AS3_TRUE='#'
  BUILD_CAPABILITIES_AS3_FALSE=
fi

 if test x"${ApplicationDomain_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_APPLICATIONDOMAIN_AS3_TRUE=
  BUILD_APPLICATIONDOMAIN_AS3_FALSE='#'
else
  BUILD_APPLICATIONDOMAIN_AS3_TRUE='#'
  BUILD_APPLICATIONDOMAIN_AS3_FALSE=
fi

 if test x"${LoaderContext_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LOADERCONTEXT_AS3_TRUE=
  BUILD_LOADERCONTEXT_AS3_FALSE='#'
else
  BUILD_LOADERCONTEXT_AS3_TRUE='#'
  BUILD_LOADERCONTEXT_AS3_FALSE=
fi

 if test x"${System_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SYSTEM_AS3_TRUE=
  BUILD_SYSTEM_AS3_FALSE='#'
else
  BUILD_SYSTEM_AS3_TRUE='#'
  BUILD_SYSTEM_AS3_FALSE=
fi

 if test x"${SecurityDomain_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SECURITYDOMAIN_AS3_TRUE=
  BUILD_SECURITYDOMAIN_AS3_FALSE='#'
else
  BUILD_SECURITYDOMAIN_AS3_TRUE='#'
  BUILD_SECURITYDOMAIN_AS3_FALSE=
fi

 if test x"${Security_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SECURITY_AS3_TRUE=
  BUILD_SECURITY_AS3_FALSE='#'
else
  BUILD_SECURITY_AS3_TRUE='#'
  BUILD_SECURITY_AS3_FALSE=
fi


 if test x"${InvalidSWFError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_INVALIDSWFERROR_AS3_TRUE=
  BUILD_INVALIDSWFERROR_AS3_FALSE='#'
else
  BUILD_INVALIDSWFERROR_AS3_TRUE='#'
  BUILD_INVALIDSWFERROR_AS3_FALSE=
fi

 if test x"${StackOverflowError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STACKOVERFLOWERROR_AS3_TRUE=
  BUILD_STACKOVERFLOWERROR_AS3_FALSE='#'
else
  BUILD_STACKOVERFLOWERROR_AS3_TRUE='#'
  BUILD_STACKOVERFLOWERROR_AS3_FALSE=
fi

 if test x"${IOError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IOERROR_AS3_TRUE=
  BUILD_IOERROR_AS3_FALSE='#'
else
  BUILD_IOERROR_AS3_TRUE='#'
  BUILD_IOERROR_AS3_FALSE=
fi

 if test x"${MemoryError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MEMORYERROR_AS3_TRUE=
  BUILD_MEMORYERROR_AS3_FALSE='#'
else
  BUILD_MEMORYERROR_AS3_TRUE='#'
  BUILD_MEMORYERROR_AS3_FALSE=
fi

 if test x"${SQLError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLERROR_AS3_TRUE=
  BUILD_SQLERROR_AS3_FALSE='#'
else
  BUILD_SQLERROR_AS3_TRUE='#'
  BUILD_SQLERROR_AS3_FALSE=
fi

 if test x"${IllegalOperationError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ILLEGALOPERATIONERROR_AS3_TRUE=
  BUILD_ILLEGALOPERATIONERROR_AS3_FALSE='#'
else
  BUILD_ILLEGALOPERATIONERROR_AS3_TRUE='#'
  BUILD_ILLEGALOPERATIONERROR_AS3_FALSE=
fi

 if test x"${EOFError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_EOFERROR_AS3_TRUE=
  BUILD_EOFERROR_AS3_FALSE='#'
else
  BUILD_EOFERROR_AS3_TRUE='#'
  BUILD_EOFERROR_AS3_FALSE=
fi

 if test x"${ScriptTimeoutError_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCRIPTTIMEOUTERROR_AS3_TRUE=
  BUILD_SCRIPTTIMEOUTERROR_AS3_FALSE='#'
else
  BUILD_SCRIPTTIMEOUTERROR_AS3_TRUE='#'
  BUILD_SCRIPTTIMEOUTERROR_AS3_FALSE=
fi

 if test x"${SQLErrorOperation_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SQLERROROPERATION_AS3_TRUE=
  BUILD_SQLERROROPERATION_AS3_FALSE='#'
else
  BUILD_SQLERROROPERATION_AS3_TRUE='#'
  BUILD_SQLERROROPERATION_AS3_FALSE=
fi


 if test x"${Updater_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_UPDATER_AS3_TRUE=
  BUILD_UPDATER_AS3_FALSE='#'
else
  BUILD_UPDATER_AS3_TRUE='#'
  BUILD_UPDATER_AS3_FALSE=
fi

 if test x"${NativeDragManager_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEDRAGMANAGER_AS3_TRUE=
  BUILD_NATIVEDRAGMANAGER_AS3_FALSE='#'
else
  BUILD_NATIVEDRAGMANAGER_AS3_TRUE='#'
  BUILD_NATIVEDRAGMANAGER_AS3_FALSE=
fi

 if test x"${NativeApplication_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEAPPLICATION_AS3_TRUE=
  BUILD_NATIVEAPPLICATION_AS3_FALSE='#'
else
  BUILD_NATIVEAPPLICATION_AS3_TRUE='#'
  BUILD_NATIVEAPPLICATION_AS3_FALSE=
fi

 if test x"${NativeDragActions_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEDRAGACTIONS_AS3_TRUE=
  BUILD_NATIVEDRAGACTIONS_AS3_FALSE='#'
else
  BUILD_NATIVEDRAGACTIONS_AS3_TRUE='#'
  BUILD_NATIVEDRAGACTIONS_AS3_FALSE=
fi

 if test x"${Clipboard_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CLIPBOARD_AS3_TRUE=
  BUILD_CLIPBOARD_AS3_FALSE='#'
else
  BUILD_CLIPBOARD_AS3_TRUE='#'
  BUILD_CLIPBOARD_AS3_FALSE=
fi

 if test x"${NotificationType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NOTIFICATIONTYPE_AS3_TRUE=
  BUILD_NOTIFICATIONTYPE_AS3_FALSE='#'
else
  BUILD_NOTIFICATIONTYPE_AS3_TRUE='#'
  BUILD_NOTIFICATIONTYPE_AS3_FALSE=
fi

 if test x"${ClipboardFormats_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CLIPBOARDFORMATS_AS3_TRUE=
  BUILD_CLIPBOARDFORMATS_AS3_FALSE='#'
else
  BUILD_CLIPBOARDFORMATS_AS3_TRUE='#'
  BUILD_CLIPBOARDFORMATS_AS3_FALSE=
fi

 if test x"${ClipboardTransferMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CLIPBOARDTRANSFERMODE_AS3_TRUE=
  BUILD_CLIPBOARDTRANSFERMODE_AS3_FALSE='#'
else
  BUILD_CLIPBOARDTRANSFERMODE_AS3_TRUE='#'
  BUILD_CLIPBOARDTRANSFERMODE_AS3_FALSE=
fi

 if test x"${NativeDragOptions_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEDRAGOPTIONS_AS3_TRUE=
  BUILD_NATIVEDRAGOPTIONS_AS3_FALSE='#'
else
  BUILD_NATIVEDRAGOPTIONS_AS3_TRUE='#'
  BUILD_NATIVEDRAGOPTIONS_AS3_FALSE=
fi

 if test x"${DockIcon_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DOCKICON_AS3_TRUE=
  BUILD_DOCKICON_AS3_FALSE='#'
else
  BUILD_DOCKICON_AS3_TRUE='#'
  BUILD_DOCKICON_AS3_FALSE=
fi

 if test x"${SystemTrayIcon_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SYSTEMTRAYICON_AS3_TRUE=
  BUILD_SYSTEMTRAYICON_AS3_FALSE='#'
else
  BUILD_SYSTEMTRAYICON_AS3_TRUE='#'
  BUILD_SYSTEMTRAYICON_AS3_FALSE=
fi

 if test x"${Icon_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ICON_AS3_TRUE=
  BUILD_ICON_AS3_FALSE='#'
else
  BUILD_ICON_AS3_TRUE='#'
  BUILD_ICON_AS3_FALSE=
fi

 if test x"${InteractiveIcon_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_INTERACTIVEICON_AS3_TRUE=
  BUILD_INTERACTIVEICON_AS3_FALSE='#'
else
  BUILD_INTERACTIVEICON_AS3_TRUE='#'
  BUILD_INTERACTIVEICON_AS3_FALSE=
fi


 if test x"${ProgressBarDirection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PROGRESSBARDIRECTION_AS3_TRUE=
  BUILD_PROGRESSBARDIRECTION_AS3_FALSE='#'
else
  BUILD_PROGRESSBARDIRECTION_AS3_TRUE='#'
  BUILD_PROGRESSBARDIRECTION_AS3_FALSE=
fi

 if test x"${ScrollPolicy_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCROLLPOLICY_AS3_TRUE=
  BUILD_SCROLLPOLICY_AS3_FALSE='#'
else
  BUILD_SCROLLPOLICY_AS3_TRUE='#'
  BUILD_SCROLLPOLICY_AS3_FALSE=
fi

 if test x"${Slider_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SLIDER_AS3_TRUE=
  BUILD_SLIDER_AS3_FALSE='#'
else
  BUILD_SLIDER_AS3_TRUE='#'
  BUILD_SLIDER_AS3_FALSE=
fi

 if test x"${TextInput_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTINPUT_AS3_TRUE=
  BUILD_TEXTINPUT_AS3_FALSE='#'
else
  BUILD_TEXTINPUT_AS3_TRUE='#'
  BUILD_TEXTINPUT_AS3_FALSE=
fi

 if test x"${TextArea_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TEXTAREA_AS3_TRUE=
  BUILD_TEXTAREA_AS3_FALSE='#'
else
  BUILD_TEXTAREA_AS3_TRUE='#'
  BUILD_TEXTAREA_AS3_FALSE=
fi

 if test x"${SelectableList_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SELECTABLELIST_AS3_TRUE=
  BUILD_SELECTABLELIST_AS3_FALSE='#'
else
  BUILD_SELECTABLELIST_AS3_TRUE='#'
  BUILD_SELECTABLELIST_AS3_FALSE=
fi

 if test x"${Label_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LABEL_AS3_TRUE=
  BUILD_LABEL_AS3_FALSE='#'
else
  BUILD_LABEL_AS3_TRUE='#'
  BUILD_LABEL_AS3_FALSE=
fi

 if test x"${ScrollBar_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCROLLBAR_AS3_TRUE=
  BUILD_SCROLLBAR_AS3_FALSE='#'
else
  BUILD_SCROLLBAR_AS3_TRUE='#'
  BUILD_SCROLLBAR_AS3_FALSE=
fi

 if test x"${BaseButton_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BASEBUTTON_AS3_TRUE=
  BUILD_BASEBUTTON_AS3_FALSE='#'
else
  BUILD_BASEBUTTON_AS3_TRUE='#'
  BUILD_BASEBUTTON_AS3_FALSE=
fi

 if test x"${ScrollBarDirection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCROLLBARDIRECTION_AS3_TRUE=
  BUILD_SCROLLBARDIRECTION_AS3_FALSE='#'
else
  BUILD_SCROLLBARDIRECTION_AS3_TRUE='#'
  BUILD_SCROLLBARDIRECTION_AS3_FALSE=
fi

 if test x"${RadioButtonGroup_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_RADIOBUTTONGROUP_AS3_TRUE=
  BUILD_RADIOBUTTONGROUP_AS3_FALSE='#'
else
  BUILD_RADIOBUTTONGROUP_AS3_TRUE='#'
  BUILD_RADIOBUTTONGROUP_AS3_FALSE=
fi

 if test x"${ComboBox_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_COMBOBOX_AS3_TRUE=
  BUILD_COMBOBOX_AS3_FALSE='#'
else
  BUILD_COMBOBOX_AS3_TRUE='#'
  BUILD_COMBOBOX_AS3_FALSE=
fi

 if test x"${LabelButton_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LABELBUTTON_AS3_TRUE=
  BUILD_LABELBUTTON_AS3_FALSE='#'
else
  BUILD_LABELBUTTON_AS3_TRUE='#'
  BUILD_LABELBUTTON_AS3_FALSE=
fi

 if test x"${NumericStepper_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NUMERICSTEPPER_AS3_TRUE=
  BUILD_NUMERICSTEPPER_AS3_FALSE='#'
else
  BUILD_NUMERICSTEPPER_AS3_TRUE='#'
  BUILD_NUMERICSTEPPER_AS3_FALSE=
fi

 if test x"${UIScrollBar_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_UISCROLLBAR_AS3_TRUE=
  BUILD_UISCROLLBAR_AS3_FALSE='#'
else
  BUILD_UISCROLLBAR_AS3_TRUE='#'
  BUILD_UISCROLLBAR_AS3_FALSE=
fi

 if test x"${ProgressBarMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PROGRESSBARMODE_AS3_TRUE=
  BUILD_PROGRESSBARMODE_AS3_FALSE='#'
else
  BUILD_PROGRESSBARMODE_AS3_TRUE='#'
  BUILD_PROGRESSBARMODE_AS3_FALSE=
fi

 if test x"${DataGrid_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DATAGRID_AS3_TRUE=
  BUILD_DATAGRID_AS3_FALSE='#'
else
  BUILD_DATAGRID_AS3_TRUE='#'
  BUILD_DATAGRID_AS3_FALSE=
fi

 if test x"${ProgressBar_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PROGRESSBAR_AS3_TRUE=
  BUILD_PROGRESSBAR_AS3_FALSE='#'
else
  BUILD_PROGRESSBAR_AS3_TRUE='#'
  BUILD_PROGRESSBAR_AS3_FALSE=
fi

 if test x"${Button_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BUTTON_AS3_TRUE=
  BUILD_BUTTON_AS3_FALSE='#'
else
  BUILD_BUTTON_AS3_TRUE='#'
  BUILD_BUTTON_AS3_FALSE=
fi

 if test x"${ColorPicker_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_COLORPICKER_AS3_TRUE=
  BUILD_COLORPICKER_AS3_FALSE='#'
else
  BUILD_COLORPICKER_AS3_TRUE='#'
  BUILD_COLORPICKER_AS3_FALSE=
fi

 if test x"${CheckBox_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CHECKBOX_AS3_TRUE=
  BUILD_CHECKBOX_AS3_FALSE='#'
else
  BUILD_CHECKBOX_AS3_TRUE='#'
  BUILD_CHECKBOX_AS3_FALSE=
fi

 if test x"${TileList_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_TILELIST_AS3_TRUE=
  BUILD_TILELIST_AS3_FALSE='#'
else
  BUILD_TILELIST_AS3_TRUE='#'
  BUILD_TILELIST_AS3_FALSE=
fi

 if test x"${List_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LIST_AS3_TRUE=
  BUILD_LIST_AS3_FALSE='#'
else
  BUILD_LIST_AS3_TRUE='#'
  BUILD_LIST_AS3_FALSE=
fi

 if test x"${ButtonLabelPlacement_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BUTTONLABELPLACEMENT_AS3_TRUE=
  BUILD_BUTTONLABELPLACEMENT_AS3_FALSE='#'
else
  BUILD_BUTTONLABELPLACEMENT_AS3_TRUE='#'
  BUILD_BUTTONLABELPLACEMENT_AS3_FALSE=
fi

 if test x"${SliderDirection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SLIDERDIRECTION_AS3_TRUE=
  BUILD_SLIDERDIRECTION_AS3_FALSE='#'
else
  BUILD_SLIDERDIRECTION_AS3_TRUE='#'
  BUILD_SLIDERDIRECTION_AS3_FALSE=
fi

 if test x"${RadioButton_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_RADIOBUTTON_AS3_TRUE=
  BUILD_RADIOBUTTON_AS3_FALSE='#'
else
  BUILD_RADIOBUTTON_AS3_TRUE='#'
  BUILD_RADIOBUTTON_AS3_FALSE=
fi


 if test x"${XMLNode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_XMLNODE_AS3_TRUE=
  BUILD_XMLNODE_AS3_FALSE='#'
else
  BUILD_XMLNODE_AS3_TRUE='#'
  BUILD_XMLNODE_AS3_FALSE=
fi

 if test x"${XMLNodeType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_XMLNODETYPE_AS3_TRUE=
  BUILD_XMLNODETYPE_AS3_FALSE='#'
else
  BUILD_XMLNODETYPE_AS3_TRUE='#'
  BUILD_XMLNODETYPE_AS3_FALSE=
fi

 if test x"${XMLDocument_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_XMLDOCUMENT_AS3_TRUE=
  BUILD_XMLDOCUMENT_AS3_FALSE='#'
else
  BUILD_XMLDOCUMENT_AS3_TRUE='#'
  BUILD_XMLDOCUMENT_AS3_FALSE=
fi


 if test x"${FrameLabel_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FRAMELABEL_AS3_TRUE=
  BUILD_FRAMELABEL_AS3_FALSE='#'
else
  BUILD_FRAMELABEL_AS3_TRUE='#'
  BUILD_FRAMELABEL_AS3_FALSE=
fi

 if test x"${Screen_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCREEN_AS3_TRUE=
  BUILD_SCREEN_AS3_FALSE='#'
else
  BUILD_SCREEN_AS3_TRUE='#'
  BUILD_SCREEN_AS3_FALSE=
fi

 if test x"${Bitmap_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BITMAP_AS3_TRUE=
  BUILD_BITMAP_AS3_FALSE='#'
else
  BUILD_BITMAP_AS3_TRUE='#'
  BUILD_BITMAP_AS3_FALSE=
fi

 if test x"${SWFVersion_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SWFVERSION_AS3_TRUE=
  BUILD_SWFVERSION_AS3_FALSE='#'
else
  BUILD_SWFVERSION_AS3_TRUE='#'
  BUILD_SWFVERSION_AS3_FALSE=
fi

 if test x"${StageAlign_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STAGEALIGN_AS3_TRUE=
  BUILD_STAGEALIGN_AS3_FALSE='#'
else
  BUILD_STAGEALIGN_AS3_TRUE='#'
  BUILD_STAGEALIGN_AS3_FALSE=
fi

 if test x"${StageDisplayState_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STAGEDISPLAYSTATE_AS3_TRUE=
  BUILD_STAGEDISPLAYSTATE_AS3_FALSE='#'
else
  BUILD_STAGEDISPLAYSTATE_AS3_TRUE='#'
  BUILD_STAGEDISPLAYSTATE_AS3_FALSE=
fi

 if test x"${IBitmapDrawable_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_IBITMAPDRAWABLE_AS3_TRUE=
  BUILD_IBITMAPDRAWABLE_AS3_FALSE='#'
else
  BUILD_IBITMAPDRAWABLE_AS3_TRUE='#'
  BUILD_IBITMAPDRAWABLE_AS3_FALSE=
fi

 if test x"${NativeWindowType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEWINDOWTYPE_AS3_TRUE=
  BUILD_NATIVEWINDOWTYPE_AS3_FALSE='#'
else
  BUILD_NATIVEWINDOWTYPE_AS3_TRUE='#'
  BUILD_NATIVEWINDOWTYPE_AS3_FALSE=
fi

 if test x"${NativeMenuItem_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEMENUITEM_AS3_TRUE=
  BUILD_NATIVEMENUITEM_AS3_FALSE='#'
else
  BUILD_NATIVEMENUITEM_AS3_TRUE='#'
  BUILD_NATIVEMENUITEM_AS3_FALSE=
fi

 if test x"${InterpolationMethod_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_INTERPOLATIONMETHOD_AS3_TRUE=
  BUILD_INTERPOLATIONMETHOD_AS3_FALSE='#'
else
  BUILD_INTERPOLATIONMETHOD_AS3_TRUE='#'
  BUILD_INTERPOLATIONMETHOD_AS3_FALSE=
fi

 if test x"${InteractiveObject_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_INTERACTIVEOBJECT_AS3_TRUE=
  BUILD_INTERACTIVEOBJECT_AS3_FALSE='#'
else
  BUILD_INTERACTIVEOBJECT_AS3_TRUE='#'
  BUILD_INTERACTIVEOBJECT_AS3_FALSE=
fi

 if test x"${BitmapData_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BITMAPDATA_AS3_TRUE=
  BUILD_BITMAPDATA_AS3_FALSE='#'
else
  BUILD_BITMAPDATA_AS3_TRUE='#'
  BUILD_BITMAPDATA_AS3_FALSE=
fi

 if test x"${Scene_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCENE_AS3_TRUE=
  BUILD_SCENE_AS3_FALSE='#'
else
  BUILD_SCENE_AS3_TRUE='#'
  BUILD_SCENE_AS3_FALSE=
fi

 if test x"${Stage_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STAGE_AS3_TRUE=
  BUILD_STAGE_AS3_FALSE='#'
else
  BUILD_STAGE_AS3_TRUE='#'
  BUILD_STAGE_AS3_FALSE=
fi

 if test x"${StageScaleMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STAGESCALEMODE_AS3_TRUE=
  BUILD_STAGESCALEMODE_AS3_FALSE='#'
else
  BUILD_STAGESCALEMODE_AS3_TRUE='#'
  BUILD_STAGESCALEMODE_AS3_FALSE=
fi

 if test x"${Sprite_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SPRITE_AS3_TRUE=
  BUILD_SPRITE_AS3_FALSE='#'
else
  BUILD_SPRITE_AS3_TRUE='#'
  BUILD_SPRITE_AS3_FALSE=
fi

 if test x"${SpreadMethod_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SPREADMETHOD_AS3_TRUE=
  BUILD_SPREADMETHOD_AS3_FALSE='#'
else
  BUILD_SPREADMETHOD_AS3_TRUE='#'
  BUILD_SPREADMETHOD_AS3_FALSE=
fi

 if test x"${SimpleButton_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SIMPLEBUTTON_AS3_TRUE=
  BUILD_SIMPLEBUTTON_AS3_FALSE='#'
else
  BUILD_SIMPLEBUTTON_AS3_TRUE='#'
  BUILD_SIMPLEBUTTON_AS3_FALSE=
fi

 if test x"${NativeWindowResize_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEWINDOWRESIZE_AS3_TRUE=
  BUILD_NATIVEWINDOWRESIZE_AS3_FALSE='#'
else
  BUILD_NATIVEWINDOWRESIZE_AS3_TRUE='#'
  BUILD_NATIVEWINDOWRESIZE_AS3_FALSE=
fi

 if test x"${NativeWindow_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEWINDOW_AS3_TRUE=
  BUILD_NATIVEWINDOW_AS3_FALSE='#'
else
  BUILD_NATIVEWINDOW_AS3_TRUE='#'
  BUILD_NATIVEWINDOW_AS3_FALSE=
fi

 if test x"${AVM1Movie_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_AVM1MOVIE_AS3_TRUE=
  BUILD_AVM1MOVIE_AS3_FALSE='#'
else
  BUILD_AVM1MOVIE_AS3_TRUE='#'
  BUILD_AVM1MOVIE_AS3_FALSE=
fi

 if test x"${GradientType_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_GRADIENTTYPE_AS3_TRUE=
  BUILD_GRADIENTTYPE_AS3_FALSE='#'
else
  BUILD_GRADIENTTYPE_AS3_TRUE='#'
  BUILD_GRADIENTTYPE_AS3_FALSE=
fi

 if test x"${DisplayObject_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DISPLAYOBJECT_AS3_TRUE=
  BUILD_DISPLAYOBJECT_AS3_FALSE='#'
else
  BUILD_DISPLAYOBJECT_AS3_TRUE='#'
  BUILD_DISPLAYOBJECT_AS3_FALSE=
fi

 if test x"${Graphics_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_GRAPHICS_AS3_TRUE=
  BUILD_GRAPHICS_AS3_FALSE='#'
else
  BUILD_GRAPHICS_AS3_TRUE='#'
  BUILD_GRAPHICS_AS3_FALSE=
fi

 if test x"${CapsStyle_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_CAPSSTYLE_AS3_TRUE=
  BUILD_CAPSSTYLE_AS3_FALSE='#'
else
  BUILD_CAPSSTYLE_AS3_TRUE='#'
  BUILD_CAPSSTYLE_AS3_FALSE=
fi

 if test x"${BitmapDataChannel_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BITMAPDATACHANNEL_AS3_TRUE=
  BUILD_BITMAPDATACHANNEL_AS3_FALSE='#'
else
  BUILD_BITMAPDATACHANNEL_AS3_TRUE='#'
  BUILD_BITMAPDATACHANNEL_AS3_FALSE=
fi

 if test x"${MovieClip_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MOVIECLIP_AS3_TRUE=
  BUILD_MOVIECLIP_AS3_FALSE='#'
else
  BUILD_MOVIECLIP_AS3_TRUE='#'
  BUILD_MOVIECLIP_AS3_FALSE=
fi

 if test x"${StageQuality_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STAGEQUALITY_AS3_TRUE=
  BUILD_STAGEQUALITY_AS3_FALSE='#'
else
  BUILD_STAGEQUALITY_AS3_TRUE='#'
  BUILD_STAGEQUALITY_AS3_FALSE=
fi

 if test x"${PixelSnapping_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_PIXELSNAPPING_AS3_TRUE=
  BUILD_PIXELSNAPPING_AS3_FALSE='#'
else
  BUILD_PIXELSNAPPING_AS3_TRUE='#'
  BUILD_PIXELSNAPPING_AS3_FALSE=
fi

 if test x"${ActionScriptVersion_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_ACTIONSCRIPTVERSION_AS3_TRUE=
  BUILD_ACTIONSCRIPTVERSION_AS3_FALSE='#'
else
  BUILD_ACTIONSCRIPTVERSION_AS3_TRUE='#'
  BUILD_ACTIONSCRIPTVERSION_AS3_FALSE=
fi

 if test x"${LoaderInfo_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LOADERINFO_AS3_TRUE=
  BUILD_LOADERINFO_AS3_FALSE='#'
else
  BUILD_LOADERINFO_AS3_TRUE='#'
  BUILD_LOADERINFO_AS3_FALSE=
fi

 if test x"${LineScaleMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LINESCALEMODE_AS3_TRUE=
  BUILD_LINESCALEMODE_AS3_FALSE='#'
else
  BUILD_LINESCALEMODE_AS3_TRUE='#'
  BUILD_LINESCALEMODE_AS3_FALSE=
fi

 if test x"${JointStyle_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_JOINTSTYLE_AS3_TRUE=
  BUILD_JOINTSTYLE_AS3_FALSE='#'
else
  BUILD_JOINTSTYLE_AS3_TRUE='#'
  BUILD_JOINTSTYLE_AS3_FALSE=
fi

 if test x"${NativeWindowDisplayState_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_TRUE=
  BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_FALSE='#'
else
  BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_TRUE='#'
  BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_FALSE=
fi

 if test x"${FocusDirection_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_FOCUSDIRECTION_AS3_TRUE=
  BUILD_FOCUSDIRECTION_AS3_FALSE='#'
else
  BUILD_FOCUSDIRECTION_AS3_TRUE='#'
  BUILD_FOCUSDIRECTION_AS3_FALSE=
fi

 if test x"${BlendMode_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BLENDMODE_AS3_TRUE=
  BUILD_BLENDMODE_AS3_FALSE='#'
else
  BUILD_BLENDMODE_AS3_TRUE='#'
  BUILD_BLENDMODE_AS3_FALSE=
fi

 if test x"${NativeMenu_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEMENU_AS3_TRUE=
  BUILD_NATIVEMENU_AS3_FALSE='#'
else
  BUILD_NATIVEMENU_AS3_TRUE='#'
  BUILD_NATIVEMENU_AS3_FALSE=
fi

 if test x"${MorphShape_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_MORPHSHAPE_AS3_TRUE=
  BUILD_MORPHSHAPE_AS3_FALSE='#'
else
  BUILD_MORPHSHAPE_AS3_TRUE='#'
  BUILD_MORPHSHAPE_AS3_FALSE=
fi

 if test x"${Shape_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SHAPE_AS3_TRUE=
  BUILD_SHAPE_AS3_FALSE='#'
else
  BUILD_SHAPE_AS3_TRUE='#'
  BUILD_SHAPE_AS3_FALSE=
fi

 if test x"${NativeWindowInitOptions_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NATIVEWINDOWINITOPTIONS_AS3_TRUE=
  BUILD_NATIVEWINDOWINITOPTIONS_AS3_FALSE='#'
else
  BUILD_NATIVEWINDOWINITOPTIONS_AS3_TRUE='#'
  BUILD_NATIVEWINDOWINITOPTIONS_AS3_FALSE=
fi

 if test x"${Loader_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_LOADER_AS3_TRUE=
  BUILD_LOADER_AS3_FALSE='#'
else
  BUILD_LOADER_AS3_TRUE='#'
  BUILD_LOADER_AS3_FALSE=
fi

 if test x"${DisplayObjectContainer_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DISPLAYOBJECTCONTAINER_AS3_TRUE=
  BUILD_DISPLAYOBJECTCONTAINER_AS3_FALSE='#'
else
  BUILD_DISPLAYOBJECTCONTAINER_AS3_TRUE='#'
  BUILD_DISPLAYOBJECTCONTAINER_AS3_FALSE=
fi


 if test x"${BaseScrollPane_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_BASESCROLLPANE_AS3_TRUE=
  BUILD_BASESCROLLPANE_AS3_FALSE='#'
else
  BUILD_BASESCROLLPANE_AS3_TRUE='#'
  BUILD_BASESCROLLPANE_AS3_FALSE=
fi

 if test x"${UILoader_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_UILOADER_AS3_TRUE=
  BUILD_UILOADER_AS3_FALSE='#'
else
  BUILD_UILOADER_AS3_TRUE='#'
  BUILD_UILOADER_AS3_FALSE=
fi

 if test x"${ScrollPane_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SCROLLPANE_AS3_TRUE=
  BUILD_SCROLLPANE_AS3_FALSE='#'
else
  BUILD_SCROLLPANE_AS3_TRUE='#'
  BUILD_SCROLLPANE_AS3_FALSE=
fi


 if test x"${Sample_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_SAMPLE_AS3_TRUE=
  BUILD_SAMPLE_AS3_FALSE='#'
else
  BUILD_SAMPLE_AS3_TRUE='#'
  BUILD_SAMPLE_AS3_FALSE=
fi

 if test x"${StackFrame_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_STACKFRAME_AS3_TRUE=
  BUILD_STACKFRAME_AS3_FALSE='#'
else
  BUILD_STACKFRAME_AS3_TRUE='#'
  BUILD_STACKFRAME_AS3_FALSE=
fi

 if test x"${NewObjectSample_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_NEWOBJECTSAMPLE_AS3_TRUE=
  BUILD_NEWOBJECTSAMPLE_AS3_FALSE='#'
else
  BUILD_NEWOBJECTSAMPLE_AS3_TRUE='#'
  BUILD_NEWOBJECTSAMPLE_AS3_FALSE=
fi

 if test x"${DeleteObjectSample_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_DELETEOBJECTSAMPLE_AS3_TRUE=
  BUILD_DELETEOBJECTSAMPLE_AS3_FALSE='#'
else
  BUILD_DELETEOBJECTSAMPLE_AS3_TRUE='#'
  BUILD_DELETEOBJECTSAMPLE_AS3_FALSE=
fi


 if test x"${HTMLWindowCreateOptions_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_HTMLWINDOWCREATEOPTIONS_AS3_TRUE=
  BUILD_HTMLWINDOWCREATEOPTIONS_AS3_FALSE='#'
else
  BUILD_HTMLWINDOWCREATEOPTIONS_AS3_TRUE='#'
  BUILD_HTMLWINDOWCREATEOPTIONS_AS3_FALSE=
fi

 if test x"${HTMLLoader_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_HTMLLOADER_AS3_TRUE=
  BUILD_HTMLLOADER_AS3_FALSE='#'
else
  BUILD_HTMLLOADER_AS3_TRUE='#'
  BUILD_HTMLLOADER_AS3_FALSE=
fi

 if test x"${HTMLHistoryItem_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_HTMLHISTORYITEM_AS3_TRUE=
  BUILD_HTMLHISTORYITEM_AS3_FALSE='#'
else
  BUILD_HTMLHISTORYITEM_AS3_TRUE='#'
  BUILD_HTMLHISTORYITEM_AS3_FALSE=
fi

 if test x"${HTMLPDFCapability_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_HTMLPDFCAPABILITY_AS3_TRUE=
  BUILD_HTMLPDFCAPABILITY_AS3_FALSE='#'
else
  BUILD_HTMLPDFCAPABILITY_AS3_TRUE='#'
  BUILD_HTMLPDFCAPABILITY_AS3_FALSE=
fi

 if test x"${HTMLHost_as3}" = x"yes" -o x"${build_all_as3}" = x"yes"; then
  BUILD_HTMLHOST_AS3_TRUE=
  BUILD_HTMLHOST_AS3_FALSE='#'
else
  BUILD_HTMLHOST_AS3_TRUE='#'
  BUILD_HTMLHOST_AS3_FALSE=
fi


CLASSLIST=${classlist}



soldir=/tmp

# Check whether --with-soldir was given.
if test "${with_soldir+set}" = set; then :
  withval=$with_soldir; with_soldir=${withval}
fi

if test x${with_soldir} != x; then
  soldir=${with_soldir}
fi
SOLDIR=${soldir}


# Check whether --enable-avm2 was given.
if test "${enable_avm2+set}" = set; then :
  enableval=$enable_avm2; case "${enableval}" in
    yes) avm2=yes ;;
    no)  avm2=no ;;
    *)   as_fn_error "bad value ${enableval} for enable-avm2 option" "$LINENO" 5 ;;
  esac
else
  avm2=no

fi

 if test x"$avm2" = xyes; then
  ENABLE_AVM2_TRUE=
  ENABLE_AVM2_FALSE='#'
else
  ENABLE_AVM2_TRUE='#'
  ENABLE_AVM2_FALSE=
fi

if test x$avm2 = xyes; then

$as_echo "#define ENABLE_AVM2 1" >>confdefs.h

fi


# Check whether --with-lckey was given.
if test "${with_lckey+set}" = set; then :
  withval=$with_lckey; with_lckey=${withval}
fi


if test x${with_lckey} != x; then
  lckey=${with_lckey}
else
  lckey=0xcbc384f8
fi
LC_KEY=${lckey}



$as_echo "#define BUILD_CANVAS /**/" >>confdefs.h


# Check whether --enable-python was given.
if test "${enable_python+set}" = set; then :
  enableval=$enable_python; case "${enableval}" in
  yes) python=yes ;;
  no)  python=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-python option" "$LINENO" 5 ;;
esac
else
  python=no
fi





# Check whether --with-python_incl was given.
if test "${with_python_incl+set}" = set; then :
  withval=$with_python_incl; with_python_incl=${withval}
fi

    if test "${ac_cv_path_python_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_python_incl}" != x ; then
      if test -f ${with_python_incl}/python/python.h ; then
	      ac_cv_path_python_incl="`(cd ${with_python_incl}; pwd)`"
      else
	      as_fn_error "${with_python_incl} directory doesn't contain python/python.h" "$LINENO" 5
      fi
    fi

fi


  if test x"${python}" = x"yes"; then
    # Look for the python-config script
    pythonconfig=""
    # Extract the first word of "python-config", so it can be a program name with args.
set dummy python-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_pythonconfig+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $pythonconfig in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_pythonconfig="$pythonconfig" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_pythonconfig="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
pythonconfig=$ac_cv_path_pythonconfig
if test -n "$pythonconfig"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonconfig" >&5
$as_echo "$pythonconfig" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



        if test x"${ac_cv_path_python_incl}" = x; then
      if test x"${pythonconfig}" != "x"; then
        ac_cv_path_python_incl="`${pythonconfig} --include`"
      else
        for i in $incllist; do
          if test -f $i/pythonrun.h; then
            ac_cv_path_python_incl="-I$i"
	          break
          fi
        done
      fi

      if test x"${ac_cv_path_python_incl}" = x ; then
        for ac_header in pythonrun.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pythonrun.h" "ac_cv_header_pythonrun_h" "$ac_includes_default"
if test "x$ac_cv_header_pythonrun_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PYTHONRUN_H 1
_ACEOF

fi

done

      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpython header" >&5
$as_echo_n "checking for libpython header... " >&6; }
      if test x"${ac_cv_path_python_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi
    fi


    if test x"${ac_cv_path_python_incl}" != x"/usr/include"; then
      ac_cv_path_python_incl="${ac_cv_path_python_incl}"
    else
      ac_cv_path_python_incl=""
    fi


# Check whether --with-python_lib was given.
if test "${with_python_lib+set}" = set; then :
  withval=$with_python_lib; with_python_lib=${withval}
fi

      if test "${ac_cv_path_python_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_python_lib}" != x ; then # {
        if test -f ${with_python_lib}/libpython.a -o -f ${with_python_lib}/libpython.${shlibext}; then # {
          ac_cv_path_python_lib="-L`(cd ${with_python_lib}; pwd)`"
        else # }{
          as_fn_error "${with_python_lib} directory doesn't contain libpython." "$LINENO" 5
        fi # }
      fi # }

fi


        if test x"${ac_cv_path_python_lib}" = x; then # {
      if test x"${pythonconfig}" != "x" -a x"${darwin}" = xno; then # {
                                ac_cv_path_python_lib=`${pythonconfig} --libs`
      else # }{
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpython library" >&5
$as_echo_n "checking for libpython library... " >&6; }
        for i in $libslist; do # {
          if test -f $i/libpython.a -o -f $i/libpython.${shlibext}; then # {
            if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then # {
              ac_cv_path_python_lib="-L$i -lpython"
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_python_lib}" >&5
$as_echo "${ac_cv_path_python_lib}" >&6; }
              break
            else # }{
              ac_cv_path_python_lib="-lpython2.5"
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
              break
            fi # }
          fi # }
        done # }
        if test x"${ac_cv_path_python_lib}" = x; then # {
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi # }
      fi # }
    fi # }

    if test x"${ac_cv_path_python_incl}" != x ; then
      PYTHON_CFLAGS="${ac_cv_path_python_incl}"
    else
      PYTHON_CFLAGS=""
    fi

    if test x"${ac_cv_path_python_lib}" != x ; then
      PYTHON_LIBS="${ac_cv_path_python_lib}"
    else
      PYTHON_LIBS=""
    fi

    if test -n "$PYTHON_LIBS"; then

$as_echo "#define HAS_PYTHON 1" >>confdefs.h

      has_python=yes
    else
      has_python=no
    fi





        # Find any Python interpreter.
    if test -z "$PYTHON"; then
      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PYTHON+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PYTHON in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PYTHON=$ac_cv_path_PYTHON
if test -n "$PYTHON"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
$as_echo "$PYTHON" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PYTHON" && break
done
test -n "$PYTHON" || PYTHON=":"

    fi
    am_display_PYTHON=python


  if test "$PYTHON" = :; then
      as_fn_error "no suitable Python interpreter found" "$LINENO" 5
  else


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
if test "${am_cv_python_version+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
$as_echo "$am_cv_python_version" >&6; }
  PYTHON_VERSION=$am_cv_python_version



  PYTHON_PREFIX='${prefix}'

  PYTHON_EXEC_PREFIX='${exec_prefix}'



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
if test "${am_cv_python_platform+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
$as_echo "$am_cv_python_platform" >&6; }
  PYTHON_PLATFORM=$am_cv_python_platform




                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
if test "${am_cv_python_pythondir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$prefix" = xNONE
     then
       am_py_prefix=$ac_default_prefix
     else
       am_py_prefix=$prefix
     fi
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
     case $am_cv_python_pythondir in
     $am_py_prefix*)
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
       ;;
     *)
       case $am_py_prefix in
         /usr|/System*) ;;
         *)
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
	  ;;
       esac
       ;;
     esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
$as_echo "$am_cv_python_pythondir" >&6; }
  pythondir=$am_cv_python_pythondir



  pkgpythondir=\${pythondir}/$PACKAGE


            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
if test "${am_cv_python_pyexecdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$exec_prefix" = xNONE
     then
       am_py_exec_prefix=$am_py_prefix
     else
       am_py_exec_prefix=$exec_prefix
     fi
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
     case $am_cv_python_pyexecdir in
     $am_py_exec_prefix*)
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
       ;;
     *)
       case $am_py_exec_prefix in
         /usr|/System*) ;;
         *)
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
	   ;;
       esac
       ;;
     esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
$as_echo "$am_cv_python_pyexecdir" >&6; }
  pyexecdir=$am_cv_python_pyexecdir



  pkgpyexecdir=\${pyexecdir}/$PACKAGE



  fi


    # Extract the first word of "pygobject-codegen-2.0", so it can be a program name with args.
set dummy pygobject-codegen-2.0; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PYGOBJECT_CODEGEN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PYGOBJECT_CODEGEN in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PYGOBJECT_CODEGEN="$PYGOBJECT_CODEGEN" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PYGOBJECT_CODEGEN="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PYGOBJECT_CODEGEN" && ac_cv_path_PYGOBJECT_CODEGEN="no"
  ;;
esac
fi
PYGOBJECT_CODEGEN=$ac_cv_path_PYGOBJECT_CODEGEN
if test -n "$PYGOBJECT_CODEGEN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGOBJECT_CODEGEN" >&5
$as_echo "$PYGOBJECT_CODEGEN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test x"${PYGOBJECT_CODEGEN}" = xno; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find pygobject-codegen-2.0 script" >&5
$as_echo "$as_me: WARNING: could not find pygobject-codegen-2.0 script" >&2;}
      # Extract the first word of "pygtk-codegen-2.0", so it can be a program name with args.
set dummy pygtk-codegen-2.0; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PYGTK_CODEGEN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PYGTK_CODEGEN in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PYGTK_CODEGEN="$PYGTK_CODEGEN" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PYGTK_CODEGEN="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PYGTK_CODEGEN" && ac_cv_path_PYGTK_CODEGEN="no"
  ;;
esac
fi
PYGTK_CODEGEN=$ac_cv_path_PYGTK_CODEGEN
if test -n "$PYGTK_CODEGEN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_CODEGEN" >&5
$as_echo "$PYGTK_CODEGEN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${PYGTK_CODEGEN}" = xno; then
        as_fn_error "could not find pygtk-codegen-2.0 script" "$LINENO" 5
       fi
     fi


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGTK" >&5
$as_echo_n "checking for PYGTK... " >&6; }

if test -n "$PKG_CONFIG"; then
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "pygtk-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_PYGTK_CFLAGS=`$PKG_CONFIG --cflags "pygtk-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
else
	pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "pygtk-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_PYGTK_LIBS=`$PKG_CONFIG --libs "pygtk-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
else
	pkg_failed=untried
fi

if test $pkg_failed = yes; then
	PYGTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pygtk-2.0"`
	# Put the nasty error message in config.log where it belongs
	echo "$PYGTK_PKG_ERRORS" 1>&5

	as_fn_error "Package requirements (pygtk-2.0) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the PYGTK_CFLAGS and PYGTK_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details." "$LINENO" 5
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively you may set the PYGTK_CFLAGS and PYGTK_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.

To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See \`config.log' for more details." "$LINENO" 5; }
else
	PYGTK_CFLAGS=$pkg_cv_PYGTK_CFLAGS
	PYGTK_LIBS=$pkg_cv_PYGTK_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi

    PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
  fi







 if test x"$python" = xyes; then
  USE_PYTHON_TRUE=
  USE_PYTHON_FALSE='#'
else
  USE_PYTHON_TRUE='#'
  USE_PYTHON_FALSE=
fi

 if test x"$has_python" = xyes; then
  HAS_PYTHON_TRUE=
  HAS_PYTHON_FALSE='#'
else
  HAS_PYTHON_TRUE='#'
  HAS_PYTHON_FALSE=
fi


# Maybe use jemalloc, which handles memory fragmentation for
# ECAMscript languages better than the regular system malloc.
# This seems like a good idea, as both the other player and
# Mozilla/Firefox both recently switched to using jemalloc.
# Check whether --enable-jemalloc was given.
if test "${enable_jemalloc+set}" = set; then :
  enableval=$enable_jemalloc; case "${enableval}" in
  yes) jemalloc=yes ;;
  no)  jemalloc=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-jemalloc option" "$LINENO" 5 ;;
esac
else
  jemalloc=yes
fi


if test x"${netbsd}" = x"yes" -o x"${windows}" = x"yes" -o x"${freebsd}" = x"yes" -o x"${haiku}" = x"yes" -o x"${gnu}" = x"yes"; then
  jemalloc=no
fi
if test x"${jemalloc}" = x"yes"; then
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

    extern __thread int global_i;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  has_local_thread_storage=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  if test x"${has_local_thread_storage}" = x"yes"; then

$as_echo "#define HAVE_LOCAL_THREAD_STORAGE 1" >>confdefs.h


$as_echo "#define USE_JEMALLOC /**/" >>confdefs.h

  else
    jemalloc=no
  fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
$as_echo_n "checking for library containing mallinfo... " >&6; }
if test "${ac_cv_search_mallinfo+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mallinfo ();
int
main ()
{
return mallinfo ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' c malloc; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_mallinfo=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_mallinfo+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_mallinfo+set}" = set; then :

else
  ac_cv_search_mallinfo=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
$as_echo "$ac_cv_search_mallinfo" >&6; }
ac_res=$ac_cv_search_mallinfo
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_MALLINFO 1" >>confdefs.h

               mallinfo=yes

fi


 if test x$mallinfo = xyes; then
  HAVE_MALLINFO_TRUE=
  HAVE_MALLINFO_FALSE='#'
else
  HAVE_MALLINFO_TRUE='#'
  HAVE_MALLINFO_FALSE=
fi

 if test x$jemalloc = xyes; then
  JEMALLOC_TRUE=
  JEMALLOC_FALSE='#'
else
  JEMALLOC_TRUE='#'
  JEMALLOC_FALSE=
fi


# Check whether --enable-debugger was given.
if test "${enable_debugger+set}" = set; then :
  enableval=$enable_debugger; case "${enableval}" in
  yes) debugger=yes ;;
  no)  debugger=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-debugger option" "$LINENO" 5 ;;
esac
else
  debugger=no
fi


if test x"$debugger" = x"yes"; then

$as_echo "#define USE_DEBUGGER /**/" >>confdefs.h

fi
 if test x$debugger = xyes; then
  DEBUGGER_TRUE=
  DEBUGGER_FALSE='#'
else
  DEBUGGER_TRUE='#'
  DEBUGGER_FALSE=
fi


# Check whether --enable-fps-debug was given.
if test "${enable_fps_debug+set}" = set; then :
  enableval=$enable_fps_debug; case "${enableval}" in
  yes)
$as_echo "#define GNASH_FPS_DEBUG 1" >>confdefs.h

esac
fi


# Check whether --enable-allstatic was given.
if test "${enable_allstatic+set}" = set; then :
  enableval=$enable_allstatic; case "${enableval}" in
  yes) allstatic=yes ;;
  no)  allstatic=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-allstatic option" "$LINENO" 5 ;;
esac
else
  allstatic=no
fi

 if test x$allstatic = xyes; then
  ALLSTATIC_TRUE=
  ALLSTATIC_FALSE='#'
else
  ALLSTATIC_TRUE='#'
  ALLSTATIC_FALSE=
fi




# Check whether --with-shm was given.
if test "${with_shm+set}" = set; then :
  withval=$with_shm; case "${withval}" in
    sysv) with_shm=sysv
          ;;
    posix) with_shm=posix
          ;;
    *)   as_fn_error "bad value ${enableval} for --with-shm option (try sysv or posix" "$LINENO" 5
          ;;
   esac
else
  with_shm=sysv
fi


if test x"${with_shm}" = x"sysv"; then

$as_echo "#define USE_SYSV_SHM 1" >>confdefs.h

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/ipc.h> #include <sys/shm.h>
int
main ()
{

    int flag = IPC_INFO;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

$as_echo "#define HAVE_IPC_INFO 1" >>confdefs.h


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else

$as_echo "#define USE_POSIX_SHM 1" >>confdefs.h

fi

# Check whether --enable-menus was given.
if test "${enable_menus+set}" = set; then :
  enableval=$enable_menus; case "${enableval}" in
  yes) menus=yes ;;
  no)  menus=no ;;
  *)   as_fn_error "bad value ${enableval} for --disable-menus option" "$LINENO" 5 ;;
esac
else
  menus=yes
fi


if test x"$menus" = x"yes"; then

$as_echo "#define USE_MENUS /**/" >>confdefs.h

fi
 if test x$menus = xyes; then
  MENUS_TRUE=
  MENUS_FALSE='#'
else
  MENUS_TRUE='#'
  MENUS_FALSE=
fi


# Check whether --enable-swftree was given.
if test "${enable_swftree+set}" = set; then :
  enableval=$enable_swftree; case "${enableval}" in
  yes) swftree=yes ;;
  no)  swftree=no ;;
  *)   as_fn_error "bad value ${enableval} for --disable-swf-properties option" "$LINENO" 5 ;;
esac
else
  swftree=yes
fi


if test x"$swftree" = x"yes"; then

$as_echo "#define USE_SWFTREE /**/" >>confdefs.h

fi
 if test x$swftree = xyes; then
  SWFTREE_TRUE=
  SWFTREE_FALSE='#'
else
  SWFTREE_TRUE='#'
  SWFTREE_FALSE=
fi


# Check whether --enable-testsuite was given.
if test "${enable_testsuite+set}" = set; then :
  enableval=$enable_testsuite; case "${enableval}" in
  yes) testsuite=yes ;;
  no)  testsuite=no ;;
  *)   as_fn_error "bad value ${enableval} for --disable-testsuite option" "$LINENO" 5 ;;
esac
else
  testsuite=no
fi


if test x"$testsuite" = x"yes"; then

$as_echo "#define USE_TESTSUITE /**/" >>confdefs.h

fi
 if test x$testsuite = xyes; then
  TESTSUITE_TRUE=
  TESTSUITE_FALSE='#'
else
  TESTSUITE_TRUE='#'
  TESTSUITE_FALSE=
fi


# Check whether --enable-write was given.
if test "${enable_write+set}" = set; then :
  enableval=$enable_write; case "${enableval}" in
  yes) write=yes ;;
  no)  write=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-write option" "$LINENO" 5 ;;
esac
else
  write=no
fi


if test x"$write" = x"yes"; then

$as_echo "#define WRITE_FILE /**/" >>confdefs.h

fi

# Check whether --enable-sa-launcher was given.
if test "${enable_sa_launcher+set}" = set; then :
  enableval=$enable_sa_launcher; case "${enableval}" in
  yes) sa_launcher=yes ;;
  no)  sa_launcher=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-sa-launcher option" "$LINENO" 5 ;;
esac
else
  sa_launcher=yes
fi


if test x"$sa_launcher" = x"yes"; then

$as_echo "#define CREATE_STANDALONE_GNASH_LAUNCHER /**/" >>confdefs.h

fi

# Check whether --enable-cygnal was given.
if test "${enable_cygnal+set}" = set; then :
  enableval=$enable_cygnal; case "${enableval}" in
  yes) cygnal=yes ;;
  no)  cygnal=no ;;
  *)   as_fn_error "bad value ${enableval} for enable-cygnal option" "$LINENO" 5 ;;
esac
else
  cygnal=no
fi

 if test x$cygnal = xyes; then
  CYGNAL_TRUE=
  CYGNAL_FALSE='#'
else
  CYGNAL_TRUE='#'
  CYGNAL_FALSE=
fi


# Check whether --enable-cgibins was given.
if test "${enable_cgibins+set}" = set; then :
  enableval=$enable_cgibins; case "${enableval}" in
  yes) cgibin=yes ;;
  no)  cgibin=no ;;
  *)   as_fn_error "bad value ${enableval} for enable-cgibins option" "$LINENO" 5 ;;
esac
else
  cgibin=yes
fi

 if test x$cgibin = xyes; then
  USE_CGI_TRUE=
  USE_CGI_FALSE='#'
else
  USE_CGI_TRUE='#'
  USE_CGI_FALSE=
fi

if test x"${cgibin}" = x"yes"; then

$as_echo "#define USE_CGIBIN 1" >>confdefs.h

fi

# Check whether --enable-i810-lod-bias was given.
if test "${enable_i810_lod_bias+set}" = set; then :
  enableval=$enable_i810_lod_bias; case "${enableval}" in
  yes) i810lodbias=yes ;;
  no)  i810lodbias=no ;;
  *)   as_fn_error "bad value ${enableval} for enable-i810-lod-bias option" "$LINENO" 5 ;;
esac
fi


if test x"${i810lodbias}" = xyes; then

$as_echo "#define FIX_I810_LOD_BIAS /**/" >>confdefs.h

fi

# Check whether --enable-doublebuf was given.
if test "${enable_doublebuf+set}" = set; then :
  enableval=$enable_doublebuf; case "${enableval}" in
    yes) doublebuf=yes ;;
    no)  doublebuf=no ;;
    *)   as_fn_error "bad value ${enableval} for enable-doublebuf option" "$LINENO" 5 ;;
  esac
else
  doublebuf=no

fi

 if test x"$doublebuf" = xyes; then
  ENABLE_DBUF_TRUE=
  ENABLE_DBUF_FALSE='#'
else
  ENABLE_DBUF_TRUE='#'
  ENABLE_DBUF_FALSE=
fi

if test x$doublebuf = xyes; then

$as_echo "#define ENABLE_DOUBLE_BUFFERING 1" >>confdefs.h

fi

# Check whether --enable-offscreen was given.
if test "${enable_offscreen+set}" = set; then :
  enableval=$enable_offscreen; case "${enableval}" in
    yes) offscreen=yes ;;
    no)  offscreen=no ;;
    *)   as_fn_error "bad value ${enableval} for enable-offscreen option" "$LINENO" 5 ;;
  esac
else
  offscreen=no

fi



# Check whether --enable-ssh was given.
if test "${enable_ssh+set}" = set; then :
  enableval=$enable_ssh; case "${enableval}" in
  yes) build_ssh=yes ;;
  no)  build_ssh=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-ssh option" "$LINENO" 5 ;;
esac
else
  build_ssh=no
fi


 if test x"${build_ssh}" = xyes; then
  BUILD_SSH_TRUE=
  BUILD_SSH_FALSE='#'
else
  BUILD_SSH_TRUE='#'
  BUILD_SSH_FALSE=
fi

if test x"${build_ssh}" = xyes; then



    ssh=yes
    if test x = x; then
      name=ssh
    else
      name=ssh-
    fi

        if test x"${ssh}" = x"yes"; then

# Check whether --with-ssh_incl was given.
if test "${with_ssh_incl+set}" = set; then :
  withval=$with_ssh_incl; with_ssh_incl=${withval}
fi

      if test "${ac_cv_path_ssh_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_ssh_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh/libssh.h header in specified directory" >&5
$as_echo_n "checking for libssh/libssh.h header in specified directory... " >&6; }
        if test -f ${with_ssh_incl}/libssh/libssh.h ; then
          ac_cv_path_ssh_incl="-I`(cd ${with_ssh_incl}; pwd)`"
          found_ssh_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_ssh_incl} directory doesn't contain libssh/libssh.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ssh_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh/libssh.h header using pkg-config" >&5
$as_echo_n "checking for libssh/libssh.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libssh && ac_cv_path_ssh_incl="`$PKG_CONFIG --cflags libssh`"
      $PKG_CONFIG --exists ssh && ac_cv_path_ssh_incl="`$PKG_CONFIG --cflags ssh`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ssh_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ssh_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_ssh_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssh_incl}" >&5
$as_echo "${ac_cv_path_ssh_incl}" >&6; }
        found_ssh_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ssh_incl}" = x; then
      # Extract the first word of "ssh-config", so it can be a program name with args.
set dummy ssh-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SSH_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SSH_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SSH_CONFIG="$SSH_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SSH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SSH_CONFIG=$ac_cv_path_SSH_CONFIG
if test -n "$SSH_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_CONFIG" >&5
$as_echo "$SSH_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SSH_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh/libssh.h header using ssh-config" >&5
$as_echo_n "checking for libssh/libssh.h header using ssh-config... " >&6; }
        ac_cv_path_ssh_incl="`${SSH_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_ssh_incl}" = x; then
          ac_cv_path_ssh_incl="`${SSH_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_ssh_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssh_incl}" >&5
$as_echo "${ac_cv_path_ssh_incl}" >&6; }
        	found_ssh_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_ssh_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
if test "x$ac_cv_header_libssh_libssh_h" = x""yes; then :
  ac_cv_path_ssh_incl=""; found_ssh_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "ssh/libssh/libssh.h" "ac_cv_header_ssh_libssh_libssh_h" "$ac_includes_default"
if test "x$ac_cv_header_ssh_libssh_libssh_h" = x""yes; then :
  ac_cv_path_ssh_incl="-I/usr/include/ssh"; found_ssh_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/libssh/libssh.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/libssh/libssh.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_ssh_incl="-I/usr/include/$name"; found_ssh_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
if test "x$ac_cv_header_libssh_libssh_h" = x""yes; then :
  ac_cv_path_ssh_incl="-I/usr/include/libssh/libssh.h"; found_ssh_incl="yes"
else

          if test x"${ac_cv_path_ssh_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_ssh_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_ssh_incl="-I$i"
                else
                  ac_cv_path_ssh_incl=""
                fi
                break
              else
                if test -f $i/$name/libssh/libssh.h; then
                  found_ssh_incl="yes"
                  ac_cv_path_ssh_incl="-I$i/$name"
                  break
                else
                  if test -f $i/libssh/libssh.h; then
                    found_ssh_incl="yes"
                    ac_cv_path_ssh_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh/libssh.h header" >&5
$as_echo_n "checking for libssh/libssh.h header... " >&6; }
  if test x"${found_ssh_incl}" = "xyes"; then


$as_echo "#define HAVE_LIBSSH_LIBSSH_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssh_incl}" >&5
$as_echo "${ac_cv_path_ssh_incl}" >&6; }
      if test x"${ac_cv_path_ssh_incl}" != x -a x"${ac_cv_path_ssh_incl}" != x"-I/usr/include"; then
        SSH_CFLAGS="${ac_cv_path_ssh_incl}"
      else
        SSH_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_ssh=no
ac_manual=yes

if test x"${ssh}" = x"yes"; then

# Check whether --with-ssh_lib was given.
if test "${with_ssh_lib+set}" = set; then :
  withval=$with_ssh_lib; with_ssh_lib=${withval}
fi

  if test "${ac_cv_path_ssh_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_ssh_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh library in specified directory" >&5
$as_echo_n "checking for libssh library in specified directory... " >&6; }
    if test -f ${with_ssh_lib}/lib$name.a -o -f ${with_ssh_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_ssh_lib}; pwd)`"
      ac_cv_path_ssh_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_ssh_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ssh_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh library using pkg-config" >&5
$as_echo_n "checking for libssh library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libssh && ac_cv_path_ssh_lib="`$PKG_CONFIG --libs libssh`"
      $PKG_CONFIG --exists ssh && ac_cv_path_ssh_lib="`$PKG_CONFIG --libs ssh`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ssh_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ssh_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_ssh_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssh_lib}" >&5
$as_echo "${ac_cv_path_ssh_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ssh_lib}" = x; then
      # Extract the first word of "ssh-config", so it can be a program name with args.
set dummy ssh-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SSH_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SSH_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SSH_CONFIG="$SSH_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SSH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SSH_CONFIG=$ac_cv_path_SSH_CONFIG
if test -n "$SSH_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_CONFIG" >&5
$as_echo "$SSH_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SSH_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh library using ssh-config" >&5
$as_echo_n "checking for libssh library using ssh-config... " >&6; }
        ac_cv_path_ssh_lib="`${SSH_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssh_lib}" >&5
$as_echo "${ac_cv_path_ssh_lib}" >&6; }
      fi
      if test x"${ac_cv_path_ssh_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_ssh_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_ssh_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libssh.a -o -f $i/libssh.${shlibext}; then
        if test -f "$i/libssh.a" -o -f "$i/libssh.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ssh_lib="-L$i -lssh "
          else
            ac_cv_path_ssh_lib="-lssh "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ssh_lib="-L$i -l$name "
          else
            ac_cv_path_ssh_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_ssh_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ssh_socket_init" >&5
$as_echo_n "checking for library containing ssh_socket_init... " >&6; }
if test "${ac_cv_search_ssh_socket_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ssh_socket_init ();
int
main ()
{
return ssh_socket_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ssh $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_ssh_socket_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_ssh_socket_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_ssh_socket_init+set}" = set; then :

else
  ac_cv_search_ssh_socket_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ssh_socket_init" >&5
$as_echo "$ac_cv_search_ssh_socket_init" >&6; }
ac_res=$ac_cv_search_ssh_socket_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_ssh_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh library" >&5
$as_echo_n "checking for libssh library... " >&6; }
	if test x"${ac_cv_path_ssh_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssh_lib}" >&5
$as_echo "${ac_cv_path_ssh_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_ssh_lib}" != x ; then
    SSH_LIBS="${ac_cv_path_ssh_lib}"
    has_ssh=yes
  else
    SSH_LIBS=""
  fi
fi








fi
if test x"${has_ssh}" = x"yes"; then

$as_echo "#define USE_SSH 1" >>confdefs.h

fi


# Check whether --enable-ssl was given.
if test "${enable_ssl+set}" = set; then :
  enableval=$enable_ssl; case "${enableval}" in
  yes) build_ssl=yes ;;
  no)  build_ssl=no ;;
  *)   as_fn_error "bad value ${enableval} for --enable-ssl option" "$LINENO" 5 ;;
esac
else
  build_ssl=no
fi


with_cert=
with_pem=
 if test x"${build_ssl}" = xyes; then
  BUILD_SSL_TRUE=
  BUILD_SSL_FALSE='#'
else
  BUILD_SSL_TRUE='#'
  BUILD_SSL_FALSE=
fi


# Check whether --with-cert was given.
if test "${with_cert+set}" = set; then :
  withval=$with_cert; with_cert=${withval}
fi


# Check whether --with-pem was given.
if test "${with_pem+set}" = set; then :
  withval=$with_pem; with_pem=${withval}
fi


if test x"${build_ssl}" = xyes; then



    ssl=yes
    if test x = x; then
      name=ssl
    else
      name=ssl-
    fi

        if test x"${ssl}" = x"yes"; then

# Check whether --with-ssl_incl was given.
if test "${with_ssl_incl+set}" = set; then :
  withval=$with_ssl_incl; with_ssl_incl=${withval}
fi

      if test "${ac_cv_path_ssl_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_ssl_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h header in specified directory" >&5
$as_echo_n "checking for openssl/ssl.h header in specified directory... " >&6; }
        if test -f ${with_ssl_incl}/openssl/ssl.h ; then
          ac_cv_path_ssl_incl="-I`(cd ${with_ssl_incl}; pwd)`"
          found_ssl_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_ssl_incl} directory doesn't contain openssl/ssl.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ssl_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h header using pkg-config" >&5
$as_echo_n "checking for openssl/ssl.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libssl && ac_cv_path_ssl_incl="`$PKG_CONFIG --cflags libssl`"
      $PKG_CONFIG --exists ssl && ac_cv_path_ssl_incl="`$PKG_CONFIG --cflags ssl`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ssl_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ssl_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_ssl_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssl_incl}" >&5
$as_echo "${ac_cv_path_ssl_incl}" >&6; }
        found_ssl_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ssl_incl}" = x; then
      # Extract the first word of "ssl-config", so it can be a program name with args.
set dummy ssl-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SSL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SSL_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SSL_CONFIG="$SSL_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SSL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SSL_CONFIG=$ac_cv_path_SSL_CONFIG
if test -n "$SSL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSL_CONFIG" >&5
$as_echo "$SSL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SSL_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h header using ssl-config" >&5
$as_echo_n "checking for openssl/ssl.h header using ssl-config... " >&6; }
        ac_cv_path_ssl_incl="`${SSL_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_ssl_incl}" = x; then
          ac_cv_path_ssl_incl="`${SSL_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_ssl_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssl_incl}" >&5
$as_echo "${ac_cv_path_ssl_incl}" >&6; }
        	found_ssl_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_ssl_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
  ac_cv_path_ssl_incl=""; found_ssl_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "ssl/openssl/ssl.h" "ac_cv_header_ssl_openssl_ssl_h" "$ac_includes_default"
if test "x$ac_cv_header_ssl_openssl_ssl_h" = x""yes; then :
  ac_cv_path_ssl_incl="-I/usr/include/ssl"; found_ssl_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/openssl/ssl.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/openssl/ssl.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_ssl_incl="-I/usr/include/$name"; found_ssl_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
  ac_cv_path_ssl_incl="-I/usr/include/openssl/ssl.h"; found_ssl_incl="yes"
else

          if test x"${ac_cv_path_ssl_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_ssl_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_ssl_incl="-I$i"
                else
                  ac_cv_path_ssl_incl=""
                fi
                break
              else
                if test -f $i/$name/openssl/ssl.h; then
                  found_ssl_incl="yes"
                  ac_cv_path_ssl_incl="-I$i/$name"
                  break
                else
                  if test -f $i/openssl/ssl.h; then
                    found_ssl_incl="yes"
                    ac_cv_path_ssl_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h header" >&5
$as_echo_n "checking for openssl/ssl.h header... " >&6; }
  if test x"${found_ssl_incl}" = "xyes"; then


$as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssl_incl}" >&5
$as_echo "${ac_cv_path_ssl_incl}" >&6; }
      if test x"${ac_cv_path_ssl_incl}" != x -a x"${ac_cv_path_ssl_incl}" != x"-I/usr/include"; then
        SSL_CFLAGS="${ac_cv_path_ssl_incl}"
      else
        SSL_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_ssl=no
ac_manual=yes

if test x"${ssl}" = x"yes"; then

# Check whether --with-ssl_lib was given.
if test "${with_ssl_lib+set}" = set; then :
  withval=$with_ssl_lib; with_ssl_lib=${withval}
fi

  if test "${ac_cv_path_ssl_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_ssl_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl library in specified directory" >&5
$as_echo_n "checking for libssl library in specified directory... " >&6; }
    if test -f ${with_ssl_lib}/lib$name.a -o -f ${with_ssl_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_ssl_lib}; pwd)`"
      ac_cv_path_ssl_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_ssl_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ssl_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl library using pkg-config" >&5
$as_echo_n "checking for libssl library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libssl && ac_cv_path_ssl_lib="`$PKG_CONFIG --libs libssl`"
      $PKG_CONFIG --exists ssl && ac_cv_path_ssl_lib="`$PKG_CONFIG --libs ssl`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ssl_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ssl_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_ssl_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssl_lib}" >&5
$as_echo "${ac_cv_path_ssl_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ssl_lib}" = x; then
      # Extract the first word of "ssl-config", so it can be a program name with args.
set dummy ssl-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SSL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SSL_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SSL_CONFIG="$SSL_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SSL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SSL_CONFIG=$ac_cv_path_SSL_CONFIG
if test -n "$SSL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSL_CONFIG" >&5
$as_echo "$SSL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SSL_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl library using ssl-config" >&5
$as_echo_n "checking for libssl library using ssl-config... " >&6; }
        ac_cv_path_ssl_lib="`${SSL_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssl_lib}" >&5
$as_echo "${ac_cv_path_ssl_lib}" >&6; }
      fi
      if test x"${ac_cv_path_ssl_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_ssl_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_ssl_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libssl.a -o -f $i/libssl.${shlibext}; then
        if test -f "$i/libssl.a" -o -f "$i/libssl.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ssl_lib="-L$i -lssl "
          else
            ac_cv_path_ssl_lib="-lssl "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ssl_lib="-L$i -l$name "
          else
            ac_cv_path_ssl_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_ssl_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
$as_echo_n "checking for library containing SSL_library_init... " >&6; }
if test "${ac_cv_search_SSL_library_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char SSL_library_init ();
int
main ()
{
return SSL_library_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ssl $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_SSL_library_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_SSL_library_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_SSL_library_init+set}" = set; then :

else
  ac_cv_search_SSL_library_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
$as_echo "$ac_cv_search_SSL_library_init" >&6; }
ac_res=$ac_cv_search_SSL_library_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_ssl_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl library" >&5
$as_echo_n "checking for libssl library... " >&6; }
	if test x"${ac_cv_path_ssl_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ssl_lib}" >&5
$as_echo "${ac_cv_path_ssl_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_ssl_lib}" != x ; then
    SSL_LIBS="${ac_cv_path_ssl_lib}"
    has_ssl=yes
  else
    SSL_LIBS=""
  fi
fi








fi
if test x"${has_ssl}" = x"yes"; then

$as_echo "#define USE_SSL 1" >>confdefs.h

fi


sbox=no
if test x"${SBOX_REDIRECT_FROM_DIRS}" != x; then
  sbox=yes
fi
if test x"${build_alp}" = xyes; then


    BARTENDER=
  ALP_CFLAGS=
  ALP_LIBS=
  have_alp=no

  if test x"$sbox" = xyes; then
        for i in $incllist; do
      if test -f $i/alp/bundlemgr.h; then
        ac_cv_path_alp_incl="-I$i"
        alp=yes
        break
      fi
    done

    ac_cv_path_alp_lib=""
    newlist="/opt/alp/lib /opt/alp/lib/tmp ${incllist}"
    for i in $newlist; do
      if test -f $i/libalp_bundlemgr.a -o -f $i/libalp_bundlemgr.${shlibext}; then
   	    ac_cv_path_alp_lib="-L$i -lalp_bundlemgr ${ac_cv_path_alp_lib}"
        break
      fi
    done
    for i in $newlist; do
      if test -f $i/libalp_appmgr.a -o -f $i/libalp_appmgr.${shlibext}; then
   	    ac_cv_path_alp_lib="${ac_cv_path_alp_lib} -lalp_appmgr"
        break
      fi
    done
    for i in $newlist; do
      if test -f $i/alp_max.a -o -f $i/alp_max.${shlibext}; then
   	    ac_cv_path_alp_lib="${ac_cv_path_alp_lib} -lalp_max"
        break
      fi
    done
  fi

  if test -f ${_SBOX_DIR}/tools/bin/bartender; then
    BARTENDER=${_SBOX_DIR}/tools/bin/bartender
  fi

  if test x"${ac_cv_path_alp_incl}" != x; then
    ALP_CFLAGS="${ac_cv_path_alp_incl}"
  fi

  if test x"${ac_cv_path_alp_lib}" != x; then
    ALP_LIBS="${ac_cv_path_alp_lib}"

$as_echo "#define HAVE_ALP 1" >>confdefs.h

    have_alp=yes
  fi





  if test x"${have_alp}" = x"yes"; then

$as_echo "#define HAVE_ALP 1" >>confdefs.h

  fi
          build_kde3=no
  build_ogl=no
  build_gles=no
  build_agg=yes
fi

if test x$build_gtk = xyes -o $build_alp = xyes -o x$build_hildon = xyes; then


if test x"$windows" = x"yes"; then
  gtklib="libgtk-win32-2.0"
  gdklib="libgdk-win32-2.0"
else
  gtklib="libgtk-x11-2.0"
  gdklib="libgdk-x11-2.0"
fi


# Check whether --with-gtk2_incl was given.
if test "${with_gtk2_incl+set}" = set; then :
  withval=$with_gtk2_incl; with_gtk2_incl=${withval}
fi

    if test "${ac_cv_path_gtk2_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_gtk2_incl}" != x ; then
      if test -f ${with_gtk2_incl}/gtk/gtk.h; then
      	ac_cv_path_gtk2_incl="-I`(cd ${with_gtk2_incl}; pwd)`"
      else
      	as_fn_error "${with_gtk2_incl} directory doesn't contain gtk/gtk.h" "$LINENO" 5
      fi
    fi

fi



  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gtk2_incl}" = x; then
      $PKG_CONFIG --exists gtk+-2.0 && ac_cv_path_gtk2_incl="`$PKG_CONFIG --cflags gtk+-2.0`"
      $PKG_CONFIG --exists gtk+-2.0 && gnash_gtk2_version="`$PKG_CONFIG --modversion gtk+-2.0`"
    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the gtk2 header" >&5
$as_echo_n "checking for the gtk2 header... " >&6; }
  if test x"${gnash_gtk2_version}" = x; then
    gnash_gtk2_topdir=""
    gnash_gtk2_version=""
    for i in $incllist; do
      for j in `ls -dr $i/gtk-[2-9].[0-9] 2>/dev/null`; do
        if test -f $j/gtk/gtk.h; then
          gnash_gtk2_topdir="`basename $j`"
          gnash_gtk2_version="`echo ${gnash_gtk2_topdir} | sed -e 's:gtk-::'`"
      	  ac_cv_path_gtk2_incl="-I$i/${gnash_gtk2_topdir}"
          break
        fi
      done
      if test x$gnash_gtk2_version != x; then
       	break;
      fi
    done
  fi
  if test x"${ac_cv_path_gtk2_incl}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, trying again" >&5
$as_echo "not found, trying again" >&6; }
    for ac_header in gtk/gtk.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "gtk/gtk.h" "ac_cv_header_gtk_gtk_h" "$ac_includes_default"
if test "x$ac_cv_header_gtk_gtk_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GTK_GTK_H 1
_ACEOF

fi

done

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_gtk2_incl" >&5
$as_echo "$ac_cv_path_gtk2_incl" >&6; }
  fi


# Check whether --with-gtk2_lib was given.
if test "${with_gtk2_lib+set}" = set; then :
  withval=$with_gtk2_lib; with_gtk2_lib=${withval}
fi


    if test "${ac_cv_path_gtk2_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_gtk2_lib}" != x ; then
      if test -f ${with_gtk2_lib}/${gtklib}.${shlibext} -o -f ${with_gtk2_lib}/${gtklib}.a; then
        if test -f ${with_gtk2_lib}/${gdklib}.${shlibext} -o -f ${with_gtk2_lib}/${gdklib}.a; then
        	ac_cv_path_gtk2_lib="-I`(cd ${with_gtk2_lib}; pwd)`"
        else
        	as_fn_error "${with_gtk2_lib} directory doesn't contain ${gdklib}.${shlibext}" "$LINENO" 5
        fi
      else
      	as_fn_error "${with_gtk2_lib} directory doesn't contain ${gtklib}.${shlibext}" "$LINENO" 5
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gtk2_lib}" = x; then
      $PKG_CONFIG --exists gtk+-2.0 && ac_cv_path_gtk2_lib="`$PKG_CONFIG --libs-only-l gtk+-2.0`"
    fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgtk2 library" >&5
$as_echo_n "checking for libgtk2 library... " >&6; }
  if test x"${ac_cv_path_gtk2_incl}" != x -a x"${ac_cv_path_gtk2_lib}" = x; then
    for i in $libslist; do
      if test -f $i/${gtklib}.a -o -f $i/${gtklib}.${shlibext}; then
        if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
          if test x"$windows" = x"yes"; then
            ac_cv_path_gtk2_lib="-L$i -lgtk-win32-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgmodule-2.0"
          else
            ac_cv_path_gtk2_lib="-L$i -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lgmodule-2.0"
          fi
          break
        else
          if test x"$windows" = x"yes"; then
            ac_cv_path_gtk2_lib="-lgtk-win32-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgmodule-2.0 "
          else
            ac_cv_path_gtk2_lib="-lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lgmodule-2.0 "
          fi
          break
        fi
      fi
    done
  fi

  if test x"${ac_cv_path_gtk2_lib}" = x; then
    if test x"$windows" = x"yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk_init in -lgtk-win32-2.0" >&5
$as_echo_n "checking for gtk_init in -lgtk-win32-2.0... " >&6; }
if test "${ac_cv_lib_gtk_win32_2_0_gtk_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgtk-win32-2.0  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gtk_init ();
int
main ()
{
return gtk_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gtk_win32_2_0_gtk_init=yes
else
  ac_cv_lib_gtk_win32_2_0_gtk_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_win32_2_0_gtk_init" >&5
$as_echo "$ac_cv_lib_gtk_win32_2_0_gtk_init" >&6; }
if test "x$ac_cv_lib_gtk_win32_2_0_gtk_init" = x""yes; then :
  ac_cv_path_gtk2_lib="-lgtk-win32-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgmodule-2.0"
fi

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk_init in -lgtk-x11-2.0" >&5
$as_echo_n "checking for gtk_init in -lgtk-x11-2.0... " >&6; }
if test "${ac_cv_lib_gtk_x11_2_0_gtk_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgtk-x11-2.0  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gtk_init ();
int
main ()
{
return gtk_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gtk_x11_2_0_gtk_init=yes
else
  ac_cv_lib_gtk_x11_2_0_gtk_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_gtk_init" >&5
$as_echo "$ac_cv_lib_gtk_x11_2_0_gtk_init" >&6; }
if test "x$ac_cv_lib_gtk_x11_2_0_gtk_init" = x""yes; then :
  ac_cv_path_gtk2_lib="-lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lgmodule-2.0"
fi

    fi
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_gtk2_lib" >&5
$as_echo "$ac_cv_path_gtk2_lib" >&6; }

  if test x"${ac_cv_path_gtk2_incl}" != x; then
    for i in $libslist; do
      if test -f $i/gtk-${gnash_gtk2_version}/include/gdkconfig.h; then
    	 GTK2_CFLAGS="-I${i}/gtk-${gnash_gtk2_version}/include"
    	 break
      fi
    done
    if test x"${ac_cv_path_gtk2_incl}" = x"yes"; then
      GTK2_CFLAGS="$GTK2_CFLAGS"
    else
      GTK2_CFLAGS="${ac_cv_path_gtk2_incl} $GTK2_CFLAGS"
    fi

$as_echo "#define HAVE_GTK2 1" >>confdefs.h

  else
    GTK2_CFLAGS=""
  fi

  if test x"${ac_cv_path_gtk2_lib}" != x ; then
    GTK2_LIBS="${ac_cv_path_gtk2_lib}"
    has_gtk2=yes
  else
    GTK2_LIBS=""
    has_gtk2=no
  fi







# Check whether --with-pango_incl was given.
if test "${with_pango_incl+set}" = set; then :
  withval=$with_pango_incl; with_pango_incl=${withval}
fi

  if test "${ac_cv_path_pango_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_pango_incl}" != x ; then
      if test -f ${with_pango_incl}/pango/pango.h ; then
        ac_cv_path_pango_incl="-I`(cd ${with_pango_incl}; pwd)`"
      else
        as_fn_error "${with_pango_incl} directory doesn't contain pango/pango.h" "$LINENO" 5
      fi
    fi

fi


  if test x$windows = xyes; then
    pango_pkg=pangowin32
  else
    pango_pkg=pangox
  fi

  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_pango_incl}" = x; then
      $PKG_CONFIG --exists $pango_pkg && ac_cv_path_pango_incl="`$PKG_CONFIG --cflags $pango_pkg`"
    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Pango Version" >&5
$as_echo_n "checking for the Pango Version... " >&6; }

  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x; then
      $PKG_CONFIG --exists $pango_pkg && gnash_pango_version=`$PKG_CONFIG --modversion $pango_pkg | cut -d "." -f 1 | awk '{print $'0'".0"}'`
    fi
  fi

  if test x"${gnash_pango_version}" = x; then
    gnash_pango_topdir=""
    gnash_pango_version=""
    for i in $incllist; do
      for j in `ls -dr $i/pango-[0-9].[0-9] 2>/dev/null`; do
        if test -f $j/pango/pango.h; then
	  gnash_pango_topdir=`basename $j`
	  gnash_pango_version=`echo ${gnash_pango_topdir} | sed -e 's:pango-::'`
 	  ac_cv_path_pango_incl="-I$i/${gnash_pango_topdir}"
	  break
	fi
      done
	if test x$gnash_pango_version != x; then
	  break;
	fi
    done
  fi

  if test x"${gnash_pango_version}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnash_pango_version}" >&5
$as_echo "${gnash_pango_version}" >&6; }
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpango header" >&5
$as_echo_n "checking for libpango header... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_pango_incl}" >&5
$as_echo "${ac_cv_path_pango_incl}" >&6; }


# Check whether --with-pango_lib was given.
if test "${with_pango_lib+set}" = set; then :
  withval=$with_pango_lib; with_pango_lib=${withval}
fi

  if test "${ac_cv_path_pango_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_pango_lib}" != x ; then
      if test -f ${with_pango_lib}/libpangox-${gnash_pango_version}.a -o -f ${with_pango_lib}/libpangox-${gnash_pango_version}.${shlibext} -o -f ${with_pango_lib}/libpangox-${gnash_pango_version}.${shlibext}.a; then
	ac_cv_path_pango_lib=-L`(cd ${with_pango_lib}; pwd)`
      else
	as_fn_error "${with_pango_lib} directory doesn't contain libpango." "$LINENO" 5
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_pango_lib}" = x; then
      $PKG_CONFIG --exists $pango_pkg && ac_cv_path_pango_lib=`$PKG_CONFIG --libs-only-l $pango_pkg`
    fi
  fi

  if test x"${ac_cv_path_pango_lib}" = x; then
    for i in $libslist; do
      if test -f $i/libpango-${gnash_pango_version}.a -o -f $i/libpango-${gnash_pango_version}.${shlibext} -o -f $i/libpango-${gnash_pango_version}.${shlibext}.a; then
        if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
	  ac_cv_path_pango_lib="-L$i -lpango-${gnash_pango_version}"
	  break
        else
	  ac_cv_path_pango_lib="-lpango-${gnash_pango_version}"
	  break
	fi
      fi
    done
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpango library" >&5
$as_echo_n "checking for libpango library... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_pango_lib}" >&5
$as_echo "${ac_cv_path_pango_lib}" >&6; }

  if test x"${ac_cv_path_pango_lib}" = x; then
    as_ac_Lib=`$as_echo "ac_cv_lib_pango-${gnash_pango_version}''_pango_engine_shape_class_init" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_engine_shape_class_init in -lpango-${gnash_pango_version}" >&5
$as_echo_n "checking for pango_engine_shape_class_init in -lpango-${gnash_pango_version}... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpango-${gnash_pango_version}  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pango_engine_shape_class_init ();
int
main ()
{
return pango_engine_shape_class_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ac_cv_path_pango_lib="-lpango-${gnash_pango_version}"
fi

  fi

  if test x"${ac_cv_path_pango_incl}" != x; then
    PANGO_CFLAGS="${ac_cv_path_pango_incl}"
  else
    PANGO_CFLAGS=""
  fi

  if test x"${ac_cv_path_pango_lib}" != x; then
    PANGO_LIBS="${ac_cv_path_pango_lib}"
  else
    PANGO_LIBS=""
  fi







    atk=yes
    if test x1.0 = x; then
      name=atk
    else
      name=atk-1.0
    fi

        if test x"${atk}" = x"yes"; then

# Check whether --with-atk_incl was given.
if test "${with_atk_incl+set}" = set; then :
  withval=$with_atk_incl; with_atk_incl=${withval}
fi

      if test "${ac_cv_path_atk_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_atk_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atk/atk.h header in specified directory" >&5
$as_echo_n "checking for atk/atk.h header in specified directory... " >&6; }
        if test -f ${with_atk_incl}/atk/atk.h ; then
          ac_cv_path_atk_incl="-I`(cd ${with_atk_incl}; pwd)`"
          found_atk_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_atk_incl} directory doesn't contain atk/atk.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_atk_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atk/atk.h header using pkg-config" >&5
$as_echo_n "checking for atk/atk.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libatk && ac_cv_path_atk_incl="`$PKG_CONFIG --cflags libatk`"
      $PKG_CONFIG --exists atk && ac_cv_path_atk_incl="`$PKG_CONFIG --cflags atk`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_atk_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_atk_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_atk_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_atk_incl}" >&5
$as_echo "${ac_cv_path_atk_incl}" >&6; }
        found_atk_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_atk_incl}" = x; then
      # Extract the first word of "atk-config", so it can be a program name with args.
set dummy atk-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ATK_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ATK_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ATK_CONFIG="$ATK_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ATK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ATK_CONFIG=$ac_cv_path_ATK_CONFIG
if test -n "$ATK_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATK_CONFIG" >&5
$as_echo "$ATK_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${ATK_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atk/atk.h header using atk-config" >&5
$as_echo_n "checking for atk/atk.h header using atk-config... " >&6; }
        ac_cv_path_atk_incl="`${ATK_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_atk_incl}" = x; then
          ac_cv_path_atk_incl="`${ATK_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_atk_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_atk_incl}" >&5
$as_echo "${ac_cv_path_atk_incl}" >&6; }
        	found_atk_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_atk_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "atk/atk.h" "ac_cv_header_atk_atk_h" "$ac_includes_default"
if test "x$ac_cv_header_atk_atk_h" = x""yes; then :
  ac_cv_path_atk_incl=""; found_atk_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "atk/atk/atk.h" "ac_cv_header_atk_atk_atk_h" "$ac_includes_default"
if test "x$ac_cv_header_atk_atk_atk_h" = x""yes; then :
  ac_cv_path_atk_incl="-I/usr/include/atk"; found_atk_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/atk/atk.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/atk/atk.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_atk_incl="-I/usr/include/$name"; found_atk_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "atk/atk.h" "ac_cv_header_atk_atk_h" "$ac_includes_default"
if test "x$ac_cv_header_atk_atk_h" = x""yes; then :
  ac_cv_path_atk_incl="-I/usr/include/atk/atk.h"; found_atk_incl="yes"
else

          if test x"${ac_cv_path_atk_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_atk_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_atk_incl="-I$i"
                else
                  ac_cv_path_atk_incl=""
                fi
                break
              else
                if test -f $i/$name/atk/atk.h; then
                  found_atk_incl="yes"
                  ac_cv_path_atk_incl="-I$i/$name"
                  break
                else
                  if test -f $i/atk/atk.h; then
                    found_atk_incl="yes"
                    ac_cv_path_atk_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atk/atk.h header" >&5
$as_echo_n "checking for atk/atk.h header... " >&6; }
  if test x"${found_atk_incl}" = "xyes"; then


$as_echo "#define HAVE_ATK_ATK_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_atk_incl}" >&5
$as_echo "${ac_cv_path_atk_incl}" >&6; }
      if test x"${ac_cv_path_atk_incl}" != x -a x"${ac_cv_path_atk_incl}" != x"-I/usr/include"; then
        ATK_CFLAGS="${ac_cv_path_atk_incl}"
      else
        ATK_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_atk=no
ac_manual=yes

if test x"${atk}" = x"yes"; then

# Check whether --with-atk_lib was given.
if test "${with_atk_lib+set}" = set; then :
  withval=$with_atk_lib; with_atk_lib=${withval}
fi

  if test "${ac_cv_path_atk_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_atk_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatk library in specified directory" >&5
$as_echo_n "checking for libatk library in specified directory... " >&6; }
    if test -f ${with_atk_lib}/lib$name.a -o -f ${with_atk_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_atk_lib}; pwd)`"
      ac_cv_path_atk_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_atk_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_atk_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatk library using pkg-config" >&5
$as_echo_n "checking for libatk library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libatk && ac_cv_path_atk_lib="`$PKG_CONFIG --libs libatk`"
      $PKG_CONFIG --exists atk && ac_cv_path_atk_lib="`$PKG_CONFIG --libs atk`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_atk_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_atk_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_atk_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_atk_lib}" >&5
$as_echo "${ac_cv_path_atk_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_atk_lib}" = x; then
      # Extract the first word of "atk-config", so it can be a program name with args.
set dummy atk-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ATK_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ATK_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ATK_CONFIG="$ATK_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ATK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ATK_CONFIG=$ac_cv_path_ATK_CONFIG
if test -n "$ATK_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATK_CONFIG" >&5
$as_echo "$ATK_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${ATK_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatk library using atk-config" >&5
$as_echo_n "checking for libatk library using atk-config... " >&6; }
        ac_cv_path_atk_lib="`${ATK_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_atk_lib}" >&5
$as_echo "${ac_cv_path_atk_lib}" >&6; }
      fi
      if test x"${ac_cv_path_atk_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_atk_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_atk_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libatk.a -o -f $i/libatk.${shlibext}; then
        if test -f "$i/libatk.a" -o -f "$i/libatk.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_atk_lib="-L$i -latk "
          else
            ac_cv_path_atk_lib="-latk "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_atk_lib="-L$i -l$name "
          else
            ac_cv_path_atk_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_atk_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atk_focus_tracker_init" >&5
$as_echo_n "checking for library containing atk_focus_tracker_init... " >&6; }
if test "${ac_cv_search_atk_focus_tracker_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char atk_focus_tracker_init ();
int
main ()
{
return atk_focus_tracker_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' atk $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_atk_focus_tracker_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_atk_focus_tracker_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_atk_focus_tracker_init+set}" = set; then :

else
  ac_cv_search_atk_focus_tracker_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atk_focus_tracker_init" >&5
$as_echo "$ac_cv_search_atk_focus_tracker_init" >&6; }
ac_res=$ac_cv_search_atk_focus_tracker_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_atk_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatk library" >&5
$as_echo_n "checking for libatk library... " >&6; }
	if test x"${ac_cv_path_atk_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_atk_lib}" >&5
$as_echo "${ac_cv_path_atk_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_atk_lib}" != x ; then
    ATK_LIBS="${ac_cv_path_atk_lib}"
    has_atk=yes
  else
    ATK_LIBS=""
  fi
fi








   if test x"${build_ogl}" = xyes; then

  # Check whether --enable-glext was given.
if test "${enable_glext+set}" = set; then :
  enableval=$enable_glext; case "${enableval}" in
    yes) glext=yes ;;
    no)  glext=no ;;
    *)   as_fn_error "bad value ${enableval} for disable-glext option" "$LINENO" 5 ;;
  esac
else
  glext=yes
fi



if test x"$glext" = x"yes"; then

# Check whether --with-glext_incl was given.
if test "${with_glext_incl+set}" = set; then :
  withval=$with_glext_incl; with_glext_incl=${withval}
fi

if test "${ac_cv_path_glext_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	if test x"${with_glext_incl}" != x ; then
		if test -f ${with_glext_incl}/gtk/gtkgl.h ; then
			ac_cv_path_glext_incl="-I`(cd ${with_glext_incl}; pwd)`"
		else
			as_fn_error "${with_glext_incl} directory doesnt contain gtk/gtkgl.h" "$LINENO" 5
		fi
	fi

fi



if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_glext_incl}" = x; then
	$PKG_CONFIG --exists gtkglext-1.0 && ac_cv_path_glext_incl="`$PKG_CONFIG --cflags gtkglext-1.0`"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Gtk GL Extensions Version" >&5
$as_echo_n "checking for the Gtk GL Extensions Version... " >&6; }

if test x"$PKG_CONFIG" != x; then
	$PKG_CONFIG --exists gtkglext-1.0 && gnash_glext_version="`$PKG_CONFIG --modversion gtkglext-1.0 | cut -d "." -f 1,3`"
fi

if test x"${gnash_glext_version}" = x ; then
	gnash_glext_topdir=""
	gnash_glext_version=""
	for i in $incllist; do
		for j in `ls -dr $i/gtkglext-[0-9].[0-9] 2>/dev/null`; do
			if test -f $j/gtk/gtkgl.h; then
				gnash_glext_topdir="`basename $j`"
				gnash_glext_version="`echo ${gnash_glext_topdir} | sed -e 's:gtkglext-::'`"
				break
			fi
		done
		if test x$gnash_glext_version != x; then
			break;
		fi
	done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnash_glext_version}" >&5
$as_echo "${gnash_glext_version}" >&6; }

if test x"${ac_cv_path_glext_incl}" = x; then
	ac_cv_path_glext_incl=""
	for i in $incllist; do
		if test -f $i/gtk/gtkgl.h; then
			if test x"$i" != x"/usr/include"; then
				ac_cv_path_glext_incl="-I$i"
				break
			fi
		else
			if test -f $i/${gnash_glext_topdir}/gtk/gtkgl.h; then
				ac_cv_path_glext_incl="-I$i/${gnash_glext_topdir}"
				break
			fi
		fi
	done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk/gtkgl.h" >&5
$as_echo_n "checking for gtk/gtkgl.h... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_glext_incl}" >&5
$as_echo "${ac_cv_path_glext_incl}" >&6; }


# Check whether --with-glext_lib was given.
if test "${with_glext_lib+set}" = set; then :
  withval=$with_glext_lib; with_glext_lib=${withval}
fi

if test "${ac_cv_path_glext_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if test x"${with_glext_lib}" != x ; then
	if test -f ${with_glext_lib}/libgtkglext-x11-${gnash_glext_version}.a -o -f ${with_glext_lib}/libgtkglext-x11-${gnash_glext_version}.${shlibext}; then
		ac_cv_path_glext_lib="-L`(cd ${with_glext_lib}; pwd)`"
	else
		as_fn_error "${with_glext_lib} directory doesnt contain libgtkglext-x11-${gnash_glext_version}.a|so" "$LINENO" 5
	fi
fi

fi


if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_glext_lib}" = x; then
	$PKG_CONFIG --exists gtkglext-1.0 && ac_cv_path_glext_lib="`$PKG_CONFIG --libs-only-l gtkglext-1.0`"
fi

ac_cv_path_glext_incl_config=""
if test x"${ac_cv_path_glext_lib}" = x; then
	as_ac_Lib=`$as_echo "ac_cv_lib_gtkglext-x11-${gnash_glext_version}''_gtk_gl_init" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk_gl_init in -lgtkglext-x11-${gnash_glext_version}" >&5
$as_echo_n "checking for gtk_gl_init in -lgtkglext-x11-${gnash_glext_version}... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgtkglext-x11-${gnash_glext_version}  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gtk_gl_init ();
int
main ()
{
return gtk_gl_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ac_cv_path_glext_lib="-lgtkglext-x11-${gnash_glext_version} -lgdkglext-x11-${gnash_glext_version}"
else

	for i in $libslist; do
		if test -f $i/libgtkglext-x11-${gnash_glext_version}.a -o -f $i/libgtkglext-x11-${gnash_glext_version}.${shlibext}; then
		ac_cv_path_glext_incl_config="-I$i/gtkglext-${gnash_glext_version}/include"
			if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
				ac_cv_path_glext_lib="-L$i -lgtkglext-x11-${gnash_glext_version} -lgdkglext-x11-${gnash_glext_version}"
				break
			fi
		else
			if test -f $i/libgtkglext-x11-${gnash_glext_version}.a -o -f $i/libgtkglext-x11-${gnash_glext_version}.${shlibext}; then
				ac_cv_path_glext_lib="-L$i/${gnash_glext_topdir} -lgtkglext-x11-${gnash_glext_version} -lgdkglext-x11-${gnash_glext_version}"
				break
			fi
		fi
          done

fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK GL library" >&5
$as_echo_n "checking for GTK GL library... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_glext_incl}" >&5
$as_echo "${ac_cv_path_glext_incl}" >&6; }

fi
if test x"${ac_cv_path_glext_incl}" != x ; then

$as_echo "#define HAVE_GTK_GTKGL_H 1" >>confdefs.h

	GLEXT_CFLAGS="${ac_cv_path_glext_incl} ${ac_cv_path_glext_incl_config}"
else
	GLEXT_CFLAGS=""
fi

if test x"${ac_cv_path_glext_lib}" != x ; then

$as_echo "#define USE_GTKGLEXT 1" >>confdefs.h

	GLEXT_LIBS="${ac_cv_path_glext_lib}"
else
	GLEXT_LIBS=""
fi




   fi
   if test x"${build_cairo}" = xyes; then



    cairo=yes
    if test x = x; then
      name=cairo
    else
      name=cairo-
    fi

        if test x"${cairo}" = x"yes"; then

# Check whether --with-cairo_incl was given.
if test "${with_cairo_incl+set}" = set; then :
  withval=$with_cairo_incl; with_cairo_incl=${withval}
fi

      if test "${ac_cv_path_cairo_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_cairo_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header in specified directory" >&5
$as_echo_n "checking for cairo.h header in specified directory... " >&6; }
        if test -f ${with_cairo_incl}/cairo.h ; then
          ac_cv_path_cairo_incl="-I`(cd ${with_cairo_incl}; pwd)`"
          found_cairo_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_cairo_incl} directory doesn't contain cairo.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_cairo_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header using pkg-config" >&5
$as_echo_n "checking for cairo.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libcairo && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags libcairo`"
      $PKG_CONFIG --exists cairo && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags cairo`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_cairo_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_cairo_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_incl}" >&5
$as_echo "${ac_cv_path_cairo_incl}" >&6; }
        found_cairo_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_cairo_incl}" = x; then
      # Extract the first word of "cairo-config", so it can be a program name with args.
set dummy cairo-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CAIRO_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $CAIRO_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CAIRO_CONFIG="$CAIRO_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CAIRO_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
CAIRO_CONFIG=$ac_cv_path_CAIRO_CONFIG
if test -n "$CAIRO_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CONFIG" >&5
$as_echo "$CAIRO_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${CAIRO_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header using cairo-config" >&5
$as_echo_n "checking for cairo.h header using cairo-config... " >&6; }
        ac_cv_path_cairo_incl="`${CAIRO_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_cairo_incl}" = x; then
          ac_cv_path_cairo_incl="`${CAIRO_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_cairo_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_incl}" >&5
$as_echo "${ac_cv_path_cairo_incl}" >&6; }
        	found_cairo_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_cairo_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
if test "x$ac_cv_header_cairo_h" = x""yes; then :
  ac_cv_path_cairo_incl=""; found_cairo_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "cairo/cairo.h" "ac_cv_header_cairo_cairo_h" "$ac_includes_default"
if test "x$ac_cv_header_cairo_cairo_h" = x""yes; then :
  ac_cv_path_cairo_incl="-I/usr/include/cairo"; found_cairo_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/cairo.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/cairo.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_cairo_incl="-I/usr/include/$name"; found_cairo_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
if test "x$ac_cv_header_cairo_h" = x""yes; then :
  ac_cv_path_cairo_incl="-I/usr/include/cairo.h"; found_cairo_incl="yes"
else

          if test x"${ac_cv_path_cairo_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_cairo_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_cairo_incl="-I$i"
                else
                  ac_cv_path_cairo_incl=""
                fi
                break
              else
                if test -f $i/$name/cairo.h; then
                  found_cairo_incl="yes"
                  ac_cv_path_cairo_incl="-I$i/$name"
                  break
                else
                  if test -f $i/cairo.h; then
                    found_cairo_incl="yes"
                    ac_cv_path_cairo_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo.h header" >&5
$as_echo_n "checking for cairo.h header... " >&6; }
  if test x"${found_cairo_incl}" = "xyes"; then


$as_echo "#define HAVE_CAIRO_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_incl}" >&5
$as_echo "${ac_cv_path_cairo_incl}" >&6; }
      if test x"${ac_cv_path_cairo_incl}" != x -a x"${ac_cv_path_cairo_incl}" != x"-I/usr/include"; then
        CAIRO_CFLAGS="${ac_cv_path_cairo_incl}"
      else
        CAIRO_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_cairo=no
ac_manual=yes

if test x"${cairo}" = x"yes"; then

# Check whether --with-cairo_lib was given.
if test "${with_cairo_lib+set}" = set; then :
  withval=$with_cairo_lib; with_cairo_lib=${withval}
fi

  if test "${ac_cv_path_cairo_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_cairo_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library in specified directory" >&5
$as_echo_n "checking for libcairo library in specified directory... " >&6; }
    if test -f ${with_cairo_lib}/lib$name.a -o -f ${with_cairo_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_cairo_lib}; pwd)`"
      ac_cv_path_cairo_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_cairo_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_cairo_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library using pkg-config" >&5
$as_echo_n "checking for libcairo library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libcairo && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs libcairo`"
      $PKG_CONFIG --exists cairo && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs cairo`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_cairo_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_cairo_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_lib}" >&5
$as_echo "${ac_cv_path_cairo_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_cairo_lib}" = x; then
      # Extract the first word of "cairo-config", so it can be a program name with args.
set dummy cairo-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CAIRO_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $CAIRO_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CAIRO_CONFIG="$CAIRO_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CAIRO_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
CAIRO_CONFIG=$ac_cv_path_CAIRO_CONFIG
if test -n "$CAIRO_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CONFIG" >&5
$as_echo "$CAIRO_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${CAIRO_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library using cairo-config" >&5
$as_echo_n "checking for libcairo library using cairo-config... " >&6; }
        ac_cv_path_cairo_lib="`${CAIRO_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_lib}" >&5
$as_echo "${ac_cv_path_cairo_lib}" >&6; }
      fi
      if test x"${ac_cv_path_cairo_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_cairo_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_cairo_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libcairo.a -o -f $i/libcairo.${shlibext}; then
        if test -f "$i/libcairo.a" -o -f "$i/libcairo.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_cairo_lib="-L$i -lcairo "
          else
            ac_cv_path_cairo_lib="-lcairo "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_cairo_lib="-L$i -l$name "
          else
            ac_cv_path_cairo_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_cairo_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cairo_status" >&5
$as_echo_n "checking for library containing cairo_status... " >&6; }
if test "${ac_cv_search_cairo_status+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cairo_status ();
int
main ()
{
return cairo_status ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cairo $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cairo_status=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_cairo_status+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_cairo_status+set}" = set; then :

else
  ac_cv_search_cairo_status=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cairo_status" >&5
$as_echo "$ac_cv_search_cairo_status" >&6; }
ac_res=$ac_cv_search_cairo_status
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_cairo_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcairo library" >&5
$as_echo_n "checking for libcairo library... " >&6; }
	if test x"${ac_cv_path_cairo_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_cairo_lib}" >&5
$as_echo "${ac_cv_path_cairo_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_cairo_lib}" != x ; then
    CAIRO_LIBS="${ac_cv_path_cairo_lib}"
    has_cairo=yes
  else
    CAIRO_LIBS=""
  fi
fi








   fi
fi
if test x"${build_hildon}" = xyes; then



# Check whether --with-hildon_incl was given.
if test "${with_hildon_incl+set}" = set; then :
  withval=$with_hildon_incl; with_hildon_incl=${withval}
fi

  if test "${ac_cv_path_hildon_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_hildon_incl}" != x ; then
      if test -f ${with_hildon_incl}/hildon/hildon-program.h ; then
        ac_cv_path_hildon_incl="-I`(cd ${with_hildon_incl}; pwd)`"
      else
        as_fn_error "${with_hildon_incl} directory doesn't contain hildon/hildon.h" "$LINENO" 5
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_hildon_incl}" = x; then
      $PKG_CONFIG --exists hildon-1 && ac_cv_path_hildon_incl="`$PKG_CONFIG --cflags-only-I hildon-1 | cut -d ' ' -f 1`"
    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Hildon Version" >&5
$as_echo_n "checking for the Hildon Version... " >&6; }

  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x; then
      $PKG_CONFIG --exists hildon-1 && gnash_hildon_version="`$PKG_CONFIG --modversion hildon-1 | cut -d '.' -f 1`"
    fi
  fi

  if test x"${gnash_hildon_version}" = x; then
    gnash_hildon_topdir=""
    gnash_hildon_version=""
    for i in $incllist; do
      for j in `ls -dr $i/hildon-[0-9] 2>/dev/null`; do
        if test -f $j/hildon/hildon-program.h; then
	        gnash_hildon_topdir="`basename $j`"
	        gnash_hildon_version="`echo ${gnash_hildon_topdir} | sed -e 's:hildon-::'`"
 	        ac_cv_path_hildon_incl="-I$i/${gnash_hildon_topdir}"
	        break
	      fi
      done
	    if test x$gnash_hildon_version != x; then
	      break;
	    fi
    done
  fi

  if test x"${gnash_hildon_version}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnash_hildon_version}" >&5
$as_echo "${gnash_hildon_version}" >&6; }
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhildon header" >&5
$as_echo_n "checking for libhildon header... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_hildon_incl}" >&5
$as_echo "${ac_cv_path_hildon_incl}" >&6; }


# Check whether --with-hildon_lib was given.
if test "${with_hildon_lib+set}" = set; then :
  withval=$with_hildon_lib; with_hildon_lib=${withval}
fi

  if test "${ac_cv_path_hildon_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_hildon_lib}" != x ; then
      if test -f ${with_hildon_lib}/libhildon-${gnash_hildon_version}.a -o -f ${with_hildon_lib}/libhildon-${gnash_hildon_version}.${shlibext}; then
	      ac_cv_path_hildon_lib="-L`(cd ${with_hildon_lib}; pwd)`"
      else
	      as_fn_error "${with_hildon_lib} directory doesn't contain libhildonhildon." "$LINENO" 5
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_hildon_lib}" = x; then
      $PKG_CONFIG --exists hildon-1 && ac_cv_path_hildon_lib="`$PKG_CONFIG --libs-only-l hildon-1 | cut -d ' ' -f 1`"
    fi
  fi

  if test x"${ac_cv_path_hildon_lib}" = x; then
    for i in $libslist; do
      if test -f $i/libhildon-${gnash_hildon_version}.a -o -f $i/libhildon-${gnash_hildon_version}.${shlibext}; then
        if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
	        ac_cv_path_hildon_lib="-L$i -lhildon-${gnash_hildon_version}"
	        break
        else
	        ac_cv_path_hildon_lib="-lhildon-${gnash_hildon_version}"
	        break
	      fi
      fi
    done
  else
    hildon_lib_path=`$PKG_CONFIG --libs-only-L hildon-1`
    if test ! $hildon_lib_path = "-L/usr/lib" -o $hildon_lib_path = "-L/usr/lib64"; then
      ac_cv_path_hildon_lib="${hildon_lib_path} ${ac_cv_path_hildon_lib}"
    fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhildon library" >&5
$as_echo_n "checking for libhildon library... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_hildon_lib}" >&5
$as_echo "${ac_cv_path_hildon_lib}" >&6; }

  if test x"${ac_cv_path_hildon_lib}" = x; then
    as_ac_Lib=`$as_echo "ac_cv_lib_hildon-${gnash_hildon_version}''_hildon_engine_shape_class_init" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildon_engine_shape_class_init in -lhildon-${gnash_hildon_version}" >&5
$as_echo_n "checking for hildon_engine_shape_class_init in -lhildon-${gnash_hildon_version}... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhildon-${gnash_hildon_version}  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hildon_engine_shape_class_init ();
int
main ()
{
return hildon_engine_shape_class_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Lib
   if test "x$as_val" = x""yes; then :
  ac_cv_path_hildon_lib="-lhildon-${gnash_hildon_version}"
fi

  fi

  if test x"${ac_cv_path_hildon_incl}" != x; then
    HILDON_CFLAGS="${ac_cv_path_hildon_incl}"
  else
    HILDON_CFLAGS=""
  fi

  if test x"${ac_cv_path_hildon_lib}" != x; then
    HILDON_LIBS="${ac_cv_path_hildon_lib}"

$as_echo "#define HAVE_HILDON 1" >>confdefs.h

  else
    HILDON_LIBS=""
  fi




  build_gtk=yes
  build_kde3=no
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
$as_echo_n "checking linker --as-needed support... " >&6; }
gcc_cv_ld_as_needed=no
# Check if linker supports --as-needed and --no-as-needed options
if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
  gcc_cv_ld_as_needed=yes
fi
if test x"$gcc_cv_ld_as_needed" = xyes; then
  LDFLAGS+=" -Wl,--as-needed"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
$as_echo "$gcc_cv_ld_as_needed" >&6; }



$as_echo "#define USE_GIF 1" >>confdefs.h


$as_echo "#define USE_PNG 1" >>confdefs.h

 if true; then
  USE_GIF_TRUE=
  USE_GIF_FALSE='#'
else
  USE_GIF_TRUE='#'
  USE_GIF_FALSE=
fi

 if true; then
  USE_PNG_TRUE=
  USE_PNG_FALSE='#'
else
  USE_PNG_TRUE='#'
  USE_PNG_FALSE=
fi


 if  test x$has_dmalloc = xyes ; then
  HAVE_DMALLOC_TRUE=
  HAVE_DMALLOC_FALSE='#'
else
  HAVE_DMALLOC_TRUE='#'
  HAVE_DMALLOC_FALSE=
fi


if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}autotrace", so it can be a program name with args.
set dummy ${ac_tool_prefix}autotrace; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_AUTOTRACE+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $AUTOTRACE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_AUTOTRACE="$AUTOTRACE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_AUTOTRACE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
AUTOTRACE=$ac_cv_path_AUTOTRACE
if test -n "$AUTOTRACE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOTRACE" >&5
$as_echo "$AUTOTRACE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_AUTOTRACE"; then
  ac_pt_AUTOTRACE=$AUTOTRACE
  # Extract the first word of "autotrace", so it can be a program name with args.
set dummy autotrace; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_pt_AUTOTRACE+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_AUTOTRACE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_AUTOTRACE="$ac_pt_AUTOTRACE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_AUTOTRACE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_AUTOTRACE=$ac_cv_path_ac_pt_AUTOTRACE
if test -n "$ac_pt_AUTOTRACE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AUTOTRACE" >&5
$as_echo "$ac_pt_AUTOTRACE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_AUTOTRACE" = x; then
    AUTOTRACE=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AUTOTRACE=$ac_pt_AUTOTRACE
  fi
else
  AUTOTRACE="$ac_cv_path_AUTOTRACE"
fi

ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi



# Extract the first word of "zip", so it can be a program name with args.
set dummy zip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ZIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ZIP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ZIP=$ac_cv_path_ZIP
if test -n "$ZIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
$as_echo "$ZIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





# Check whether --enable-kparts3 was given.
if test "${enable_kparts3+set}" = set; then :
  enableval=$enable_kparts3; case "${enableval}" in
  yes) build_kparts3=yes ;;
  no)  build_kparts3=no ;;
  *)   as_fn_error "bad value ${enableval} for --disable-kparts3 option" "$LINENO" 5 ;;
esac
else
  build_kparts3=$build_kde3
fi



# Check whether --enable-kparts4 was given.
if test "${enable_kparts4+set}" = set; then :
  enableval=$enable_kparts4; case "${enableval}" in
  yes) build_kparts4=yes ;;
  no)  build_kparts4=no ;;
  *)   as_fn_error "bad value ${enableval} for --disable-kparts4 option" "$LINENO" 5 ;;
esac
else
  build_kparts4=$build_kde4
fi



# Check whether --enable-npapi was given.
if test "${enable_npapi+set}" = set; then :
  enableval=$enable_npapi; case "${enableval}" in
    yes) npapi=yes ;;
    no)  npapi=no ;;
    *)   as_fn_error "bad value ${enableval} for disable-npapi option" "$LINENO" 5 ;;
  esac
else
  if test x$build_gtk = xyes -o x$build_kde4 = xyes; then
    npapi=yes
  fi

fi



# Check whether --enable-plugins was given.
if test "${enable_plugins+set}" = set; then :
  enableval=$enable_plugins; case "${enableval}" in
    yes) plugins=yes ;;
    no)  plugins=no ;;
    *)   as_fn_error "bad value ${enableval} for disable-plugins option" "$LINENO" 5 ;;
  esac
else
  plugins=yes

fi

if test x$plugins = xno; then
  npapi=no
  build_kparts3=no
  build_kparts4=no
fi


# Check whether --with-plugins-install was given.
if test "${with_plugins_install+set}" = set; then :
  withval=$with_plugins_install; case "${withval}" in
	  user) PLUGINS_INSTALL_POLICY=user ;;
	  system) PLUGINS_INSTALL_POLICY=system ;;
	  prefix) PLUGINS_INSTALL_POLICY=prefix ;;
	  *)  as_fn_error "bad value ${withval} for --with-plugins-install" "$LINENO" 5 ;;
	 esac

else
  PLUGINS_INSTALL_POLICY=user
fi




  FIREFOX_PLUGINS=""
  if test x"${npapi}" = x"yes"; then


# Check whether --with-npapi-install was given.
if test "${with_npapi_install+set}" = set; then :
  withval=$with_npapi_install; case "${withval}" in
  	  user) NPAPI_INSTALL_POLICY=user ;;
  	  system) NPAPI_INSTALL_POLICY=system ;;
  	  prefix) NPAPI_INSTALL_POLICY=prefix ;;
  	  *)  as_fn_error "bad value ${withval} for --with-npapi-install" "$LINENO" 5 ;;
  	 esac

else
  NPAPI_INSTALL_POLICY=${PLUGINS_INSTALL_POLICY}
fi



# Check whether --with-plugindir was given.
if test "${with_plugindir+set}" = set; then :
  withval=$with_plugindir;  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-plugindir is obsoleted, use --with-npapi-plugindir instead" >&5
$as_echo "$as_me: WARNING: --with-plugindir is obsoleted, use --with-npapi-plugindir instead" >&2;}; FIREFOX_PLUGINS=$withval
fi



# Check whether --with-npapi-plugindir was given.
if test "${with_npapi_plugindir+set}" = set; then :
  withval=$with_npapi_plugindir; FIREFOX_PLUGINS=$withval

fi


          if test x"${FIREFOX_PLUGINS}" = "x" ; then

       if test "x${NPAPI_INSTALL_POLICY}" = "xuser"; then

                              FIREFOX_PLUGINS=$HOME/.mozilla/plugins

       elif test "x${NPAPI_INSTALL_POLICY}" = "xsystem"; then

          for dir in /usr/lib64/mozilla/plugins /usr/lib/mozilla/plugins /usr/lib64/firefox/plugins /usr/lib/firefox/plugins /usr/lib/mozilla-firefox/plugins /usr/lib64/iceweasel/plugins /usr/lib/iceweasel/plugins ; do
             if test -d $dir; then
                FIREFOX_PLUGINS=$dir
                break
             fi
          done
          if test "x${FIREFOX_PLUGINS}" = x; then
             FIREFOX_PLUGINS=/usr/lib/mozilla/plugins
             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find system mozilla plugin dir, use --with-npapi-plugindir. Defaulting to ${FIREFOX_PLUGINS}" >&5
$as_echo "$as_me: WARNING: Could not find system mozilla plugin dir, use --with-npapi-plugindir. Defaulting to ${FIREFOX_PLUGINS}" >&2;};
          fi

       elif test "x${NPAPI_INSTALL_POLICY}" = "xprefix"; then
          FIREFOX_PLUGINS="\${prefix}/npapi"
       fi
    fi
  fi






case $host in
  *-*-irix*)
    save_LIBS=$LIBS
  dir="/usr/lib /usr/lib32 /usr/lib/lib64"
  for i in $dir; do
    LIBS=-L$i
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XDisableAccessControl" >&5
$as_echo_n "checking for library containing XDisableAccessControl... " >&6; }
if test "${ac_cv_search_XDisableAccessControl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XDisableAccessControl ();
int
main ()
{
return XDisableAccessControl ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' X11; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_XDisableAccessControl=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_XDisableAccessControl+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_XDisableAccessControl+set}" = set; then :

else
  ac_cv_search_XDisableAccessControl=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XDisableAccessControl" >&5
$as_echo "$ac_cv_search_XDisableAccessControl" >&6; }
ac_res=$ac_cv_search_XDisableAccessControl
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

      xpathed=$i
      break

fi

    unset ac_cv_search_XDisableAccessControl
  done
  ac_x_libraries=$xpathed
  x_libraries=$xpathed
  LIBS=$save_LIBS
  ;;
esac

 if test x$lirc_ext = xyes; then
  LIRC_TRUE=
  LIRC_FALSE='#'
else
  LIRC_TRUE='#'
  LIRC_FALSE=
fi


for ac_header in endian.h machine/endian.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in malloc.h malloc/malloc.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in getopt.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
if test "x$ac_cv_header_getopt_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETOPT_H 1
_ACEOF

fi

done

for ac_header in libgen.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
if test "x$ac_cv_header_libgen_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN_H 1
_ACEOF

fi

done

for ac_header in pwd.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
if test "x$ac_cv_header_pwd_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PWD_H 1
_ACEOF

fi

done

for ac_header in sys/utsname.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_UTSNAME_H 1
_ACEOF

fi

done

for ac_header in signal.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_signal_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SIGNAL_H 1
_ACEOF

fi

done

for ac_header in unistd.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UNISTD_H 1
_ACEOF

fi

done

for ac_header in sys/time.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIME_H 1
_ACEOF

fi

done

for ac_header in ieeefp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
if test "x$ac_cv_header_ieeefp_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IEEEFP_H 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
$as_echo_n "checking for ber_free in -llber... " >&6; }
if test "${ac_cv_lib_lber_ber_free+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llber  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ber_free ();
int
main ()
{
return ber_free ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lber_ber_free=yes
else
  ac_cv_lib_lber_ber_free=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
$as_echo "$ac_cv_lib_lber_ber_free" >&6; }
if test "x$ac_cv_lib_lber_ber_free" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLBER 1
_ACEOF

  LIBS="-llber $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbz2  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char BZ2_bzopen ();
int
main ()
{
return BZ2_bzopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bz2_BZ2_bzopen=yes
else
  ac_cv_lib_bz2_BZ2_bzopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
if test "x$ac_cv_lib_bz2_BZ2_bzopen" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBZ2 1
_ACEOF

  LIBS="-lbz2 $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lc" >&5
$as_echo_n "checking for getpwnam in -lc... " >&6; }
if test "${ac_cv_lib_c_getpwnam+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getpwnam ();
int
main ()
{
return getpwnam ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_getpwnam=yes
else
  ac_cv_lib_c_getpwnam=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwnam" >&5
$as_echo "$ac_cv_lib_c_getpwnam" >&6; }
if test "x$ac_cv_lib_c_getpwnam" = x""yes; then :

$as_echo "#define HAVE_GETPWNAM 1" >>confdefs.h

fi




# Check whether --with-x11_incl was given.
if test "${with_x11_incl+set}" = set; then :
  withval=$with_x11_incl; with_x11_incl=${withval}
fi

  if test "${ac_cv_path_x11_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_x11_incl}" != x ; then
      if test -f ${with_x11_incl}/X11/X.h ; then
       ac_cv_path_x11_incl="-I`(cd ${with_x11_incl}; pwd)`"
      else
       as_fn_error "${with_x11_incl} directory doesn't contain X.h" "$LINENO" 5
      fi
    fi

fi


    if test x"${ac_cv_path_x11_incl}" = x ; then
    newlist="/Developer/SDKs/MacOSX10.5*.sdk/usr/include /Developer/SDKs/MacOSX10.4*.sdk/usr/include ${incllist}"
    for i in $newlist; do
    	if test -f $i/X11/X.h; then
  	    ac_cv_path_x11_incl="-I$i"
    	fi
    done
  fi

  if test x"${ac_cv_path_x11_incl}" = x ; then
    for ac_header in X11/X.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default"
if test "x$ac_cv_header_X11_X_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_X11_X_H 1
_ACEOF
 ac_cv_path_x11_incl=""
fi

done

  fi

    if test x"${ac_cv_path_x11_incl}" != x ; then
    includedirfound=`echo "${ac_cv_path_x11_incl}" | cut -b 3-`
    if test -f "$includedirfound/X11/extensions/Xv.h"; then
      xv_incl=yes
    fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 headers" >&5
$as_echo_n "checking for X11 headers... " >&6; }
  if test x"${ac_cv_path_x11_incl}" != x ; then
        if test x"${ac_cv_path_x11_incl}" != "x-I/usr/include"; then
      X11_CFLAGS="${ac_cv_path_x11_incl}"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_x11_incl}" >&5
$as_echo "${ac_cv_path_x11_incl}" >&6; }
  else
    X11_CFLAGS=""
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  fi


# Check whether --with-x11_lib was given.
if test "${with_x11_lib+set}" = set; then :
  withval=$with_x11_lib; with_x11_lib=${withval}
fi

  if test "${ac_cv_path_x11_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_x11_lib}" != x ; then
      if test -f ${with_x11_lib}/libX11.a -o -f ${with_x11_lib}/libX11.${shlibext}; then
       ac_cv_path_x11_lib="-L`(cd ${with_x11_lib}; pwd)`"
      else
       as_fn_error "${with_x11_lib} directory doesn't contain libx11." "$LINENO" 5
      fi
    fi

fi


    if test x"${ac_cv_path_x11_incl}" != x ; then
    newlist="/Developer/SDKs/MacOSX10.5*.sdk/usr/lib /Developer/SDKs/MacOSX10.5*.sdk/usr/X11R6/lib /Developer/SDKs/MacOSX10.4*.sdk/usr/lib /Developer/SDKs/MacOSX10.4*.sdk/usr/X11R6/lib ${libslist}"
    for i in $newlist; do
      if test -f $i/libX11.a -o -f $i/libX11.${shlibext}; then
        if test ! x"${i}" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
          ac_cv_path_x11_lib="-L$i -lX11"
        else
          ac_cv_path_x11_lib="-lX11"
        fi
        if test -f $i/libXinerama.a -o -f $i/libXinerama.${shlibext}; then
          ac_cv_path_x11_lib="${ac_cv_path_x11_lib} -lXinerama"
        fi
        if test -f $i/libXext.a -o -f $i/libXext.${shlibext}; then
          ac_cv_path_x11_lib="${ac_cv_path_x11_lib} -lXext"
        fi
        if test -f $i/libSM.a -o -f $i/libSM.${shlibext}; then
          ac_cv_path_x11_lib="${ac_cv_path_x11_lib} -lSM"
        fi
        if test -f $i/libICE.a -o -f $i/libICE.${shlibext}; then
          ac_cv_path_x11_lib="${ac_cv_path_x11_lib} -lICE"
        fi
        if test -f $i/libXv.a -o -f $i/libXv.${shlibext}; then
          ac_cv_path_x11_lib="${ac_cv_path_x11_lib} -lXv"
          xv_lib=yes
        fi
        break
      fi
    done
  fi

  for i in $newlist; do
    if test -f $i/libXplugin.a -o -f $i/libXplugin.${shlibext}; then
      if test ! x"${i}" = x"/usr/lib" -o x"$i" = x"/usr/lib64"; then
        ac_cv_path_x11_lib="${ac_cv_path_x11_lib} -L$i -lXplugin"
      else
        ac_cv_path_x11_lib="${ac_cv_path_x11_lib} -lXplugin"
      fi
      break
    fi
  done

  if test x"${ac_cv_path_x11_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11_mem_init in -lX11" >&5
$as_echo_n "checking for x11_mem_init in -lX11... " >&6; }
if test "${ac_cv_lib_X11_x11_mem_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char x11_mem_init ();
int
main ()
{
return x11_mem_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_X11_x11_mem_init=yes
else
  ac_cv_lib_X11_x11_mem_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_x11_mem_init" >&5
$as_echo "$ac_cv_lib_X11_x11_mem_init" >&6; }
if test "x$ac_cv_lib_X11_x11_mem_init" = x""yes; then :
  ac_cv_path_x11_lib=""
fi

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 library" >&5
$as_echo_n "checking for X11 library... " >&6; }
  if test x"${ac_cv_path_x11_lib}" != x ; then
    X11_LIBS="${ac_cv_path_x11_lib}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_x11_lib}" >&5
$as_echo "${ac_cv_path_x11_lib}" >&6; }
  else
    X11_LIBS=""
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  fi

  if test -n "$X11_LIBS" -a -n "$X11_CFLAGS"; then
    x11=yes
  fi

  if test "x$x11" = xyes; then

$as_echo "#define HAVE_X11 1" >>confdefs.h

  fi

  if test x"$xv_incl" != x -a x"$xv_lib" != x; then

$as_echo "#define HAVE_XV 1" >>confdefs.h

  fi
   if  test x"$xv_incl" != x -a x"$xv_lib" != x ; then
  HAVE_XV_TRUE=
  HAVE_XV_FALSE='#'
else
  HAVE_XV_TRUE='#'
  HAVE_XV_FALSE=
fi





  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XInput_find_display in -lXi" >&5
$as_echo_n "checking for XInput_find_display in -lXi... " >&6; }
if test "${ac_cv_lib_Xi_XInput_find_display+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXi  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XInput_find_display ();
int
main ()
{
return XInput_find_display ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_Xi_XInput_find_display=yes
else
  ac_cv_lib_Xi_XInput_find_display=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XInput_find_display" >&5
$as_echo "$ac_cv_lib_Xi_XInput_find_display" >&6; }
if test "x$ac_cv_lib_Xi_XInput_find_display" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBXI 1
_ACEOF

  LIBS="-lXi $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDisableAccessControl in -lX11" >&5
$as_echo_n "checking for XDisableAccessControl in -lX11... " >&6; }
if test "${ac_cv_lib_X11_XDisableAccessControl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XDisableAccessControl ();
int
main ()
{
return XDisableAccessControl ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_X11_XDisableAccessControl=yes
else
  ac_cv_lib_X11_XDisableAccessControl=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XDisableAccessControl" >&5
$as_echo "$ac_cv_lib_X11_XDisableAccessControl" >&6; }
if test "x$ac_cv_lib_X11_XDisableAccessControl" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBX11 1
_ACEOF

  LIBS="-lX11 $LIBS"

fi

 if test x$x11 = xyes; then
  HAVE_X11_TRUE=
  HAVE_X11_FALSE='#'
else
  HAVE_X11_TRUE='#'
  HAVE_X11_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_unlink in -lrt" >&5
$as_echo_n "checking for shm_unlink in -lrt... " >&6; }
if test "${ac_cv_lib_rt_shm_unlink+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shm_unlink ();
int
main ()
{
return shm_unlink ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_shm_unlink=yes
else
  ac_cv_lib_rt_shm_unlink=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_unlink" >&5
$as_echo "$ac_cv_lib_rt_shm_unlink" >&6; }
if test "x$ac_cv_lib_rt_shm_unlink" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRT 1
_ACEOF

  LIBS="-lrt $LIBS"

fi

for ac_func in shm_open shm_unlink
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <strings.h>
int
main ()
{

  char *p1 = (char *)"Hello";
  char *p2 = (char *)"World";
  strcasecmp(p1, p2);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

$as_echo "#define HAVE_STRINGCASECMP 1" >>confdefs.h


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if float formatting is broken" >&5
$as_echo_n "checking to see if float formatting is broken... " >&6; }
if test "$cross_compiling" = yes; then :
       broken_float=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <cmath>
    void testFloat(double d, double& s)
    {
        d /= 1000.0;
        s = std::fmod(d, 86400.0);
    }
int
main ()
{

     double d = 3.0935415006117e+23;
     double s;
     testFloat(d, s);
     if (static_cast<int>(s) != 61440) {
         return 1;
     }
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
       broken_float=no
else
       broken_float=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
                                  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


if test x${broken_float} = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAVE_BROKEN_FLOAT 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
 if  test x$broken_float = xyes ; then
  BROKEN_FLOAT_TRUE=
  BROKEN_FLOAT_FALSE='#'
else
  BROKEN_FLOAT_TRUE='#'
  BROKEN_FLOAT_FALSE=
fi


ipc_key=no
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <sys/ipc.h>
  #include <sys/shm.h>
int
main ()
{

 struct shmid_ds shmseg;
 key_t x = shmseg.shm_perm.key;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ipc_key=yes

$as_echo "#define IPC_PERM_KEY key" >>confdefs.h


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test x$ipc_key = xno; then
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <sys/ipc.h>
    #include <sys/shm.h>
int
main ()
{

    struct shmid_ds shmseg;
    key_t x = shmseg.shm_perm.__key;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

$as_echo "#define IPC_PERM_KEY __key" >>confdefs.h

    ipc_key=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite" >&5
$as_echo_n "checking for finite... " >&6; }
if test "${ac_cv_finite+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

   #include <math.h>
   #ifdef HAVE_IEEEFP_H
   #include <ieeefp.h>
   #endif
int
main ()
{
double x; int y; y = finite(x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_finite=yes
else
  ac_cv_finite=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_finite" >&5
$as_echo "$ac_cv_finite" >&6; }
if test x"$ac_cv_finite" = x"yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing finite" >&5
$as_echo_n "checking for library containing finite... " >&6; }
if test "${ac_cv_search_finite+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char finite ();
int
main ()
{
return finite ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_finite=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_finite+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_finite+set}" = set; then :

else
  ac_cv_search_finite=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_finite" >&5
$as_echo "$ac_cv_search_finite" >&6; }
ac_res=$ac_cv_search_finite
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_FINITE 1" >>confdefs.h


fi

fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
$as_echo_n "checking for isfinite... " >&6; }
if test "${ac_cv_isfinite+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <cmath>
int
main ()
{
using namespace std; double x; int y; y = isfinite(x);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_isfinite=yes
else
  ac_cv_isfinite=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isfinite" >&5
$as_echo "$ac_cv_isfinite" >&6; }
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test x"$ac_cv_isfinite" = x"yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing isfinite" >&5
$as_echo_n "checking for library containing isfinite... " >&6; }
if test "${ac_cv_search_isfinite+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char isfinite ();
int
main ()
{
return isfinite ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_isfinite=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_isfinite+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_isfinite+set}" = set; then :

else
  ac_cv_search_isfinite=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_isfinite" >&5
$as_echo "$ac_cv_search_isfinite" >&6; }
ac_res=$ac_cv_search_isfinite
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi


$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h

fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX implements __PRETTY_FUNCTION__" >&5
$as_echo_n "checking whether $CXX implements __PRETTY_FUNCTION__... " >&6; }
if test "${ac_cv_implements___PRETTY_FUNCTION__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <cstdio>

int
main ()
{
 std::printf("%s", __PRETTY_FUNCTION__);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
   ac_cv_implements___PRETTY_FUNCTION__="yes"
else
   ac_cv_implements___PRETTY_FUNCTION__="no"

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_implements___PRETTY_FUNCTION__" >&5
$as_echo "$ac_cv_implements___PRETTY_FUNCTION__" >&6; }
if test "x$ac_cv_implements___PRETTY_FUNCTION__" = "xyes" ; then

$as_echo "#define HAVE_PRETTY_FUNCTION 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX implements __FUNCTION__" >&5
$as_echo_n "checking whether $CXX implements __FUNCTION__... " >&6; }
if test "${ac_cv_implements___FUNCTION__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <cstdio>

int
main ()
{
 std::printf("%s", __FUNCTION__);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
   ac_cv_implements___FUNCTION__="yes"
else
   ac_cv_implements___FUNCTION__="no"

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_implements___FUNCTION__" >&5
$as_echo "$ac_cv_implements___FUNCTION__" >&6; }
if test "x$ac_cv_implements___FUNCTION__" = "xyes" ; then

$as_echo "#define HAVE_FUNCTION 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX implements __func__" >&5
$as_echo_n "checking whether $CXX implements __func__... " >&6; }
if test "${ac_cv_implements___func__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <cstdio>

int
main ()
{
 std::printf("%s", __func__);
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
   ac_cv_implements___func__="yes"
else
   ac_cv_implements___func__="no"

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_implements___func__" >&5
$as_echo "$ac_cv_implements___func__" >&6; }
if test "x$ac_cv_implements___func__" = "xyes" ; then

$as_echo "#define HAVE_func 1" >>confdefs.h

fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

for ac_func in getopt
do :
  ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
if test "x$ac_cv_func_getopt" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETOPT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" $ac_func.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 ;;
esac

fi
done



for ac_func in gettimeofday
do :
  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETTIMEOFDAY 1
_ACEOF

fi
done

for ac_func in ftime
do :
  ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
if test "x$ac_cv_func_ftime" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FTIME 1
_ACEOF

fi
done

for ac_func in tzset
do :
  ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
if test "x$ac_cv_func_tzset" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_TZSET 1
_ACEOF

fi
done

for ac_func in localtime_r
do :
  ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
if test "x$ac_cv_func_localtime_r" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALTIME_R 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm has tm_gmtoff" >&5
$as_echo_n "checking whether struct tm has tm_gmtoff... " >&6; }
if test "${ac_cv_tm_gmtoff+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* ctime(1) says "The glibc version of struct tm has additional fields
 * defined  when _BSD_SOURCE was set before including <time.h>"
 * In practice, you don't need to define it yourself (tested on glibc-2.2.1
 * and 2.3.6) but if you *do* define it yourself, it makes *all* functions
 * favour BSD-like behaviour over of GNU/POSIX, which seems dangerous.
 */
// #define _BSD_SOURCE 1
#include <time.h>

int
main ()
{
 struct tm tm; long l = tm.tm_gmtoff;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
   ac_cv_tm_gmtoff="yes"
else
   ac_cv_tm_gmtoff="no"

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tm_gmtoff" >&5
$as_echo "$ac_cv_tm_gmtoff" >&6; }
if test "x$ac_cv_tm_gmtoff" = "xyes" ; then

$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timezone is a long" >&5
$as_echo_n "checking whether timezone is a long... " >&6; }
if test "${ac_cv_long_timezone+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* On Linux/glibc, tzset(3) says "extern long timezone;" (seconds West of GMT)
 * but on BSD char *timezone(int,int) is a function returning a string name.
 * The BSD function timegm() may be the equivalent, but this should
 * not be necessary because on BSD the code should use tm.tm_gmtoff instead
 * (use of long timezone is a fallback strategy for when tm_gmtoff exists not).
 */
#include <stdio.h>
#include <time.h>
extern long timezone;

int
main ()
{
 printf("%ld", timezone);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
   ac_cv_long_timezone="yes"
else
   ac_cv_long_timezone="no"

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_timezone" >&5
$as_echo "$ac_cv_long_timezone" >&6; }
if test "x$ac_cv_long_timezone" = "xyes" ; then

$as_echo "#define HAVE_LONG_TIMEZONE 1" >>confdefs.h

fi

for ac_func in sysconf
do :
  ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYSCONF 1
_ACEOF

fi
done

for ac_func in shmget shmat shmdt mmap
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in memmove
do :
  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
if test "x$ac_cv_func_memmove" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MEMMOVE 1
_ACEOF

fi
done

for ac_func in scandir
do :
  ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
if test "x$ac_cv_func_scandir" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCANDIR 1
_ACEOF

fi
done
         ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
if test "x$ac_cv_func_clock_gettime" = x""yes; then :

$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h

fi

for ac_header in winsock.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
if test "x$ac_cv_header_winsock_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK_H 1
_ACEOF

fi

done

for ac_header in winsock2.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK2_H 1
_ACEOF

fi

done

for ac_func in socket
do :
  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
if test "x$ac_cv_func_socket" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKET 1
_ACEOF

fi
done

for ac_func in CreateFileMappingA
do :
  ac_fn_c_check_func "$LINENO" "CreateFileMappingA" "ac_cv_func_CreateFileMappingA"
if test "x$ac_cv_func_CreateFileMappingA" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CREATEFILEMAPPINGA 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mremap in -lc" >&5
$as_echo_n "checking for mremap in -lc... " >&6; }
if test "${ac_cv_lib_c_mremap+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mremap ();
int
main ()
{
return mremap ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_mremap=yes
else
  ac_cv_lib_c_mremap=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_mremap" >&5
$as_echo "$ac_cv_lib_c_mremap" >&6; }
if test "x$ac_cv_lib_c_mremap" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBC 1
_ACEOF

  LIBS="-lc $LIBS"

fi





    nspr=yes
    if test x = x; then
      name=nspr
    else
      name=nspr-
    fi

        if test x"${nspr}" = x"yes"; then

# Check whether --with-nspr_incl was given.
if test "${with_nspr_incl+set}" = set; then :
  withval=$with_nspr_incl; with_nspr_incl=${withval}
fi

      if test "${ac_cv_path_nspr_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_nspr_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr.h header in specified directory" >&5
$as_echo_n "checking for nspr.h header in specified directory... " >&6; }
        if test -f ${with_nspr_incl}/nspr.h ; then
          ac_cv_path_nspr_incl="-I`(cd ${with_nspr_incl}; pwd)`"
          found_nspr_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_nspr_incl} directory doesn't contain nspr.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_nspr_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr.h header using pkg-config" >&5
$as_echo_n "checking for nspr.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libnspr && ac_cv_path_nspr_incl="`$PKG_CONFIG --cflags libnspr`"
      $PKG_CONFIG --exists nspr && ac_cv_path_nspr_incl="`$PKG_CONFIG --cflags nspr`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_nspr_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_nspr_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_nspr_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_nspr_incl}" >&5
$as_echo "${ac_cv_path_nspr_incl}" >&6; }
        found_nspr_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_nspr_incl}" = x; then
      # Extract the first word of "nspr-config", so it can be a program name with args.
set dummy nspr-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_NSPR_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $NSPR_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_NSPR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
NSPR_CONFIG=$ac_cv_path_NSPR_CONFIG
if test -n "$NSPR_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSPR_CONFIG" >&5
$as_echo "$NSPR_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${NSPR_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr.h header using nspr-config" >&5
$as_echo_n "checking for nspr.h header using nspr-config... " >&6; }
        ac_cv_path_nspr_incl="`${NSPR_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_nspr_incl}" = x; then
          ac_cv_path_nspr_incl="`${NSPR_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_nspr_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_nspr_incl}" >&5
$as_echo "${ac_cv_path_nspr_incl}" >&6; }
        	found_nspr_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_nspr_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "nspr.h" "ac_cv_header_nspr_h" "$ac_includes_default"
if test "x$ac_cv_header_nspr_h" = x""yes; then :
  ac_cv_path_nspr_incl=""; found_nspr_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
if test "x$ac_cv_header_nspr_nspr_h" = x""yes; then :
  ac_cv_path_nspr_incl="-I/usr/include/nspr"; found_nspr_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/nspr.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/nspr.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_nspr_incl="-I/usr/include/$name"; found_nspr_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "nspr.h" "ac_cv_header_nspr_h" "$ac_includes_default"
if test "x$ac_cv_header_nspr_h" = x""yes; then :
  ac_cv_path_nspr_incl="-I/usr/include/nspr.h"; found_nspr_incl="yes"
else

          if test x"${ac_cv_path_nspr_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_nspr_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_nspr_incl="-I$i"
                else
                  ac_cv_path_nspr_incl=""
                fi
                break
              else
                if test -f $i/$name/nspr.h; then
                  found_nspr_incl="yes"
                  ac_cv_path_nspr_incl="-I$i/$name"
                  break
                else
                  if test -f $i/nspr.h; then
                    found_nspr_incl="yes"
                    ac_cv_path_nspr_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr.h header" >&5
$as_echo_n "checking for nspr.h header... " >&6; }
  if test x"${found_nspr_incl}" = "xyes"; then


$as_echo "#define HAVE_NSPR_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_nspr_incl}" >&5
$as_echo "${ac_cv_path_nspr_incl}" >&6; }
      if test x"${ac_cv_path_nspr_incl}" != x -a x"${ac_cv_path_nspr_incl}" != x"-I/usr/include"; then
        NSPR_CFLAGS="${ac_cv_path_nspr_incl}"
      else
        NSPR_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_nspr=no
ac_manual=yes

if test x"${nspr}" = x"yes"; then

# Check whether --with-nspr_lib was given.
if test "${with_nspr_lib+set}" = set; then :
  withval=$with_nspr_lib; with_nspr_lib=${withval}
fi

  if test "${ac_cv_path_nspr_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_nspr_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnspr library in specified directory" >&5
$as_echo_n "checking for libnspr library in specified directory... " >&6; }
    if test -f ${with_nspr_lib}/lib$name.a -o -f ${with_nspr_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_nspr_lib}; pwd)`"
      ac_cv_path_nspr_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_nspr_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_nspr_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnspr library using pkg-config" >&5
$as_echo_n "checking for libnspr library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libnspr && ac_cv_path_nspr_lib="`$PKG_CONFIG --libs libnspr`"
      $PKG_CONFIG --exists nspr && ac_cv_path_nspr_lib="`$PKG_CONFIG --libs nspr`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_nspr_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_nspr_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_nspr_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_nspr_lib}" >&5
$as_echo "${ac_cv_path_nspr_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_nspr_lib}" = x; then
      # Extract the first word of "nspr-config", so it can be a program name with args.
set dummy nspr-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_NSPR_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $NSPR_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_NSPR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
NSPR_CONFIG=$ac_cv_path_NSPR_CONFIG
if test -n "$NSPR_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSPR_CONFIG" >&5
$as_echo "$NSPR_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${NSPR_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnspr library using nspr-config" >&5
$as_echo_n "checking for libnspr library using nspr-config... " >&6; }
        ac_cv_path_nspr_lib="`${NSPR_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_nspr_lib}" >&5
$as_echo "${ac_cv_path_nspr_lib}" >&6; }
      fi
      if test x"${ac_cv_path_nspr_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_nspr_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_nspr_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libnspr.a -o -f $i/libnspr.${shlibext}; then
        if test -f "$i/libnspr.a" -o -f "$i/libnspr.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_nspr_lib="-L$i -lnspr "
          else
            ac_cv_path_nspr_lib="-lnspr "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_nspr_lib="-L$i -l$name "
          else
            ac_cv_path_nspr_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_nspr_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PR_Init" >&5
$as_echo_n "checking for library containing PR_Init... " >&6; }
if test "${ac_cv_search_PR_Init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char PR_Init ();
int
main ()
{
return PR_Init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nspr $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_PR_Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_PR_Init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_PR_Init+set}" = set; then :

else
  ac_cv_search_PR_Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PR_Init" >&5
$as_echo "$ac_cv_search_PR_Init" >&6; }
ac_res=$ac_cv_search_PR_Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_nspr_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnspr library" >&5
$as_echo_n "checking for libnspr library... " >&6; }
	if test x"${ac_cv_path_nspr_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_nspr_lib}" >&5
$as_echo "${ac_cv_path_nspr_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_nspr_lib}" != x ; then
    NSPR_LIBS="${ac_cv_path_nspr_lib}"
    has_nspr=yes
  else
    NSPR_LIBS=""
  fi
fi









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
set dummy ${ac_tool_prefix}windres; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_WINDRES+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $WINDRES in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
WINDRES=$ac_cv_path_WINDRES
if test -n "$WINDRES"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
$as_echo "$WINDRES" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_WINDRES"; then
  ac_pt_WINDRES=$WINDRES
  # Extract the first word of "windres", so it can be a program name with args.
set dummy windres; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_pt_WINDRES+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_WINDRES in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_WINDRES="$ac_pt_WINDRES" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_WINDRES="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_WINDRES=$ac_cv_path_ac_pt_WINDRES
if test -n "$ac_pt_WINDRES"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_WINDRES" >&5
$as_echo "$ac_pt_WINDRES" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_WINDRES" = x; then
    WINDRES=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    WINDRES=$ac_pt_WINDRES
  fi
else
  WINDRES="$ac_cv_path_WINDRES"
fi






    z=yes
    if test x = x; then
      name=z
    else
      name=z-
    fi

        if test x"${z}" = x"yes"; then

# Check whether --with-z_incl was given.
if test "${with_z_incl+set}" = set; then :
  withval=$with_z_incl; with_z_incl=${withval}
fi

      if test "${ac_cv_path_z_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_z_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib.h header in specified directory" >&5
$as_echo_n "checking for zlib.h header in specified directory... " >&6; }
        if test -f ${with_z_incl}/zlib.h ; then
          ac_cv_path_z_incl="-I`(cd ${with_z_incl}; pwd)`"
          found_z_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_z_incl} directory doesn't contain zlib.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_z_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib.h header using pkg-config" >&5
$as_echo_n "checking for zlib.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libz && ac_cv_path_z_incl="`$PKG_CONFIG --cflags libz`"
      $PKG_CONFIG --exists z && ac_cv_path_z_incl="`$PKG_CONFIG --cflags z`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_z_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_z_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_z_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_z_incl}" >&5
$as_echo "${ac_cv_path_z_incl}" >&6; }
        found_z_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_z_incl}" = x; then
      # Extract the first word of "z-config", so it can be a program name with args.
set dummy z-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_Z_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $Z_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_Z_CONFIG="$Z_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_Z_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
Z_CONFIG=$ac_cv_path_Z_CONFIG
if test -n "$Z_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Z_CONFIG" >&5
$as_echo "$Z_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${Z_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib.h header using z-config" >&5
$as_echo_n "checking for zlib.h header using z-config... " >&6; }
        ac_cv_path_z_incl="`${Z_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_z_incl}" = x; then
          ac_cv_path_z_incl="`${Z_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_z_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_z_incl}" >&5
$as_echo "${ac_cv_path_z_incl}" >&6; }
        	found_z_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_z_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = x""yes; then :
  ac_cv_path_z_incl=""; found_z_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "z/zlib.h" "ac_cv_header_z_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_z_zlib_h" = x""yes; then :
  ac_cv_path_z_incl="-I/usr/include/z"; found_z_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/zlib.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/zlib.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_z_incl="-I/usr/include/$name"; found_z_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = x""yes; then :
  ac_cv_path_z_incl="-I/usr/include/zlib.h"; found_z_incl="yes"
else

          if test x"${ac_cv_path_z_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_z_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_z_incl="-I$i"
                else
                  ac_cv_path_z_incl=""
                fi
                break
              else
                if test -f $i/$name/zlib.h; then
                  found_z_incl="yes"
                  ac_cv_path_z_incl="-I$i/$name"
                  break
                else
                  if test -f $i/zlib.h; then
                    found_z_incl="yes"
                    ac_cv_path_z_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib.h header" >&5
$as_echo_n "checking for zlib.h header... " >&6; }
  if test x"${found_z_incl}" = "xyes"; then


$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_z_incl}" >&5
$as_echo "${ac_cv_path_z_incl}" >&6; }
      if test x"${ac_cv_path_z_incl}" != x -a x"${ac_cv_path_z_incl}" != x"-I/usr/include"; then
        Z_CFLAGS="${ac_cv_path_z_incl}"
      else
        Z_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_z=no
ac_manual=yes

if test x"${z}" = x"yes"; then

# Check whether --with-z_lib was given.
if test "${with_z_lib+set}" = set; then :
  withval=$with_z_lib; with_z_lib=${withval}
fi

  if test "${ac_cv_path_z_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_z_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz library in specified directory" >&5
$as_echo_n "checking for libz library in specified directory... " >&6; }
    if test -f ${with_z_lib}/lib$name.a -o -f ${with_z_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_z_lib}; pwd)`"
      ac_cv_path_z_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_z_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_z_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz library using pkg-config" >&5
$as_echo_n "checking for libz library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libz && ac_cv_path_z_lib="`$PKG_CONFIG --libs libz`"
      $PKG_CONFIG --exists z && ac_cv_path_z_lib="`$PKG_CONFIG --libs z`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_z_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_z_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_z_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_z_lib}" >&5
$as_echo "${ac_cv_path_z_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_z_lib}" = x; then
      # Extract the first word of "z-config", so it can be a program name with args.
set dummy z-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_Z_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $Z_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_Z_CONFIG="$Z_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_Z_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
Z_CONFIG=$ac_cv_path_Z_CONFIG
if test -n "$Z_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Z_CONFIG" >&5
$as_echo "$Z_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${Z_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz library using z-config" >&5
$as_echo_n "checking for libz library using z-config... " >&6; }
        ac_cv_path_z_lib="`${Z_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_z_lib}" >&5
$as_echo "${ac_cv_path_z_lib}" >&6; }
      fi
      if test x"${ac_cv_path_z_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_z_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_z_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libz.a -o -f $i/libz.${shlibext}; then
        if test -f "$i/libz.a" -o -f "$i/libz.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_z_lib="-L$i -lz "
          else
            ac_cv_path_z_lib="-lz "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_z_lib="-L$i -l$name "
          else
            ac_cv_path_z_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_z_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress" >&5
$as_echo_n "checking for library containing compress... " >&6; }
if test "${ac_cv_search_compress+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char compress ();
int
main ()
{
return compress ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' z $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_compress=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_compress+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_compress+set}" = set; then :

else
  ac_cv_search_compress=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress" >&5
$as_echo "$ac_cv_search_compress" >&6; }
ac_res=$ac_cv_search_compress
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_z_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz library" >&5
$as_echo_n "checking for libz library... " >&6; }
	if test x"${ac_cv_path_z_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_z_lib}" >&5
$as_echo "${ac_cv_path_z_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_z_lib}" != x ; then
    Z_LIBS="${ac_cv_path_z_lib}"
    has_z=yes
  else
    Z_LIBS=""
  fi
fi











    jpeg=yes
    if test x = x; then
      name=jpeg
    else
      name=jpeg-
    fi

        if test x"${jpeg}" = x"yes"; then

# Check whether --with-jpeg_incl was given.
if test "${with_jpeg_incl+set}" = set; then :
  withval=$with_jpeg_incl; with_jpeg_incl=${withval}
fi

      if test "${ac_cv_path_jpeg_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_jpeg_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h header in specified directory" >&5
$as_echo_n "checking for jpeglib.h header in specified directory... " >&6; }
        if test -f ${with_jpeg_incl}/jpeglib.h ; then
          ac_cv_path_jpeg_incl="-I`(cd ${with_jpeg_incl}; pwd)`"
          found_jpeg_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_jpeg_incl} directory doesn't contain jpeglib.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_jpeg_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h header using pkg-config" >&5
$as_echo_n "checking for jpeglib.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libjpeg && ac_cv_path_jpeg_incl="`$PKG_CONFIG --cflags libjpeg`"
      $PKG_CONFIG --exists jpeg && ac_cv_path_jpeg_incl="`$PKG_CONFIG --cflags jpeg`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_jpeg_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_jpeg_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_jpeg_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_jpeg_incl}" >&5
$as_echo "${ac_cv_path_jpeg_incl}" >&6; }
        found_jpeg_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_jpeg_incl}" = x; then
      # Extract the first word of "jpeg-config", so it can be a program name with args.
set dummy jpeg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_JPEG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $JPEG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JPEG_CONFIG="$JPEG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_JPEG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
JPEG_CONFIG=$ac_cv_path_JPEG_CONFIG
if test -n "$JPEG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_CONFIG" >&5
$as_echo "$JPEG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${JPEG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h header using jpeg-config" >&5
$as_echo_n "checking for jpeglib.h header using jpeg-config... " >&6; }
        ac_cv_path_jpeg_incl="`${JPEG_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_jpeg_incl}" = x; then
          ac_cv_path_jpeg_incl="`${JPEG_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_jpeg_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_jpeg_incl}" >&5
$as_echo "${ac_cv_path_jpeg_incl}" >&6; }
        	found_jpeg_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_jpeg_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
  ac_cv_path_jpeg_incl=""; found_jpeg_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "jpeg/jpeglib.h" "ac_cv_header_jpeg_jpeglib_h" "$ac_includes_default"
if test "x$ac_cv_header_jpeg_jpeglib_h" = x""yes; then :
  ac_cv_path_jpeg_incl="-I/usr/include/jpeg"; found_jpeg_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/jpeglib.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/jpeglib.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_jpeg_incl="-I/usr/include/$name"; found_jpeg_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
  ac_cv_path_jpeg_incl="-I/usr/include/jpeglib.h"; found_jpeg_incl="yes"
else

          if test x"${ac_cv_path_jpeg_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_jpeg_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_jpeg_incl="-I$i"
                else
                  ac_cv_path_jpeg_incl=""
                fi
                break
              else
                if test -f $i/$name/jpeglib.h; then
                  found_jpeg_incl="yes"
                  ac_cv_path_jpeg_incl="-I$i/$name"
                  break
                else
                  if test -f $i/jpeglib.h; then
                    found_jpeg_incl="yes"
                    ac_cv_path_jpeg_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h header" >&5
$as_echo_n "checking for jpeglib.h header... " >&6; }
  if test x"${found_jpeg_incl}" = "xyes"; then


$as_echo "#define HAVE_JPEGLIB_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_jpeg_incl}" >&5
$as_echo "${ac_cv_path_jpeg_incl}" >&6; }
      if test x"${ac_cv_path_jpeg_incl}" != x -a x"${ac_cv_path_jpeg_incl}" != x"-I/usr/include"; then
        JPEG_CFLAGS="${ac_cv_path_jpeg_incl}"
      else
        JPEG_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_jpeg=no
ac_manual=yes

if test x"${jpeg}" = x"yes"; then

# Check whether --with-jpeg_lib was given.
if test "${with_jpeg_lib+set}" = set; then :
  withval=$with_jpeg_lib; with_jpeg_lib=${withval}
fi

  if test "${ac_cv_path_jpeg_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_jpeg_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg library in specified directory" >&5
$as_echo_n "checking for libjpeg library in specified directory... " >&6; }
    if test -f ${with_jpeg_lib}/lib$name.a -o -f ${with_jpeg_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_jpeg_lib}; pwd)`"
      ac_cv_path_jpeg_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_jpeg_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_jpeg_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg library using pkg-config" >&5
$as_echo_n "checking for libjpeg library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libjpeg && ac_cv_path_jpeg_lib="`$PKG_CONFIG --libs libjpeg`"
      $PKG_CONFIG --exists jpeg && ac_cv_path_jpeg_lib="`$PKG_CONFIG --libs jpeg`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_jpeg_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_jpeg_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_jpeg_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_jpeg_lib}" >&5
$as_echo "${ac_cv_path_jpeg_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_jpeg_lib}" = x; then
      # Extract the first word of "jpeg-config", so it can be a program name with args.
set dummy jpeg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_JPEG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $JPEG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JPEG_CONFIG="$JPEG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_JPEG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
JPEG_CONFIG=$ac_cv_path_JPEG_CONFIG
if test -n "$JPEG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_CONFIG" >&5
$as_echo "$JPEG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${JPEG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg library using jpeg-config" >&5
$as_echo_n "checking for libjpeg library using jpeg-config... " >&6; }
        ac_cv_path_jpeg_lib="`${JPEG_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_jpeg_lib}" >&5
$as_echo "${ac_cv_path_jpeg_lib}" >&6; }
      fi
      if test x"${ac_cv_path_jpeg_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_jpeg_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_jpeg_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libjpeg.a -o -f $i/libjpeg.${shlibext}; then
        if test -f "$i/libjpeg.a" -o -f "$i/libjpeg.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_jpeg_lib="-L$i -ljpeg "
          else
            ac_cv_path_jpeg_lib="-ljpeg "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_jpeg_lib="-L$i -l$name "
          else
            ac_cv_path_jpeg_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_jpeg_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_mem_init" >&5
$as_echo_n "checking for library containing jpeg_mem_init... " >&6; }
if test "${ac_cv_search_jpeg_mem_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char jpeg_mem_init ();
int
main ()
{
return jpeg_mem_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' jpeg $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_jpeg_mem_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_jpeg_mem_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_jpeg_mem_init+set}" = set; then :

else
  ac_cv_search_jpeg_mem_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_mem_init" >&5
$as_echo "$ac_cv_search_jpeg_mem_init" >&6; }
ac_res=$ac_cv_search_jpeg_mem_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_jpeg_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg library" >&5
$as_echo_n "checking for libjpeg library... " >&6; }
	if test x"${ac_cv_path_jpeg_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_jpeg_lib}" >&5
$as_echo "${ac_cv_path_jpeg_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_jpeg_lib}" != x ; then
    JPEG_LIBS="${ac_cv_path_jpeg_lib}"
    has_jpeg=yes
  else
    JPEG_LIBS=""
  fi
fi








if test x"${openbsd_os}" = x"yes"; then



    libpng=yes
    if test x = x; then
      name=libpng
    else
      name=libpng-
    fi

        if test x"${libpng}" = x"yes"; then

# Check whether --with-libpng_incl was given.
if test "${with_libpng_incl+set}" = set; then :
  withval=$with_libpng_incl; with_libpng_incl=${withval}
fi

      if test "${ac_cv_path_libpng_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_libpng_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header in specified directory" >&5
$as_echo_n "checking for png.h header in specified directory... " >&6; }
        if test -f ${with_libpng_incl}/png.h ; then
          ac_cv_path_libpng_incl="-I`(cd ${with_libpng_incl}; pwd)`"
          found_libpng_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_libpng_incl} directory doesn't contain png.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libpng_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header using pkg-config" >&5
$as_echo_n "checking for png.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibpng && ac_cv_path_libpng_incl="`$PKG_CONFIG --cflags liblibpng`"
      $PKG_CONFIG --exists libpng && ac_cv_path_libpng_incl="`$PKG_CONFIG --cflags libpng`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libpng_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libpng_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_libpng_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libpng_incl}" >&5
$as_echo "${ac_cv_path_libpng_incl}" >&6; }
        found_libpng_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libpng_incl}" = x; then
      # Extract the first word of "libpng-config", so it can be a program name with args.
set dummy libpng-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBPNG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
if test -n "$LIBPNG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
$as_echo "$LIBPNG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBPNG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header using libpng-config" >&5
$as_echo_n "checking for png.h header using libpng-config... " >&6; }
        ac_cv_path_libpng_incl="`${LIBPNG_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_libpng_incl}" = x; then
          ac_cv_path_libpng_incl="`${LIBPNG_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_libpng_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libpng_incl}" >&5
$as_echo "${ac_cv_path_libpng_incl}" >&6; }
        	found_libpng_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_libpng_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
if test "x$ac_cv_header_png_h" = x""yes; then :
  ac_cv_path_libpng_incl=""; found_libpng_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "libpng/png.h" "ac_cv_header_libpng_png_h" "$ac_includes_default"
if test "x$ac_cv_header_libpng_png_h" = x""yes; then :
  ac_cv_path_libpng_incl="-I/usr/include/libpng"; found_libpng_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/png.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/png.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_libpng_incl="-I/usr/include/$name"; found_libpng_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
if test "x$ac_cv_header_png_h" = x""yes; then :
  ac_cv_path_libpng_incl="-I/usr/include/png.h"; found_libpng_incl="yes"
else

          if test x"${ac_cv_path_libpng_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_libpng_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_libpng_incl="-I$i"
                else
                  ac_cv_path_libpng_incl=""
                fi
                break
              else
                if test -f $i/$name/png.h; then
                  found_libpng_incl="yes"
                  ac_cv_path_libpng_incl="-I$i/$name"
                  break
                else
                  if test -f $i/png.h; then
                    found_libpng_incl="yes"
                    ac_cv_path_libpng_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header" >&5
$as_echo_n "checking for png.h header... " >&6; }
  if test x"${found_libpng_incl}" = "xyes"; then


$as_echo "#define HAVE_PNG_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libpng_incl}" >&5
$as_echo "${ac_cv_path_libpng_incl}" >&6; }
      if test x"${ac_cv_path_libpng_incl}" != x -a x"${ac_cv_path_libpng_incl}" != x"-I/usr/include"; then
        LIBPNG_CFLAGS="${ac_cv_path_libpng_incl}"
      else
        LIBPNG_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_libpng=no
ac_manual=yes

if test x"${libpng}" = x"yes"; then

# Check whether --with-libpng_lib was given.
if test "${with_libpng_lib+set}" = set; then :
  withval=$with_libpng_lib; with_libpng_lib=${withval}
fi

  if test "${ac_cv_path_libpng_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_libpng_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibpng library in specified directory" >&5
$as_echo_n "checking for liblibpng library in specified directory... " >&6; }
    if test -f ${with_libpng_lib}/lib$name.a -o -f ${with_libpng_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_libpng_lib}; pwd)`"
      ac_cv_path_libpng_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_libpng_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_libpng_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibpng library using pkg-config" >&5
$as_echo_n "checking for liblibpng library using pkg-config... " >&6; }
      $PKG_CONFIG --exists liblibpng && ac_cv_path_libpng_lib="`$PKG_CONFIG --libs liblibpng`"
      $PKG_CONFIG --exists libpng && ac_cv_path_libpng_lib="`$PKG_CONFIG --libs libpng`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_libpng_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_libpng_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_libpng_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libpng_lib}" >&5
$as_echo "${ac_cv_path_libpng_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_libpng_lib}" = x; then
      # Extract the first word of "libpng-config", so it can be a program name with args.
set dummy libpng-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $LIBPNG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
if test -n "$LIBPNG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
$as_echo "$LIBPNG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${LIBPNG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibpng library using libpng-config" >&5
$as_echo_n "checking for liblibpng library using libpng-config... " >&6; }
        ac_cv_path_libpng_lib="`${LIBPNG_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libpng_lib}" >&5
$as_echo "${ac_cv_path_libpng_lib}" >&6; }
      fi
      if test x"${ac_cv_path_libpng_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_libpng_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_libpng_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/liblibpng.a -o -f $i/liblibpng.${shlibext}; then
        if test -f "$i/liblibpng.a" -o -f "$i/liblibpng.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libpng_lib="-L$i -llibpng "
          else
            ac_cv_path_libpng_lib="-llibpng "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_libpng_lib="-L$i -l$name "
          else
            ac_cv_path_libpng_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_libpng_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing png_info_init" >&5
$as_echo_n "checking for library containing png_info_init... " >&6; }
if test "${ac_cv_search_png_info_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char png_info_init ();
int
main ()
{
return png_info_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' libpng $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_png_info_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_png_info_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_png_info_init+set}" = set; then :

else
  ac_cv_search_png_info_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_png_info_init" >&5
$as_echo "$ac_cv_search_png_info_init" >&6; }
ac_res=$ac_cv_search_png_info_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_libpng_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblibpng library" >&5
$as_echo_n "checking for liblibpng library... " >&6; }
	if test x"${ac_cv_path_libpng_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_libpng_lib}" >&5
$as_echo "${ac_cv_path_libpng_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_libpng_lib}" != x ; then
    LIBPNG_LIBS="${ac_cv_path_libpng_lib}"
    has_libpng=yes
  else
    LIBPNG_LIBS=""
  fi
fi








else



    png=yes
    if test x = x; then
      name=png
    else
      name=png-
    fi

        if test x"${png}" = x"yes"; then

# Check whether --with-png_incl was given.
if test "${with_png_incl+set}" = set; then :
  withval=$with_png_incl; with_png_incl=${withval}
fi

      if test "${ac_cv_path_png_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_png_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header in specified directory" >&5
$as_echo_n "checking for png.h header in specified directory... " >&6; }
        if test -f ${with_png_incl}/png.h ; then
          ac_cv_path_png_incl="-I`(cd ${with_png_incl}; pwd)`"
          found_png_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_png_incl} directory doesn't contain png.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_png_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header using pkg-config" >&5
$as_echo_n "checking for png.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libpng && ac_cv_path_png_incl="`$PKG_CONFIG --cflags libpng`"
      $PKG_CONFIG --exists png && ac_cv_path_png_incl="`$PKG_CONFIG --cflags png`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_png_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_png_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_png_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_png_incl}" >&5
$as_echo "${ac_cv_path_png_incl}" >&6; }
        found_png_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_png_incl}" = x; then
      # Extract the first word of "png-config", so it can be a program name with args.
set dummy png-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PNG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PNG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PNG_CONFIG="$PNG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PNG_CONFIG=$ac_cv_path_PNG_CONFIG
if test -n "$PNG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNG_CONFIG" >&5
$as_echo "$PNG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${PNG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header using png-config" >&5
$as_echo_n "checking for png.h header using png-config... " >&6; }
        ac_cv_path_png_incl="`${PNG_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_png_incl}" = x; then
          ac_cv_path_png_incl="`${PNG_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_png_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_png_incl}" >&5
$as_echo "${ac_cv_path_png_incl}" >&6; }
        	found_png_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_png_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
if test "x$ac_cv_header_png_h" = x""yes; then :
  ac_cv_path_png_incl=""; found_png_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "png/png.h" "ac_cv_header_png_png_h" "$ac_includes_default"
if test "x$ac_cv_header_png_png_h" = x""yes; then :
  ac_cv_path_png_incl="-I/usr/include/png"; found_png_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/png.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/png.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_png_incl="-I/usr/include/$name"; found_png_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
if test "x$ac_cv_header_png_h" = x""yes; then :
  ac_cv_path_png_incl="-I/usr/include/png.h"; found_png_incl="yes"
else

          if test x"${ac_cv_path_png_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_png_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_png_incl="-I$i"
                else
                  ac_cv_path_png_incl=""
                fi
                break
              else
                if test -f $i/$name/png.h; then
                  found_png_incl="yes"
                  ac_cv_path_png_incl="-I$i/$name"
                  break
                else
                  if test -f $i/png.h; then
                    found_png_incl="yes"
                    ac_cv_path_png_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h header" >&5
$as_echo_n "checking for png.h header... " >&6; }
  if test x"${found_png_incl}" = "xyes"; then


$as_echo "#define HAVE_PNG_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_png_incl}" >&5
$as_echo "${ac_cv_path_png_incl}" >&6; }
      if test x"${ac_cv_path_png_incl}" != x -a x"${ac_cv_path_png_incl}" != x"-I/usr/include"; then
        PNG_CFLAGS="${ac_cv_path_png_incl}"
      else
        PNG_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_png=no
ac_manual=yes

if test x"${png}" = x"yes"; then

# Check whether --with-png_lib was given.
if test "${with_png_lib+set}" = set; then :
  withval=$with_png_lib; with_png_lib=${withval}
fi

  if test "${ac_cv_path_png_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_png_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng library in specified directory" >&5
$as_echo_n "checking for libpng library in specified directory... " >&6; }
    if test -f ${with_png_lib}/lib$name.a -o -f ${with_png_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_png_lib}; pwd)`"
      ac_cv_path_png_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_png_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_png_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng library using pkg-config" >&5
$as_echo_n "checking for libpng library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libpng && ac_cv_path_png_lib="`$PKG_CONFIG --libs libpng`"
      $PKG_CONFIG --exists png && ac_cv_path_png_lib="`$PKG_CONFIG --libs png`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_png_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_png_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_png_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_png_lib}" >&5
$as_echo "${ac_cv_path_png_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_png_lib}" = x; then
      # Extract the first word of "png-config", so it can be a program name with args.
set dummy png-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PNG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PNG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PNG_CONFIG="$PNG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PNG_CONFIG=$ac_cv_path_PNG_CONFIG
if test -n "$PNG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNG_CONFIG" >&5
$as_echo "$PNG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${PNG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng library using png-config" >&5
$as_echo_n "checking for libpng library using png-config... " >&6; }
        ac_cv_path_png_lib="`${PNG_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_png_lib}" >&5
$as_echo "${ac_cv_path_png_lib}" >&6; }
      fi
      if test x"${ac_cv_path_png_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_png_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_png_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libpng.a -o -f $i/libpng.${shlibext}; then
        if test -f "$i/libpng.a" -o -f "$i/libpng.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_png_lib="-L$i -lpng "
          else
            ac_cv_path_png_lib="-lpng "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_png_lib="-L$i -l$name "
          else
            ac_cv_path_png_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_png_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing png_info_init" >&5
$as_echo_n "checking for library containing png_info_init... " >&6; }
if test "${ac_cv_search_png_info_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char png_info_init ();
int
main ()
{
return png_info_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' png $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_png_info_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_png_info_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_png_info_init+set}" = set; then :

else
  ac_cv_search_png_info_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_png_info_init" >&5
$as_echo "$ac_cv_search_png_info_init" >&6; }
ac_res=$ac_cv_search_png_info_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_png_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng library" >&5
$as_echo_n "checking for libpng library... " >&6; }
	if test x"${ac_cv_path_png_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_png_lib}" >&5
$as_echo "${ac_cv_path_png_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_png_lib}" != x ; then
    PNG_LIBS="${ac_cv_path_png_lib}"
    has_png=yes
  else
    PNG_LIBS=""
  fi
fi








fi



    gif=yes
    if test x = x; then
      name=gif
    else
      name=gif-
    fi

        if test x"${gif}" = x"yes"; then

# Check whether --with-gif_incl was given.
if test "${with_gif_incl+set}" = set; then :
  withval=$with_gif_incl; with_gif_incl=${withval}
fi

      if test "${ac_cv_path_gif_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_gif_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header in specified directory" >&5
$as_echo_n "checking for gif_lib.h header in specified directory... " >&6; }
        if test -f ${with_gif_incl}/gif_lib.h ; then
          ac_cv_path_gif_incl="-I`(cd ${with_gif_incl}; pwd)`"
          found_gif_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_gif_incl} directory doesn't contain gif_lib.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gif_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header using pkg-config" >&5
$as_echo_n "checking for gif_lib.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgif && ac_cv_path_gif_incl="`$PKG_CONFIG --cflags libgif`"
      $PKG_CONFIG --exists gif && ac_cv_path_gif_incl="`$PKG_CONFIG --cflags gif`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gif_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gif_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_gif_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gif_incl}" >&5
$as_echo "${ac_cv_path_gif_incl}" >&6; }
        found_gif_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gif_incl}" = x; then
      # Extract the first word of "gif-config", so it can be a program name with args.
set dummy gif-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GIF_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GIF_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GIF_CONFIG="$GIF_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GIF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GIF_CONFIG=$ac_cv_path_GIF_CONFIG
if test -n "$GIF_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIF_CONFIG" >&5
$as_echo "$GIF_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GIF_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header using gif-config" >&5
$as_echo_n "checking for gif_lib.h header using gif-config... " >&6; }
        ac_cv_path_gif_incl="`${GIF_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_gif_incl}" = x; then
          ac_cv_path_gif_incl="`${GIF_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_gif_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gif_incl}" >&5
$as_echo "${ac_cv_path_gif_incl}" >&6; }
        	found_gif_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_gif_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
  ac_cv_path_gif_incl=""; found_gif_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "gif/gif_lib.h" "ac_cv_header_gif_gif_lib_h" "$ac_includes_default"
if test "x$ac_cv_header_gif_gif_lib_h" = x""yes; then :
  ac_cv_path_gif_incl="-I/usr/include/gif"; found_gif_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/gif_lib.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/gif_lib.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_gif_incl="-I/usr/include/$name"; found_gif_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
  ac_cv_path_gif_incl="-I/usr/include/gif_lib.h"; found_gif_incl="yes"
else

          if test x"${ac_cv_path_gif_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_gif_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_gif_incl="-I$i"
                else
                  ac_cv_path_gif_incl=""
                fi
                break
              else
                if test -f $i/$name/gif_lib.h; then
                  found_gif_incl="yes"
                  ac_cv_path_gif_incl="-I$i/$name"
                  break
                else
                  if test -f $i/gif_lib.h; then
                    found_gif_incl="yes"
                    ac_cv_path_gif_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header" >&5
$as_echo_n "checking for gif_lib.h header... " >&6; }
  if test x"${found_gif_incl}" = "xyes"; then


$as_echo "#define HAVE_GIF_LIB_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gif_incl}" >&5
$as_echo "${ac_cv_path_gif_incl}" >&6; }
      if test x"${ac_cv_path_gif_incl}" != x -a x"${ac_cv_path_gif_incl}" != x"-I/usr/include"; then
        GIF_CFLAGS="${ac_cv_path_gif_incl}"
      else
        GIF_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_gif=no
ac_manual=yes

if test x"${gif}" = x"yes"; then

# Check whether --with-gif_lib was given.
if test "${with_gif_lib+set}" = set; then :
  withval=$with_gif_lib; with_gif_lib=${withval}
fi

  if test "${ac_cv_path_gif_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_gif_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgif library in specified directory" >&5
$as_echo_n "checking for libgif library in specified directory... " >&6; }
    if test -f ${with_gif_lib}/lib$name.a -o -f ${with_gif_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_gif_lib}; pwd)`"
      ac_cv_path_gif_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_gif_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gif_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgif library using pkg-config" >&5
$as_echo_n "checking for libgif library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgif && ac_cv_path_gif_lib="`$PKG_CONFIG --libs libgif`"
      $PKG_CONFIG --exists gif && ac_cv_path_gif_lib="`$PKG_CONFIG --libs gif`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gif_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gif_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_gif_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gif_lib}" >&5
$as_echo "${ac_cv_path_gif_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gif_lib}" = x; then
      # Extract the first word of "gif-config", so it can be a program name with args.
set dummy gif-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GIF_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GIF_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GIF_CONFIG="$GIF_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GIF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GIF_CONFIG=$ac_cv_path_GIF_CONFIG
if test -n "$GIF_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIF_CONFIG" >&5
$as_echo "$GIF_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GIF_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgif library using gif-config" >&5
$as_echo_n "checking for libgif library using gif-config... " >&6; }
        ac_cv_path_gif_lib="`${GIF_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gif_lib}" >&5
$as_echo "${ac_cv_path_gif_lib}" >&6; }
      fi
      if test x"${ac_cv_path_gif_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_gif_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_gif_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libgif.a -o -f $i/libgif.${shlibext}; then
        if test -f "$i/libgif.a" -o -f "$i/libgif.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gif_lib="-L$i -lgif "
          else
            ac_cv_path_gif_lib="-lgif "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gif_lib="-L$i -l$name "
          else
            ac_cv_path_gif_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_gif_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DGifOpen" >&5
$as_echo_n "checking for library containing DGifOpen... " >&6; }
if test "${ac_cv_search_DGifOpen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DGifOpen ();
int
main ()
{
return DGifOpen ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gif $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DGifOpen=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_DGifOpen+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_DGifOpen+set}" = set; then :

else
  ac_cv_search_DGifOpen=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DGifOpen" >&5
$as_echo "$ac_cv_search_DGifOpen" >&6; }
ac_res=$ac_cv_search_DGifOpen
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_gif_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgif library" >&5
$as_echo_n "checking for libgif library... " >&6; }
	if test x"${ac_cv_path_gif_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gif_lib}" >&5
$as_echo "${ac_cv_path_gif_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_gif_lib}" != x ; then
    GIF_LIBS="${ac_cv_path_gif_lib}"
    has_gif=yes
  else
    GIF_LIBS=""
  fi
fi








if test x"${GIF_LIBS}" = x ; then



    ungif=yes
    if test x = x; then
      name=ungif
    else
      name=ungif-
    fi

        if test x"${ungif}" = x"yes"; then

# Check whether --with-ungif_incl was given.
if test "${with_ungif_incl+set}" = set; then :
  withval=$with_ungif_incl; with_ungif_incl=${withval}
fi

      if test "${ac_cv_path_ungif_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_ungif_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header in specified directory" >&5
$as_echo_n "checking for gif_lib.h header in specified directory... " >&6; }
        if test -f ${with_ungif_incl}/gif_lib.h ; then
          ac_cv_path_ungif_incl="-I`(cd ${with_ungif_incl}; pwd)`"
          found_ungif_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_ungif_incl} directory doesn't contain gif_lib.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ungif_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header using pkg-config" >&5
$as_echo_n "checking for gif_lib.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libungif && ac_cv_path_ungif_incl="`$PKG_CONFIG --cflags libungif`"
      $PKG_CONFIG --exists ungif && ac_cv_path_ungif_incl="`$PKG_CONFIG --cflags ungif`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ungif_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ungif_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_ungif_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ungif_incl}" >&5
$as_echo "${ac_cv_path_ungif_incl}" >&6; }
        found_ungif_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ungif_incl}" = x; then
      # Extract the first word of "ungif-config", so it can be a program name with args.
set dummy ungif-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_UNGIF_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $UNGIF_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_UNGIF_CONFIG="$UNGIF_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_UNGIF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
UNGIF_CONFIG=$ac_cv_path_UNGIF_CONFIG
if test -n "$UNGIF_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNGIF_CONFIG" >&5
$as_echo "$UNGIF_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${UNGIF_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header using ungif-config" >&5
$as_echo_n "checking for gif_lib.h header using ungif-config... " >&6; }
        ac_cv_path_ungif_incl="`${UNGIF_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_ungif_incl}" = x; then
          ac_cv_path_ungif_incl="`${UNGIF_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_ungif_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ungif_incl}" >&5
$as_echo "${ac_cv_path_ungif_incl}" >&6; }
        	found_ungif_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_ungif_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
  ac_cv_path_ungif_incl=""; found_ungif_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "ungif/gif_lib.h" "ac_cv_header_ungif_gif_lib_h" "$ac_includes_default"
if test "x$ac_cv_header_ungif_gif_lib_h" = x""yes; then :
  ac_cv_path_ungif_incl="-I/usr/include/ungif"; found_ungif_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/gif_lib.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/gif_lib.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_ungif_incl="-I/usr/include/$name"; found_ungif_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
  ac_cv_path_ungif_incl="-I/usr/include/gif_lib.h"; found_ungif_incl="yes"
else

          if test x"${ac_cv_path_ungif_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_ungif_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_ungif_incl="-I$i"
                else
                  ac_cv_path_ungif_incl=""
                fi
                break
              else
                if test -f $i/$name/gif_lib.h; then
                  found_ungif_incl="yes"
                  ac_cv_path_ungif_incl="-I$i/$name"
                  break
                else
                  if test -f $i/gif_lib.h; then
                    found_ungif_incl="yes"
                    ac_cv_path_ungif_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif_lib.h header" >&5
$as_echo_n "checking for gif_lib.h header... " >&6; }
  if test x"${found_ungif_incl}" = "xyes"; then


$as_echo "#define HAVE_GIF_LIB_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ungif_incl}" >&5
$as_echo "${ac_cv_path_ungif_incl}" >&6; }
      if test x"${ac_cv_path_ungif_incl}" != x -a x"${ac_cv_path_ungif_incl}" != x"-I/usr/include"; then
        UNGIF_CFLAGS="${ac_cv_path_ungif_incl}"
      else
        UNGIF_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_ungif=no
ac_manual=yes

if test x"${ungif}" = x"yes"; then

# Check whether --with-ungif_lib was given.
if test "${with_ungif_lib+set}" = set; then :
  withval=$with_ungif_lib; with_ungif_lib=${withval}
fi

  if test "${ac_cv_path_ungif_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_ungif_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libungif library in specified directory" >&5
$as_echo_n "checking for libungif library in specified directory... " >&6; }
    if test -f ${with_ungif_lib}/lib$name.a -o -f ${with_ungif_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_ungif_lib}; pwd)`"
      ac_cv_path_ungif_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_ungif_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ungif_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libungif library using pkg-config" >&5
$as_echo_n "checking for libungif library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libungif && ac_cv_path_ungif_lib="`$PKG_CONFIG --libs libungif`"
      $PKG_CONFIG --exists ungif && ac_cv_path_ungif_lib="`$PKG_CONFIG --libs ungif`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_ungif_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_ungif_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_ungif_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ungif_lib}" >&5
$as_echo "${ac_cv_path_ungif_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_ungif_lib}" = x; then
      # Extract the first word of "ungif-config", so it can be a program name with args.
set dummy ungif-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_UNGIF_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $UNGIF_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_UNGIF_CONFIG="$UNGIF_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_UNGIF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
UNGIF_CONFIG=$ac_cv_path_UNGIF_CONFIG
if test -n "$UNGIF_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNGIF_CONFIG" >&5
$as_echo "$UNGIF_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${UNGIF_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libungif library using ungif-config" >&5
$as_echo_n "checking for libungif library using ungif-config... " >&6; }
        ac_cv_path_ungif_lib="`${UNGIF_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ungif_lib}" >&5
$as_echo "${ac_cv_path_ungif_lib}" >&6; }
      fi
      if test x"${ac_cv_path_ungif_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_ungif_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_ungif_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libungif.a -o -f $i/libungif.${shlibext}; then
        if test -f "$i/libungif.a" -o -f "$i/libungif.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ungif_lib="-L$i -lungif "
          else
            ac_cv_path_ungif_lib="-lungif "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_ungif_lib="-L$i -l$name "
          else
            ac_cv_path_ungif_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_ungif_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DGifOpen" >&5
$as_echo_n "checking for library containing DGifOpen... " >&6; }
if test "${ac_cv_search_DGifOpen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DGifOpen ();
int
main ()
{
return DGifOpen ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ungif $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DGifOpen=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_DGifOpen+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_DGifOpen+set}" = set; then :

else
  ac_cv_search_DGifOpen=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DGifOpen" >&5
$as_echo "$ac_cv_search_DGifOpen" >&6; }
ac_res=$ac_cv_search_DGifOpen
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_ungif_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libungif library" >&5
$as_echo_n "checking for libungif library... " >&6; }
	if test x"${ac_cv_path_ungif_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ungif_lib}" >&5
$as_echo "${ac_cv_path_ungif_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_ungif_lib}" != x ; then
    UNGIF_LIBS="${ac_cv_path_ungif_lib}"
    has_ungif=yes
  else
    UNGIF_LIBS=""
  fi
fi








 GIF_LIBS=${UNGIF_LIBS}
 GIF_CFLAGS=${UNGIF_CFLAGS}
fi
if test x"$testsuite" = x"yes"; then


    dejagnu=yes
    if test x = x; then
      name=dejagnu
    else
      name=dejagnu-
    fi

        if test x"${dejagnu}" = x"yes"; then

# Check whether --with-dejagnu_incl was given.
if test "${with_dejagnu_incl+set}" = set; then :
  withval=$with_dejagnu_incl; with_dejagnu_incl=${withval}
fi

      if test "${ac_cv_path_dejagnu_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_dejagnu_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dejagnu.h header in specified directory" >&5
$as_echo_n "checking for dejagnu.h header in specified directory... " >&6; }
        if test -f ${with_dejagnu_incl}/dejagnu.h ; then
          ac_cv_path_dejagnu_incl="-I`(cd ${with_dejagnu_incl}; pwd)`"
          found_dejagnu_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_dejagnu_incl} directory doesn't contain dejagnu.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_dejagnu_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dejagnu.h header using pkg-config" >&5
$as_echo_n "checking for dejagnu.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libdejagnu && ac_cv_path_dejagnu_incl="`$PKG_CONFIG --cflags libdejagnu`"
      $PKG_CONFIG --exists dejagnu && ac_cv_path_dejagnu_incl="`$PKG_CONFIG --cflags dejagnu`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_dejagnu_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_dejagnu_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_dejagnu_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_dejagnu_incl}" >&5
$as_echo "${ac_cv_path_dejagnu_incl}" >&6; }
        found_dejagnu_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_dejagnu_incl}" = x; then
      # Extract the first word of "dejagnu-config", so it can be a program name with args.
set dummy dejagnu-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DEJAGNU_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DEJAGNU_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DEJAGNU_CONFIG="$DEJAGNU_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DEJAGNU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DEJAGNU_CONFIG=$ac_cv_path_DEJAGNU_CONFIG
if test -n "$DEJAGNU_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEJAGNU_CONFIG" >&5
$as_echo "$DEJAGNU_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${DEJAGNU_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dejagnu.h header using dejagnu-config" >&5
$as_echo_n "checking for dejagnu.h header using dejagnu-config... " >&6; }
        ac_cv_path_dejagnu_incl="`${DEJAGNU_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_dejagnu_incl}" = x; then
          ac_cv_path_dejagnu_incl="`${DEJAGNU_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_dejagnu_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_dejagnu_incl}" >&5
$as_echo "${ac_cv_path_dejagnu_incl}" >&6; }
        	found_dejagnu_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_dejagnu_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "dejagnu.h" "ac_cv_header_dejagnu_h" "$ac_includes_default"
if test "x$ac_cv_header_dejagnu_h" = x""yes; then :
  ac_cv_path_dejagnu_incl=""; found_dejagnu_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "dejagnu/dejagnu.h" "ac_cv_header_dejagnu_dejagnu_h" "$ac_includes_default"
if test "x$ac_cv_header_dejagnu_dejagnu_h" = x""yes; then :
  ac_cv_path_dejagnu_incl="-I/usr/include/dejagnu"; found_dejagnu_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/dejagnu.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/dejagnu.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_dejagnu_incl="-I/usr/include/$name"; found_dejagnu_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "dejagnu.h" "ac_cv_header_dejagnu_h" "$ac_includes_default"
if test "x$ac_cv_header_dejagnu_h" = x""yes; then :
  ac_cv_path_dejagnu_incl="-I/usr/include/dejagnu.h"; found_dejagnu_incl="yes"
else

          if test x"${ac_cv_path_dejagnu_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_dejagnu_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_dejagnu_incl="-I$i"
                else
                  ac_cv_path_dejagnu_incl=""
                fi
                break
              else
                if test -f $i/$name/dejagnu.h; then
                  found_dejagnu_incl="yes"
                  ac_cv_path_dejagnu_incl="-I$i/$name"
                  break
                else
                  if test -f $i/dejagnu.h; then
                    found_dejagnu_incl="yes"
                    ac_cv_path_dejagnu_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dejagnu.h header" >&5
$as_echo_n "checking for dejagnu.h header... " >&6; }
  if test x"${found_dejagnu_incl}" = "xyes"; then


$as_echo "#define HAVE_DEJAGNU_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_dejagnu_incl}" >&5
$as_echo "${ac_cv_path_dejagnu_incl}" >&6; }
      if test x"${ac_cv_path_dejagnu_incl}" != x -a x"${ac_cv_path_dejagnu_incl}" != x"-I/usr/include"; then
        DEJAGNU_CFLAGS="${ac_cv_path_dejagnu_incl}"
      else
        DEJAGNU_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi







fi




    speex=yes
    if test x = x; then
      name=speex
    else
      name=speex-
    fi

        if test x"${speex}" = x"yes"; then

# Check whether --with-speex_incl was given.
if test "${with_speex_incl+set}" = set; then :
  withval=$with_speex_incl; with_speex_incl=${withval}
fi

      if test "${ac_cv_path_speex_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_speex_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex.h header in specified directory" >&5
$as_echo_n "checking for speex.h header in specified directory... " >&6; }
        if test -f ${with_speex_incl}/speex.h ; then
          ac_cv_path_speex_incl="-I`(cd ${with_speex_incl}; pwd)`"
          found_speex_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_speex_incl} directory doesn't contain speex.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_speex_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex.h header using pkg-config" >&5
$as_echo_n "checking for speex.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libspeex && ac_cv_path_speex_incl="`$PKG_CONFIG --cflags libspeex`"
      $PKG_CONFIG --exists speex && ac_cv_path_speex_incl="`$PKG_CONFIG --cflags speex`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_speex_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_speex_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_speex_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speex_incl}" >&5
$as_echo "${ac_cv_path_speex_incl}" >&6; }
        found_speex_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_speex_incl}" = x; then
      # Extract the first word of "speex-config", so it can be a program name with args.
set dummy speex-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SPEEX_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SPEEX_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SPEEX_CONFIG="$SPEEX_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SPEEX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SPEEX_CONFIG=$ac_cv_path_SPEEX_CONFIG
if test -n "$SPEEX_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPEEX_CONFIG" >&5
$as_echo "$SPEEX_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SPEEX_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex.h header using speex-config" >&5
$as_echo_n "checking for speex.h header using speex-config... " >&6; }
        ac_cv_path_speex_incl="`${SPEEX_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_speex_incl}" = x; then
          ac_cv_path_speex_incl="`${SPEEX_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_speex_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speex_incl}" >&5
$as_echo "${ac_cv_path_speex_incl}" >&6; }
        	found_speex_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_speex_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "speex.h" "ac_cv_header_speex_h" "$ac_includes_default"
if test "x$ac_cv_header_speex_h" = x""yes; then :
  ac_cv_path_speex_incl=""; found_speex_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
  ac_cv_path_speex_incl="-I/usr/include/speex"; found_speex_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/speex.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/speex.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_speex_incl="-I/usr/include/$name"; found_speex_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "speex.h" "ac_cv_header_speex_h" "$ac_includes_default"
if test "x$ac_cv_header_speex_h" = x""yes; then :
  ac_cv_path_speex_incl="-I/usr/include/speex.h"; found_speex_incl="yes"
else

          if test x"${ac_cv_path_speex_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_speex_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_speex_incl="-I$i"
                else
                  ac_cv_path_speex_incl=""
                fi
                break
              else
                if test -f $i/$name/speex.h; then
                  found_speex_incl="yes"
                  ac_cv_path_speex_incl="-I$i/$name"
                  break
                else
                  if test -f $i/speex.h; then
                    found_speex_incl="yes"
                    ac_cv_path_speex_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex.h header" >&5
$as_echo_n "checking for speex.h header... " >&6; }
  if test x"${found_speex_incl}" = "xyes"; then


$as_echo "#define HAVE_SPEEX_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speex_incl}" >&5
$as_echo "${ac_cv_path_speex_incl}" >&6; }
      if test x"${ac_cv_path_speex_incl}" != x -a x"${ac_cv_path_speex_incl}" != x"-I/usr/include"; then
        SPEEX_CFLAGS="${ac_cv_path_speex_incl}"
      else
        SPEEX_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_speex=no
ac_manual=yes

if test x"${speex}" = x"yes"; then

# Check whether --with-speex_lib was given.
if test "${with_speex_lib+set}" = set; then :
  withval=$with_speex_lib; with_speex_lib=${withval}
fi

  if test "${ac_cv_path_speex_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_speex_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex library in specified directory" >&5
$as_echo_n "checking for libspeex library in specified directory... " >&6; }
    if test -f ${with_speex_lib}/lib$name.a -o -f ${with_speex_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_speex_lib}; pwd)`"
      ac_cv_path_speex_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_speex_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_speex_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex library using pkg-config" >&5
$as_echo_n "checking for libspeex library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libspeex && ac_cv_path_speex_lib="`$PKG_CONFIG --libs libspeex`"
      $PKG_CONFIG --exists speex && ac_cv_path_speex_lib="`$PKG_CONFIG --libs speex`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_speex_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_speex_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_speex_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speex_lib}" >&5
$as_echo "${ac_cv_path_speex_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_speex_lib}" = x; then
      # Extract the first word of "speex-config", so it can be a program name with args.
set dummy speex-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SPEEX_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SPEEX_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SPEEX_CONFIG="$SPEEX_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SPEEX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SPEEX_CONFIG=$ac_cv_path_SPEEX_CONFIG
if test -n "$SPEEX_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPEEX_CONFIG" >&5
$as_echo "$SPEEX_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SPEEX_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex library using speex-config" >&5
$as_echo_n "checking for libspeex library using speex-config... " >&6; }
        ac_cv_path_speex_lib="`${SPEEX_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speex_lib}" >&5
$as_echo "${ac_cv_path_speex_lib}" >&6; }
      fi
      if test x"${ac_cv_path_speex_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_speex_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_speex_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libspeex.a -o -f $i/libspeex.${shlibext}; then
        if test -f "$i/libspeex.a" -o -f "$i/libspeex.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_speex_lib="-L$i -lspeex "
          else
            ac_cv_path_speex_lib="-lspeex "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_speex_lib="-L$i -l$name "
          else
            ac_cv_path_speex_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_speex_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing speex_decode_int" >&5
$as_echo_n "checking for library containing speex_decode_int... " >&6; }
if test "${ac_cv_search_speex_decode_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char speex_decode_int ();
int
main ()
{
return speex_decode_int ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' speex $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_speex_decode_int=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_speex_decode_int+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_speex_decode_int+set}" = set; then :

else
  ac_cv_search_speex_decode_int=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_speex_decode_int" >&5
$as_echo "$ac_cv_search_speex_decode_int" >&6; }
ac_res=$ac_cv_search_speex_decode_int
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_speex_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex library" >&5
$as_echo_n "checking for libspeex library... " >&6; }
	if test x"${ac_cv_path_speex_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speex_lib}" >&5
$as_echo "${ac_cv_path_speex_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_speex_lib}" != x ; then
    SPEEX_LIBS="${ac_cv_path_speex_lib}"
    has_speex=yes
  else
    SPEEX_LIBS=""
  fi
fi








 if  test x$has_speex = xyes ; then
  HAVE_SPEEX_TRUE=
  HAVE_SPEEX_FALSE='#'
else
  HAVE_SPEEX_TRUE='#'
  HAVE_SPEEX_FALSE=
fi

if test x$has_speex = xyes ; then

$as_echo "#define DECODING_SPEEX 1" >>confdefs.h

fi




    speexdsp=yes
    if test x = x; then
      name=speexdsp
    else
      name=speexdsp-
    fi

        if test x"${speexdsp}" = x"yes"; then

# Check whether --with-speexdsp_incl was given.
if test "${with_speexdsp_incl+set}" = set; then :
  withval=$with_speexdsp_incl; with_speexdsp_incl=${withval}
fi

      if test "${ac_cv_path_speexdsp_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_speexdsp_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_resampler.h header in specified directory" >&5
$as_echo_n "checking for speex_resampler.h header in specified directory... " >&6; }
        if test -f ${with_speexdsp_incl}/speex_resampler.h ; then
          ac_cv_path_speexdsp_incl="-I`(cd ${with_speexdsp_incl}; pwd)`"
          found_speexdsp_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_speexdsp_incl} directory doesn't contain speex_resampler.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_speexdsp_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_resampler.h header using pkg-config" >&5
$as_echo_n "checking for speex_resampler.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libspeexdsp && ac_cv_path_speexdsp_incl="`$PKG_CONFIG --cflags libspeexdsp`"
      $PKG_CONFIG --exists speexdsp && ac_cv_path_speexdsp_incl="`$PKG_CONFIG --cflags speexdsp`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_speexdsp_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_speexdsp_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_speexdsp_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speexdsp_incl}" >&5
$as_echo "${ac_cv_path_speexdsp_incl}" >&6; }
        found_speexdsp_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_speexdsp_incl}" = x; then
      # Extract the first word of "speexdsp-config", so it can be a program name with args.
set dummy speexdsp-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SPEEXDSP_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SPEEXDSP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SPEEXDSP_CONFIG="$SPEEXDSP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SPEEXDSP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SPEEXDSP_CONFIG=$ac_cv_path_SPEEXDSP_CONFIG
if test -n "$SPEEXDSP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPEEXDSP_CONFIG" >&5
$as_echo "$SPEEXDSP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SPEEXDSP_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_resampler.h header using speexdsp-config" >&5
$as_echo_n "checking for speex_resampler.h header using speexdsp-config... " >&6; }
        ac_cv_path_speexdsp_incl="`${SPEEXDSP_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_speexdsp_incl}" = x; then
          ac_cv_path_speexdsp_incl="`${SPEEXDSP_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_speexdsp_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speexdsp_incl}" >&5
$as_echo "${ac_cv_path_speexdsp_incl}" >&6; }
        	found_speexdsp_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_speexdsp_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "speex_resampler.h" "ac_cv_header_speex_resampler_h" "$ac_includes_default"
if test "x$ac_cv_header_speex_resampler_h" = x""yes; then :
  ac_cv_path_speexdsp_incl=""; found_speexdsp_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "speexdsp/speex_resampler.h" "ac_cv_header_speexdsp_speex_resampler_h" "$ac_includes_default"
if test "x$ac_cv_header_speexdsp_speex_resampler_h" = x""yes; then :
  ac_cv_path_speexdsp_incl="-I/usr/include/speexdsp"; found_speexdsp_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/speex_resampler.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/speex_resampler.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_speexdsp_incl="-I/usr/include/$name"; found_speexdsp_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "speex_resampler.h" "ac_cv_header_speex_resampler_h" "$ac_includes_default"
if test "x$ac_cv_header_speex_resampler_h" = x""yes; then :
  ac_cv_path_speexdsp_incl="-I/usr/include/speex_resampler.h"; found_speexdsp_incl="yes"
else

          if test x"${ac_cv_path_speexdsp_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_speexdsp_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_speexdsp_incl="-I$i"
                else
                  ac_cv_path_speexdsp_incl=""
                fi
                break
              else
                if test -f $i/$name/speex_resampler.h; then
                  found_speexdsp_incl="yes"
                  ac_cv_path_speexdsp_incl="-I$i/$name"
                  break
                else
                  if test -f $i/speex_resampler.h; then
                    found_speexdsp_incl="yes"
                    ac_cv_path_speexdsp_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_resampler.h header" >&5
$as_echo_n "checking for speex_resampler.h header... " >&6; }
  if test x"${found_speexdsp_incl}" = "xyes"; then


$as_echo "#define HAVE_SPEEX_RESAMPLER_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speexdsp_incl}" >&5
$as_echo "${ac_cv_path_speexdsp_incl}" >&6; }
      if test x"${ac_cv_path_speexdsp_incl}" != x -a x"${ac_cv_path_speexdsp_incl}" != x"-I/usr/include"; then
        SPEEXDSP_CFLAGS="${ac_cv_path_speexdsp_incl}"
      else
        SPEEXDSP_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_speexdsp=no
ac_manual=yes

if test x"${speexdsp}" = x"yes"; then

# Check whether --with-speexdsp_lib was given.
if test "${with_speexdsp_lib+set}" = set; then :
  withval=$with_speexdsp_lib; with_speexdsp_lib=${withval}
fi

  if test "${ac_cv_path_speexdsp_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_speexdsp_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeexdsp library in specified directory" >&5
$as_echo_n "checking for libspeexdsp library in specified directory... " >&6; }
    if test -f ${with_speexdsp_lib}/lib$name.a -o -f ${with_speexdsp_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_speexdsp_lib}; pwd)`"
      ac_cv_path_speexdsp_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_speexdsp_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_speexdsp_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeexdsp library using pkg-config" >&5
$as_echo_n "checking for libspeexdsp library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libspeexdsp && ac_cv_path_speexdsp_lib="`$PKG_CONFIG --libs libspeexdsp`"
      $PKG_CONFIG --exists speexdsp && ac_cv_path_speexdsp_lib="`$PKG_CONFIG --libs speexdsp`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_speexdsp_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_speexdsp_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_speexdsp_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speexdsp_lib}" >&5
$as_echo "${ac_cv_path_speexdsp_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_speexdsp_lib}" = x; then
      # Extract the first word of "speexdsp-config", so it can be a program name with args.
set dummy speexdsp-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SPEEXDSP_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SPEEXDSP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SPEEXDSP_CONFIG="$SPEEXDSP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SPEEXDSP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SPEEXDSP_CONFIG=$ac_cv_path_SPEEXDSP_CONFIG
if test -n "$SPEEXDSP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPEEXDSP_CONFIG" >&5
$as_echo "$SPEEXDSP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${SPEEXDSP_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeexdsp library using speexdsp-config" >&5
$as_echo_n "checking for libspeexdsp library using speexdsp-config... " >&6; }
        ac_cv_path_speexdsp_lib="`${SPEEXDSP_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speexdsp_lib}" >&5
$as_echo "${ac_cv_path_speexdsp_lib}" >&6; }
      fi
      if test x"${ac_cv_path_speexdsp_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_speexdsp_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_speexdsp_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libspeexdsp.a -o -f $i/libspeexdsp.${shlibext}; then
        if test -f "$i/libspeexdsp.a" -o -f "$i/libspeexdsp.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_speexdsp_lib="-L$i -lspeexdsp "
          else
            ac_cv_path_speexdsp_lib="-lspeexdsp "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_speexdsp_lib="-L$i -l$name "
          else
            ac_cv_path_speexdsp_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_speexdsp_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing speex_resampler_process_int" >&5
$as_echo_n "checking for library containing speex_resampler_process_int... " >&6; }
if test "${ac_cv_search_speex_resampler_process_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char speex_resampler_process_int ();
int
main ()
{
return speex_resampler_process_int ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' speexdsp $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_speex_resampler_process_int=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_speex_resampler_process_int+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_speex_resampler_process_int+set}" = set; then :

else
  ac_cv_search_speex_resampler_process_int=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_speex_resampler_process_int" >&5
$as_echo "$ac_cv_search_speex_resampler_process_int" >&6; }
ac_res=$ac_cv_search_speex_resampler_process_int
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_speexdsp_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeexdsp library" >&5
$as_echo_n "checking for libspeexdsp library... " >&6; }
	if test x"${ac_cv_path_speexdsp_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_speexdsp_lib}" >&5
$as_echo "${ac_cv_path_speexdsp_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_speexdsp_lib}" != x ; then
    SPEEXDSP_LIBS="${ac_cv_path_speexdsp_lib}"
    has_speexdsp=yes
  else
    SPEEXDSP_LIBS=""
  fi
fi








if test x$has_speexdsp = xyes ; then

$as_echo "#define RESAMPLING_SPEEX 1" >>confdefs.h

fi



# Check whether --with-freetype_incl was given.
if test "${with_freetype_incl+set}" = set; then :
  withval=$with_freetype_incl; with_freetype_incl=${withval}
fi

    if test "${ac_cv_path_freetype_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_freetype_incl}" != x ; then
      if test -f ${with_freetype_incl}/freetype/freetype.h ; then
	      ac_cv_path_freetype_incl="-I`(cd ${with_freetype_incl}; pwd)`"
      else
	      as_fn_error "${with_freetype_incl} directory doesn't contain freetype/freetype.h" "$LINENO" 5
      fi
    fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_freetype_incl}" = x; then
      $PKG_CONFIG --exists freetype2 && ac_cv_path_freetype_incl="`$PKG_CONFIG --cflags freetype2`"
    fi
  fi

    if test x"${ac_cv_path_freetype_incl}" = x; then
    for i in $incllist; do
      if test -f $i/freetype2/freetype/freetype.h; then
        ac_cv_path_freetype_incl="-I$i/freetype2"
	      break
      fi
            if test x"${haiku}" = xyes; then
        if test -f $i/freetype/freetype/freetype.h; then
          ac_cv_path_freetype_incl="-I$i/freetype"
	        break
        fi
      fi
    done

    if test x"${ac_cv_path_freetype_incl}" = x ; then
      for ac_header in freetype2/freetype/freetype.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "freetype2/freetype/freetype.h" "ac_cv_header_freetype2_freetype_freetype_h" "$ac_includes_default"
if test "x$ac_cv_header_freetype2_freetype_freetype_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FREETYPE2_FREETYPE_FREETYPE_H 1
_ACEOF

fi

done

    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfreetype header" >&5
$as_echo_n "checking for libfreetype header... " >&6; }
    if test x"${ac_cv_path_freetype_incl}" != x ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi


      if test x"${ac_cv_path_freetype_incl}" != x"/usr/include"; then
    ac_cv_path_freetype_incl="${ac_cv_path_freetype_incl}"
  else
    ac_cv_path_freetype_incl=""
  fi

     libname=freetype

# Check whether --with-freetype_lib was given.
if test "${with_freetype_lib+set}" = set; then :
  withval=$with_freetype_lib; with_freetype_lib=${withval}
fi

    if test "${ac_cv_path_freetype_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_freetype_lib}" != x ; then
      if test -f ${with_freetype_lib}/lib${libname}.a -o -f ${with_freetype_lib}/lib${libname}.${shlibext}; then
        ac_cv_path_freetype_lib="-L`(cd ${with_freetype_lib}; pwd)` -l${libname}"
      else
        as_fn_error "${with_freetype_lib} directory doesn't contain libfreetype." "$LINENO" 5
      fi
    fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_freetype_lib}" = x; then
      $PKG_CONFIG --exists freetype2 && ac_cv_path_freetype_lib="`$PKG_CONFIG --libs freetype2`"
    fi
  fi

    if test x"${ac_cv_path_freetype_lib}" = x; then
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${libname} library" >&5
$as_echo_n "checking for ${libname} library... " >&6; }
    for i in $libslist; do
      if test -f $i/lib${libname}.a -o -f $i/lib${libname}.${shlibext}; then
        if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
          ac_cv_path_freetype_lib="-L$i -l${libname}"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_freetype_lib}" >&5
$as_echo "${ac_cv_path_freetype_lib}" >&6; }
          break
        else
          ac_cv_path_freetype_lib="-l${libname}"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          break
        fi
      fi
    done
  fi

  if test x"${ac_cv_path_freetype_incl}" != x ; then
    FREETYPE2_CFLAGS="${ac_cv_path_freetype_incl}"
  else
    FREETYPE2_CFLAGS=""
  fi

  if test x"${ac_cv_path_freetype_lib}" != x ; then
    FREETYPE2_LIBS="${ac_cv_path_freetype_lib}"
  else
    FREETYPE2_LIBS=""
  fi

   if test -n "$FREETYPE_LIBS"; then
  FREETYPE_TRUE=
  FREETYPE_FALSE='#'
else
  FREETYPE_TRUE='#'
  FREETYPE_FALSE=
fi


  if test -n "$FREETYPE2_LIBS"; then

$as_echo "#define USE_FREETYPE 1" >>confdefs.h

  fi

          # Extract the first word of "fc-match", so it can be a program name with args.
set dummy fc-match; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FC_MATCH+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $FC_MATCH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FC_MATCH="$FC_MATCH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FC_MATCH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
FC_MATCH=$ac_cv_path_FC_MATCH
if test -n "$FC_MATCH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_MATCH" >&5
$as_echo "$FC_MATCH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test x"$FC_MATCH" != x; then
    DEFAULT_FONT="`$FC_MATCH -v 'Sans' | grep '^.file:' | sed 's/\(.*\"\)\(.*\)\(\".*\)/\2/g'`"
  fi

      if test -z "$DEFAULT_FONT"; then
    DEFAULT_FONT="/usr/share/fonts/truetype/freefont/FreeSans.ttf"
  fi


cat >>confdefs.h <<_ACEOF
#define DEFAULT_FONTFILE "$DEFAULT_FONT"
_ACEOF








    fontconfig=yes
    if test x = x; then
      name=fontconfig
    else
      name=fontconfig-
    fi

        if test x"${fontconfig}" = x"yes"; then

# Check whether --with-fontconfig_incl was given.
if test "${with_fontconfig_incl+set}" = set; then :
  withval=$with_fontconfig_incl; with_fontconfig_incl=${withval}
fi

      if test "${ac_cv_path_fontconfig_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_fontconfig_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig/fontconfig.h header in specified directory" >&5
$as_echo_n "checking for fontconfig/fontconfig.h header in specified directory... " >&6; }
        if test -f ${with_fontconfig_incl}/fontconfig/fontconfig.h ; then
          ac_cv_path_fontconfig_incl="-I`(cd ${with_fontconfig_incl}; pwd)`"
          found_fontconfig_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_fontconfig_incl} directory doesn't contain fontconfig/fontconfig.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_fontconfig_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig/fontconfig.h header using pkg-config" >&5
$as_echo_n "checking for fontconfig/fontconfig.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libfontconfig && ac_cv_path_fontconfig_incl="`$PKG_CONFIG --cflags libfontconfig`"
      $PKG_CONFIG --exists fontconfig && ac_cv_path_fontconfig_incl="`$PKG_CONFIG --cflags fontconfig`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_fontconfig_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_fontconfig_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_fontconfig_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fontconfig_incl}" >&5
$as_echo "${ac_cv_path_fontconfig_incl}" >&6; }
        found_fontconfig_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_fontconfig_incl}" = x; then
      # Extract the first word of "fontconfig-config", so it can be a program name with args.
set dummy fontconfig-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FONTCONFIG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $FONTCONFIG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FONTCONFIG_CONFIG="$FONTCONFIG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FONTCONFIG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
FONTCONFIG_CONFIG=$ac_cv_path_FONTCONFIG_CONFIG
if test -n "$FONTCONFIG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CONFIG" >&5
$as_echo "$FONTCONFIG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${FONTCONFIG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig/fontconfig.h header using fontconfig-config" >&5
$as_echo_n "checking for fontconfig/fontconfig.h header using fontconfig-config... " >&6; }
        ac_cv_path_fontconfig_incl="`${FONTCONFIG_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_fontconfig_incl}" = x; then
          ac_cv_path_fontconfig_incl="`${FONTCONFIG_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_fontconfig_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fontconfig_incl}" >&5
$as_echo "${ac_cv_path_fontconfig_incl}" >&6; }
        	found_fontconfig_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_fontconfig_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
  ac_cv_path_fontconfig_incl=""; found_fontconfig_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_fontconfig_h" "$ac_includes_default"
if test "x$ac_cv_header_fontconfig_fontconfig_fontconfig_h" = x""yes; then :
  ac_cv_path_fontconfig_incl="-I/usr/include/fontconfig"; found_fontconfig_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/fontconfig/fontconfig.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/fontconfig/fontconfig.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_fontconfig_incl="-I/usr/include/$name"; found_fontconfig_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
  ac_cv_path_fontconfig_incl="-I/usr/include/fontconfig/fontconfig.h"; found_fontconfig_incl="yes"
else

          if test x"${ac_cv_path_fontconfig_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_fontconfig_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_fontconfig_incl="-I$i"
                else
                  ac_cv_path_fontconfig_incl=""
                fi
                break
              else
                if test -f $i/$name/fontconfig/fontconfig.h; then
                  found_fontconfig_incl="yes"
                  ac_cv_path_fontconfig_incl="-I$i/$name"
                  break
                else
                  if test -f $i/fontconfig/fontconfig.h; then
                    found_fontconfig_incl="yes"
                    ac_cv_path_fontconfig_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig/fontconfig.h header" >&5
$as_echo_n "checking for fontconfig/fontconfig.h header... " >&6; }
  if test x"${found_fontconfig_incl}" = "xyes"; then


$as_echo "#define HAVE_FONTCONFIG_FONTCONFIG_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fontconfig_incl}" >&5
$as_echo "${ac_cv_path_fontconfig_incl}" >&6; }
      if test x"${ac_cv_path_fontconfig_incl}" != x -a x"${ac_cv_path_fontconfig_incl}" != x"-I/usr/include"; then
        FONTCONFIG_CFLAGS="${ac_cv_path_fontconfig_incl}"
      else
        FONTCONFIG_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_fontconfig=no
ac_manual=yes

if test x"${fontconfig}" = x"yes"; then

# Check whether --with-fontconfig_lib was given.
if test "${with_fontconfig_lib+set}" = set; then :
  withval=$with_fontconfig_lib; with_fontconfig_lib=${withval}
fi

  if test "${ac_cv_path_fontconfig_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_fontconfig_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfontconfig library in specified directory" >&5
$as_echo_n "checking for libfontconfig library in specified directory... " >&6; }
    if test -f ${with_fontconfig_lib}/lib$name.a -o -f ${with_fontconfig_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_fontconfig_lib}; pwd)`"
      ac_cv_path_fontconfig_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_fontconfig_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_fontconfig_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfontconfig library using pkg-config" >&5
$as_echo_n "checking for libfontconfig library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libfontconfig && ac_cv_path_fontconfig_lib="`$PKG_CONFIG --libs libfontconfig`"
      $PKG_CONFIG --exists fontconfig && ac_cv_path_fontconfig_lib="`$PKG_CONFIG --libs fontconfig`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_fontconfig_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_fontconfig_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_fontconfig_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fontconfig_lib}" >&5
$as_echo "${ac_cv_path_fontconfig_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_fontconfig_lib}" = x; then
      # Extract the first word of "fontconfig-config", so it can be a program name with args.
set dummy fontconfig-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FONTCONFIG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $FONTCONFIG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FONTCONFIG_CONFIG="$FONTCONFIG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FONTCONFIG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
FONTCONFIG_CONFIG=$ac_cv_path_FONTCONFIG_CONFIG
if test -n "$FONTCONFIG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CONFIG" >&5
$as_echo "$FONTCONFIG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${FONTCONFIG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfontconfig library using fontconfig-config" >&5
$as_echo_n "checking for libfontconfig library using fontconfig-config... " >&6; }
        ac_cv_path_fontconfig_lib="`${FONTCONFIG_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fontconfig_lib}" >&5
$as_echo "${ac_cv_path_fontconfig_lib}" >&6; }
      fi
      if test x"${ac_cv_path_fontconfig_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_fontconfig_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_fontconfig_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libfontconfig.a -o -f $i/libfontconfig.${shlibext}; then
        if test -f "$i/libfontconfig.a" -o -f "$i/libfontconfig.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_fontconfig_lib="-L$i -lfontconfig "
          else
            ac_cv_path_fontconfig_lib="-lfontconfig "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_fontconfig_lib="-L$i -l$name "
          else
            ac_cv_path_fontconfig_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_fontconfig_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing FcFontMatch" >&5
$as_echo_n "checking for library containing FcFontMatch... " >&6; }
if test "${ac_cv_search_FcFontMatch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FcFontMatch ();
int
main ()
{
return FcFontMatch ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' fontconfig $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_FcFontMatch=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_FcFontMatch+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_FcFontMatch+set}" = set; then :

else
  ac_cv_search_FcFontMatch=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_FcFontMatch" >&5
$as_echo "$ac_cv_search_FcFontMatch" >&6; }
ac_res=$ac_cv_search_FcFontMatch
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_fontconfig_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfontconfig library" >&5
$as_echo_n "checking for libfontconfig library... " >&6; }
	if test x"${ac_cv_path_fontconfig_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fontconfig_lib}" >&5
$as_echo "${ac_cv_path_fontconfig_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_fontconfig_lib}" != x ; then
    FONTCONFIG_LIBS="${ac_cv_path_fontconfig_lib}"
    has_fontconfig=yes
  else
    FONTCONFIG_LIBS=""
  fi
fi









if test x$cross_compiling = xno; then

  MING_CFLAGS=""
  MING_LIBS=""


# Check whether --with-ming was given.
if test "${with_ming+set}" = set; then :
  withval=$with_ming;
    case "${withval}" in
      yes|no) ;;
      *) MING_CONFIG=${withval} ;;
    esac

else
  MING_CONFIG=""
fi


  if test x"$MING_CONFIG" = "x"; then
    # Extract the first word of "ming-config", so it can be a program name with args.
set dummy ming-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MING_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MING_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MING_CONFIG="$MING_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MING_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MING_CONFIG=$ac_cv_path_MING_CONFIG
if test -n "$MING_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MING_CONFIG" >&5
$as_echo "$MING_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi

  if test x"$MING_CONFIG" != "x"; then
    MING_VERSION=`$MING_CONFIG --version`
    major=`echo $MING_VERSION | cut -d '.' -f 1`
    minor=`echo $MING_VERSION | cut -d '.' -f 2`
    micro=`echo $MING_VERSION | cut -d '.' -f 3`
    beta=`echo $MING_VERSION | sed -ne 's/.*beta\([0-9]*\).*/\1/p'`
                    if test -z $beta; then
      beta=`echo $MING_VERSION | sed -ne 's/.*rc\([0-9]*\).*/\1/p'`
      if test x"$beta" != x; then
        beta=`eval expr $beta + 5`
      fi
    fi
    MING_VERSION_CODE=`printf %2.2d%2.2d%2.2d%2.2d $major $minor $micro $beta`
    MING_CFLAGS=`$MING_CONFIG --cflags`
    MING_LIBS=`$MING_CONFIG --libs`
    MING_PATH=`$MING_CONFIG --bindir`
    # Extract the first word of "makeswf", so it can be a program name with args.
set dummy makeswf; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MAKESWF+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAKESWF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MAKESWF="$MAKESWF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$MING_PATH:$PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MAKESWF="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MAKESWF=$ac_cv_path_MAKESWF
if test -n "$MAKESWF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKESWF" >&5
$as_echo "$MAKESWF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi

    if test x"${MING_LIBS}" = x; then

# Check whether --with-ming_incl was given.
if test "${with_ming_incl+set}" = set; then :
  withval=$with_ming_incl; with_ming_incl=${withval}
fi

    if test "${ac_cv_path_ming_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_ming_incl}" != x ; then
        if test -f ${with_ming_incl}/ming.h ; then
	  ac_cv_path_ming_incl="-I`(cd ${with_ming_incl}; pwd)`"
        else
	  as_fn_error "${with_ming_incl} directory doesn't contain minglib.h" "$LINENO" 5
        fi
      fi

fi


        if test x"${ac_cv_path_ming_incl}" = x; then
      for i in $incllist; do
	      if test -f $i/ming.h; then
      	  if test x"$i" != x"/usr/include"; then
      	    ac_cv_path_ming_incl="-I$i"
      	    break
          else
	          ac_cv_path_ming_incl=""
	          break
	        fi
        fi
      done
    fi

        if test x"${ac_cv_path_ming_incl}" = x; then
      for ac_header in ming.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "ming.h" "ac_cv_header_ming_h" "$ac_includes_default"
if test "x$ac_cv_header_ming_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MING_H 1
_ACEOF
 ac_cv_path_ming_incl=""
fi

done

    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ming header" >&5
$as_echo_n "checking for Ming header... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ming_incl}" >&5
$as_echo "${ac_cv_path_ming_incl}" >&6; }


# Check whether --with-ming_lib was given.
if test "${with_ming_lib+set}" = set; then :
  withval=$with_ming_lib; with_ming_lib=${withval}
fi

    if test "${ac_cv_path_ming_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_ming_lib}" != x ; then
        if test -f ${with_ming_lib}/libming.a -o -f ${with_ming_lib}/libming.${shlibext}; then
	        ac_cv_path_ming_lib="`(cd ${with_ming_lib}; pwd)`"
        else
          as_fn_error "${with_ming_lib} directory doesn't contain libming." "$LINENO" 5
        fi
      fi

fi


        for i in $libslist; do
      if test -f $i/libming.a -o -f $i/libming.${shlibext}; then
      	if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
      	  ac_cv_path_ming_lib="-L$i -lming"
      	  break
        else
	        ac_cv_path_ming_lib="-lming"
      	  break
        fi
      fi
    done
    if test x"${ac_cv_path_ming_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ming_init_io in -lming" >&5
$as_echo_n "checking for ming_init_io in -lming... " >&6; }
if test "${ac_cv_lib_ming_ming_init_io+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lming  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ming_init_io ();
int
main ()
{
return ming_init_io ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ming_ming_init_io=yes
else
  ac_cv_lib_ming_ming_init_io=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ming_ming_init_io" >&5
$as_echo "$ac_cv_lib_ming_ming_init_io" >&6; }
if test "x$ac_cv_lib_ming_ming_init_io" = x""yes; then :
  ac_cv_path_ming_lib=""
fi

    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libming library" >&5
$as_echo_n "checking for libming library... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ming_lib}" >&5
$as_echo "${ac_cv_path_ming_lib}" >&6; }

    if test x"${ac_cv_path_ming_incl}" != x ; then
      MING_CFLAGS="${ac_cv_path_ming_incl}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ming_incl}" >&5
$as_echo "${ac_cv_path_ming_incl}" >&6; }
    else
      MING_CFLAGS=""
    fi

    if test x"${ac_cv_path_ming_lib}" != x ; then
      MING_LIBS="${ac_cv_path_ming_lib}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_ming_lib}" >&5
$as_echo "${ac_cv_path_ming_lib}" >&6; }
    else
      MING_LIBS=""
    fi
  fi







fi
 if  test x"$MAKESWF" != x ; then
  ENABLE_MING_TRUE=
  ENABLE_MING_FALSE='#'
else
  ENABLE_MING_TRUE='#'
  ENABLE_MING_FALSE=
fi


 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040000  ; then
  MING_VERSION_0_4_TRUE=
  MING_VERSION_0_4_FALSE='#'
else
  MING_VERSION_0_4_TRUE='#'
  MING_VERSION_0_4_FALSE=
fi

 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040002  ; then
  MAKESWF_SUPPORTS_PREBUILT_CLIPS_TRUE=
  MAKESWF_SUPPORTS_PREBUILT_CLIPS_FALSE='#'
else
  MAKESWF_SUPPORTS_PREBUILT_CLIPS_TRUE='#'
  MAKESWF_SUPPORTS_PREBUILT_CLIPS_FALSE=
fi

 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040004  ; then
  MING_SUPPORTS_INIT_ACTIONS_TRUE=
  MING_SUPPORTS_INIT_ACTIONS_FALSE='#'
else
  MING_SUPPORTS_INIT_ACTIONS_TRUE='#'
  MING_SUPPORTS_INIT_ACTIONS_FALSE=
fi

 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040005 ; then
  MING_SUPPORTS_REPLACE_TAG_TRUE=
  MING_SUPPORTS_REPLACE_TAG_FALSE='#'
else
  MING_SUPPORTS_REPLACE_TAG_TRUE='#'
  MING_SUPPORTS_REPLACE_TAG_FALSE=
fi

 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040005 ; then
  MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_TRUE=
  MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_FALSE='#'
else
  MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_TRUE='#'
  MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_FALSE=
fi

 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040006 ; then
  MING_SUPPORTS_STREAMING_SOUND_TRUE=
  MING_SUPPORTS_STREAMING_SOUND_FALSE='#'
else
  MING_SUPPORTS_STREAMING_SOUND_TRUE='#'
  MING_SUPPORTS_STREAMING_SOUND_FALSE=
fi

 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040006 ; then
  MING_SUPPORTS_SWFBUTTON_SET_DEPTH_TRUE=
  MING_SUPPORTS_SWFBUTTON_SET_DEPTH_FALSE='#'
else
  MING_SUPPORTS_SWFBUTTON_SET_DEPTH_TRUE='#'
  MING_SUPPORTS_SWFBUTTON_SET_DEPTH_FALSE=
fi

 if  test x"$MAKESWF" != x && test $MING_VERSION_CODE -ge 00040300 ; then
  MING_VERSION_0_4_3_TRUE=
  MING_VERSION_0_4_3_FALSE='#'
else
  MING_VERSION_0_4_3_TRUE='#'
  MING_VERSION_0_4_3_FALSE=
fi


if test x$cross_compiling = xno; then

# Check whether --with-swfdec_testsuite was given.
if test "${with_swfdec_testsuite+set}" = set; then :
  withval=$with_swfdec_testsuite; SWFDEC_TESTSUITE=${withval}
fi


fi
 if  test x"$SWFDEC_TESTSUITE" != x ; then
  ENABLE_SWFDEC_TESTSUITE_TRUE=
  ENABLE_SWFDEC_TESTSUITE_FALSE='#'
else
  ENABLE_SWFDEC_TESTSUITE_TRUE='#'
  ENABLE_SWFDEC_TESTSUITE_FALSE=
fi


if test x$cross_compiling = xno; then
  # Check whether --enable-http_testsuite was given.
if test "${enable_http_testsuite+set}" = set; then :
  enableval=$enable_http_testsuite; case "${enableval}" in
             no) HTTP_TESTSUITE="" ;;
            yes) HTTP_TESTSUITE="http://www.gnashdev.org/testcases" ;;
              *) HTTP_TESTSUITE="${enableval}";;
           esac
fi


fi
 if  test x"$HTTP_TESTSUITE" != x ; then
  ENABLE_HTTP_TESTSUITE_TRUE=
  ENABLE_HTTP_TESTSUITE_FALSE='#'
else
  ENABLE_HTTP_TESTSUITE_TRUE='#'
  ENABLE_HTTP_TESTSUITE_FALSE=
fi


if test x$cross_compiling = xno; then
  # Check whether --enable-red5_testing was given.
if test "${enable_red5_testing+set}" = set; then :
  enableval=$enable_red5_testing; case "${enableval}" in
             no) RED5_HOST="" ;;
            yes) RED5_HOST="localhost" ;;
              *) RED5_HOST="${enableval}";;
           esac
fi


fi
 if  test x"$RED5_HOST" != x ; then
  ENABLE_RED5_TESTING_TRUE=
  ENABLE_RED5_TESTING_FALSE='#'
else
  ENABLE_RED5_TESTING_TRUE='#'
  ENABLE_RED5_TESTING_FALSE=
fi


if test x"$testsuite" = x"yes"; then
for ac_prog in nc netcat
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_NETCAT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $NETCAT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NETCAT="$NETCAT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_NETCAT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
NETCAT=$ac_cv_path_NETCAT
if test -n "$NETCAT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCAT" >&5
$as_echo "$NETCAT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$NETCAT" && break
done

# Extract the first word of "wget", so it can be a program name with args.
set dummy wget; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_WGET+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $WGET in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
WGET=$ac_cv_path_WGET
if test -n "$WGET"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
$as_echo "$WGET" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
 if  test x"$NETCAT" != x ; then
  HAS_NETCAT_TRUE=
  HAS_NETCAT_FALSE='#'
else
  HAS_NETCAT_TRUE='#'
  HAS_NETCAT_FALSE=
fi

 if  test x"$WGET" != x ; then
  HAS_WGET_TRUE=
  HAS_WGET_FALSE='#'
else
  HAS_WGET_TRUE='#'
  HAS_WGET_FALSE=
fi


if test x"$testsuite" = x"yes" -a x$cross_compiling = xno; then
  # Extract the first word of "as3compile", so it can be a program name with args.
set dummy as3compile; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_AS3COMPILE+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $AS3COMPILE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_AS3COMPILE="$AS3COMPILE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_AS3COMPILE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
AS3COMPILE=$ac_cv_path_AS3COMPILE
if test -n "$AS3COMPILE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS3COMPILE" >&5
$as_echo "$AS3COMPILE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  # Extract the first word of "swfc", so it can be a program name with args.
set dummy swfc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SWFC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SWFC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SWFC="$SWFC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SWFC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SWFC=$ac_cv_path_SWFC
if test -n "$SWFC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWFC" >&5
$as_echo "$SWFC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



  SWFMILL=""


# Check whether --with-swfmill was given.
if test "${with_swfmill+set}" = set; then :
  withval=$with_swfmill;
    case "${withval}" in
      yes|no) ;;
      *) SWFMILL=${withval} ;;
    esac

else
  SWFMILL=""
fi


  if test x"$SWFMILL" = "x"; then
    # Extract the first word of "swfmill", so it can be a program name with args.
set dummy swfmill; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SWFMILL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SWFMILL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SWFMILL="$SWFMILL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SWFMILL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SWFMILL=$ac_cv_path_SWFMILL
if test -n "$SWFMILL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWFMILL" >&5
$as_echo "$SWFMILL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi

  if test x"$SWFMILL" != "x"; then
    sm=`$SWFMILL -h 2>&1 | head -n 4`
    version=`echo "$sm" | grep 'swfmill [0-9]\{1,2\}\(\.[0-9]\{1,2\}\)\{2,3\}' | cut -d' ' -f2`
    major=`echo $version | cut -d'.' -f1`
    minor=`echo $version | cut -d'.' -f2`
    micro=`echo $version | cut -d'.' -f3`
    beta=`echo $version | cut -d'.' -f4`
    if test -z $beta; then
      beta=0
    fi
    SWFMILL_VERSION=`printf %2.2d%2.2d%2.2d%2.2d $major $minor $micro $beta`
  fi





  MTASC=""
  MTASC_CLASSPATH=""


# Check whether --with-mtasc was given.
if test "${with_mtasc+set}" = set; then :
  withval=$with_mtasc;
    case "${withval}" in
      yes|no) ;;
      *) MTASC=${withval} ;;
    esac

else
  MTASC=""
fi



# Check whether --with-mtasc-classpath was given.
if test "${with_mtasc_classpath+set}" = set; then :
  withval=$with_mtasc_classpath;
    case "${withval}" in
      yes|no) ;;
      *) MTASC_CLASSPATH=${withval} ;;
    esac

else
  MTASC_CLASSPATH=""
fi


  if test x"$MTASC" = "x"; then
    # Extract the first word of "mtasc", so it can be a program name with args.
set dummy mtasc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MTASC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MTASC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MTASC="$MTASC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MTASC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MTASC=$ac_cv_path_MTASC
if test -n "$MTASC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTASC" >&5
$as_echo "$MTASC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi

  if test x"$MTASC" != "x" -a x"$MTASC_CLASSPATH" = "x"; then
    # cross your fingers !
    if test -d "`dirname ${MTASC}`/std"; then
    dir="`dirname ${MTASC}`/std"
    elif test -d "/usr/share/mtasc/std"; then
    dir="/usr/share/mtasc/std"
    else
        dir="/usr/share/ocaml/mtasc/std"
    fi
    MTASC_CLASSPATH=$dir
  fi






  HAXE=""
  HAXE_CLASSPATH=""


# Check whether --with-haxe was given.
if test "${with_haxe+set}" = set; then :
  withval=$with_haxe;
    case "${withval}" in
      yes|no) ;;
      *) HAXE=${withval} ;;
    esac

else
  HAXE=""
fi



# Check whether --with-haxe-classpath was given.
if test "${with_haxe_classpath+set}" = set; then :
  withval=$with_haxe_classpath;
    case "${withval}" in
      yes|no) ;;
      *) HAXE_CLASSPATH=${withval} ;;
    esac

else
  HAXE_CLASSPATH=""
fi


  if test x"$HAXE" = "x"; then
    # Extract the first word of "haxe", so it can be a program name with args.
set dummy haxe; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_HAXE+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $HAXE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_HAXE="$HAXE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_HAXE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
HAXE=$ac_cv_path_HAXE
if test -n "$HAXE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAXE" >&5
$as_echo "$HAXE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi

  if test x"$HAXE" != "x"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAXE version" >&5
$as_echo_n "checking for HAXE version... " >&6; }
    HAXE_VERSION=`$HAXE -help | grep ^Haxe | awk '{print $'3'}'`
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${HAXE_VERSION}" >&5
$as_echo "${HAXE_VERSION}" >&6; }

    major=`echo $HAXE_VERSION | cut -d '.' -f 1`
    minor=`echo $HAXE_VERSION | cut -d '.' -f 2`

                        if test $major -lt 2; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Haxe ${HAXE_VERSION} is too old to be used" >&5
$as_echo "$as_me: WARNING: Haxe ${HAXE_VERSION} is too old to be used" >&2;}
        unset HAXE
    fi
  fi

  if test x"$HAXE" != "x" -a x"$HAXE_CLASSPATH" = "x"; then
    # cross your fingers !
    if test -d "`dirname ${HAXE}`/std"; then
    dir="`dirname ${HAXE}`/std"
    elif test -d "/usr/share/haxe"; then
    dir="/usr/share/haxe/"
    else
        dir="/usr/share/haxe/"
    fi
    HAXE_CLASSPATH=$dir
  fi





fi

 if  test x"$SWFMILL" != x ; then
  ENABLE_SWFMILL_TRUE=
  ENABLE_SWFMILL_FALSE='#'
else
  ENABLE_SWFMILL_TRUE='#'
  ENABLE_SWFMILL_FALSE=
fi

 if  test x"$SWFMILL" != x && test $SWFMILL_VERSION -ge 00021206 ; then
  SWFMILL_AS3_SUPPORT_TRUE=
  SWFMILL_AS3_SUPPORT_FALSE='#'
else
  SWFMILL_AS3_SUPPORT_TRUE='#'
  SWFMILL_AS3_SUPPORT_FALSE=
fi


 if  test x"$SWFMILL" != x && test $SWFMILL_VERSION -ge 00021206 ; then
  SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_TRUE=
  SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_FALSE='#'
else
  SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_TRUE='#'
  SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_FALSE=
fi


 if  test x"$AS3COMPILE" != x ; then
  ENABLE_AS3COMPILE_TRUE=
  ENABLE_AS3COMPILE_FALSE='#'
else
  ENABLE_AS3COMPILE_TRUE='#'
  ENABLE_AS3COMPILE_FALSE=
fi

 if  test x"$MTASC" != x ; then
  ENABLE_MTASC_TRUE=
  ENABLE_MTASC_FALSE='#'
else
  ENABLE_MTASC_TRUE='#'
  ENABLE_MTASC_FALSE=
fi

 if  test x"$HAXE" != x ; then
  ENABLE_HAXE_TRUE=
  ENABLE_HAXE_FALSE='#'
else
  ENABLE_HAXE_TRUE='#'
  ENABLE_HAXE_FALSE=
fi

 if  test x"$SWFC" != x ; then
  ENABLE_SWFC_TRUE=
  ENABLE_SWFC_FALSE='#'
else
  ENABLE_SWFC_TRUE='#'
  ENABLE_SWFC_FALSE=
fi

 if  test x"$HAXE" != x ; then
  ENABLE_HAXE_TRUE=
  ENABLE_HAXE_FALSE='#'
else
  ENABLE_HAXE_TRUE='#'
  ENABLE_HAXE_FALSE=
fi


# Extract the first word of "doxygen", so it can be a program name with args.
set dummy doxygen; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DOXYGEN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DOXYGEN in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DOXYGEN=$ac_cv_path_DOXYGEN
if test -n "$DOXYGEN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
$as_echo "$DOXYGEN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


 if  test x"$DOXYGEN" != x ; then
  ENABLE_DOXYGEN_TRUE=
  ENABLE_DOXYGEN_FALSE='#'
else
  ENABLE_DOXYGEN_TRUE='#'
  ENABLE_DOXYGEN_FALSE=
fi



if test x$build_sdl = xyes -o x$build_sound_sdl = xyes; then

  has_sdl=no

# Check whether --with-sdl-incl was given.
if test "${with_sdl_incl+set}" = set; then :
  withval=$with_sdl_incl; with_sdl_incl=${withval}
fi

  if test "${ac_cv_path_sdl_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_sdl_incl}" != x ; then
      if test -f ${with_sdl_incl}/SDL.h ; then
        ac_cv_path_sdl_incl="-I`(cd ${with_sdl_incl}; pwd)`"
      else
        as_fn_error "${with_sdl_incl} directory doesn't contain SDL.h" "$LINENO" 5
      fi
    fi

fi

  if test x${cross_compiling} = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_sdl_incl}" = x; then
	    $PKG_CONFIG --exists sdl && ac_cv_path_sdl_incl=`$PKG_CONFIG --cflags sdl`
    fi
  fi


  if test x${cross_compiling} = xno; then
    if test x"$PKG_CONFIG" != x; then
                        $PKG_CONFIG --exists sdl && ac_cv_path_sdl_incl=`$PKG_CONFIG --cflags sdl`
          fi
  fi

  # Extract the first word of "sdl-config", so it can be a program name with args.
set dummy sdl-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SDL_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
if test -n "$SDL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
$as_echo "$SDL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$SDL_CONFIG" != "x" ; then
    if test "x$SDL_CFLAGS" = "x" ; then
      SDL_CFLAGS=`$SDL_CONFIG --cflags`
	if test x${cross_compiling} = xno; then
      		ac_cv_path_sdl_incl=$SDL_CFLAGS
	fi
    fi
    if test "x$SDL_LIBS" = "x" ; then
      SDL_LIBS=`$SDL_CONFIG --libs | sed -e 's:-L/usr/lib\>::'`
	if test x${cross_compiling} = xno; then
		ac_cv_path_sdl_lib=$SDL_LIBS
	fi
    fi
  fi

  gnash_sdl_topdir=""
  gnash_sdl_version=""
  if test x"${ac_cv_path_sdl_incl}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL header" >&5
$as_echo_n "checking for SDL header... " >&6; }
    for i in ${incllist}; do
      for j in `ls -dr $i/SDL* 2>/dev/null`; do
        if test -f $j/SDL.h; then
      	  gnash_sdl_topdir=`basename $j`
      	  gnash_sdl_version=`echo ${gnash_sdl_topdir} | sed -e 's:SDL::' -e 's:-::'`
      	  ac_cv_path_sdl_incl="-I$j"
          break
        fi
      done
      if test x"${ac_cv_path_sdl_incl}" != x; then
        break
      fi
    done
    if test x"${ac_cv_path_sdl_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_sdl_incl}" >&5
$as_echo "${ac_cv_path_sdl_incl}" >&6; }
    else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in incllist" >&5
$as_echo "not found in incllist" >&6; }
    fi
  fi

    SDL_CFLAGS=""
  if test x"${ac_cv_path_sdl_incl}" = x ; then
    for ac_header in SDL.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default"
if test "x$ac_cv_header_SDL_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SDL_H 1
_ACEOF
 ac_cv_path_sdl_incl=""
fi

done

  else
    if test x"${ac_cv_path_sdl_incl}" != x"/usr/include"; then
      ac_cv_path_sdl_incl="${ac_cv_path_sdl_incl}"
    else
      ac_cv_path_sdl_incl=""
    fi
  fi


# Check whether --with-sdl_lib was given.
if test "${with_sdl_lib+set}" = set; then :
  withval=$with_sdl_lib; with_sdl_lib=${withval}
fi

  if test "${ac_cv_path_sdl_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_sdl_lib}" != x ; then
      if test -f ${with_sdl_lib}/libSDL.a -o -f ${with_sdl_lib}/libSDL.${shlibext}; then
        ac_cv_path_sdl_lib="-L`(cd ${with_sdl_lib}; pwd)` -lSDL"
      else
        if test -f ${with_sdl_lib}/libSDL-1.1.a -o -f ${with_sdl_lib}/libSDL-1.1.${shlibext}; then
          ac_cv_path_sdl_lib="-L`(cd ${with_sdl_lib}; pwd)` -lSDL"
        else
          as_fn_error "${with_sdl_lib} directory doesn't contain libSDL" "$LINENO" 5
        fi
      fi
    fi

fi


  SDL_LIBS=""
  if test x${cross_compiling} = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_sdl_lib}" = x; then
      $PKG_CONFIG --exists sdl && ac_cv_path_sdl_lib=`$PKG_CONFIG --libs sdl`
      if test x"$ac_cv_path_sdl_lib" != x; then
        has_sdl=yes
      fi
    fi
  fi

  if test x"${ac_cv_path_sdl_lib}" = x ; then
    for i in $libslist; do
      if test -f $i/libSDL.a -o -f $i/libSDL.${shlibext}; then
        if test ! x"$i" = x"/usr/lib" -o x"$i" = x"/usr/lib64"; then
          ac_cv_path_sdl_lib="-L$i -lSDL"
                    break
        else
          ac_cv_path_sdl_lib="-lSDL"
          	  has_sdl=yes
          break
        fi
      else
        if test -f $i/libSDL-1.1.a -o -f $i/libSDL-1.1.${shlibext}; then
          if test ! x"$i" = x"/usr/lib" -o x"$i" = x"/usr/lib64"; then
            ac_cv_path_sdl_lib="-L$i -lSDL-1.1"
                        break
          else
            ac_cv_path_sdl_lib="-lSDL-1.1"
                        has_sdl=yes
            break
          fi
        fi
      fi
    done
  fi
  if test x"${ac_cv_path_sdl_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lSDL  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char SDL_Init ();
int
main ()
{
return SDL_Init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_SDL_SDL_Init=yes
else
  ac_cv_lib_SDL_SDL_Init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  ac_cv_path_sdl_lib="-lSDL"
fi

  fi
      if test x"${ac_cv_path_sdl_incl}" != x ; then
    SDL_CFLAGS="${ac_cv_path_sdl_incl}"
  fi
  if test x"${ac_cv_path_sdl_lib}" != x ; then
    SDL_LIBS="${ac_cv_path_sdl_lib}"
    has_sdl=yes

$as_echo "#define HAVE_SDL_H 1" >>confdefs.h

  else
    has_sdl=no
  fi



fi

 if  test x$has_SDL = xyes ; then
  HAVE_SDL_TRUE=
  HAVE_SDL_FALSE='#'
else
  HAVE_SDL_TRUE='#'
  HAVE_SDL_FALSE=
fi



  gnash_qt3_topdir=""
  has_qt3=no


# Check whether --with-qt3_incl was given.
if test "${with_qt3_incl+set}" = set; then :
  withval=$with_qt3_incl; with_qt3_incl=${withval}
fi


  if test "${ac_cv_path_qt3_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_qt3_incl}" != x; then
      if test -f ${with_qt3_incl}/qobject.h; then
        ac_cv_path_qt3_incl="-I`(cd ${with_qt3_incl}; pwd)`"
      else
        as_fn_error "${with_qt3_incl} directory doesn't contain any QT 3.x headers" "$LINENO" 5
      fi
    fi

fi

      if test x"${build_qt3}" = xyes -a x"${ac_cv_path_qt3_incl}" = x; then
            qt_pkg="qt-mt"
    if test x$QTDIR != x; then
      if test -f $QTDIR/include/qobject.h; then
        qt_base=`basename $QTDIR`
        if test x"${qt_base}" = "qt4"; then
          as_fn_error "Mismatched QT versions! Reset QTDIR in your environment!" "$LINENO" 5
        else
          gnash_qt_version=3
        fi
      fi
    fi

    if test x$cross_compiling = xno; then
      if test x"$PKG_CONFIG" != x; then
        gnash_qt_version="`$PKG_CONFIG --modversion $qt_pkg | cut -d '.' -f 1`"
      fi
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT 3.x header" >&5
$as_echo_n "checking for QT 3.x header... " >&6; }
    if test x$cross_compiling = xno; then
      if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_qt3_incl}" = x; then
        $PKG_CONFIG --exists $qt_pkg && ac_cv_path_qt3_incl="`$PKG_CONFIG --cflags-only-I $qt_pkg | cut -d ' ' -f 1`"
      fi
    fi

            if test x"${ac_cv_path_qt3_incl}" = x; then
      for i in $QTDIR $libslist $incllist; do
        for j in `ls -dr $i/qt[0-9] 2>/dev/null`; do
          if test -f $j/include/qobject.h; then
            gnash_qt3_topdir="$j"
            ac_cv_path_qt3_incl="-I$j/include"
            break
          fi
        done
        if test "x$gnash_qt3_topdir" != x; then
          break;
        fi
      done
    else
      gnash_qt3_topdir="`echo ${ac_cv_path_qt3_incl} | sed -e 's:-I::' -e 's:/lib/qt.*::'`"
    fi

    if test x"${ac_cv_path_qt3_incl}" = x; then
      QT3_CFLAGS=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    else
      QT3_CFLAGS="${ac_cv_path_qt3_incl}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_qt3_incl}" >&5
$as_echo "${ac_cv_path_qt3_incl}" >&6; }
    fi


# Check whether --with-qt3_lib was given.
if test "${with_qt3_lib+set}" = set; then :
  withval=$with_qt3_lib; with_qt3_lib=${withval}
fi

    if test "${ac_cv_path_qt3_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_qt3_lib}" != x ; then
        if test `ls -C1 ${with_qt3_lib}/lib/libqt*-mt.* | wc -l` -gt 0 ; then
         ac_cv_path_qt3_lib="-L`(cd ${with_qt3_lib}; pwd)` ${qt3support} -lqt-mt"
        else
	        as_fn_error "${with_qt3_lib} directory doesn't contain QT 3.x libraries." "$LINENO" 5
        fi
      fi

fi


    if test x$cross_compiling = xno; then
      if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_qt3_lib}" = x; then
        $PKG_CONFIG --exists $qt_pkg && ac_cv_path_qt3_lib="`$PKG_CONFIG --libs-only-l $qt_pkg | cut -d ' ' -f 1`"
      fi
    fi

    if test x"${ac_cv_path_qt3_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT 3.x libraries" >&5
$as_echo_n "checking for QT 3.x libraries... " >&6; }
      if test `ls -C1 ${gnash_qt3_topdir}/lib/libqt*-mt.*| wc -l` -gt 0 ; then
                if test -f ${gnash_qt3_topdir}/lib/libqte-mt.${shlibext}; then
          ac_cv_path_qt3_lib="-L${gnash_qt3_topdir}/lib ${qt3support} -lqte-mt"
         else
          ac_cv_path_qt3_lib="-L${gnash_qt3_topdir}/lib ${qt3support} -lqt-mt"
        fi
      fi
      if test x"${ac_cv_path_qt3_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_qt3_lib}" >&5
$as_echo "${ac_cv_path_qt3_lib}" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
      fi
    fi

    if test x"${ac_cv_path_qt3_lib}" != x; then
      QT3_LIBS="${ac_cv_path_qt3_lib}"

$as_echo "#define HAVE_QT3 1" >>confdefs.h

      has_qt3="yes"
    else
      QT3_LIBS=""
      has_qt3="no"
    fi

    # Extract the first word of "moc", so it can be a program name with args.
set dummy moc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MOC3+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MOC3 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MOC3="$MOC3" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in  /usr/lib/qt-3.3/bin ${QTDIR}/bin${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MOC3="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MOC3=$ac_cv_path_MOC3
if test -n "$MOC3"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC3" >&5
$as_echo "$MOC3" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



  fi





  has_kde3=no


# Check whether --with-kde3_incl was given.
if test "${with_kde3_incl+set}" = set; then :
  withval=$with_kde3_incl; with_kde3_incl=${withval}
fi

    if test x"${with_kde3_incl}" != x ; then
    if test ! -f ${with_kde3_incl}/kapp.h ; then
      as_fn_error "${with_kde3_incl} directory doesn't contain any KDE 3.x headers" "$LINENO" 5
    fi
  fi


# Check whether --with-kde3_prefix was given.
if test "${with_kde3_prefix+set}" = set; then :
  withval=$with_kde3_prefix; with_kde3_prefix=${withval}
fi



# Check whether --with-kde3_lib was given.
if test "${with_kde3_lib+set}" = set; then :
  withval=$with_kde3_lib; with_kde3_lib=${withval}
fi

    if test x"${with_kde3_lib}" != x ; then
    if test ! -f ${with_kde3_lib}/libkdeui.la; then
      as_fn_error "${with_kde3_lib} directory doesn't contain any KDE 3.x libraries!" "$LINENO" 5
    fi
  fi


# Check whether --with-kde3_plugindir was given.
if test "${with_kde3_plugindir+set}" = set; then :
  withval=$with_kde3_plugindir; with_kde3_plugindir=${withval}
fi

  if test x"${with_kde3_plugindir}" != x ; then
    if test ! -d ${with_kde3_plugindir}/designer; then
      as_fn_error "${with_kde3_plugindir} directory doesn't contain any KDE 3.x plugins!" "$LINENO" 5
    fi
  fi


# Check whether --with-kde3_servicesdir was given.
if test "${with_kde3_servicesdir+set}" = set; then :
  withval=$with_kde3_servicesdir; with_kde3_servicesdir=${withval}
fi

  if test x"${with_kde3_servicesdir}" != x ; then
    if test ! -d ${with_kde3_servicesdir}; then
      as_fn_error "${with_kde3_} directory doesn't contain any KDE 3.x plugins!" "$LINENO" 5
    fi
  fi


# Check whether --with-kde3-configdir was given.
if test "${with_kde3_configdir+set}" = set; then :
  withval=$with_kde3_configdir; KDE3_CONFIGDIR=${withval}

fi



# Check whether --with-kde3-appsdatadir was given.
if test "${with_kde3_appsdatadir+set}" = set; then :
  withval=$with_kde3_appsdatadir; KDE3_APPSDATADIR=${withval}

fi


    if test x"${build_kde3}" = xyes; then
    kde3_prefix=
    # Extract the first word of "kde-config", so it can be a program name with args.
set dummy kde-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_KDE3_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $KDE3_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_KDE3_CONFIG="$KDE3_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_KDE3_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
KDE3_CONFIG=$ac_cv_path_KDE3_CONFIG
if test -n "$KDE3_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE3_CONFIG" >&5
$as_echo "$KDE3_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "x$KDE3_CONFIG" != "x" ; then
      kde3_prefix=`$KDE3_CONFIG --prefix`
      { $as_echo "$as_me:${as_lineno-$LINENO}: KDE3 prefix from kde-config is ${kde3_prefix}" >&5
$as_echo "$as_me: KDE3 prefix from kde-config is ${kde3_prefix}" >&6;}
    fi

    if test "${ac_cv_path_kde3_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

            if test x"${with_kde3_incl}" != x; then
        if test -f ${with_kde3_incl}/kapp.h; then
          ac_cv_path_kde3_incl="-I`(cd ${with_kde3_incl}; pwd)`"
        fi
      fi
                  if test x"${ac_cv_path_kde3_incl}" = x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE 3.x header path" >&5
$as_echo_n "checking for KDE 3.x header path... " >&6; }
                for i in ${kde3_prefix}/include ${incllist}; do
         if test -f $i/kde/kapplication.h; then
            ac_cv_path_kde3_incl="-I$i/kde"
            kde3_prefix=`dirname $i`
            if test ! -f $i/kde/qxembed.h -a x"${build_kde4}" = x"no"; then
              as_fn_error "You specified building kde3, but you have kde4 installed!" "$LINENO" 5
              break
            fi
            break
          fi
          if test -f $i/kapplication.h; then
            ac_cv_path_kde3_incl="-I$i"
            kde3_prefix=`dirname $i`
            if test ! -f $i/qxembed.h -a x"${build_kde4}" = x"no"; then
              as_fn_error "You specified building kde3, but you have kde4 installed!" "$LINENO" 5
              break
            fi
            break
          fi
        done
      fi
      if test x"${ac_cv_path_kde3_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_kde3_incl}" >&5
$as_echo "${ac_cv_path_kde3_incl}" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
                              for ac_header in kde/kapplication.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "kde/kapplication.h" "ac_cv_header_kde_kapplication_h" "$ac_includes_default"
if test "x$ac_cv_header_kde_kapplication_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KDE_KAPPLICATION_H 1
_ACEOF
 ac_cv_path_kde3_incl=""
fi

done

        fi
      fi

fi

        if test "${ac_cv_path_kde3_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_kde3_lib}" != x ; then
        if test -f ${with_kde3_lib}/libkdeui.la; then
	        ac_cv_path_kde3_lib="-L`(cd ${with_kde3_lib}; pwd)`"
        else
	        as_fn_error "${with_kde3_lib} directory doesn't contain KDE 3.x libraries." "$LINENO" 5
        fi
      fi
      if test x"${ac_cv_path_kde3_lib}" = x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdeui library" >&5
$as_echo_n "checking for kdeui library... " >&6; }
        kde3_topdir=
        for i in ${kde3_prefix}/lib64 ${kde3_prefix}/lib $libslist ; do
          if test -f $i/libkdeui.${shlibext} -o -f $i/libkdeui.la; then
            kde3_topdir=$i
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${kde3_topdir}/libkdeui" >&5
$as_echo "${kde3_topdir}/libkdeui" >&6; }
	          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
	            ac_cv_path_kde3_lib="-L$i -lkdeui"
       	      break
            else
	            ac_cv_path_kde3_lib="-lkdeui"
	            break
            fi
          fi
        done
      fi
            if test x"${ac_cv_path_kde3_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdecore library" >&5
$as_echo_n "checking for kdecore library... " >&6; }
        if test -f ${kde3_topdir}/libkdecore.la; then
          ac_cv_path_kde3_lib="${ac_cv_path_kde3_lib} -lkdecore"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${kde3_topdir}/libkdecore" >&5
$as_echo "${kde3_topdir}/libkdecore" >&6; }
        else
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdeprint library" >&5
$as_echo_n "checking for kdeprint library... " >&6; }
      if test x"${libkdeprint}" = x; then
        if test -f ${kde3_topdir}/libkdeprint.la -o -f ${kde3_topdir}/libkdeprint.${shlibext}; then
          ac_cv_path_kde3_lib="${ac_cv_path_kde3_lib} -lkdeprint"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${kde3_topdir}/libkdeprint" >&5
$as_echo "${kde3_topdir}/libkdeprint" >&6; }
        else
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libkdeprint}" >&5
$as_echo "${libkdeprint}" >&6; }
        ac_cv_path_kde3_lib="${ac_cv_path_kde3_lib} ${libkdeprint}"
      fi

fi
                    fi
  KLASH_PLUGIN=

    if test x$build_kparts3 = xyes; then
    if test "${ac_cv_path_kde3_prefix+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

            if test x"${with_kde3_prefix}" != x; then
          ac_cv_path_kde3_prefix="`(cd ${with_kde3_prefix}; pwd)`"
      fi

fi

    KDE3_PREFIX="${ac_cv_path_kde3_prefix}"
    if test x"${PLUGINS_INSTALL_POLICY}" != x; then
      case "${PLUGINS_INSTALL_POLICY}" in
        user)
       	  KDE3_PREFIX=${HOME}/.kde
          ;;
        system)
          KDE3_PREFIX="${kde3_prefix}"
          ;;
        prefix)
        	KDE3_PREFIX="${prefix}"
          ;;
      esac
    fi

    KDE3_PLUGINDIR="${KDE3_PREFIX}/lib/kde3"
    KDE3_SERVICESDIR="${KDE3_PREFIX}/share/services"
    KDE3_CONFIGDIR="${KDE3_PREFIX}/share/config"
    KDE3_APPSDATADIR="${KDE3_PREFIX}/share/apps/klash"
  fi
  if test x"${ac_cv_path_kde3_incl}" != x ; then
    if test x"${ac_cv_path_kde3_incl}" != x"-I/usr/include"; then
      KDE3_CFLAGS="${ac_cv_path_kde3_incl}"
    else
      KDE3_CFLAGS=""
    fi
  else
    KDE3_CFLAGS=""
  fi

  if test x"${ac_cv_path_kde3_lib}" != x; then
    KDE3_LIBS="${ac_cv_path_kde3_lib}"

$as_echo "#define HAVE_KDE3 1" >>confdefs.h

    has_kde3=yes
  else
    KDE3_LIBS=""
    has_kde3=no
  fi












  gnash_qt4_topdir=
  has_kde4=no


# Check whether --with-qt4_incl was given.
if test "${with_qt4_incl+set}" = set; then :
  withval=$with_qt4_incl; with_qt4_incl=${withval}
fi


  if test "${ac_cv_path_qt4_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_qt4_incl}" != x; then
      if test -f ${with_qt4_incl}/QtCore/qobject.h; then
        qt4_include_subdirs="QtCore QtGui QtOpenGL"

        ac_cv_path_qt4_incl="${ac_cv_path_qt4_incl} -I`(cd ${with_qt4_incl}; pwd)`"
        for i in ${qt4_include_subdirs}; do
          if test -d "${with_qt4_incl}/$i"; then
            ac_cv_path_qt4_incl="${ac_cv_path_qt4_incl} -I`(cd ${with_qt4_incl}\$i; pwd)`"
          fi
        done
      else
        as_fn_error "${with_qt4_incl}/QtCore directory doesn't contain QT 4.x headers" "$LINENO" 5
      fi
    fi

fi

    if test x"${build_qt4}" = xyes; then

    if test x"${ac_cv_path_qt4_incl}" = x; then
                  if test x$QTDIR != x; then
        if test -f $QTDIR/include/QtCore/qobject.h; then
          qt_base=`basename $QTDIR`
                    if test x"${qt_base}" != x"qt4"; then
            as_fn_error "Mismatched QT versions! Reset QTDIR in your environment!" "$LINENO" 5
          fi
        fi
      fi
    fi


     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT 4.x headers" >&5
$as_echo_n "checking for QT 4.x headers... " >&6; }
    if test x$cross_compiling = xno; then
      if test x"${PKG_CONFIG}" != x -a x"${ac_cv_path_qt4_incl}" = x; then
        ${PKG_CONFIG} --exists  QtOpenGL QtCore QtGui && ac_cv_path_qt4_incl="`$PKG_CONFIG --cflags-only-I QtOpenGL QtCore QtGui`"
	gnash_qt4_topdir=`echo "${ac_cv_path_qt4_incl}" | sed -e 's/-I//g' | cut -d ' ' -f 1`
      fi
    fi

            if test x"${ac_cv_path_qt4_incl}" = x; then
      for i in ${incllist} ${libslist}; do
                if test -f $i/Qt/qobject.h; then
          gnash_qt4_topdir="$i"
	  if test x"$i" != x"/usr/include"; then
            ac_cv_path_qt4_incl="-I$i"
	  fi
          break
        fi
	        if test -f $i/qt4/Qt/qobject.h; then
          gnash_qt4_topdir="$i/qt4"
          ac_cv_path_qt4_incl="-I$i/qt4"
          break
        fi
      done
    fi

                all_qt4_libs="QtCore QtGui QtOpenGL QtXml QtDBus QtNetwork QtScript QtSql QtTest QtSvg QtWebKit"
    if test x"${ac_cv_path_qt4_incl}" = x; then
      for i in ${all_qt4_libs}; do
                if test x"${darwin}" = xyes; then
          if test -d /Library/Frameworks; then
            ac_cv_path_qt4_incl="${ac_cv_path_qt4_incl} /Library/Frameworks/$i.framework/Headers"
          fi
        else
          if test -d ${gnash_qt4_topdir}/$i; then
            ac_cv_path_qt4_incl="${ac_cv_path_qt4_incl} -I${gnash_qt4_topdir}/$i"
          fi
        fi
      done
    fi
    if test x"${ac_cv_path_qt4_incl}" = x; then
      QT4_CFLAGS=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    else
      QT4_CFLAGS="${ac_cv_path_qt4_incl}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnash_qt4_topdir}" >&5
$as_echo "${gnash_qt4_topdir}" >&6; }
    fi



# Check whether --with-qt4_lib was given.
if test "${with_qt4_lib+set}" = set; then :
  withval=$with_qt4_lib; with_qt4_lib=${withval}
fi

    if test "${ac_cv_path_qt4_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_qt4_lib}" != x ; then
        if test `ls -C1 ${with_qt4_lib}/libQtCore.${shlibext}* | wc -l` -gt 0 ; then
         ac_cv_path_qt4_lib="-L`(cd ${with_qt4_lib}; pwd)` ${qt4support} -lQtCore -lQtGui"
        else
          as_fn_error "${with_qt4_lib} directory doesn't contain QT 4.x libraries." "$LINENO" 5
        fi
      fi

fi


    if test x$cross_compiling = xno; then
      if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_qt4_lib}" = x; then
        $PKG_CONFIG --exists QtCore QtGui && ac_cv_path_qt4_lib="`$PKG_CONFIG --libs QtCore QtGui`"
      fi
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT 4.x libraries" >&5
$as_echo_n "checking for QT 4.x libraries... " >&6; }
    if test x"${ac_cv_path_qt4_lib}" = x; then
      for i in $libslist; do
        if test -f $i/libQtCore.${shlibext}; then
	  gnash_qt4_topdir=$i
	  if test x"$i" != x"/usr/lib"; then
	    ac_cv_path_qt4_lib="-L$i"
	  fi
	  break
	fi
      done
            all_qt4_libs="QtCore QtGui"
      for i in ${all_qt4_libs}; do
        if test -f ${gnash_qt4_topdir}/lib$i.${shlibext}; then
	    ac_cv_path_qt4_lib="${ac_cv_path_qt4_lib} -l$i"
	fi
      done
    fi

    if test x"${ac_cv_path_qt4_lib}" != x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_qt4_lib}" >&5
$as_echo "${ac_cv_path_qt4_lib}" >&6; }
      QT4_LIBS="${ac_cv_path_qt4_lib}"

$as_echo "#define HAVE_QT4 1" >>confdefs.h

      has_qt4="yes"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      QT4_LIBS=""
      has_qt4="no"
    fi

    for ac_prog in moc-qt4 moc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MOC4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MOC4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MOC4="$MOC4" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${QTDIR}/bin /usr/lib/qt4/bin /usr/share/qt4/bin/ ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MOC4="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MOC4=$ac_cv_path_MOC4
if test -n "$MOC4"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC4" >&5
$as_echo "$MOC4" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MOC4" && break
done

    for ac_prog in uic-qt4 uic
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_UIC4+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $UIC4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_UIC4="$UIC4" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${QTDIR}/bin /usr/lib/qt4/bin /usr/share/qt4/bin/ ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_UIC4="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
UIC4=$ac_cv_path_UIC4
if test -n "$UIC4"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC4" >&5
$as_echo "$UIC4" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$UIC4" && break
done







  fi

  has_kde4=no


# Check whether --with-kde4_incl was given.
if test "${with_kde4_incl+set}" = set; then :
  withval=$with_kde4_incl; with_kde4_incl=${withval}
fi

    if test x"${with_kde4_incl}" != x ; then
    if test ! -f ${with_kde4_incl}/kapplication.h ; then
      as_fn_error "${with_kde4_incl} directory doesn't contain any KDE 4.x headers" "$LINENO" 5
    fi
  fi


# Check whether --with-kde4_prefix was given.
if test "${with_kde4_prefix+set}" = set; then :
  withval=$with_kde4_prefix; with_kde4_prefix=${withval}
fi



# Check whether --with-kde4_lib was given.
if test "${with_kde4_lib+set}" = set; then :
  withval=$with_kde4_lib; with_kde4_lib=${withval}
fi

    if test x"${with_kde4_lib}" != x ; then
    if test ! -f ${with_kde4_lib}/libkdeui.so; then
      as_fn_error "${with_kde4_lib} directory doesn't contain any KDE 4.x libraries!" "$LINENO" 5
    fi
  fi


# Check whether --with-kde4_plugindir was given.
if test "${with_kde4_plugindir+set}" = set; then :
  withval=$with_kde4_plugindir; with_kde4_plugindir=${withval}
fi

  if test x"${with_kde4_plugindir}" != x ; then
    if test ! -d ${with_kde4_plugindir}/imageformats; then
      as_fn_error "${with_kde4_plugindir} directory doesn't contain any KDE 4.x plugins!" "$LINENO" 5
    fi
  fi


# Check whether --with-kde4_servicesdir was given.
if test "${with_kde4_servicesdir+set}" = set; then :
  withval=$with_kde4_servicesdir; with_kde4_servicesdir=${withval}
fi

  if test x"${with_kde4_servicesdir}" != x ; then
    if test ! -d ${with_kde4_servicesdir}; then
      as_fn_error "${with_kde4_} directory doesn't contain any KDE 4.x plugins!" "$LINENO" 5
    fi
  fi


# Check whether --with-kde4-configdir was given.
if test "${with_kde4_configdir+set}" = set; then :
  withval=$with_kde4_configdir; KDE4_CONFIGDIR=${withval}

fi



# Check whether --with-kde-appsdatadir was given.
if test "${with_kde_appsdatadir+set}" = set; then :
  withval=$with_kde_appsdatadir; KDE4_APPSDATADIR=${withval}

fi


      if test x"${build_kde4}" = xyes; then
    kde4_prefix=
        pathlist="${pathlist}:/usr/local/kde4/bin"
    # Extract the first word of "kde4-config", so it can be a program name with args.
set dummy kde4-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $KDE4_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
if test -n "$KDE4_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
$as_echo "$KDE4_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "x$KDE4_CONFIG" != "x" ; then
      kde4_prefix=`$KDE4_CONFIG --prefix`
      { $as_echo "$as_me:${as_lineno-$LINENO}: KDE4 prefix from kde4-config is ${kde4_prefix}" >&5
$as_echo "$as_me: KDE4 prefix from kde4-config is ${kde4_prefix}" >&6;}
    fi

    if test "${ac_cv_path_kde4_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

            if test x"${with_kde4_incl}" != x ; then
        if test -f ${with_kde4_incl}/kapplication.h ; then
          ac_cv_path_kde4_incl="-I`(cd ${with_kde4_incl}; pwd)`"
        fi
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE 4.x header path" >&5
$as_echo_n "checking for KDE 4.x header path... " >&6; }
                  if test x"${ac_cv_path_kde4_incl}" = x ; then
                for i in ${kde4_prefix}/include $incllist; do
          if test -f $i/kde4/kapplication.h; then
            ac_cv_path_kde4_incl="-I$i/kde4"
            kde4_prefix=`dirname $i`
            break
          fi
          if test -f $i/kde/kapplication.h; then
            ac_cv_path_kde4_incl="-I$i/kde"
            kde4_prefix=`dirname $i`
            if test -f $i/kde/qxembed.h -a x"${build_kde3}" = x"no"; then
              as_fn_error "You specified building kde4, but you have kde3 installed!" "$LINENO" 5
            fi
            break
          fi
          if test -f $i/kapplication.h; then
            ac_cv_path_kde4_incl="-I$i"
            kde4_prefix=`dirname $i`
            if test -f $i/qxembed.h -a x"${build_kde3}" = x"no"; then
              as_fn_error "You specified building kde4, but you have kde3 installed!" "$LINENO" 5
            fi
            break
          fi
        done
      fi
      if test x"${ac_cv_path_kde4_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_kde4_incl}" >&5
$as_echo "${ac_cv_path_kde4_incl}" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        if test x${cross_compiling} = xno; then
                              for ac_header in kde4/kapplication.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "kde4/kapplication.h" "ac_cv_header_kde4_kapplication_h" "$ac_includes_default"
if test "x$ac_cv_header_kde4_kapplication_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KDE4_KAPPLICATION_H 1
_ACEOF
 ac_cv_path_kde4_incl=""
fi

done

        fi
      fi

fi

        if test "${ac_cv_path_kde4_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_kde4_lib}" != x ; then
        if test -f ${with_kde4_lib}/libkdeui.la; then
	        ac_cv_path_kde4_lib="-L`(cd ${with_kde4_lib}; pwd)`"
        else
	        as_fn_error "${with_kde4_lib} directory doesn't contain KDE 4.x libraries." "$LINENO" 5
        fi
      fi
      if test x"${ac_cv_path_kde4_lib}" = x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdeui library" >&5
$as_echo_n "checking for kdeui library... " >&6; }
        kde4_topdir=
        for i in ${kde4_prefix}/lib64 ${kde4_prefix}/lib $libslist /usr/lib/kde4/devel; do
          if test -f $i/libkdeui.${shlibext} -o -f $i/libkdeui.la; then
            kde4_topdir=$i
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${kde4_topdir}/libkdeui" >&5
$as_echo "${kde4_topdir}/libkdeui" >&6; }
	          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
	            ac_cv_path_kde4_lib="-L$i -lkdeui"
       	      break
            else
	            ac_cv_path_kde4_lib="-lkdeui"
	            break
            fi
          fi
        done
      fi
            if test x"${ac_cv_path_kde4_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdecore library" >&5
$as_echo_n "checking for kdecore library... " >&6; }
        if test -f ${kde4_topdir}/libkdecore.so; then
          ac_cv_path_kde4_lib="${ac_cv_path_kde4_lib} -lkdecore"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${kde4_topdir}/libkdecore" >&5
$as_echo "${kde4_topdir}/libkdecore" >&6; }
        else
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi
                    fi
  KLASH_PLUGIN=

    if test x$build_kparts4 = xyes; then
    if test "${ac_cv_path_kde4_prefix+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

            if test x"${with_kde4_prefix}" != x; then
          ac_cv_path_kde4_prefix="`(cd ${with_kde4_prefix}; pwd)`"
      fi

fi

    KDE4_PREFIX="${ac_cv_path_kde4_prefix}"
    if test x"${PLUGINS_INSTALL_POLICY}" != x; then
      case "${PLUGINS_INSTALL_POLICY}" in
        user)
       	  KDE4_PREFIX=${HOME}/.kde
          ;;
        system)
          KDE4_PREFIX="${kde4_prefix}"
          ;;
        prefix)
          KDE4_PREFIX="${prefix}"
          ;;
      esac
    fi

    if test x"${with_kde4_plugindir}" != x ; then
      KDE4_PLUGINDIR="${with_kde4_plugindir}/lib/kde4"
    else
      KDE4_PLUGINDIR="${KDE4_PREFIX}/lib/kde4"
    fi
    if test x"${with_kde4_servicesdir}" != x ; then
      KDE4_SERVICESDIR="${with_kde4_servicesdir}/share/kde4/services"
    else
      KDE4_SERVICESDIR="${KDE4_PREFIX}/share/kde4/services"
    fi
    if test x"${KDE4_CONFIGDIR}" != x ; then
      KDE4_CONFIGDIR="${KDE4_CONFIGDIR}}/share/kde4/config"
    else
      KDE4_CONFIGDIR="${KDE4_PREFIX}}/share/kde4/config"
    fi
    if test x"${KDE4_APPSDATADIR}" != x ; then
      KDE4_APPSDATADIR="${KDE4_APPSDATADIR}/share/kde4/apps/klash"
    else
      KDE4_APPSDATADIR="${KDE4_PREFIX}/share/kde4/apps/klash"
    fi
  fi
  if test x"${ac_cv_path_kde4_incl}" != x ; then
    if test x"${ac_cv_path_kde4_incl}" != x"-I/usr/include"; then
      KDE4_CFLAGS="${ac_cv_path_kde4_incl}"
    else
      KDE4_CFLAGS=""
    fi
  else
    KDE4_CFLAGS=""
  fi

  if test x"${ac_cv_path_kde4_lib}" != x; then
    KDE4_LIBS="${ac_cv_path_kde4_lib}"

$as_echo "#define HAVE_KDE4 1" >>confdefs.h

    has_kde4=yes
  else
    KDE4_LIBS=""
    has_kde4=no
  fi











has_qtopia3=no
has_qtopia4=no


 if test x$has_qtopia3 = xyes; then
  HAVE_QTOPIA3_TRUE=
  HAVE_QTOPIA3_FALSE='#'
else
  HAVE_QTOPIA3_TRUE='#'
  HAVE_QTOPIA3_FALSE=
fi

 if test x$has_qtopia4 = xyes; then
  HAVE_QTOPIA4_TRUE=
  HAVE_QTOPIA4_FALSE='#'
else
  HAVE_QTOPIA4_TRUE='#'
  HAVE_QTOPIA4_FALSE=
fi

 if test x$has_kde3 = xyes; then
  HAVE_KDE3_TRUE=
  HAVE_KDE3_FALSE='#'
else
  HAVE_KDE3_TRUE='#'
  HAVE_KDE3_FALSE=
fi

 if test x$has_kde4 = xyes; then
  HAVE_KDE4_TRUE=
  HAVE_KDE4_FALSE='#'
else
  HAVE_KDE4_TRUE='#'
  HAVE_KDE4_FALSE=
fi

 if test x$has_qt3 = xyes; then
  HAVE_QT3_TRUE=
  HAVE_QT3_FALSE='#'
else
  HAVE_QT3_TRUE='#'
  HAVE_QT3_FALSE=
fi

 if test x$has_qt4 = xyes; then
  HAVE_QT4_TRUE=
  HAVE_QT4_FALSE='#'
else
  HAVE_QT4_TRUE='#'
  HAVE_QT4_FALSE=
fi


 if test "$with_kde4" != "no"; then
  WITH_KDE4_TRUE=
  WITH_KDE4_FALSE='#'
else
  WITH_KDE4_TRUE='#'
  WITH_KDE4_FALSE=
fi

 if test "$platform" = "X11"; then
  QT_X11_TRUE=
  QT_X11_FALSE='#'
else
  QT_X11_TRUE='#'
  QT_X11_FALSE=
fi

 if test "$platform" = "Qtopia"; then
  QTOPIA_TRUE=
  QTOPIA_FALSE='#'
else
  QTOPIA_TRUE='#'
  QTOPIA_FALSE=
fi

 if test "$platform" = "OSX"; then
  QT_OSX_TRUE=
  QT_OSX_FALSE='#'
else
  QT_OSX_TRUE='#'
  QT_OSX_FALSE=
fi

 if test "$platform" = "OS9"; then
  QT_OS9_TRUE=
  QT_OS9_FALSE='#'
else
  QT_OS9_TRUE='#'
  QT_OS9_FALSE=
fi

 if test "$platform" = "Win32"; then
  QT_WIN32_TRUE=
  QT_WIN32_FALSE='#'
else
  QT_WIN32_TRUE='#'
  QT_WIN32_FALSE=
fi


if test x"${build_gtk}" = xyes -o x"${build_media_gst}" = xyes; then


# Check whether --with-glib_incl was given.
if test "${with_glib_incl+set}" = set; then :
  withval=$with_glib_incl; with_glib_incl=${withval}
fi

  if test "${ac_cv_path_glib_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_glib_incl}" != x ; then
      if test -f ${with_glib_incl}/glib.h ; then
        ac_cv_path_glib_incl="-I`(cd ${with_glib_incl}; pwd)`"
        gnash_glib_topdir=`basename ${with_glib_incl}`
        gnash_glib_version=`echo ${gnash_glib_topdir} | sed -e 's:glib-::'`
      else
    	  as_fn_error "${with_glib_incl} directory doesn't contain glib.h" "$LINENO" 5
      fi
    fi

fi


    if test x${cross_compiling} = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_glib_incl}" = x; then
	    $PKG_CONFIG --exists glib-2.0 && gnash_glib_version=`$PKG_CONFIG --modversion glib-2.0`
	    $PKG_CONFIG --exists glib-2.0 && ac_cv_path_glib_incl=`$PKG_CONFIG --cflags glib-2.0`
    fi
  fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Glib header" >&5
$as_echo_n "checking for Glib header... " >&6; }
  if test x"${ac_cv_path_glib_incl}" = x -a x"${gnash_glib_version}" = x; then
    gnash_glib_topdir=""
    gnash_glib_version=""
    for i in $incllist; do
      for j in `ls -dr $i/glib-[0-9].[0-9] $i/glib/glib-[0-9].[0-9] 2>/dev/null`; do
        if test -f $j/glib.h; then
          gnash_glib_topdir=`basename $j`
          gnash_glib_version=`echo ${gnash_glib_topdir} | sed -e 's:glib-::'`
          ac_cv_path_glib_incl="-I$j"
          gnash_glib_config=`echo $j | sed -e 's:include:lib:' -e 's:lib/glib/:lib/:'`
          if test -f ${gnash_glib_config}/include/glibconfig.h; then
            ac_cv_path_glib_incl="${ac_cv_path_glib_incl} -I${gnash_glib_config}/include"
          fi
          break
        fi
      done
    done
  fi

  if test x"${ac_cv_path_glib_incl}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_glib_incl}" >&5
$as_echo "${ac_cv_path_glib_incl}" >&6; }
  fi



# Check whether --with-glib_lib was given.
if test "${with_glib_lib+set}" = set; then :
  withval=$with_glib_lib; with_glib_lib=${withval}
fi

  if test "${ac_cv_path_glib_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_glib_lib}" != x ; then
      if test -f ${with_glib_lib}/libglib-${gnash_glib_version}.a -o -f ${with_glib_lib}/libglib-${gnash_glib_version}.${shlibext}; then
        ac_cv_path_glib_lib="-L`(cd ${with_glib_lib}; pwd)` -lglib-${gnash_glib_version}"
      else
        as_fn_error "${with_glib_lib} directory doesn't contain libglib." "$LINENO" 5
      fi
    fi

fi


  if test x${cross_compiling} = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_glib_lib}" = x; then
      $PKG_CONFIG --exists glib-2.0 && ac_cv_path_glib_lib=`$PKG_CONFIG --libs glib-2.0`
    fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib library" >&5
$as_echo_n "checking for glib library... " >&6; }
  if test x"${ac_cv_path_glib_lib}" = x; then
    for i in $libslist; do
      if test -f $i/libglib-${gnash_glib_version}.a -o -f $i/libglib-${gnash_glib_version}.${shlibext}; then
        if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64" -a ! x"$i" = x"/usr"; then
          ac_cv_path_glib_lib="-L$i -lglib-${gnash_glib_version}"
          break
        else
          ac_cv_path_glib_lib="-lglib-${gnash_glib_version}"
          break
        fi
      fi
    done
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_glib_lib}" >&5
$as_echo "${ac_cv_path_glib_lib}" >&6; }

  if test x"${ac_cv_path_glib_incl}" != x; then
	  GLIB_CFLAGS="${ac_cv_path_glib_incl} $GLIB_CFLAGS"

$as_echo "#define HAVE_GLIB 1" >>confdefs.h

  else
	  GLIB_CFLAGS=""
  fi

  if test x"${ac_cv_path_glib_lib}" != x ; then
	  GLIB_LIBS="${ac_cv_path_glib_lib}"
  else
  	GLIB_LIBS=""
  fi




fi

 if  test x"${has_glib}" = xyes ; then
  HAVE_GLIB_TRUE=
  HAVE_GLIB_FALSE='#'
else
  HAVE_GLIB_TRUE='#'
  HAVE_GLIB_FALSE=
fi


if test x$npapi = xyes; then
  if ! test x$build_gtk = xyes -o x$build_kde4 = xyes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Enabled NPAPI plugin, but it's not supported by the selected GUI\"" >&5
$as_echo "$as_me: WARNING: \"Enabled NPAPI plugin, but it's not supported by the selected GUI\"" >&2;}
  fi
fi

if test x$windows = xyes -a x$npapi = xyes; then
  if test "x$NSPR_CFLAGS" = x -a "x$NSPR_LIBS" = x; then
    as_fn_error "\"On Win32, NPAPI plugin requires NSPR.\"" "$LINENO" 5
  fi
  if test "x$WINDRES" = x; then
    as_fn_error "\"On Win32, NPAPI plugin requires windres.\"" "$LINENO" 5
  fi
fi

if test x$npapi = xyes; then


# Check whether --with-glib_incl was given.
if test "${with_glib_incl+set}" = set; then :
  withval=$with_glib_incl; with_glib_incl=${withval}
fi

  if test "${ac_cv_path_glib_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_glib_incl}" != x ; then
      if test -f ${with_glib_incl}/glib.h ; then
        ac_cv_path_glib_incl="-I`(cd ${with_glib_incl}; pwd)`"
        gnash_glib_topdir=`basename ${with_glib_incl}`
        gnash_glib_version=`echo ${gnash_glib_topdir} | sed -e 's:glib-::'`
      else
    	  as_fn_error "${with_glib_incl} directory doesn't contain glib.h" "$LINENO" 5
      fi
    fi

fi


    if test x${cross_compiling} = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_glib_incl}" = x; then
	    $PKG_CONFIG --exists glib-2.0 && gnash_glib_version=`$PKG_CONFIG --modversion glib-2.0`
	    $PKG_CONFIG --exists glib-2.0 && ac_cv_path_glib_incl=`$PKG_CONFIG --cflags glib-2.0`
    fi
  fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Glib header" >&5
$as_echo_n "checking for Glib header... " >&6; }
  if test x"${ac_cv_path_glib_incl}" = x -a x"${gnash_glib_version}" = x; then
    gnash_glib_topdir=""
    gnash_glib_version=""
    for i in $incllist; do
      for j in `ls -dr $i/glib-[0-9].[0-9] $i/glib/glib-[0-9].[0-9] 2>/dev/null`; do
        if test -f $j/glib.h; then
          gnash_glib_topdir=`basename $j`
          gnash_glib_version=`echo ${gnash_glib_topdir} | sed -e 's:glib-::'`
          ac_cv_path_glib_incl="-I$j"
          gnash_glib_config=`echo $j | sed -e 's:include:lib:' -e 's:lib/glib/:lib/:'`
          if test -f ${gnash_glib_config}/include/glibconfig.h; then
            ac_cv_path_glib_incl="${ac_cv_path_glib_incl} -I${gnash_glib_config}/include"
          fi
          break
        fi
      done
    done
  fi

  if test x"${ac_cv_path_glib_incl}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_glib_incl}" >&5
$as_echo "${ac_cv_path_glib_incl}" >&6; }
  fi



# Check whether --with-glib_lib was given.
if test "${with_glib_lib+set}" = set; then :
  withval=$with_glib_lib; with_glib_lib=${withval}
fi

  if test "${ac_cv_path_glib_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_glib_lib}" != x ; then
      if test -f ${with_glib_lib}/libglib-${gnash_glib_version}.a -o -f ${with_glib_lib}/libglib-${gnash_glib_version}.${shlibext}; then
        ac_cv_path_glib_lib="-L`(cd ${with_glib_lib}; pwd)` -lglib-${gnash_glib_version}"
      else
        as_fn_error "${with_glib_lib} directory doesn't contain libglib." "$LINENO" 5
      fi
    fi

fi


  if test x${cross_compiling} = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_glib_lib}" = x; then
      $PKG_CONFIG --exists glib-2.0 && ac_cv_path_glib_lib=`$PKG_CONFIG --libs glib-2.0`
    fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib library" >&5
$as_echo_n "checking for glib library... " >&6; }
  if test x"${ac_cv_path_glib_lib}" = x; then
    for i in $libslist; do
      if test -f $i/libglib-${gnash_glib_version}.a -o -f $i/libglib-${gnash_glib_version}.${shlibext}; then
        if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64" -a ! x"$i" = x"/usr"; then
          ac_cv_path_glib_lib="-L$i -lglib-${gnash_glib_version}"
          break
        else
          ac_cv_path_glib_lib="-lglib-${gnash_glib_version}"
          break
        fi
      fi
    done
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_glib_lib}" >&5
$as_echo "${ac_cv_path_glib_lib}" >&6; }

  if test x"${ac_cv_path_glib_incl}" != x; then
	  GLIB_CFLAGS="${ac_cv_path_glib_incl} $GLIB_CFLAGS"

$as_echo "#define HAVE_GLIB 1" >>confdefs.h

  else
	  GLIB_CFLAGS=""
  fi

  if test x"${ac_cv_path_glib_lib}" != x ; then
	  GLIB_LIBS="${ac_cv_path_glib_lib}"
  else
  	GLIB_LIBS=""
  fi




fi

if test x$has_kde3 = xno -a x$build_kparts3 = xyes; then
  build_kparts3=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Disabling KPARTS 3.x plugin, no KDE development found\"" >&5
$as_echo "$as_me: WARNING: \"Disabling KPARTS 3.x plugin, no KDE development found\"" >&2;}
fi

if test x$build_kde3 = xno -a x$build_kparts3 = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Enabled KPARTS 3.x plugin, but you aren't building a KDE based GUI!\"" >&5
$as_echo "$as_me: WARNING: \"Enabled KPARTS 3.x plugin, but you aren't building a KDE based GUI!\"" >&2;}
fi
if test x$has_kde4 = xno -a x$build_kparts4 = xyes; then
  build_kparts4=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Disabling KPARTS 4.x plugin, no KDE 4.x development found\"" >&5
$as_echo "$as_me: WARNING: \"Disabling KPARTS 4.x plugin, no KDE 4.x development found\"" >&2;}
fi

if test x$build_kde4 = xno -a x$kparts4 = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Enabled KPARTS 4.x plugin, but you aren't building a KDE 4.x based GUI!\"" >&5
$as_echo "$as_me: WARNING: \"Enabled KPARTS 4.x plugin, but you aren't building a KDE 4.x based GUI!\"" >&2;}
fi

 if  test x$build_qtopia3 = xyes ; then
  BUILD_QTOPIA3_GUI_TRUE=
  BUILD_QTOPIA3_GUI_FALSE='#'
else
  BUILD_QTOPIA3_GUI_TRUE='#'
  BUILD_QTOPIA3_GUI_FALSE=
fi

 if  test x$build_qtopia4 = xyes ; then
  BUILD_QTOPIA4_GUI_TRUE=
  BUILD_QTOPIA4_GUI_FALSE='#'
else
  BUILD_QTOPIA4_GUI_TRUE='#'
  BUILD_QTOPIA4_GUI_FALSE=
fi

 if  test x$build_qt3 = xyes ; then
  BUILD_QT3_GUI_TRUE=
  BUILD_QT3_GUI_FALSE='#'
else
  BUILD_QT3_GUI_TRUE='#'
  BUILD_QT3_GUI_FALSE=
fi

 if  test x$build_qt4 = xyes ; then
  BUILD_QT4_GUI_TRUE=
  BUILD_QT4_GUI_FALSE='#'
else
  BUILD_QT4_GUI_TRUE='#'
  BUILD_QT4_GUI_FALSE=
fi

 if  test x$build_kde3 = xyes ; then
  BUILD_KDE3_GUI_TRUE=
  BUILD_KDE3_GUI_FALSE='#'
else
  BUILD_KDE3_GUI_TRUE='#'
  BUILD_KDE3_GUI_FALSE=
fi

 if  test x$build_kde4 = xyes ; then
  BUILD_KDE4_GUI_TRUE=
  BUILD_KDE4_GUI_FALSE='#'
else
  BUILD_KDE4_GUI_TRUE='#'
  BUILD_KDE4_GUI_FALSE=
fi


 if  test x$build_alp = xyes ; then
  BUILD_ALP_GUI_TRUE=
  BUILD_ALP_GUI_FALSE='#'
else
  BUILD_ALP_GUI_TRUE='#'
  BUILD_ALP_GUI_FALSE=
fi

 if  test x$build_hildon = xyes ; then
  BUILD_HILDON_GUI_TRUE=
  BUILD_HILDON_GUI_FALSE='#'
else
  BUILD_HILDON_GUI_TRUE='#'
  BUILD_HILDON_GUI_FALSE=
fi

 if  test x$build_gtk = xyes ; then
  BUILD_GTK_GUI_TRUE=
  BUILD_GTK_GUI_FALSE='#'
else
  BUILD_GTK_GUI_TRUE='#'
  BUILD_GTK_GUI_FALSE=
fi

 if  test x$build_fltk = xyes ; then
  BUILD_FLTK_GUI_TRUE=
  BUILD_FLTK_GUI_FALSE='#'
else
  BUILD_FLTK_GUI_TRUE='#'
  BUILD_FLTK_GUI_FALSE=
fi

 if  test x$build_sdl = xyes ; then
  BUILD_SDL_GUI_TRUE=
  BUILD_SDL_GUI_FALSE='#'
else
  BUILD_SDL_GUI_TRUE='#'
  BUILD_SDL_GUI_FALSE=
fi

 if  test x$build_fb = xyes ; then
  BUILD_FB_GUI_TRUE=
  BUILD_FB_GUI_FALSE='#'
else
  BUILD_FB_GUI_TRUE='#'
  BUILD_FB_GUI_FALSE=
fi

 if  test x$build_aqua = xyes ; then
  BUILD_AQUA_GUI_TRUE=
  BUILD_AQUA_GUI_FALSE='#'
else
  BUILD_AQUA_GUI_TRUE='#'
  BUILD_AQUA_GUI_FALSE=
fi

 if  test x$build_aqua = xyes ; then
  ALLSTATIC_TRUE=
  ALLSTATIC_FALSE='#'
else
  ALLSTATIC_TRUE='#'
  ALLSTATIC_FALSE=
fi
  if  test x$build_riscos = xyes ; then
  BUILD_RISCOS_GUI_TRUE=
  BUILD_RISCOS_GUI_FALSE='#'
else
  BUILD_RISCOS_GUI_TRUE='#'
  BUILD_RISCOS_GUI_FALSE=
fi

 if  test x$build_dump = xyes ; then
  BUILD_DUMP_GUI_TRUE=
  BUILD_DUMP_GUI_FALSE='#'
else
  BUILD_DUMP_GUI_TRUE='#'
  BUILD_DUMP_GUI_FALSE=
fi

 if  test x$build_aos4 = xyes ; then
  BUILD_AMIGAOS4_GUI_TRUE=
  BUILD_AMIGAOS4_GUI_FALSE='#'
else
  BUILD_AMIGAOS4_GUI_TRUE='#'
  BUILD_AMIGAOS4_GUI_FALSE=
fi

 if  test x$build_haiku = xyes ; then
  BUILD_HAIKU_GUI_TRUE=
  BUILD_HAIKU_GUI_FALSE='#'
else
  BUILD_HAIKU_GUI_TRUE='#'
  BUILD_HAIKU_GUI_FALSE=
fi


# plugin building flags
 if test x"${npapi}" = xyes; then
  NPAPI_TRUE=
  NPAPI_FALSE='#'
else
  NPAPI_TRUE='#'
  NPAPI_FALSE=
fi

 if test x"${build_kparts3}" = xyes; then
  KPARTS3_TRUE=
  KPARTS3_FALSE='#'
else
  KPARTS3_TRUE='#'
  KPARTS3_FALSE=
fi

 if test x"${build_kparts4}" = xyes; then
  KPARTS4_TRUE=
  KPARTS4_FALSE='#'
else
  KPARTS4_TRUE='#'
  KPARTS4_FALSE=
fi


if test x"${build_gles}" = xyes; then



    EGL=yes
    if test x = x; then
      name=egl
    else
      name=egl-
    fi

        if test x"${EGL}" = x"yes"; then

# Check whether --with-EGL_incl was given.
if test "${with_EGL_incl+set}" = set; then :
  withval=$with_EGL_incl; with_EGL_incl=${withval}
fi

      if test "${ac_cv_path_EGL_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_EGL_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header in specified directory" >&5
$as_echo_n "checking for EGL/egl.h header in specified directory... " >&6; }
        if test -f ${with_EGL_incl}/EGL/egl.h ; then
          ac_cv_path_EGL_incl="-I`(cd ${with_EGL_incl}; pwd)`"
          found_EGL_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_EGL_incl} directory doesn't contain EGL/egl.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_EGL_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header using pkg-config" >&5
$as_echo_n "checking for EGL/egl.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libegl && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags libegl`"
      $PKG_CONFIG --exists egl && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags egl`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_EGL_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_incl}" >&5
$as_echo "${ac_cv_path_EGL_incl}" >&6; }
        found_EGL_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_EGL_incl}" = x; then
      # Extract the first word of "EGL-config", so it can be a program name with args.
set dummy EGL-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_EGL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $EGL_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EGL_CONFIG="$EGL_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EGL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
EGL_CONFIG=$ac_cv_path_EGL_CONFIG
if test -n "$EGL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGL_CONFIG" >&5
$as_echo "$EGL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${EGL_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header using EGL-config" >&5
$as_echo_n "checking for EGL/egl.h header using EGL-config... " >&6; }
        ac_cv_path_EGL_incl="`${EGL_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_EGL_incl}" = x; then
          ac_cv_path_EGL_incl="`${EGL_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_EGL_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_incl}" >&5
$as_echo "${ac_cv_path_EGL_incl}" >&6; }
        	found_EGL_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_EGL_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
if test "x$ac_cv_header_EGL_egl_h" = x""yes; then :
  ac_cv_path_EGL_incl=""; found_EGL_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "EGL/EGL/egl.h" "ac_cv_header_EGL_EGL_egl_h" "$ac_includes_default"
if test "x$ac_cv_header_EGL_EGL_egl_h" = x""yes; then :
  ac_cv_path_EGL_incl="-I/usr/include/EGL"; found_EGL_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/EGL/egl.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/EGL/egl.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_EGL_incl="-I/usr/include/$name"; found_EGL_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
if test "x$ac_cv_header_EGL_egl_h" = x""yes; then :
  ac_cv_path_EGL_incl="-I/usr/include/EGL/egl.h"; found_EGL_incl="yes"
else

          if test x"${ac_cv_path_EGL_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_EGL_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_EGL_incl="-I$i"
                else
                  ac_cv_path_EGL_incl=""
                fi
                break
              else
                if test -f $i/$name/EGL/egl.h; then
                  found_EGL_incl="yes"
                  ac_cv_path_EGL_incl="-I$i/$name"
                  break
                else
                  if test -f $i/EGL/egl.h; then
                    found_EGL_incl="yes"
                    ac_cv_path_EGL_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header" >&5
$as_echo_n "checking for EGL/egl.h header... " >&6; }
  if test x"${found_EGL_incl}" = "xyes"; then


$as_echo "#define HAVE_EGL_EGL_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_incl}" >&5
$as_echo "${ac_cv_path_EGL_incl}" >&6; }
      if test x"${ac_cv_path_EGL_incl}" != x -a x"${ac_cv_path_EGL_incl}" != x"-I/usr/include"; then
        EGL_CFLAGS="${ac_cv_path_EGL_incl}"
      else
        EGL_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_EGL=no
ac_manual=yes

if test x"${EGL}" = x"yes"; then

# Check whether --with-EGL_lib was given.
if test "${with_EGL_lib+set}" = set; then :
  withval=$with_EGL_lib; with_EGL_lib=${withval}
fi

  if test "${ac_cv_path_EGL_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_EGL_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library in specified directory" >&5
$as_echo_n "checking for libEGL library in specified directory... " >&6; }
    if test -f ${with_EGL_lib}/lib$name.a -o -f ${with_EGL_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_EGL_lib}; pwd)`"
      ac_cv_path_EGL_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_EGL_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_EGL_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library using pkg-config" >&5
$as_echo_n "checking for libEGL library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libegl && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs libegl`"
      $PKG_CONFIG --exists egl && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs egl`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_EGL_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_lib}" >&5
$as_echo "${ac_cv_path_EGL_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_EGL_lib}" = x; then
      # Extract the first word of "EGL-config", so it can be a program name with args.
set dummy EGL-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_EGL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $EGL_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EGL_CONFIG="$EGL_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EGL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
EGL_CONFIG=$ac_cv_path_EGL_CONFIG
if test -n "$EGL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGL_CONFIG" >&5
$as_echo "$EGL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${EGL_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library using EGL-config" >&5
$as_echo_n "checking for libEGL library using EGL-config... " >&6; }
        ac_cv_path_EGL_lib="`${EGL_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_lib}" >&5
$as_echo "${ac_cv_path_EGL_lib}" >&6; }
      fi
      if test x"${ac_cv_path_EGL_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_EGL_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_EGL_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libEGL.a -o -f $i/libEGL.${shlibext}; then
        if test -f "$i/libEGL.a" -o -f "$i/libEGL.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_EGL_lib="-L$i -lEGL "
          else
            ac_cv_path_EGL_lib="-lEGL "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_EGL_lib="-L$i -l$name "
          else
            ac_cv_path_EGL_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_EGL_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eglGetDisplay" >&5
$as_echo_n "checking for library containing eglGetDisplay... " >&6; }
if test "${ac_cv_search_eglGetDisplay+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char eglGetDisplay ();
int
main ()
{
return eglGetDisplay ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' EGL $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_eglGetDisplay=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_eglGetDisplay+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_eglGetDisplay+set}" = set; then :

else
  ac_cv_search_eglGetDisplay=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eglGetDisplay" >&5
$as_echo "$ac_cv_search_eglGetDisplay" >&6; }
ac_res=$ac_cv_search_eglGetDisplay
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_EGL_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library" >&5
$as_echo_n "checking for libEGL library... " >&6; }
	if test x"${ac_cv_path_EGL_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_lib}" >&5
$as_echo "${ac_cv_path_EGL_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_EGL_lib}" != x ; then
    EGL_LIBS="${ac_cv_path_EGL_lib}"
    has_EGL=yes
  else
    EGL_LIBS=""
  fi
fi









  gles=yes

        default_version=gles1
          default_flavor=any
      config_flavor=${default_flavor}

    if test x"${android_ndk}" != xno; then
    newlist="${android_ndk}/usr/include ${incllist}"
  else
    newlist="${incllist}"
  fi


# Check whether --with-gles_includes was given.
if test "${with_gles_includes+set}" = set; then :
  withval=$with_gles_includes; with_gles_includes=${withval}
fi

  if test "${ac_cv_path_gles_includes+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_gles_includes}" != x ; then
      if test -f ${with_gles_includes}/GLES/egl.h -o -f ${with_gles_includes}/GLES2/gl2.h ; then
        ac_cv_path_gles_includes="-I`(cd ${with_gles_includes}; pwd)`"
      else
        as_fn_error "${with_gles_includes} directory doesn't contain egl.h or gl2.h" "$LINENO" 5
      fi
    fi

fi


                                          if test x"${ac_cv_path_gles_includes}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL-ES headers" >&5
$as_echo_n "checking for OpenGL-ES headers... " >&6; }
    for i in ${newlist}; do
            if test x"${default_version}" = xgles1; then
        if test -f $i/GLES/gl.h; then

$as_echo "#define HAVE_GLES_GL_H 1" >>confdefs.h


$as_echo "#define RENDERER_GLES /**/" >>confdefs.h

          ac_cv_path_gles_includes="-I$i"
                              if test -f $i/GLES/glext.h; then

$as_echo "#define HAVE_GLES_GLEXT_H 1" >>confdefs.h

          fi
                              if test -f $i/GLES/egl.h; then
            config_flavor=10c
          else
            config_flavor=android
          fi
        fi
        if test -f $i/EGL/egl.h; then

$as_echo "#define HAVE_EGL_EGL_H 1" >>confdefs.h

          ac_cv_path_gles_includes="-I$i"
                    if test -f $i/EGL/egl_native_types.h; then
            config_flavor=mali
          else
            config_flavor=android
          fi
        fi
      fi
            if test x"${ac_cv_path_gles_includes}" = x; then
        default_version=gles2
      fi
            if test x"${default_version}" = xgles2; then
        if test -f $i/GLES2/gl2.h; then

$as_echo "#define HAVE_GLES2_GL2_H 1" >>confdefs.h


$as_echo "#define RENDERER_GLES2 /**/" >>confdefs.h

          ac_cv_path_gles_includes="-I$i"
                              config_flavor=android
        fi
        if test -f $i/EGL/egl.h; then

$as_echo "#define HAVE_EGL_EGL_H 1" >>confdefs.h


$as_echo "#define RENDERER_EGL /**/" >>confdefs.h

          ac_cv_path_gles_includes="-I$i"
                    if test -f $i/EGL/egl_native_types.h; then
            config_flavor=mali
          else
            config_flavor=android
          fi
        fi
      fi
      if test x"${ac_cv_path_gles_includes}" != x; then
        break;
      fi
    done
  fi
  if test x"${ac_cv_path_gles_includes}" != x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gles_includes}" >&5
$as_echo "${ac_cv_path_gles_includes}" >&6; }
  fi

  if test x"${ac_cv_path_gles_includes}" = x; then
    for ac_header in GLES2/gl2.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GLES2_GL2_H 1
_ACEOF
 ac_cv_path_gles_includes=""
fi

done

  fi
  if test x"${ac_cv_path_gles_includes}" = x; then
    for ac_header in GLES/egl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "GLES/egl.h" "ac_cv_header_GLES_egl_h" "$ac_includes_default"
if test "x$ac_cv_header_GLES_egl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GLES_EGL_H 1
_ACEOF
 ac_cv_path_gles_includes=""
fi

done

  fi

  if test x"${ac_cv_path_gles_includes}" != x; then
    GLES_CFLAGS="${ac_cv_path_gles_includes}"
  else
    GLES_CFLAGS=""
  fi

  if test x"${default_flavor}" = xany; then
    flavor="${config_flavor}"
  else
    flavor="${default_flavor}"
  fi

                      if test x"${default_version}" = xgles1; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OpenGL-ES implementation being used is: ${flavor} 1.x" >&5
$as_echo "$as_me: OpenGL-ES implementation being used is: ${flavor} 1.x" >&6;}
    case "${flavor}" in
      mali)    gleslist="egl glesv1"  ;;
      10c)     gleslist="GLES_CL" ;;
      android) gleslist="EGL GLESv1_CM" ;;
      *)     gleslist="GLES_CL GLESv1_CM GLESv1" ;;
    esac
  fi

  if test x"${default_version}" = xgles2; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: OpenGL-ES implementation being used is: ${flavor} 2.x" >&5
$as_echo "$as_me: OpenGL-ES implementation being used is: ${flavor} 2.x" >&6;}
    gleslist="EGL GLESv2"
  fi


# Check whether --with-gles_lib was given.
if test "${with_gles_lib+set}" = set; then :
  withval=$with_gles_lib; with_gles_lib=${withval}
fi

  if test "${ac_cv_path_gles_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_gles_lib}" != x ; then
      for j in $gleslist; do
        if test -f ${with_gles_lib}/$i.a -o -f ${with_gles_lib}/$i.${shlibext}; then
          ac_cv_path_gles_lib="-L`(cd ${with_gles_lib}; pwd)` -l$i"
          break;
        fi
      done
    fi

fi


    newlist="${android_ndk}/usr/lib ${libslist}"
  if test x"${ac_cv_path_gles_lib}" = x; then
    for dir in ${newlist}; do
      for lib in ${gleslist}; do
        if test -f ${dir}/lib${lib}.${shlibext} -o -f ${dir}/lib${lib}.a; then
          has_gles="yes"
          if test ! x"${dir}" = x"/usr/lib" -a ! x"${dir}" = x"/usr/lib64"; then
            ac_cv_path_gles_lib="-L${dir} -l${lib}"
          else
            ac_cv_path_gles_lib="-l${lib}"
          fi
                    if test x"${default_version}" = xgles2; then
            ac_cv_path_gles_lib="${ac_cv_path_gles_lib} -lGLESv2"
          fi
          break
        fi
      done
      if test x"${ac_cv_path_gles_lib}" != x ; then
          break
      fi
    done
  fi

  if test x"${ac_cv_path_gles_lib}" != x ; then
      GLES_LIBS="${ac_cv_path_gles_lib}"
  else
      GLES_LIBS=""
  fi




fi

if test x"${build_ogv}" = xyes; then



    EGL=yes
    if test x = x; then
      name=egl
    else
      name=egl-
    fi

        if test x"${EGL}" = x"yes"; then

# Check whether --with-EGL_incl was given.
if test "${with_EGL_incl+set}" = set; then :
  withval=$with_EGL_incl; with_EGL_incl=${withval}
fi

      if test "${ac_cv_path_EGL_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_EGL_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header in specified directory" >&5
$as_echo_n "checking for EGL/egl.h header in specified directory... " >&6; }
        if test -f ${with_EGL_incl}/EGL/egl.h ; then
          ac_cv_path_EGL_incl="-I`(cd ${with_EGL_incl}; pwd)`"
          found_EGL_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_EGL_incl} directory doesn't contain EGL/egl.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_EGL_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header using pkg-config" >&5
$as_echo_n "checking for EGL/egl.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libegl && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags libegl`"
      $PKG_CONFIG --exists egl && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags egl`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_EGL_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_EGL_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_incl}" >&5
$as_echo "${ac_cv_path_EGL_incl}" >&6; }
        found_EGL_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_EGL_incl}" = x; then
      # Extract the first word of "EGL-config", so it can be a program name with args.
set dummy EGL-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_EGL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $EGL_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EGL_CONFIG="$EGL_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EGL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
EGL_CONFIG=$ac_cv_path_EGL_CONFIG
if test -n "$EGL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGL_CONFIG" >&5
$as_echo "$EGL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${EGL_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header using EGL-config" >&5
$as_echo_n "checking for EGL/egl.h header using EGL-config... " >&6; }
        ac_cv_path_EGL_incl="`${EGL_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_EGL_incl}" = x; then
          ac_cv_path_EGL_incl="`${EGL_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_EGL_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_incl}" >&5
$as_echo "${ac_cv_path_EGL_incl}" >&6; }
        	found_EGL_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_EGL_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
if test "x$ac_cv_header_EGL_egl_h" = x""yes; then :
  ac_cv_path_EGL_incl=""; found_EGL_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "EGL/EGL/egl.h" "ac_cv_header_EGL_EGL_egl_h" "$ac_includes_default"
if test "x$ac_cv_header_EGL_EGL_egl_h" = x""yes; then :
  ac_cv_path_EGL_incl="-I/usr/include/EGL"; found_EGL_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/EGL/egl.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/EGL/egl.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_EGL_incl="-I/usr/include/$name"; found_EGL_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
if test "x$ac_cv_header_EGL_egl_h" = x""yes; then :
  ac_cv_path_EGL_incl="-I/usr/include/EGL/egl.h"; found_EGL_incl="yes"
else

          if test x"${ac_cv_path_EGL_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_EGL_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_EGL_incl="-I$i"
                else
                  ac_cv_path_EGL_incl=""
                fi
                break
              else
                if test -f $i/$name/EGL/egl.h; then
                  found_EGL_incl="yes"
                  ac_cv_path_EGL_incl="-I$i/$name"
                  break
                else
                  if test -f $i/EGL/egl.h; then
                    found_EGL_incl="yes"
                    ac_cv_path_EGL_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL/egl.h header" >&5
$as_echo_n "checking for EGL/egl.h header... " >&6; }
  if test x"${found_EGL_incl}" = "xyes"; then


$as_echo "#define HAVE_EGL_EGL_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_incl}" >&5
$as_echo "${ac_cv_path_EGL_incl}" >&6; }
      if test x"${ac_cv_path_EGL_incl}" != x -a x"${ac_cv_path_EGL_incl}" != x"-I/usr/include"; then
        EGL_CFLAGS="${ac_cv_path_EGL_incl}"
      else
        EGL_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_EGL=no
ac_manual=yes

if test x"${EGL}" = x"yes"; then

# Check whether --with-EGL_lib was given.
if test "${with_EGL_lib+set}" = set; then :
  withval=$with_EGL_lib; with_EGL_lib=${withval}
fi

  if test "${ac_cv_path_EGL_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_EGL_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library in specified directory" >&5
$as_echo_n "checking for libEGL library in specified directory... " >&6; }
    if test -f ${with_EGL_lib}/lib$name.a -o -f ${with_EGL_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_EGL_lib}; pwd)`"
      ac_cv_path_EGL_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_EGL_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_EGL_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library using pkg-config" >&5
$as_echo_n "checking for libEGL library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libegl && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs libegl`"
      $PKG_CONFIG --exists egl && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs egl`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_EGL_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_EGL_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_lib}" >&5
$as_echo "${ac_cv_path_EGL_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_EGL_lib}" = x; then
      # Extract the first word of "EGL-config", so it can be a program name with args.
set dummy EGL-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_EGL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $EGL_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EGL_CONFIG="$EGL_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EGL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
EGL_CONFIG=$ac_cv_path_EGL_CONFIG
if test -n "$EGL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGL_CONFIG" >&5
$as_echo "$EGL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${EGL_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library using EGL-config" >&5
$as_echo_n "checking for libEGL library using EGL-config... " >&6; }
        ac_cv_path_EGL_lib="`${EGL_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_lib}" >&5
$as_echo "${ac_cv_path_EGL_lib}" >&6; }
      fi
      if test x"${ac_cv_path_EGL_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_EGL_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_EGL_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libEGL.a -o -f $i/libEGL.${shlibext}; then
        if test -f "$i/libEGL.a" -o -f "$i/libEGL.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_EGL_lib="-L$i -lEGL "
          else
            ac_cv_path_EGL_lib="-lEGL "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_EGL_lib="-L$i -l$name "
          else
            ac_cv_path_EGL_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_EGL_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eglGetDisplay" >&5
$as_echo_n "checking for library containing eglGetDisplay... " >&6; }
if test "${ac_cv_search_eglGetDisplay+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char eglGetDisplay ();
int
main ()
{
return eglGetDisplay ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' EGL $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_eglGetDisplay=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_eglGetDisplay+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_eglGetDisplay+set}" = set; then :

else
  ac_cv_search_eglGetDisplay=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eglGetDisplay" >&5
$as_echo "$ac_cv_search_eglGetDisplay" >&6; }
ac_res=$ac_cv_search_eglGetDisplay
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_EGL_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libEGL library" >&5
$as_echo_n "checking for libEGL library... " >&6; }
	if test x"${ac_cv_path_EGL_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_EGL_lib}" >&5
$as_echo "${ac_cv_path_EGL_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_EGL_lib}" != x ; then
    EGL_LIBS="${ac_cv_path_EGL_lib}"
    has_EGL=yes
  else
    EGL_LIBS=""
  fi
fi











    OpenVG=yes
    if test x = x; then
      name=openvg
    else
      name=openvg-
    fi

        if test x"${OpenVG}" = x"yes"; then

# Check whether --with-OpenVG_incl was given.
if test "${with_OpenVG_incl+set}" = set; then :
  withval=$with_OpenVG_incl; with_OpenVG_incl=${withval}
fi

      if test "${ac_cv_path_OpenVG_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_OpenVG_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vg/openvg.h header in specified directory" >&5
$as_echo_n "checking for vg/openvg.h header in specified directory... " >&6; }
        if test -f ${with_OpenVG_incl}/vg/openvg.h ; then
          ac_cv_path_OpenVG_incl="-I`(cd ${with_OpenVG_incl}; pwd)`"
          found_OpenVG_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_OpenVG_incl} directory doesn't contain vg/openvg.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_OpenVG_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vg/openvg.h header using pkg-config" >&5
$as_echo_n "checking for vg/openvg.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libopenvg && ac_cv_path_OpenVG_incl="`$PKG_CONFIG --cflags libopenvg`"
      $PKG_CONFIG --exists openvg && ac_cv_path_OpenVG_incl="`$PKG_CONFIG --cflags openvg`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_OpenVG_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_OpenVG_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_OpenVG_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_OpenVG_incl}" >&5
$as_echo "${ac_cv_path_OpenVG_incl}" >&6; }
        found_OpenVG_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_OpenVG_incl}" = x; then
      # Extract the first word of "OpenVG-config", so it can be a program name with args.
set dummy OpenVG-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_OPENVG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $OPENVG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_OPENVG_CONFIG="$OPENVG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_OPENVG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
OPENVG_CONFIG=$ac_cv_path_OPENVG_CONFIG
if test -n "$OPENVG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENVG_CONFIG" >&5
$as_echo "$OPENVG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${OPENVG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vg/openvg.h header using OpenVG-config" >&5
$as_echo_n "checking for vg/openvg.h header using OpenVG-config... " >&6; }
        ac_cv_path_OpenVG_incl="`${OPENVG_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_OpenVG_incl}" = x; then
          ac_cv_path_OpenVG_incl="`${OPENVG_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_OpenVG_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_OpenVG_incl}" >&5
$as_echo "${ac_cv_path_OpenVG_incl}" >&6; }
        	found_OpenVG_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_OpenVG_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "vg/openvg.h" "ac_cv_header_vg_openvg_h" "$ac_includes_default"
if test "x$ac_cv_header_vg_openvg_h" = x""yes; then :
  ac_cv_path_OpenVG_incl=""; found_OpenVG_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "OpenVG/vg/openvg.h" "ac_cv_header_OpenVG_vg_openvg_h" "$ac_includes_default"
if test "x$ac_cv_header_OpenVG_vg_openvg_h" = x""yes; then :
  ac_cv_path_OpenVG_incl="-I/usr/include/OpenVG"; found_OpenVG_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/vg/openvg.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/vg/openvg.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_OpenVG_incl="-I/usr/include/$name"; found_OpenVG_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "vg/openvg.h" "ac_cv_header_vg_openvg_h" "$ac_includes_default"
if test "x$ac_cv_header_vg_openvg_h" = x""yes; then :
  ac_cv_path_OpenVG_incl="-I/usr/include/vg/openvg.h"; found_OpenVG_incl="yes"
else

          if test x"${ac_cv_path_OpenVG_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_OpenVG_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_OpenVG_incl="-I$i"
                else
                  ac_cv_path_OpenVG_incl=""
                fi
                break
              else
                if test -f $i/$name/vg/openvg.h; then
                  found_OpenVG_incl="yes"
                  ac_cv_path_OpenVG_incl="-I$i/$name"
                  break
                else
                  if test -f $i/vg/openvg.h; then
                    found_OpenVG_incl="yes"
                    ac_cv_path_OpenVG_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vg/openvg.h header" >&5
$as_echo_n "checking for vg/openvg.h header... " >&6; }
  if test x"${found_OpenVG_incl}" = "xyes"; then


$as_echo "#define HAVE_VG_OPENVG_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_OpenVG_incl}" >&5
$as_echo "${ac_cv_path_OpenVG_incl}" >&6; }
      if test x"${ac_cv_path_OpenVG_incl}" != x -a x"${ac_cv_path_OpenVG_incl}" != x"-I/usr/include"; then
        OPENVG_CFLAGS="${ac_cv_path_OpenVG_incl}"
      else
        OPENVG_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_OpenVG=no
ac_manual=yes

if test x"${OpenVG}" = x"yes"; then

# Check whether --with-OpenVG_lib was given.
if test "${with_OpenVG_lib+set}" = set; then :
  withval=$with_OpenVG_lib; with_OpenVG_lib=${withval}
fi

  if test "${ac_cv_path_OpenVG_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_OpenVG_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenVG library in specified directory" >&5
$as_echo_n "checking for libOpenVG library in specified directory... " >&6; }
    if test -f ${with_OpenVG_lib}/lib$name.a -o -f ${with_OpenVG_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_OpenVG_lib}; pwd)`"
      ac_cv_path_OpenVG_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_OpenVG_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_OpenVG_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenVG library using pkg-config" >&5
$as_echo_n "checking for libOpenVG library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libopenvg && ac_cv_path_OpenVG_lib="`$PKG_CONFIG --libs libopenvg`"
      $PKG_CONFIG --exists openvg && ac_cv_path_OpenVG_lib="`$PKG_CONFIG --libs openvg`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_OpenVG_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_OpenVG_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_OpenVG_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_OpenVG_lib}" >&5
$as_echo "${ac_cv_path_OpenVG_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_OpenVG_lib}" = x; then
      # Extract the first word of "OpenVG-config", so it can be a program name with args.
set dummy OpenVG-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_OPENVG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $OPENVG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_OPENVG_CONFIG="$OPENVG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_OPENVG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
OPENVG_CONFIG=$ac_cv_path_OPENVG_CONFIG
if test -n "$OPENVG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENVG_CONFIG" >&5
$as_echo "$OPENVG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${OPENVG_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenVG library using OpenVG-config" >&5
$as_echo_n "checking for libOpenVG library using OpenVG-config... " >&6; }
        ac_cv_path_OpenVG_lib="`${OPENVG_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_OpenVG_lib}" >&5
$as_echo "${ac_cv_path_OpenVG_lib}" >&6; }
      fi
      if test x"${ac_cv_path_OpenVG_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_OpenVG_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_OpenVG_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libOpenVG.a -o -f $i/libOpenVG.${shlibext}; then
        if test -f "$i/libOpenVG.a" -o -f "$i/libOpenVG.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_OpenVG_lib="-L$i -lOpenVG "
          else
            ac_cv_path_OpenVG_lib="-lOpenVG "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_OpenVG_lib="-L$i -l$name "
          else
            ac_cv_path_OpenVG_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_OpenVG_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing vgDrawImage" >&5
$as_echo_n "checking for library containing vgDrawImage... " >&6; }
if test "${ac_cv_search_vgDrawImage+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vgDrawImage ();
int
main ()
{
return vgDrawImage ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' OpenVG $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_vgDrawImage=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_vgDrawImage+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_vgDrawImage+set}" = set; then :

else
  ac_cv_search_vgDrawImage=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_vgDrawImage" >&5
$as_echo "$ac_cv_search_vgDrawImage" >&6; }
ac_res=$ac_cv_search_vgDrawImage
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_OpenVG_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenVG library" >&5
$as_echo_n "checking for libOpenVG library... " >&6; }
	if test x"${ac_cv_path_OpenVG_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_OpenVG_lib}" >&5
$as_echo "${ac_cv_path_OpenVG_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_OpenVG_lib}" != x ; then
    OPENVG_LIBS="${ac_cv_path_OpenVG_lib}"
    has_OpenVG=yes
  else
    OPENVG_LIBS=""
  fi
fi








fi

if test x"${build_ogl}" = xyes; then

  opengl=yes
  if test x"$opengl" = x"yes"; then

# Check whether --with-opengl_includes was given.
if test "${with_opengl_includes+set}" = set; then :
  withval=$with_opengl_includes; with_opengl_includes=${withval}
fi

    if test "${ac_cv_path_opengl_includes+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_opengl_includes}" != x ; then
        if test -f ${with_opengl_includes}/GL/gl.h -a -f ${with_opengl_includes}/GL/glu.h ; then
          ac_cv_path_opengl_includes="`(cd ${with_opengl_includes}; pwd)`"
        else
          as_fn_error "${with_opengl_includes} directory doesn't contain GL/gl.h" "$LINENO" 5
        fi
      fi

fi


        if test x"${darwin}" = xyes; then
      ac_cv_path_opengl_includes="-framework Carbon -framework ApplicationServices -framework OpenGL -framework AGL -I/System/Library/Frameworks/OpenGL.framework/Headers"
    else
      notsgigl=no
      if test x"${ac_cv_path_opengl_includes}" = x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
$as_echo_n "checking for OpenGL headers... " >&6; }
        newlist="/System/Library/Frameworks/OpenGL.framework/Headers ${incllist}"
        for i in $newlist; do
          if test -f $i/GL/gl.h -o -f $i/OpenGL.h; then
            if test -f $i/OpenGL.h; then
              notsgigl=yes

$as_echo "#define NOT_SGI_GL 1" >>confdefs.h

            fi
            if test x"$i" != x"/usr/include"; then
              ac_cv_path_opengl_includes="-I$i"
              break
            else
              ac_cv_path_opengl_includes="default"
              break
            fi
	          if test -f $i/GL/glu.h; then
	            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GL/glu.h not installed!" >&5
$as_echo "$as_me: WARNING: GL/glu.h not installed!" >&2;}
	          fi
          fi
        done
      fi
    fi

    if test x"${ac_cv_path_opengl_includes}" = x; then
      for ac_header in GL/gl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GL_GL_H 1
_ACEOF
 ac_cv_path_opengl_includes=""
fi

done

    fi

    if test x"${ac_cv_path_opengl_includes}" != x -a x"${ac_cv_path_opengl_includes}" != x"default"; then
      OPENGL_CFLAGS="${ac_cv_path_opengl_includes}"
    else
      OPENGL_CFLAGS=""
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_opengl_includes}" >&5
$as_echo "${ac_cv_path_opengl_includes}" >&6; }


# Check whether --with-opengl_lib was given.
if test "${with_opengl_lib+set}" = set; then :
  withval=$with_opengl_lib; with_opengl_lib=${withval}
fi

    if test "${ac_cv_path_opengl_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_opengl_lib}" != x ; then
        if test -f ${with_opengl_lib}/libGL.a -o -f ${with_opengl_lib}/libGL.${shlibext}; then
          ac_cv_path_opengl_lib="-L`(cd ${with_opengl_lib}; pwd)` -lGL -lGLU"
        else
          if test -f ${with_opengl_lib}/libopengl32.a; then
            ac_cv_path_opengl_lib="-L`(cd ${with_opengl_lib}; pwd)` -lopengl32 -lglu32"
          else
            as_fn_error "${with_opengl_lib} directory doesn't contain libGL." "$LINENO" 5
          fi
        fi
      fi

fi


    if test x"${darwin}" = xyes; then
      ac_cv_path_opengl_lib="-framework Carbon -framework ApplicationServices -framework OpenGL -framework AGL"
    else
      if test x"${ac_cv_path_opengl_lib}" = x; then
        newlist="/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries /System/Library/Frameworks/OpenGL.framework/Libraries ${libslist}"
        for i in $newlist; do
          if test -f $i/libGL.${shlibext} -o -f $i/libGL.a; then
            if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
              ac_cv_path_opengl_lib="-L$i -lGL"
              break
	          else
              ac_cv_path_opengl_lib="-lGL"
              break
	          fi
          fi
        done
        if test x"${ac_cv_path_opengl_lib}" != x; then
          if test -f $i/libGLU.${shlibext} -o -f $i/libGLU.a; then
            ac_cv_path_opengl_lib="${ac_cv_path_opengl_lib} -lGLU"
          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GLU library found!" >&5
$as_echo "$as_me: WARNING: No GLU library found!" >&2;}
          fi
        else                                for i in $newliblist; do
            if test -f $i/libopengl32.${shlibext} -o -f $i/libopengl32.a; then
              ac_cv_path_opengl_lib="-L$i -lopengl32 =lopenglu32"
              break
            fi
          done
        fi
      fi                            fi                            fi
  if test x"${ac_cv_path_opengl_lib}" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
$as_echo_n "checking for glBegin in -lGL... " >&6; }
if test "${ac_cv_lib_GL_glBegin+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lGL  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char glBegin ();
int
main ()
{
return glBegin ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_GL_glBegin=yes
else
  ac_cv_lib_GL_glBegin=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
$as_echo "$ac_cv_lib_GL_glBegin" >&6; }
if test "x$ac_cv_lib_GL_glBegin" = x""yes; then :
  ac_cv_path_opengl_lib="-lGL -lGLU"
fi

  fi

  if test x"${ac_cv_path_opengl_lib}" != x ; then
      OPENGL_LIBS="${ac_cv_path_opengl_lib}"
      has_opengl="yes"
  else
      OPENGL_LIBS=""
  fi

  if test x"${darwin}" = xyes; then
	  OPENGL_LIBS="${OPENGL_LIBS} -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
  fi




fi

if test x"${build_gtk}" = xyes; then
  # Check whether --enable-ghelp was given.
if test "${enable_ghelp+set}" = set; then :
  enableval=$enable_ghelp; case "${enableval}" in
      yes) ghelp=yes ;;
      no)  ghelp=no ;;
      *)   as_fn_error "bad value ${enableval} for enable-ghelp option" "$LINENO" 5 ;;
    esac
else
  ghelp=no

fi


  if test x"${ghelp}" = x"yes" ; then
    # Extract the first word of "scrollkeeper-config", so it can be a program name with args.
set dummy scrollkeeper-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SCROLLKEEPER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SCROLLKEEPER in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SCROLLKEEPER="$SCROLLKEEPER" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin/X11:/usr/local/bin/X11:/opt/X11"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SCROLLKEEPER="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SCROLLKEEPER=$ac_cv_path_SCROLLKEEPER
if test -n "$SCROLLKEEPER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCROLLKEEPER" >&5
$as_echo "$SCROLLKEEPER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    # Extract the first word of "scrollkeeper-update", so it can be a program name with args.
set dummy scrollkeeper-update; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SCROLLUPDATE+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SCROLLUPDATE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SCROLLUPDATE="$SCROLLUPDATE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin/X11:/usr/local/bin/X11:/opt/X11"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SCROLLUPDATE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SCROLLUPDATE=$ac_cv_path_SCROLLUPDATE
if test -n "$SCROLLUPDATE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCROLLUPDATE" >&5
$as_echo "$SCROLLUPDATE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    # Extract the first word of "scrollkeeper-preinstall", so it can be a program name with args.
set dummy scrollkeeper-preinstall; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SCROLLINSTALL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $SCROLLINSTALL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SCROLLINSTALL="$SCROLLINSTALL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin/X11:/usr/local/bin/X11:/opt/X11"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SCROLLINSTALL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SCROLLINSTALL=$ac_cv_path_SCROLLINSTALL
if test -n "$SCROLLINSTALL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCROLLINSTALL" >&5
$as_echo "$SCROLLINSTALL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    if test x"$SCROLLKEEPER" = x -o x"$SCROLLUPDATE" = x -o x"$SCROLLINSTALL" = x ; then
      ghelp=no
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need to install scrollkeeper for gnome help" >&5
$as_echo "$as_me: WARNING: You need to install scrollkeeper for gnome help" >&2;}
    fi
  fi
fi
 if test x${ghelp} = xyes; then
  GHELP_TRUE=
  GHELP_FALSE='#'
else
  GHELP_TRUE='#'
  GHELP_FALSE=
fi


if test x${build_fltk} = xyes; then



    Xft=yes
    if test x = x; then
      name=xft
    else
      name=xft-
    fi

        if test x"${Xft}" = x"yes"; then

# Check whether --with-Xft_incl was given.
if test "${with_Xft_incl+set}" = set; then :
  withval=$with_Xft_incl; with_Xft_incl=${withval}
fi

      if test "${ac_cv_path_Xft_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_Xft_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft.h header in specified directory" >&5
$as_echo_n "checking for Xft.h header in specified directory... " >&6; }
        if test -f ${with_Xft_incl}/Xft.h ; then
          ac_cv_path_Xft_incl="-I`(cd ${with_Xft_incl}; pwd)`"
          found_Xft_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_Xft_incl} directory doesn't contain Xft.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_Xft_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft.h header using pkg-config" >&5
$as_echo_n "checking for Xft.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libxft && ac_cv_path_Xft_incl="`$PKG_CONFIG --cflags libxft`"
      $PKG_CONFIG --exists xft && ac_cv_path_Xft_incl="`$PKG_CONFIG --cflags xft`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_Xft_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_Xft_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_Xft_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_Xft_incl}" >&5
$as_echo "${ac_cv_path_Xft_incl}" >&6; }
        found_Xft_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_Xft_incl}" = x; then
      # Extract the first word of "Xft-config", so it can be a program name with args.
set dummy Xft-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $XFT_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
XFT_CONFIG=$ac_cv_path_XFT_CONFIG
if test -n "$XFT_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
$as_echo "$XFT_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${XFT_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft.h header using Xft-config" >&5
$as_echo_n "checking for Xft.h header using Xft-config... " >&6; }
        ac_cv_path_Xft_incl="`${XFT_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_Xft_incl}" = x; then
          ac_cv_path_Xft_incl="`${XFT_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_Xft_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_Xft_incl}" >&5
$as_echo "${ac_cv_path_Xft_incl}" >&6; }
        	found_Xft_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_Xft_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "Xft.h" "ac_cv_header_Xft_h" "$ac_includes_default"
if test "x$ac_cv_header_Xft_h" = x""yes; then :
  ac_cv_path_Xft_incl=""; found_Xft_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "Xft/Xft.h" "ac_cv_header_Xft_Xft_h" "$ac_includes_default"
if test "x$ac_cv_header_Xft_Xft_h" = x""yes; then :
  ac_cv_path_Xft_incl="-I/usr/include/Xft"; found_Xft_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/Xft.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/Xft.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_Xft_incl="-I/usr/include/$name"; found_Xft_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "Xft.h" "ac_cv_header_Xft_h" "$ac_includes_default"
if test "x$ac_cv_header_Xft_h" = x""yes; then :
  ac_cv_path_Xft_incl="-I/usr/include/Xft.h"; found_Xft_incl="yes"
else

          if test x"${ac_cv_path_Xft_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_Xft_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_Xft_incl="-I$i"
                else
                  ac_cv_path_Xft_incl=""
                fi
                break
              else
                if test -f $i/$name/Xft.h; then
                  found_Xft_incl="yes"
                  ac_cv_path_Xft_incl="-I$i/$name"
                  break
                else
                  if test -f $i/Xft.h; then
                    found_Xft_incl="yes"
                    ac_cv_path_Xft_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft.h header" >&5
$as_echo_n "checking for Xft.h header... " >&6; }
  if test x"${found_Xft_incl}" = "xyes"; then


$as_echo "#define HAVE_XFT_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_Xft_incl}" >&5
$as_echo "${ac_cv_path_Xft_incl}" >&6; }
      if test x"${ac_cv_path_Xft_incl}" != x -a x"${ac_cv_path_Xft_incl}" != x"-I/usr/include"; then
        XFT_CFLAGS="${ac_cv_path_Xft_incl}"
      else
        XFT_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_Xft=no
ac_manual=yes

if test x"${Xft}" = x"yes"; then

# Check whether --with-Xft_lib was given.
if test "${with_Xft_lib+set}" = set; then :
  withval=$with_Xft_lib; with_Xft_lib=${withval}
fi

  if test "${ac_cv_path_Xft_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_Xft_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXft library in specified directory" >&5
$as_echo_n "checking for libXft library in specified directory... " >&6; }
    if test -f ${with_Xft_lib}/lib$name.a -o -f ${with_Xft_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_Xft_lib}; pwd)`"
      ac_cv_path_Xft_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_Xft_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_Xft_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXft library using pkg-config" >&5
$as_echo_n "checking for libXft library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libxft && ac_cv_path_Xft_lib="`$PKG_CONFIG --libs libxft`"
      $PKG_CONFIG --exists xft && ac_cv_path_Xft_lib="`$PKG_CONFIG --libs xft`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_Xft_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_Xft_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_Xft_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_Xft_lib}" >&5
$as_echo "${ac_cv_path_Xft_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_Xft_lib}" = x; then
      # Extract the first word of "Xft-config", so it can be a program name with args.
set dummy Xft-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $XFT_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
XFT_CONFIG=$ac_cv_path_XFT_CONFIG
if test -n "$XFT_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
$as_echo "$XFT_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${XFT_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXft library using Xft-config" >&5
$as_echo_n "checking for libXft library using Xft-config... " >&6; }
        ac_cv_path_Xft_lib="`${XFT_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_Xft_lib}" >&5
$as_echo "${ac_cv_path_Xft_lib}" >&6; }
      fi
      if test x"${ac_cv_path_Xft_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_Xft_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_Xft_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libXft.a -o -f $i/libXft.${shlibext}; then
        if test -f "$i/libXft.a" -o -f "$i/libXft.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_Xft_lib="-L$i -lXft "
          else
            ac_cv_path_Xft_lib="-lXft "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_Xft_lib="-L$i -l$name "
          else
            ac_cv_path_Xft_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_Xft_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XftGlyphRender" >&5
$as_echo_n "checking for library containing XftGlyphRender... " >&6; }
if test "${ac_cv_search_XftGlyphRender+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XftGlyphRender ();
int
main ()
{
return XftGlyphRender ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' Xft $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_XftGlyphRender=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_XftGlyphRender+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_XftGlyphRender+set}" = set; then :

else
  ac_cv_search_XftGlyphRender=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XftGlyphRender" >&5
$as_echo "$ac_cv_search_XftGlyphRender" >&6; }
ac_res=$ac_cv_search_XftGlyphRender
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_Xft_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXft library" >&5
$as_echo_n "checking for libXft library... " >&6; }
	if test x"${ac_cv_path_Xft_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_Xft_lib}" >&5
$as_echo "${ac_cv_path_Xft_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_Xft_lib}" != x ; then
    XFT_LIBS="${ac_cv_path_Xft_lib}"
    has_Xft=yes
  else
    XFT_LIBS=""
  fi
fi








fi




    expat=yes
    if test x = x; then
      name=expat
    else
      name=expat-
    fi

        if test x"${expat}" = x"yes"; then

# Check whether --with-expat_incl was given.
if test "${with_expat_incl+set}" = set; then :
  withval=$with_expat_incl; with_expat_incl=${withval}
fi

      if test "${ac_cv_path_expat_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_expat_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat.h header in specified directory" >&5
$as_echo_n "checking for expat.h header in specified directory... " >&6; }
        if test -f ${with_expat_incl}/expat.h ; then
          ac_cv_path_expat_incl="-I`(cd ${with_expat_incl}; pwd)`"
          found_expat_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_expat_incl} directory doesn't contain expat.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_expat_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat.h header using pkg-config" >&5
$as_echo_n "checking for expat.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libexpat && ac_cv_path_expat_incl="`$PKG_CONFIG --cflags libexpat`"
      $PKG_CONFIG --exists expat && ac_cv_path_expat_incl="`$PKG_CONFIG --cflags expat`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_expat_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_expat_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_expat_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_expat_incl}" >&5
$as_echo "${ac_cv_path_expat_incl}" >&6; }
        found_expat_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_expat_incl}" = x; then
      # Extract the first word of "expat-config", so it can be a program name with args.
set dummy expat-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_EXPAT_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $EXPAT_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EXPAT_CONFIG="$EXPAT_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EXPAT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
EXPAT_CONFIG=$ac_cv_path_EXPAT_CONFIG
if test -n "$EXPAT_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPAT_CONFIG" >&5
$as_echo "$EXPAT_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${EXPAT_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat.h header using expat-config" >&5
$as_echo_n "checking for expat.h header using expat-config... " >&6; }
        ac_cv_path_expat_incl="`${EXPAT_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_expat_incl}" = x; then
          ac_cv_path_expat_incl="`${EXPAT_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_expat_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_expat_incl}" >&5
$as_echo "${ac_cv_path_expat_incl}" >&6; }
        	found_expat_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_expat_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
if test "x$ac_cv_header_expat_h" = x""yes; then :
  ac_cv_path_expat_incl=""; found_expat_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "expat/expat.h" "ac_cv_header_expat_expat_h" "$ac_includes_default"
if test "x$ac_cv_header_expat_expat_h" = x""yes; then :
  ac_cv_path_expat_incl="-I/usr/include/expat"; found_expat_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/expat.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/expat.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_expat_incl="-I/usr/include/$name"; found_expat_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
if test "x$ac_cv_header_expat_h" = x""yes; then :
  ac_cv_path_expat_incl="-I/usr/include/expat.h"; found_expat_incl="yes"
else

          if test x"${ac_cv_path_expat_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_expat_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_expat_incl="-I$i"
                else
                  ac_cv_path_expat_incl=""
                fi
                break
              else
                if test -f $i/$name/expat.h; then
                  found_expat_incl="yes"
                  ac_cv_path_expat_incl="-I$i/$name"
                  break
                else
                  if test -f $i/expat.h; then
                    found_expat_incl="yes"
                    ac_cv_path_expat_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat.h header" >&5
$as_echo_n "checking for expat.h header... " >&6; }
  if test x"${found_expat_incl}" = "xyes"; then


$as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_expat_incl}" >&5
$as_echo "${ac_cv_path_expat_incl}" >&6; }
      if test x"${ac_cv_path_expat_incl}" != x -a x"${ac_cv_path_expat_incl}" != x"-I/usr/include"; then
        EXPAT_CFLAGS="${ac_cv_path_expat_incl}"
      else
        EXPAT_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_expat=no
ac_manual=yes

if test x"${expat}" = x"yes"; then

# Check whether --with-expat_lib was given.
if test "${with_expat_lib+set}" = set; then :
  withval=$with_expat_lib; with_expat_lib=${withval}
fi

  if test "${ac_cv_path_expat_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_expat_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat library in specified directory" >&5
$as_echo_n "checking for libexpat library in specified directory... " >&6; }
    if test -f ${with_expat_lib}/lib$name.a -o -f ${with_expat_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_expat_lib}; pwd)`"
      ac_cv_path_expat_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_expat_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_expat_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat library using pkg-config" >&5
$as_echo_n "checking for libexpat library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libexpat && ac_cv_path_expat_lib="`$PKG_CONFIG --libs libexpat`"
      $PKG_CONFIG --exists expat && ac_cv_path_expat_lib="`$PKG_CONFIG --libs expat`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_expat_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_expat_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_expat_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_expat_lib}" >&5
$as_echo "${ac_cv_path_expat_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_expat_lib}" = x; then
      # Extract the first word of "expat-config", so it can be a program name with args.
set dummy expat-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_EXPAT_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $EXPAT_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EXPAT_CONFIG="$EXPAT_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EXPAT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
EXPAT_CONFIG=$ac_cv_path_EXPAT_CONFIG
if test -n "$EXPAT_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPAT_CONFIG" >&5
$as_echo "$EXPAT_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${EXPAT_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat library using expat-config" >&5
$as_echo_n "checking for libexpat library using expat-config... " >&6; }
        ac_cv_path_expat_lib="`${EXPAT_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_expat_lib}" >&5
$as_echo "${ac_cv_path_expat_lib}" >&6; }
      fi
      if test x"${ac_cv_path_expat_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_expat_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_expat_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libexpat.a -o -f $i/libexpat.${shlibext}; then
        if test -f "$i/libexpat.a" -o -f "$i/libexpat.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_expat_lib="-L$i -lexpat "
          else
            ac_cv_path_expat_lib="-lexpat "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_expat_lib="-L$i -l$name "
          else
            ac_cv_path_expat_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_expat_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XML_ErrorString" >&5
$as_echo_n "checking for library containing XML_ErrorString... " >&6; }
if test "${ac_cv_search_XML_ErrorString+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XML_ErrorString ();
int
main ()
{
return XML_ErrorString ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' expat $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_XML_ErrorString=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_XML_ErrorString+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_XML_ErrorString+set}" = set; then :

else
  ac_cv_search_XML_ErrorString=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XML_ErrorString" >&5
$as_echo "$ac_cv_search_XML_ErrorString" >&6; }
ac_res=$ac_cv_search_XML_ErrorString
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_expat_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat library" >&5
$as_echo_n "checking for libexpat library... " >&6; }
	if test x"${ac_cv_path_expat_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_expat_lib}" >&5
$as_echo "${ac_cv_path_expat_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_expat_lib}" != x ; then
    EXPAT_LIBS="${ac_cv_path_expat_lib}"
    has_expat=yes
  else
    EXPAT_LIBS=""
  fi
fi









 if test x$has_kde3 = xyes; then
  HAS_KDE3_TRUE=
  HAS_KDE3_FALSE='#'
else
  HAS_KDE3_TRUE='#'
  HAS_KDE3_FALSE=
fi

# used to disable x11-specific stuff on special platforms
 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
  include_x11_TRUE=
  include_x11_FALSE='#'
else
  include_x11_TRUE='#'
  include_x11_FALSE=
fi

 if test "$build_arts" '!=' "no"; then
  include_ARTS_TRUE=
  include_ARTS_FALSE='#'
else
  include_ARTS_TRUE='#'
  include_ARTS_FALSE=
fi

 if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
  unsermake_enable_pch_TRUE=
  unsermake_enable_pch_FALSE='#'
else
  unsermake_enable_pch_TRUE='#'
  unsermake_enable_pch_FALSE=
fi


 if  test x$has_gtk2 = xyes ; then
  HAVE_GTK2_TRUE=
  HAVE_GTK2_FALSE='#'
else
  HAVE_GTK2_TRUE='#'
  HAVE_GTK2_FALSE=
fi

 if test x$glext = xyes; then
  HAVE_GLEXT_TRUE=
  HAVE_GLEXT_FALSE='#'
else
  HAVE_GLEXT_TRUE='#'
  HAVE_GLEXT_FALSE=
fi


if test x$glext = xno -a x$build_ogl = xyes; then
  if test x$gtk2 = xyes -a x$build_gtk = xyes; then
    as_fn_error "You have GTK installed, but not GtkGLExt. You need GtkGLExt to use the OpenGL renderer. Attempting to build SDL version" "$LINENO" 5
  fi
  gui=sdl
  npapi=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GTK2 specified for the GUI, but GtkGlExt is not present. Trying SDL instead." >&5
$as_echo "$as_me: WARNING: GTK2 specified for the GUI, but GtkGlExt is not present. Trying SDL instead." >&2;}
fi

missing_codecs=""
if test x"$build_media_gst" = "xyes"; then
  # Extract the first word of "gst-inspect", so it can be a program name with args.
set dummy gst-inspect; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GST_INSPECT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GST_INSPECT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GST_INSPECT="$GST_INSPECT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GST_INSPECT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GST_INSPECT=$ac_cv_path_GST_INSPECT
if test -n "$GST_INSPECT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_INSPECT" >&5
$as_echo "$GST_INSPECT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$GST_INSPECT" != "x" -a x"${darwin}" = xno ; then
    # Extract the first word of "gst-inspect-0.10", so it can be a program name with args.
set dummy gst-inspect-0.10; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GST_INSPECT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GST_INSPECT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GST_INSPECT="$GST_INSPECT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GST_INSPECT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GST_INSPECT=$ac_cv_path_GST_INSPECT
if test -n "$GST_INSPECT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_INSPECT" >&5
$as_echo "$GST_INSPECT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
  if test "x$GST_INSPECT" != "x" -a x"${darwin}" = xno ; then
            codecs="ffdec_flv ffdec_flashsv ffdec_vp6f ffdec_flashsv mad vorbisdec ffdec_vp6"
    for i in $codecs; do
       hits="`$GST_INSPECT $i | grep -c 'Long name'`"
       if test $hits -eq 0; then
         missing_codecs="$missing_codecs $i"
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing codec: $i" >&5
$as_echo "$as_me: WARNING: Missing codec: $i" >&2;}
       fi
    done
  fi



    gstreamer_plugins_base=yes
    if test x0.10 = x; then
      name=gstreamer-plugins-base
    else
      name=gstreamer-plugins-base-0.10
    fi

        if test x"${gstreamer_plugins_base}" = x"yes"; then

# Check whether --with-gstreamer_plugins_base_incl was given.
if test "${with_gstreamer_plugins_base_incl+set}" = set; then :
  withval=$with_gstreamer_plugins_base_incl; with_gstreamer_plugins_base_incl=${withval}
fi

      if test "${ac_cv_path_gstreamer_plugins_base_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_gstreamer_plugins_base_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/interfaces/probeprobe.h header in specified directory" >&5
$as_echo_n "checking for gst/interfaces/probeprobe.h header in specified directory... " >&6; }
        if test -f ${with_gstreamer_plugins_base_incl}/gst/interfaces/probeprobe.h ; then
          ac_cv_path_gstreamer_plugins_base_incl="-I`(cd ${with_gstreamer_plugins_base_incl}; pwd)`"
          found_gstreamer_plugins_base_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_gstreamer_plugins_base_incl} directory doesn't contain gst/interfaces/probeprobe.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstreamer_plugins_base_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/interfaces/probeprobe.h header using pkg-config" >&5
$as_echo_n "checking for gst/interfaces/probeprobe.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstreamer-plugins-base && ac_cv_path_gstreamer_plugins_base_incl="`$PKG_CONFIG --cflags libgstreamer-plugins-base`"
      $PKG_CONFIG --exists gstreamer-plugins-base && ac_cv_path_gstreamer_plugins_base_incl="`$PKG_CONFIG --cflags gstreamer-plugins-base`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstreamer_plugins_base_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstreamer_plugins_base_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_gstreamer_plugins_base_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_plugins_base_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_plugins_base_incl}" >&6; }
        found_gstreamer_plugins_base_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstreamer_plugins_base_incl}" = x; then
      # Extract the first word of "gstreamer_plugins_base-config", so it can be a program name with args.
set dummy gstreamer_plugins_base-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTREAMER_PLUGINS_BASE_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG="$GSTREAMER_PLUGINS_BASE_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTREAMER_PLUGINS_BASE_CONFIG=$ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG
if test -n "$GSTREAMER_PLUGINS_BASE_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CONFIG" >&5
$as_echo "$GSTREAMER_PLUGINS_BASE_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTREAMER_PLUGINS_BASE_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/interfaces/probeprobe.h header using gstreamer_plugins_base-config" >&5
$as_echo_n "checking for gst/interfaces/probeprobe.h header using gstreamer_plugins_base-config... " >&6; }
        ac_cv_path_gstreamer_plugins_base_incl="`${GSTREAMER_PLUGINS_BASE_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_gstreamer_plugins_base_incl}" = x; then
          ac_cv_path_gstreamer_plugins_base_incl="`${GSTREAMER_PLUGINS_BASE_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_gstreamer_plugins_base_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_plugins_base_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_plugins_base_incl}" >&6; }
        	found_gstreamer_plugins_base_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_gstreamer_plugins_base_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "gst/interfaces/probeprobe.h" "ac_cv_header_gst_interfaces_probeprobe_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_interfaces_probeprobe_h" = x""yes; then :
  ac_cv_path_gstreamer_plugins_base_incl=""; found_gstreamer_plugins_base_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "gstreamer_plugins_base/gst/interfaces/probeprobe.h" "ac_cv_header_gstreamer_plugins_base_gst_interfaces_probeprobe_h" "$ac_includes_default"
if test "x$ac_cv_header_gstreamer_plugins_base_gst_interfaces_probeprobe_h" = x""yes; then :
  ac_cv_path_gstreamer_plugins_base_incl="-I/usr/include/gstreamer_plugins_base"; found_gstreamer_plugins_base_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/gst/interfaces/probeprobe.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/gst/interfaces/probeprobe.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_gstreamer_plugins_base_incl="-I/usr/include/$name"; found_gstreamer_plugins_base_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "gst/interfaces/probeprobe.h" "ac_cv_header_gst_interfaces_probeprobe_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_interfaces_probeprobe_h" = x""yes; then :
  ac_cv_path_gstreamer_plugins_base_incl="-I/usr/include/gst/interfaces/probeprobe.h"; found_gstreamer_plugins_base_incl="yes"
else

          if test x"${ac_cv_path_gstreamer_plugins_base_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_gstreamer_plugins_base_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_gstreamer_plugins_base_incl="-I$i"
                else
                  ac_cv_path_gstreamer_plugins_base_incl=""
                fi
                break
              else
                if test -f $i/$name/gst/interfaces/probeprobe.h; then
                  found_gstreamer_plugins_base_incl="yes"
                  ac_cv_path_gstreamer_plugins_base_incl="-I$i/$name"
                  break
                else
                  if test -f $i/gst/interfaces/probeprobe.h; then
                    found_gstreamer_plugins_base_incl="yes"
                    ac_cv_path_gstreamer_plugins_base_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/interfaces/probeprobe.h header" >&5
$as_echo_n "checking for gst/interfaces/probeprobe.h header... " >&6; }
  if test x"${found_gstreamer_plugins_base_incl}" = "xyes"; then


$as_echo "#define HAVE_GST_INTERFACES_PROBEPROBE_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_plugins_base_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_plugins_base_incl}" >&6; }
      if test x"${ac_cv_path_gstreamer_plugins_base_incl}" != x -a x"${ac_cv_path_gstreamer_plugins_base_incl}" != x"-I/usr/include"; then
        GSTREAMER_PLUGINS_BASE_CFLAGS="${ac_cv_path_gstreamer_plugins_base_incl}"
      else
        GSTREAMER_PLUGINS_BASE_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_gstreamer_plugins_base=no
ac_manual=yes

if test x"${gstreamer_plugins_base}" = x"yes"; then

# Check whether --with-gstreamer_plugins_base_lib was given.
if test "${with_gstreamer_plugins_base_lib+set}" = set; then :
  withval=$with_gstreamer_plugins_base_lib; with_gstreamer_plugins_base_lib=${withval}
fi

  if test "${ac_cv_path_gstreamer_plugins_base_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_gstreamer_plugins_base_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_plugins_base library in specified directory" >&5
$as_echo_n "checking for libgstreamer_plugins_base library in specified directory... " >&6; }
    if test -f ${with_gstreamer_plugins_base_lib}/lib$name.a -o -f ${with_gstreamer_plugins_base_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_gstreamer_plugins_base_lib}; pwd)`"
      ac_cv_path_gstreamer_plugins_base_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_gstreamer_plugins_base_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstreamer_plugins_base_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_plugins_base library using pkg-config" >&5
$as_echo_n "checking for libgstreamer_plugins_base library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstreamer-plugins-base && ac_cv_path_gstreamer_plugins_base_lib="`$PKG_CONFIG --libs libgstreamer-plugins-base`"
      $PKG_CONFIG --exists gstreamer-plugins-base && ac_cv_path_gstreamer_plugins_base_lib="`$PKG_CONFIG --libs gstreamer-plugins-base`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstreamer_plugins_base_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstreamer_plugins_base_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_gstreamer_plugins_base_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_plugins_base_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_plugins_base_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstreamer_plugins_base_lib}" = x; then
      # Extract the first word of "gstreamer_plugins_base-config", so it can be a program name with args.
set dummy gstreamer_plugins_base-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTREAMER_PLUGINS_BASE_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG="$GSTREAMER_PLUGINS_BASE_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTREAMER_PLUGINS_BASE_CONFIG=$ac_cv_path_GSTREAMER_PLUGINS_BASE_CONFIG
if test -n "$GSTREAMER_PLUGINS_BASE_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CONFIG" >&5
$as_echo "$GSTREAMER_PLUGINS_BASE_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTREAMER_PLUGINS_BASE_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_plugins_base library using gstreamer_plugins_base-config" >&5
$as_echo_n "checking for libgstreamer_plugins_base library using gstreamer_plugins_base-config... " >&6; }
        ac_cv_path_gstreamer_plugins_base_lib="`${GSTREAMER_PLUGINS_BASE_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_plugins_base_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_plugins_base_lib}" >&6; }
      fi
      if test x"${ac_cv_path_gstreamer_plugins_base_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_gstreamer_plugins_base_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_gstreamer_plugins_base_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libgstreamer_plugins_base.a -o -f $i/libgstreamer_plugins_base.${shlibext}; then
        if test -f "$i/libgstreamer_plugins_base.a" -o -f "$i/libgstreamer_plugins_base.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstreamer_plugins_base_lib="-L$i -lgstreamer_plugins_base "
          else
            ac_cv_path_gstreamer_plugins_base_lib="-lgstreamer_plugins_base "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstreamer_plugins_base_lib="-L$i -l$name "
          else
            ac_cv_path_gstreamer_plugins_base_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_gstreamer_plugins_base_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gst_property_probe_probe_and_get_values_name" >&5
$as_echo_n "checking for library containing gst_property_probe_probe_and_get_values_name... " >&6; }
if test "${ac_cv_search_gst_property_probe_probe_and_get_values_name+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gst_property_probe_probe_and_get_values_name ();
int
main ()
{
return gst_property_probe_probe_and_get_values_name ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gstreamer_plugins_base $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_gst_property_probe_probe_and_get_values_name=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_gst_property_probe_probe_and_get_values_name+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_gst_property_probe_probe_and_get_values_name+set}" = set; then :

else
  ac_cv_search_gst_property_probe_probe_and_get_values_name=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gst_property_probe_probe_and_get_values_name" >&5
$as_echo "$ac_cv_search_gst_property_probe_probe_and_get_values_name" >&6; }
ac_res=$ac_cv_search_gst_property_probe_probe_and_get_values_name
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_gstreamer_plugins_base_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_plugins_base library" >&5
$as_echo_n "checking for libgstreamer_plugins_base library... " >&6; }
	if test x"${ac_cv_path_gstreamer_plugins_base_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_plugins_base_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_plugins_base_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_gstreamer_plugins_base_lib}" != x ; then
    GSTREAMER_PLUGINS_BASE_LIBS="${ac_cv_path_gstreamer_plugins_base_lib}"
    has_gstreamer_plugins_base=yes
  else
    GSTREAMER_PLUGINS_BASE_LIBS=""
  fi
fi











    gstreamer_app=yes
    if test x0.10 = x; then
      name=gstreamer-app
    else
      name=gstreamer-app-0.10
    fi

        if test x"${gstreamer_app}" = x"yes"; then

# Check whether --with-gstreamer_app_incl was given.
if test "${with_gstreamer_app_incl+set}" = set; then :
  withval=$with_gstreamer_app_incl; with_gstreamer_app_incl=${withval}
fi

      if test "${ac_cv_path_gstreamer_app_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_gstreamer_app_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/app/gstappsink.h header in specified directory" >&5
$as_echo_n "checking for gst/app/gstappsink.h header in specified directory... " >&6; }
        if test -f ${with_gstreamer_app_incl}/gst/app/gstappsink.h ; then
          ac_cv_path_gstreamer_app_incl="-I`(cd ${with_gstreamer_app_incl}; pwd)`"
          found_gstreamer_app_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_gstreamer_app_incl} directory doesn't contain gst/app/gstappsink.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstreamer_app_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/app/gstappsink.h header using pkg-config" >&5
$as_echo_n "checking for gst/app/gstappsink.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstreamer-app && ac_cv_path_gstreamer_app_incl="`$PKG_CONFIG --cflags libgstreamer-app`"
      $PKG_CONFIG --exists gstreamer-app && ac_cv_path_gstreamer_app_incl="`$PKG_CONFIG --cflags gstreamer-app`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstreamer_app_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstreamer_app_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_gstreamer_app_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_app_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_app_incl}" >&6; }
        found_gstreamer_app_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstreamer_app_incl}" = x; then
      # Extract the first word of "gstreamer_app-config", so it can be a program name with args.
set dummy gstreamer_app-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTREAMER_APP_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTREAMER_APP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTREAMER_APP_CONFIG="$GSTREAMER_APP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTREAMER_APP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTREAMER_APP_CONFIG=$ac_cv_path_GSTREAMER_APP_CONFIG
if test -n "$GSTREAMER_APP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_APP_CONFIG" >&5
$as_echo "$GSTREAMER_APP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTREAMER_APP_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/app/gstappsink.h header using gstreamer_app-config" >&5
$as_echo_n "checking for gst/app/gstappsink.h header using gstreamer_app-config... " >&6; }
        ac_cv_path_gstreamer_app_incl="`${GSTREAMER_APP_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_gstreamer_app_incl}" = x; then
          ac_cv_path_gstreamer_app_incl="`${GSTREAMER_APP_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_gstreamer_app_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_app_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_app_incl}" >&6; }
        	found_gstreamer_app_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_gstreamer_app_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
  ac_cv_path_gstreamer_app_incl=""; found_gstreamer_app_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "gstreamer_app/gst/app/gstappsink.h" "ac_cv_header_gstreamer_app_gst_app_gstappsink_h" "$ac_includes_default"
if test "x$ac_cv_header_gstreamer_app_gst_app_gstappsink_h" = x""yes; then :
  ac_cv_path_gstreamer_app_incl="-I/usr/include/gstreamer_app"; found_gstreamer_app_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/gst/app/gstappsink.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/gst/app/gstappsink.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_gstreamer_app_incl="-I/usr/include/$name"; found_gstreamer_app_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
  ac_cv_path_gstreamer_app_incl="-I/usr/include/gst/app/gstappsink.h"; found_gstreamer_app_incl="yes"
else

          if test x"${ac_cv_path_gstreamer_app_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_gstreamer_app_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_gstreamer_app_incl="-I$i"
                else
                  ac_cv_path_gstreamer_app_incl=""
                fi
                break
              else
                if test -f $i/$name/gst/app/gstappsink.h; then
                  found_gstreamer_app_incl="yes"
                  ac_cv_path_gstreamer_app_incl="-I$i/$name"
                  break
                else
                  if test -f $i/gst/app/gstappsink.h; then
                    found_gstreamer_app_incl="yes"
                    ac_cv_path_gstreamer_app_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/app/gstappsink.h header" >&5
$as_echo_n "checking for gst/app/gstappsink.h header... " >&6; }
  if test x"${found_gstreamer_app_incl}" = "xyes"; then


$as_echo "#define HAVE_GST_APP_GSTAPPSINK_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_app_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_app_incl}" >&6; }
      if test x"${ac_cv_path_gstreamer_app_incl}" != x -a x"${ac_cv_path_gstreamer_app_incl}" != x"-I/usr/include"; then
        GSTREAMER_APP_CFLAGS="${ac_cv_path_gstreamer_app_incl}"
      else
        GSTREAMER_APP_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_gstreamer_app=no
ac_manual=yes

if test x"${gstreamer_app}" = x"yes"; then

# Check whether --with-gstreamer_app_lib was given.
if test "${with_gstreamer_app_lib+set}" = set; then :
  withval=$with_gstreamer_app_lib; with_gstreamer_app_lib=${withval}
fi

  if test "${ac_cv_path_gstreamer_app_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_gstreamer_app_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_app library in specified directory" >&5
$as_echo_n "checking for libgstreamer_app library in specified directory... " >&6; }
    if test -f ${with_gstreamer_app_lib}/lib$name.a -o -f ${with_gstreamer_app_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_gstreamer_app_lib}; pwd)`"
      ac_cv_path_gstreamer_app_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_gstreamer_app_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstreamer_app_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_app library using pkg-config" >&5
$as_echo_n "checking for libgstreamer_app library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstreamer-app && ac_cv_path_gstreamer_app_lib="`$PKG_CONFIG --libs libgstreamer-app`"
      $PKG_CONFIG --exists gstreamer-app && ac_cv_path_gstreamer_app_lib="`$PKG_CONFIG --libs gstreamer-app`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstreamer_app_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstreamer_app_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_gstreamer_app_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_app_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_app_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstreamer_app_lib}" = x; then
      # Extract the first word of "gstreamer_app-config", so it can be a program name with args.
set dummy gstreamer_app-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTREAMER_APP_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTREAMER_APP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTREAMER_APP_CONFIG="$GSTREAMER_APP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTREAMER_APP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTREAMER_APP_CONFIG=$ac_cv_path_GSTREAMER_APP_CONFIG
if test -n "$GSTREAMER_APP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_APP_CONFIG" >&5
$as_echo "$GSTREAMER_APP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTREAMER_APP_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_app library using gstreamer_app-config" >&5
$as_echo_n "checking for libgstreamer_app library using gstreamer_app-config... " >&6; }
        ac_cv_path_gstreamer_app_lib="`${GSTREAMER_APP_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_app_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_app_lib}" >&6; }
      fi
      if test x"${ac_cv_path_gstreamer_app_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_gstreamer_app_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_gstreamer_app_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libgstreamer_app.a -o -f $i/libgstreamer_app.${shlibext}; then
        if test -f "$i/libgstreamer_app.a" -o -f "$i/libgstreamer_app.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstreamer_app_lib="-L$i -lgstreamer_app "
          else
            ac_cv_path_gstreamer_app_lib="-lgstreamer_app "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstreamer_app_lib="-L$i -l$name "
          else
            ac_cv_path_gstreamer_app_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_gstreamer_app_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing call_gmon_start" >&5
$as_echo_n "checking for library containing call_gmon_start... " >&6; }
if test "${ac_cv_search_call_gmon_start+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char call_gmon_start ();
int
main ()
{
return call_gmon_start ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gstreamer_app $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_call_gmon_start=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_call_gmon_start+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_call_gmon_start+set}" = set; then :

else
  ac_cv_search_call_gmon_start=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_call_gmon_start" >&5
$as_echo "$ac_cv_search_call_gmon_start" >&6; }
ac_res=$ac_cv_search_call_gmon_start
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_gstreamer_app_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer_app library" >&5
$as_echo_n "checking for libgstreamer_app library... " >&6; }
	if test x"${ac_cv_path_gstreamer_app_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_app_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_app_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_gstreamer_app_lib}" != x ; then
    GSTREAMER_APP_LIBS="${ac_cv_path_gstreamer_app_lib}"
    has_gstreamer_app=yes
  else
    GSTREAMER_APP_LIBS=""
  fi
fi











    gstreamer=yes
    if test x0.10 = x; then
      name=gstreamer
    else
      name=gstreamer-0.10
    fi

        if test x"${gstreamer}" = x"yes"; then

# Check whether --with-gstreamer_incl was given.
if test "${with_gstreamer_incl+set}" = set; then :
  withval=$with_gstreamer_incl; with_gstreamer_incl=${withval}
fi

      if test "${ac_cv_path_gstreamer_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_gstreamer_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/gst.h header in specified directory" >&5
$as_echo_n "checking for gst/gst.h header in specified directory... " >&6; }
        if test -f ${with_gstreamer_incl}/gst/gst.h ; then
          ac_cv_path_gstreamer_incl="-I`(cd ${with_gstreamer_incl}; pwd)`"
          found_gstreamer_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_gstreamer_incl} directory doesn't contain gst/gst.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstreamer_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/gst.h header using pkg-config" >&5
$as_echo_n "checking for gst/gst.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstreamer && ac_cv_path_gstreamer_incl="`$PKG_CONFIG --cflags libgstreamer`"
      $PKG_CONFIG --exists gstreamer && ac_cv_path_gstreamer_incl="`$PKG_CONFIG --cflags gstreamer`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstreamer_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstreamer_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_gstreamer_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_incl}" >&6; }
        found_gstreamer_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstreamer_incl}" = x; then
      # Extract the first word of "gstreamer-config", so it can be a program name with args.
set dummy gstreamer-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTREAMER_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTREAMER_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTREAMER_CONFIG="$GSTREAMER_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTREAMER_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTREAMER_CONFIG=$ac_cv_path_GSTREAMER_CONFIG
if test -n "$GSTREAMER_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CONFIG" >&5
$as_echo "$GSTREAMER_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTREAMER_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/gst.h header using gstreamer-config" >&5
$as_echo_n "checking for gst/gst.h header using gstreamer-config... " >&6; }
        ac_cv_path_gstreamer_incl="`${GSTREAMER_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_gstreamer_incl}" = x; then
          ac_cv_path_gstreamer_incl="`${GSTREAMER_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_gstreamer_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_incl}" >&6; }
        	found_gstreamer_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_gstreamer_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "gst/gst.h" "ac_cv_header_gst_gst_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_gst_h" = x""yes; then :
  ac_cv_path_gstreamer_incl=""; found_gstreamer_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "gstreamer/gst/gst.h" "ac_cv_header_gstreamer_gst_gst_h" "$ac_includes_default"
if test "x$ac_cv_header_gstreamer_gst_gst_h" = x""yes; then :
  ac_cv_path_gstreamer_incl="-I/usr/include/gstreamer"; found_gstreamer_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/gst/gst.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/gst/gst.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_gstreamer_incl="-I/usr/include/$name"; found_gstreamer_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "gst/gst.h" "ac_cv_header_gst_gst_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_gst_h" = x""yes; then :
  ac_cv_path_gstreamer_incl="-I/usr/include/gst/gst.h"; found_gstreamer_incl="yes"
else

          if test x"${ac_cv_path_gstreamer_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_gstreamer_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_gstreamer_incl="-I$i"
                else
                  ac_cv_path_gstreamer_incl=""
                fi
                break
              else
                if test -f $i/$name/gst/gst.h; then
                  found_gstreamer_incl="yes"
                  ac_cv_path_gstreamer_incl="-I$i/$name"
                  break
                else
                  if test -f $i/gst/gst.h; then
                    found_gstreamer_incl="yes"
                    ac_cv_path_gstreamer_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/gst.h header" >&5
$as_echo_n "checking for gst/gst.h header... " >&6; }
  if test x"${found_gstreamer_incl}" = "xyes"; then


$as_echo "#define HAVE_GST_GST_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_incl}" >&5
$as_echo "${ac_cv_path_gstreamer_incl}" >&6; }
      if test x"${ac_cv_path_gstreamer_incl}" != x -a x"${ac_cv_path_gstreamer_incl}" != x"-I/usr/include"; then
        GSTREAMER_CFLAGS="${ac_cv_path_gstreamer_incl}"
      else
        GSTREAMER_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_gstreamer=no
ac_manual=yes

if test x"${gstreamer}" = x"yes"; then

# Check whether --with-gstreamer_lib was given.
if test "${with_gstreamer_lib+set}" = set; then :
  withval=$with_gstreamer_lib; with_gstreamer_lib=${withval}
fi

  if test "${ac_cv_path_gstreamer_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_gstreamer_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer library in specified directory" >&5
$as_echo_n "checking for libgstreamer library in specified directory... " >&6; }
    if test -f ${with_gstreamer_lib}/lib$name.a -o -f ${with_gstreamer_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_gstreamer_lib}; pwd)`"
      ac_cv_path_gstreamer_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_gstreamer_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstreamer_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer library using pkg-config" >&5
$as_echo_n "checking for libgstreamer library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstreamer && ac_cv_path_gstreamer_lib="`$PKG_CONFIG --libs libgstreamer`"
      $PKG_CONFIG --exists gstreamer && ac_cv_path_gstreamer_lib="`$PKG_CONFIG --libs gstreamer`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstreamer_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstreamer_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_gstreamer_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstreamer_lib}" = x; then
      # Extract the first word of "gstreamer-config", so it can be a program name with args.
set dummy gstreamer-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTREAMER_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTREAMER_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTREAMER_CONFIG="$GSTREAMER_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTREAMER_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTREAMER_CONFIG=$ac_cv_path_GSTREAMER_CONFIG
if test -n "$GSTREAMER_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CONFIG" >&5
$as_echo "$GSTREAMER_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTREAMER_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer library using gstreamer-config" >&5
$as_echo_n "checking for libgstreamer library using gstreamer-config... " >&6; }
        ac_cv_path_gstreamer_lib="`${GSTREAMER_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_lib}" >&6; }
      fi
      if test x"${ac_cv_path_gstreamer_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_gstreamer_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_gstreamer_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libgstreamer.a -o -f $i/libgstreamer.${shlibext}; then
        if test -f "$i/libgstreamer.a" -o -f "$i/libgstreamer.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstreamer_lib="-L$i -lgstreamer "
          else
            ac_cv_path_gstreamer_lib="-lgstreamer "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstreamer_lib="-L$i -l$name "
          else
            ac_cv_path_gstreamer_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_gstreamer_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gst_init" >&5
$as_echo_n "checking for library containing gst_init... " >&6; }
if test "${ac_cv_search_gst_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gst_init ();
int
main ()
{
return gst_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gstreamer $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_gst_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_gst_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_gst_init+set}" = set; then :

else
  ac_cv_search_gst_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gst_init" >&5
$as_echo "$ac_cv_search_gst_init" >&6; }
ac_res=$ac_cv_search_gst_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_gstreamer_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstreamer library" >&5
$as_echo_n "checking for libgstreamer library... " >&6; }
	if test x"${ac_cv_path_gstreamer_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstreamer_lib}" >&5
$as_echo "${ac_cv_path_gstreamer_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_gstreamer_lib}" != x ; then
    GSTREAMER_LIBS="${ac_cv_path_gstreamer_lib}"
    has_gstreamer=yes
  else
    GSTREAMER_LIBS=""
  fi
fi








        if test x$cross_compiling = xno; then



    gstpbutils=yes
    if test x0.10 = x; then
      name=gstpbutils
    else
      name=gstpbutils-0.10
    fi

        if test x"${gstpbutils}" = x"yes"; then

# Check whether --with-gstpbutils_incl was given.
if test "${with_gstpbutils_incl+set}" = set; then :
  withval=$with_gstpbutils_incl; with_gstpbutils_incl=${withval}
fi

      if test "${ac_cv_path_gstpbutils_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_gstpbutils_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/pbutils/install-plugins.h header in specified directory" >&5
$as_echo_n "checking for gst/pbutils/install-plugins.h header in specified directory... " >&6; }
        if test -f ${with_gstpbutils_incl}/gst/pbutils/install-plugins.h ; then
          ac_cv_path_gstpbutils_incl="-I`(cd ${with_gstpbutils_incl}; pwd)`"
          found_gstpbutils_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_gstpbutils_incl} directory doesn't contain gst/pbutils/install-plugins.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstpbutils_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/pbutils/install-plugins.h header using pkg-config" >&5
$as_echo_n "checking for gst/pbutils/install-plugins.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstpbutils && ac_cv_path_gstpbutils_incl="`$PKG_CONFIG --cflags libgstpbutils`"
      $PKG_CONFIG --exists gstpbutils && ac_cv_path_gstpbutils_incl="`$PKG_CONFIG --cflags gstpbutils`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstpbutils_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstpbutils_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_gstpbutils_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstpbutils_incl}" >&5
$as_echo "${ac_cv_path_gstpbutils_incl}" >&6; }
        found_gstpbutils_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstpbutils_incl}" = x; then
      # Extract the first word of "gstpbutils-config", so it can be a program name with args.
set dummy gstpbutils-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTPBUTILS_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTPBUTILS_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTPBUTILS_CONFIG="$GSTPBUTILS_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTPBUTILS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTPBUTILS_CONFIG=$ac_cv_path_GSTPBUTILS_CONFIG
if test -n "$GSTPBUTILS_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTPBUTILS_CONFIG" >&5
$as_echo "$GSTPBUTILS_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTPBUTILS_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/pbutils/install-plugins.h header using gstpbutils-config" >&5
$as_echo_n "checking for gst/pbutils/install-plugins.h header using gstpbutils-config... " >&6; }
        ac_cv_path_gstpbutils_incl="`${GSTPBUTILS_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_gstpbutils_incl}" = x; then
          ac_cv_path_gstpbutils_incl="`${GSTPBUTILS_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_gstpbutils_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstpbutils_incl}" >&5
$as_echo "${ac_cv_path_gstpbutils_incl}" >&6; }
        	found_gstpbutils_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_gstpbutils_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "gst/pbutils/install-plugins.h" "ac_cv_header_gst_pbutils_install_plugins_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_pbutils_install_plugins_h" = x""yes; then :
  ac_cv_path_gstpbutils_incl=""; found_gstpbutils_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "gstpbutils/gst/pbutils/install-plugins.h" "ac_cv_header_gstpbutils_gst_pbutils_install_plugins_h" "$ac_includes_default"
if test "x$ac_cv_header_gstpbutils_gst_pbutils_install_plugins_h" = x""yes; then :
  ac_cv_path_gstpbutils_incl="-I/usr/include/gstpbutils"; found_gstpbutils_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/gst/pbutils/install-plugins.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/gst/pbutils/install-plugins.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_gstpbutils_incl="-I/usr/include/$name"; found_gstpbutils_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "gst/pbutils/install-plugins.h" "ac_cv_header_gst_pbutils_install_plugins_h" "$ac_includes_default"
if test "x$ac_cv_header_gst_pbutils_install_plugins_h" = x""yes; then :
  ac_cv_path_gstpbutils_incl="-I/usr/include/gst/pbutils/install-plugins.h"; found_gstpbutils_incl="yes"
else

          if test x"${ac_cv_path_gstpbutils_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_gstpbutils_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_gstpbutils_incl="-I$i"
                else
                  ac_cv_path_gstpbutils_incl=""
                fi
                break
              else
                if test -f $i/$name/gst/pbutils/install-plugins.h; then
                  found_gstpbutils_incl="yes"
                  ac_cv_path_gstpbutils_incl="-I$i/$name"
                  break
                else
                  if test -f $i/gst/pbutils/install-plugins.h; then
                    found_gstpbutils_incl="yes"
                    ac_cv_path_gstpbutils_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst/pbutils/install-plugins.h header" >&5
$as_echo_n "checking for gst/pbutils/install-plugins.h header... " >&6; }
  if test x"${found_gstpbutils_incl}" = "xyes"; then


$as_echo "#define HAVE_GST_PBUTILS_INSTALL_PLUGINS_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstpbutils_incl}" >&5
$as_echo "${ac_cv_path_gstpbutils_incl}" >&6; }
      if test x"${ac_cv_path_gstpbutils_incl}" != x -a x"${ac_cv_path_gstpbutils_incl}" != x"-I/usr/include"; then
        GSTPBUTILS_CFLAGS="${ac_cv_path_gstpbutils_incl}"
      else
        GSTPBUTILS_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_gstpbutils=no
ac_manual=yes

if test x"${gstpbutils}" = x"yes"; then

# Check whether --with-gstpbutils_lib was given.
if test "${with_gstpbutils_lib+set}" = set; then :
  withval=$with_gstpbutils_lib; with_gstpbutils_lib=${withval}
fi

  if test "${ac_cv_path_gstpbutils_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_gstpbutils_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstpbutils library in specified directory" >&5
$as_echo_n "checking for libgstpbutils library in specified directory... " >&6; }
    if test -f ${with_gstpbutils_lib}/lib$name.a -o -f ${with_gstpbutils_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_gstpbutils_lib}; pwd)`"
      ac_cv_path_gstpbutils_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_gstpbutils_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_gstpbutils_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstpbutils library using pkg-config" >&5
$as_echo_n "checking for libgstpbutils library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libgstpbutils && ac_cv_path_gstpbutils_lib="`$PKG_CONFIG --libs libgstpbutils`"
      $PKG_CONFIG --exists gstpbutils && ac_cv_path_gstpbutils_lib="`$PKG_CONFIG --libs gstpbutils`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_gstpbutils_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_gstpbutils_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_gstpbutils_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstpbutils_lib}" >&5
$as_echo "${ac_cv_path_gstpbutils_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_gstpbutils_lib}" = x; then
      # Extract the first word of "gstpbutils-config", so it can be a program name with args.
set dummy gstpbutils-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GSTPBUTILS_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GSTPBUTILS_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GSTPBUTILS_CONFIG="$GSTPBUTILS_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GSTPBUTILS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GSTPBUTILS_CONFIG=$ac_cv_path_GSTPBUTILS_CONFIG
if test -n "$GSTPBUTILS_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTPBUTILS_CONFIG" >&5
$as_echo "$GSTPBUTILS_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${GSTPBUTILS_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstpbutils library using gstpbutils-config" >&5
$as_echo_n "checking for libgstpbutils library using gstpbutils-config... " >&6; }
        ac_cv_path_gstpbutils_lib="`${GSTPBUTILS_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstpbutils_lib}" >&5
$as_echo "${ac_cv_path_gstpbutils_lib}" >&6; }
      fi
      if test x"${ac_cv_path_gstpbutils_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_gstpbutils_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_gstpbutils_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libgstpbutils.a -o -f $i/libgstpbutils.${shlibext}; then
        if test -f "$i/libgstpbutils.a" -o -f "$i/libgstpbutils.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstpbutils_lib="-L$i -lgstpbutils "
          else
            ac_cv_path_gstpbutils_lib="-lgstpbutils "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_gstpbutils_lib="-L$i -l$name "
          else
            ac_cv_path_gstpbutils_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_gstpbutils_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gst_install_plugins_supported" >&5
$as_echo_n "checking for library containing gst_install_plugins_supported... " >&6; }
if test "${ac_cv_search_gst_install_plugins_supported+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gst_install_plugins_supported ();
int
main ()
{
return gst_install_plugins_supported ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gstpbutils $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_gst_install_plugins_supported=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_gst_install_plugins_supported+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_gst_install_plugins_supported+set}" = set; then :

else
  ac_cv_search_gst_install_plugins_supported=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gst_install_plugins_supported" >&5
$as_echo "$ac_cv_search_gst_install_plugins_supported" >&6; }
ac_res=$ac_cv_search_gst_install_plugins_supported
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_gstpbutils_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgstpbutils library" >&5
$as_echo_n "checking for libgstpbutils library... " >&6; }
	if test x"${ac_cv_path_gstpbutils_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_gstpbutils_lib}" >&5
$as_echo "${ac_cv_path_gstpbutils_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_gstpbutils_lib}" != x ; then
    GSTPBUTILS_LIBS="${ac_cv_path_gstpbutils_lib}"
    has_gstpbutils=yes
  else
    GSTPBUTILS_LIBS=""
  fi
fi








  fi
          if test x"${has_gstreamer_plugins_base}" = xyes; then
    GSTREAMER_LIBS="-lgstinterfaces-0.10 $GSTREAMER_LIBS"

$as_echo "#define HAS_GSTREAMER_PLUGINS_BASE 1" >>confdefs.h

  fi
fi

 if true; then
  HAVE_CAIRO_TRUE=
  HAVE_CAIRO_FALSE='#'
else
  HAVE_CAIRO_TRUE='#'
  HAVE_CAIRO_FALSE=
fi

 if true; then
  HAVE_OPENGL_TRUE=
  HAVE_OPENGL_FALSE='#'
else
  HAVE_OPENGL_TRUE='#'
  HAVE_OPENGL_FALSE=
fi


 if test x$build_sound_sdl = xyes; then
  USE_SOUND_SDL_TRUE=
  USE_SOUND_SDL_FALSE='#'
else
  USE_SOUND_SDL_TRUE='#'
  USE_SOUND_SDL_FALSE=
fi

 if test x$build_sound_ahi = xyes; then
  USE_SOUND_AHI_TRUE=
  USE_SOUND_AHI_FALSE='#'
else
  USE_SOUND_AHI_TRUE='#'
  USE_SOUND_AHI_FALSE=
fi

 if test x$build_sound_mkit = xyes; then
  USE_SOUND_MKIT_TRUE=
  USE_SOUND_MKIT_FALSE='#'
else
  USE_SOUND_MKIT_TRUE='#'
  USE_SOUND_MKIT_FALSE=
fi

 if test x"${build_media_ffmpeg}" = x"yes"; then
  USE_FFMPEG_ENGINE_TRUE=
  USE_FFMPEG_ENGINE_FALSE='#'
else
  USE_FFMPEG_ENGINE_TRUE='#'
  USE_FFMPEG_ENGINE_FALSE=
fi

 if test x"${build_media_gst}" = x"yes"; then
  USE_GST_ENGINE_TRUE=
  USE_GST_ENGINE_FALSE='#'
else
  USE_GST_ENGINE_TRUE='#'
  USE_GST_ENGINE_FALSE=
fi

 if test x"${OPENGL_LIBS}" != x; then
  HAVE_OPENGL_TRUE=
  HAVE_OPENGL_FALSE='#'
else
  HAVE_OPENGL_TRUE='#'
  HAVE_OPENGL_FALSE=
fi

 if test x"$build_media_haiku" = xyes; then
  USE_HAIKU_ENGINE_TRUE=
  USE_HAIKU_ENGINE_FALSE='#'
else
  USE_HAIKU_ENGINE_TRUE='#'
  USE_HAIKU_ENGINE_FALSE=
fi


if test x"${build_media_ffmpeg}" = x"yes"; then

$as_echo "#define ENABLE_FFMPEG_MEDIA 1" >>confdefs.h

fi

if test x"${build_media_gst}" = x"yes"; then

$as_echo "#define ENABLE_GST_MEDIA 1" >>confdefs.h

fi

if test x"${build_media_haiku}" = x"yes"; then

$as_echo "#define ENABLE_HAIKU_MEDIA 1" >>confdefs.h

fi

if test x$build_sound_mkit = xyes; then
  if test x"${haiku}" != xyes; then
    as_fn_error "Media Kit sound handling is supported only under Haiku" "$LINENO" 5;
  else

$as_echo "#define SOUND_MKIT 1" >>confdefs.h

  fi
fi

if test x"${build_sound_sdl}" = xyes; then

$as_echo "#define SOUND_SDL 1" >>confdefs.h

fi

if test x"${build_sound_ahi}" = xyes; then
  if test x"$amigaos4" != xyes; then
    as_fn_error "AHI sound handling is supported only under AmigaOS" "$LINENO" 5;
  else

$as_echo "#define SOUND_AHI 1" >>confdefs.h

  fi
fi

if test x$build_fltk = xyes; then



    fltk2=yes
    if test x = x; then
      name=fltk2
    else
      name=fltk2-
    fi

        if test x"${fltk2}" = x"yes"; then

# Check whether --with-fltk2_incl was given.
if test "${with_fltk2_incl+set}" = set; then :
  withval=$with_fltk2_incl; with_fltk2_incl=${withval}
fi

      if test "${ac_cv_path_fltk2_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      if test x"${with_fltk2_incl}" != x ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fltk/FL_API.h header in specified directory" >&5
$as_echo_n "checking for fltk/FL_API.h header in specified directory... " >&6; }
        if test -f ${with_fltk2_incl}/fltk/FL_API.h ; then
          ac_cv_path_fltk2_incl="-I`(cd ${with_fltk2_incl}; pwd)`"
          found_fltk2_incl="yes"
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          as_fn_error "${with_fltk2_incl} directory doesn't contain fltk/FL_API.h." "$LINENO" 5
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
      fi

fi


  if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_fltk2_incl}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fltk/FL_API.h header using pkg-config" >&5
$as_echo_n "checking for fltk/FL_API.h header using pkg-config... " >&6; }
      $PKG_CONFIG --exists libfltk2 && ac_cv_path_fltk2_incl="`$PKG_CONFIG --cflags libfltk2`"
      $PKG_CONFIG --exists fltk2 && ac_cv_path_fltk2_incl="`$PKG_CONFIG --cflags fltk2`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_fltk2_incl="`$PKG_CONFIG --cflags lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_fltk2_incl="`$PKG_CONFIG --cflags $name`"
      if test x"${ac_cv_path_fltk2_incl}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fltk2_incl}" >&5
$as_echo "${ac_cv_path_fltk2_incl}" >&6; }
        found_fltk2_incl="yes"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_fltk2_incl}" = x; then
      # Extract the first word of "fltk2-config", so it can be a program name with args.
set dummy fltk2-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FLTK2_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $FLTK2_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FLTK2_CONFIG="$FLTK2_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FLTK2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
FLTK2_CONFIG=$ac_cv_path_FLTK2_CONFIG
if test -n "$FLTK2_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLTK2_CONFIG" >&5
$as_echo "$FLTK2_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${FLTK2_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fltk/FL_API.h header using fltk2-config" >&5
$as_echo_n "checking for fltk/FL_API.h header using fltk2-config... " >&6; }
        ac_cv_path_fltk2_incl="`${FLTK2_CONFIG} --cxxflags 2>/dev/null`"
        if test x"${ac_cv_path_fltk2_incl}" = x; then
          ac_cv_path_fltk2_incl="`${FLTK2_CONFIG} --cflags 2>/dev/null`"
        fi
        if test x"${ac_cv_path_fltk2_incl}" != x; then
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fltk2_incl}" >&5
$as_echo "${ac_cv_path_fltk2_incl}" >&6; }
        	found_fltk2_incl="yes"
      	else
        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      	fi
      fi
    fi
  fi

    if test x"${ac_cv_path_fltk2_incl}" = x; then
    ac_fn_c_check_header_mongrel "$LINENO" "fltk/FL_API.h" "ac_cv_header_fltk_FL_API_h" "$ac_includes_default"
if test "x$ac_cv_header_fltk_FL_API_h" = x""yes; then :
  ac_cv_path_fltk2_incl=""; found_fltk2_incl="yes"
else

      ac_fn_c_check_header_mongrel "$LINENO" "fltk2/fltk/FL_API.h" "ac_cv_header_fltk2_fltk_FL_API_h" "$ac_includes_default"
if test "x$ac_cv_header_fltk2_fltk_FL_API_h" = x""yes; then :
  ac_cv_path_fltk2_incl="-I/usr/include/fltk2"; found_fltk2_incl="yes"
else

        as_ac_Header=`$as_echo "ac_cv_header_$name/fltk/FL_API.h" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$name/fltk/FL_API.h" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  ac_cv_path_fltk2_incl="-I/usr/include/$name"; found_fltk2_incl="yes"
else

          ac_fn_c_check_header_mongrel "$LINENO" "fltk/FL_API.h" "ac_cv_header_fltk_FL_API_h" "$ac_includes_default"
if test "x$ac_cv_header_fltk_FL_API_h" = x""yes; then :
  ac_cv_path_fltk2_incl="-I/usr/include/fltk/FL_API.h"; found_fltk2_incl="yes"
else

          if test x"${ac_cv_path_fltk2_incl}" = x; then
            for i in $incllist; do
              if test -f $i/$name; then
                found_fltk2_incl="yes"
                if test x"$i" != x"/usr/include"; then
                  ac_cv_path_fltk2_incl="-I$i"
                else
                  ac_cv_path_fltk2_incl=""
                fi
                break
              else
                if test -f $i/$name/fltk/FL_API.h; then
                  found_fltk2_incl="yes"
                  ac_cv_path_fltk2_incl="-I$i/$name"
                  break
                else
                  if test -f $i/fltk/FL_API.h; then
                    found_fltk2_incl="yes"
                    ac_cv_path_fltk2_incl="-I$i"
                    break
                  fi
                fi
              fi
            done
          fi

fi



fi



fi



fi


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fltk/FL_API.h header" >&5
$as_echo_n "checking for fltk/FL_API.h header... " >&6; }
  if test x"${found_fltk2_incl}" = "xyes"; then


$as_echo "#define HAVE_FLTK_FL_API_H 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fltk2_incl}" >&5
$as_echo "${ac_cv_path_fltk2_incl}" >&6; }
      if test x"${ac_cv_path_fltk2_incl}" != x -a x"${ac_cv_path_fltk2_incl}" != x"-I/usr/include"; then
        FLTK2_CFLAGS="${ac_cv_path_fltk2_incl}"
      else
        FLTK2_CFLAGS=""
      fi
  else
  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi









has_fltk2=no
ac_manual=yes

if test x"${fltk2}" = x"yes"; then

# Check whether --with-fltk2_lib was given.
if test "${with_fltk2_lib+set}" = set; then :
  withval=$with_fltk2_lib; with_fltk2_lib=${withval}
fi

  if test "${ac_cv_path_fltk2_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test x"${with_fltk2_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfltk2 library in specified directory" >&5
$as_echo_n "checking for libfltk2 library in specified directory... " >&6; }
    if test -f ${with_fltk2_lib}/lib$name.a -o -f ${with_fltk2_lib}/lib$name.${shlibext}; then
      tmp="`(cd ${with_fltk2_lib}; pwd)`"
      ac_cv_path_fltk2_lib="-L${tmp} -l$name"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
      as_fn_error "${with_fltk2_lib} directory doesn't contain library $name." "$LINENO" 5
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
  fi

fi


    if test x$cross_compiling = xno; then
    if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_fltk2_lib}" = x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfltk2 library using pkg-config" >&5
$as_echo_n "checking for libfltk2 library using pkg-config... " >&6; }
      $PKG_CONFIG --exists libfltk2 && ac_cv_path_fltk2_lib="`$PKG_CONFIG --libs libfltk2`"
      $PKG_CONFIG --exists fltk2 && ac_cv_path_fltk2_lib="`$PKG_CONFIG --libs fltk2`"
      $PKG_CONFIG --exists lib$name && ac_cv_path_fltk2_lib="`$PKG_CONFIG --libs lib$name`"
      $PKG_CONFIG --exists $name && ac_cv_path_fltk2_lib="`$PKG_CONFIG --libs $name`"
      if test x"${ac_cv_path_fltk2_lib}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fltk2_lib}" >&5
$as_echo "${ac_cv_path_fltk2_lib}" >&6; }
        ac_manual=no
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
      fi
    fi
    if test x"${ac_cv_path_fltk2_lib}" = x; then
      # Extract the first word of "fltk2-config", so it can be a program name with args.
set dummy fltk2-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FLTK2_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $FLTK2_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FLTK2_CONFIG="$FLTK2_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FLTK2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
FLTK2_CONFIG=$ac_cv_path_FLTK2_CONFIG
if test -n "$FLTK2_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLTK2_CONFIG" >&5
$as_echo "$FLTK2_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x"${FLTK2_CONFIG}" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfltk2 library using fltk2-config" >&5
$as_echo_n "checking for libfltk2 library using fltk2-config... " >&6; }
        ac_cv_path_fltk2_lib="`${FLTK2_CONFIG} --libs`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fltk2_lib}" >&5
$as_echo "${ac_cv_path_fltk2_lib}" >&6; }
      fi
      if test x"${ac_cv_path_fltk2_lib}" = x; then
      		ac_manual=no
      fi
    fi
  fi

  if test x"${ac_manual}" != xyes -a x"${ac_cv_path_fltk2_lib}" = x; then
	ac_manual=yes
  fi

  if test x"${ac_cv_path_fltk2_lib}" = x; then
    ac_save_LIBS=$LIBS
    LIBS=""
    for i in $libslist; do
      if test -f $i/libfltk2.a -o -f $i/libfltk2.${shlibext}; then
        if test -f "$i/libfltk2.a" -o -f "$i/libfltk2.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_fltk2_lib="-L$i -lfltk2 "
          else
            ac_cv_path_fltk2_lib="-lfltk2 "
          fi
          break
        fi
      else
        if test -f "$i/lib$name.a" -o -f "$i/lib$name.${shlibext}"; then
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
            ac_cv_path_fltk2_lib="-L$i -l$name "
          else
            ac_cv_path_fltk2_lib="-l$name "
          fi
        break
        fi
      fi
    done
    LIBS=$ac_save_LIBS
  fi

  if test x"${ac_cv_path_fltk2_lib}" = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fl_window_flush" >&5
$as_echo_n "checking for library containing fl_window_flush... " >&6; }
if test "${ac_cv_search_fl_window_flush+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fl_window_flush ();
int
main ()
{
return fl_window_flush ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' fltk2 $name; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_fl_window_flush=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_fl_window_flush+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_fl_window_flush+set}" = set; then :

else
  ac_cv_search_fl_window_flush=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fl_window_flush" >&5
$as_echo "$ac_cv_search_fl_window_flush" >&6; }
ac_res=$ac_cv_search_fl_window_flush
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  ac_cv_path_fltk2_lib="$LIBS "
fi

  fi

  if test x"${ac_manual}" = xyes ; then
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfltk2 library" >&5
$as_echo_n "checking for libfltk2 library... " >&6; }
	if test x"${ac_cv_path_fltk2_lib}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_fltk2_lib}" >&5
$as_echo "${ac_cv_path_fltk2_lib}" >&6; }
	else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test x"${ac_cv_path_fltk2_lib}" != x ; then
    FLTK2_LIBS="${ac_cv_path_fltk2_lib}"
    has_fltk2=yes
  else
    FLTK2_LIBS=""
  fi
fi








fi

 if  test x$has_fltk2 = xyes ; then
  HAVE_FLTK2_TRUE=
  HAVE_FLTK2_FALSE='#'
else
  HAVE_FLTK2_TRUE='#'
  HAVE_FLTK2_FALSE=
fi

 if  test x$has_xft = xyes ; then
  HAS_XFT_TRUE=
  HAS_XFT_FALSE='#'
else
  HAS_XFT_TRUE='#'
  HAS_XFT_FALSE=
fi




  # Check whether --enable-docbook was given.
if test "${enable_docbook+set}" = set; then :
  enableval=$enable_docbook; case "${enableval}" in
    yes) docbook=yes ;;
    no)  docbook=no ;;
    *)   as_fn_error "bad value ${enableval} for enable-docbook option" "$LINENO" 5 ;;
  esac
else
  docbook=no
fi


  DB2X_VERSION=
  if test x"$docbook" = x"yes"; then
            # Extract the first word of "install-info", so it can be a program name with args.
set dummy install-info; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $INSTALL_INFO in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="$PATH:/usr/sbin"
  ;;
esac
fi
INSTALL_INFO=$ac_cv_path_INSTALL_INFO
if test -n "$INSTALL_INFO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
$as_echo "$INSTALL_INFO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



     if test x${INSTALL_INFO} != x; then
  ENABLE_INFO_TRUE=
  ENABLE_INFO_FALSE='#'
else
  ENABLE_INFO_TRUE='#'
  ENABLE_INFO_FALSE=
fi


    docbook_styles=

# Check whether --with-docbook_styles was given.
if test "${with_docbook_styles+set}" = set; then :
  withval=$with_docbook_styles; with_docbook_styles=${withval}
fi

    if test x"${with_docbook_styles}" != x ; then
      if test -f ${with_docbook_styles}/html/docbook.xsl ; then
        docbook_styles="`(cd ${with_docbook_styles}; pwd)`"
      else
        as_fn_error "${with_docbook_styles}/html directory doesn't contain docbook.xsl" "$LINENO" 5
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook styles path" >&5
$as_echo_n "checking for docbook styles path... " >&6; }
if test "${gnash_cv_path_docbook_styles+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

      dirlist="/usr/share/xml/docbook/stylesheet/nwalsh /usr/share/xml/docbook/stylesheet/nwalsh/current /usr/share/sgml/docbook/xsl-stylesheets /usr/local/share/sgml/docbook/xsl-stylesheets /opt/share/sgml/docbook/xsl-stylesheets /home/latest/share/sgml/docbook/xsl-stylesheets /usr/share/sgml/docbook/stylesheet/xsl/nwalsh"
      for i in $dirlist; do
        if test -f $i/html/docbook.xsl; then
          gnash_cv_path_docbook_styles="`(cd $i; pwd)`"
        break
        fi
      done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnash_cv_path_docbook_styles" >&5
$as_echo "$gnash_cv_path_docbook_styles" >&6; }
      if test x$gnash_cv_path_docbook_styles != x; then
        docbook_styles=$gnash_cv_path_docbook_styles
      fi
    fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for other programs needed to process the DocBook files" >&5
$as_echo "$as_me: checking for other programs needed to process the DocBook files" >&6;}
    # Extract the first word of "fop.sh", so it can be a program name with args.
set dummy fop.sh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FOP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $FOP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/local/fop-0.20.5/:/usr/fop-0.20.5/:/usr/local/fop:/usr/lib/java/fop"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
FOP=$ac_cv_path_FOP
if test -n "$FOP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
$as_echo "$FOP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test x"$FOP" = x; then
        # Extract the first word of "fop", so it can be a program name with args.
set dummy fop; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FOP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $FOP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/local/fop-0.20.5/:/usr/fop-0.20.5/:/usr/local/fop:/usr/lib/java/fop"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
FOP=$ac_cv_path_FOP
if test -n "$FOP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
$as_echo "$FOP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    fi
    if test x"$FOP" != x; then
      dirlist="/usr /usr/lib/jre /usr/jre /opt/local/Java/JavaSDK ~/ReQuest/jre $J2REDIR"
      JAVA=
      for i in $dirlist; do
        if test -f $i/bin/java; then
          version=`$i/bin/java -version 2>&1`
                    tmp="`echo $version | grep -c "java version" `"
          if test $tmp -gt 0; then
            version=sun
            JAVA=$i/bin/java
            break;
          fi
                    tmp="`echo $version | grep -c "java version" `"
          if test $tmp -gt 0; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $i/bin/java not Sun version!" >&5
$as_echo "$as_me: WARNING: $i/bin/java not Sun version!" >&2;}
            version=gcj
          fi
        fi
      done

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun java runtime" >&5
$as_echo_n "checking for Sun java runtime... " >&6; }
      if test x"$JAVA" = x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need to install Sun Java and the JAI toolkit to run fop" >&5
$as_echo "$as_me: WARNING: You need to install Sun Java and the JAI toolkit to run fop" >&2;}
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
$as_echo "$JAVA" >&6; }
      fi
    fi

    # Extract the first word of "pdfxmltex", so it can be a program name with args.
set dummy pdfxmltex; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PDFXMLTEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PDFXMLTEX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PDFXMLTEX="$PDFXMLTEX" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PDFXMLTEX="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PDFXMLTEX=$ac_cv_path_PDFXMLTEX
if test -n "$PDFXMLTEX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFXMLTEX" >&5
$as_echo "$PDFXMLTEX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




    # Extract the first word of "xsltproc", so it can be a program name with args.
set dummy xsltproc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_XSLTPROC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $XSLTPROC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
XSLTPROC=$ac_cv_path_XSLTPROC
if test -n "$XSLTPROC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
$as_echo "$XSLTPROC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    # Extract the first word of "db2x_xsltproc", so it can be a program name with args.
set dummy db2x_xsltproc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DB2X_XSLTPROC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DB2X_XSLTPROC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DB2X_XSLTPROC="$DB2X_XSLTPROC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DB2X_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DB2X_XSLTPROC=$ac_cv_path_DB2X_XSLTPROC
if test -n "$DB2X_XSLTPROC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2X_XSLTPROC" >&5
$as_echo "$DB2X_XSLTPROC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    if test x$DB2X_XSLTPROC = x; then
      # Extract the first word of "db2x_xsltproc.pl", so it can be a program name with args.
set dummy db2x_xsltproc.pl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DB2X_XSLTPROC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DB2X_XSLTPROC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DB2X_XSLTPROC="$DB2X_XSLTPROC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DB2X_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DB2X_XSLTPROC=$ac_cv_path_DB2X_XSLTPROC
if test -n "$DB2X_XSLTPROC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2X_XSLTPROC" >&5
$as_echo "$DB2X_XSLTPROC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    fi

                                            scripts="db2x_docbook2texi docbook2texi docbook2texi.pl"
    for i in $scripts; do
      # Extract the first word of "$i", so it can be a program name with args.
set dummy $i; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DB2X_TEXI+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DB2X_TEXI in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DB2X_TEXI="$DB2X_TEXI" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DB2X_TEXI="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DB2X_TEXI=$ac_cv_path_DB2X_TEXI
if test -n "$DB2X_TEXI"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2X_TEXI" >&5
$as_echo "$DB2X_TEXI" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x$DB2X_TEXI != x; then
        type="`file $DB2X_TEXI  | grep -ic " perl " 2>&1`"
        if test $type -gt 0; then
          break
        else
          DB2X_TEXI=
        fi
      fi
    done


    scripts="db2x_texixml db2x_texixml.pl"
    for i in $scripts; do
      # Extract the first word of "$i", so it can be a program name with args.
set dummy $i; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DB2X_TEXIXML+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DB2X_TEXIXML in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DB2X_TEXIXML="$DB2X_TEXIXML" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DB2X_TEXIXML="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DB2X_TEXIXML=$ac_cv_path_DB2X_TEXIXML
if test -n "$DB2X_TEXIXML"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2X_TEXIXML" >&5
$as_echo "$DB2X_TEXIXML" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x$DB2X_TEXIXML != x; then
        break
      fi
    done

        scripts="db2x_docbook2man docbook2man docbook2man.pl"
    for i in $scripts; do
      # Extract the first word of "$i", so it can be a program name with args.
set dummy $i; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DB2X_MAN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DB2X_MAN in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DB2X_MAN="$DB2X_MAN" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DB2X_MAN="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DB2X_MAN=$ac_cv_path_DB2X_MAN
if test -n "$DB2X_MAN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2X_MAN" >&5
$as_echo "$DB2X_MAN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x$DB2X_MAN != x; then
        type="`file $DB2X_MAN  | grep -ic " perl " 2>&1`"
        if test $type -gt 0; then
          break
        else
          DB2X_MAN=
        fi
      fi
    done

    scripts="db2x_manxml db2x_manxml.pl"
    for i in $scripts; do
      # Extract the first word of "$i", so it can be a program name with args.
set dummy $i; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DB2X_MANXML+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DB2X_MANXML in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DB2X_MANXML="$DB2X_MANXML" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DB2X_MANXML="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DB2X_MANXML=$ac_cv_path_DB2X_MANXML
if test -n "$DB2X_MANXML"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2X_MANXML" >&5
$as_echo "$DB2X_MANXML" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


      if test x$DB2X_MANXML != x; then
        break
      fi
    done

    # Extract the first word of "makeinfo", so it can be a program name with args.
set dummy makeinfo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MAKEINFO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAKEINFO in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MAKEINFO=$ac_cv_path_MAKEINFO
if test -n "$MAKEINFO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
$as_echo "$MAKEINFO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    if test x"$XSLTPROC" = x -o x"$docbook_styles" = x ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need to install xsltproc and docbook style sheets before HTML output can be generated" >&5
$as_echo "$as_me: WARNING: You need to install xsltproc and docbook style sheets before HTML output can be generated" >&2;}
    fi
    if test x"$DB2X_XSLTPROC" = x -o x"$DB2X_TEXIXML" = x  -o x"$DB2X_MANXML" = x -o x"$MAKEINFO" = x ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need to install the docbook2X package before Texi output can be generated" >&5
$as_echo "$as_me: WARNING: You need to install the docbook2X package before Texi output can be generated" >&2;}
    fi

    # Extract the first word of "docbook2pdf", so it can be a program name with args.
set dummy docbook2pdf; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DB2X_PDF+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $DB2X_PDF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DB2X_PDF="$DB2X_PDF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/bin:/usr/bin/X11:/usr/local/X11/bin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DB2X_PDF="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DB2X_PDF=$ac_cv_path_DB2X_PDF
if test -n "$DB2X_PDF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2X_PDF" >&5
$as_echo "$DB2X_PDF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




    if test x"$FOP" != x -a x"$docbook_styles" != x ; then :
    elif test x"$PDFXMLTEX" != x -a x"$XSLTPROC" != x -a x"$docbook_styles" != x ; then :
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable fop nor pdfxmltex, PDF format files can't be generated - hint: apt-get install xmltex fop" >&5
$as_echo "$as_me: WARNING: No suitable fop nor pdfxmltex, PDF format files can't be generated - hint: apt-get install xmltex fop" >&2;}
    fi
  fi

   if  test x"$DB2X_TEXI" != x -o x"$DB2X_TEXIXML" != x ; then
  ENABLE_TEXI_TRUE=
  ENABLE_TEXI_FALSE='#'
else
  ENABLE_TEXI_TRUE='#'
  ENABLE_TEXI_FALSE=
fi

   if  test x"$DB2X_PDF" ; then
  ENABLE_PDF_TRUE=
  ENABLE_PDF_FALSE='#'
else
  ENABLE_PDF_TRUE='#'
  ENABLE_PDF_FALSE=
fi

   if  test x"$XSLTPROC" != x -a x"$docbook_styles" != x ; then
  ENABLE_HTML_TRUE=
  ENABLE_HTML_FALSE='#'
else
  ENABLE_HTML_TRUE='#'
  ENABLE_HTML_FALSE=
fi

   if  test x"$FOP" != x -a x"$docbook_styles" != x ; then
  ENABLE_FOP_TRUE=
  ENABLE_FOP_FALSE='#'
else
  ENABLE_FOP_TRUE='#'
  ENABLE_FOP_FALSE=
fi

   if  test x"$PDFXMLTEX" != x -a x"$XSLTPROC" != x -a x"$docbook_styles" != x ; then
  ENABLE_XMLTEX_TRUE=
  ENABLE_XMLTEX_FALSE='#'
else
  ENABLE_XMLTEX_TRUE='#'
  ENABLE_XMLTEX_FALSE=
fi

   if  test x"$DB2X_MAN" != x -o x"$DB2X_MANXML" != x ; then
  ENABLE_MAN_TRUE=
  ENABLE_MAN_FALSE='#'
else
  ENABLE_MAN_TRUE='#'
  ENABLE_MAN_FALSE=
fi




  if test x"${DB2X_TEXIXML}" != x; then
    db2x_version=`${DB2X_TEXIXML} --version | head -1 | sed -e 's/^.*docbook2X //' -e 's/).*$//' 2>&1`
    DB2X_VERSION="${db2x_version}"

  fi








 if test x${INSTALL_INFO} != x; then
  ENABLE_INFO_TRUE=
  ENABLE_INFO_FALSE='#'
else
  ENABLE_INFO_TRUE='#'
  ENABLE_INFO_FALSE=
fi

 if test x$docbook = xyes; then
  DOCBOOK_TRUE=
  DOCBOOK_FALSE='#'
else
  DOCBOOK_TRUE='#'
  DOCBOOK_FALSE=
fi

 if  test x"$DB2X_TEXI" != x -o x"$DB2X_TEXIXML" != x ; then
  ENABLE_TEXI_TRUE=
  ENABLE_TEXI_FALSE='#'
else
  ENABLE_TEXI_TRUE='#'
  ENABLE_TEXI_FALSE=
fi

 if  test x"$DB2X_PDF" ; then
  ENABLE_PDF_TRUE=
  ENABLE_PDF_FALSE='#'
else
  ENABLE_PDF_TRUE='#'
  ENABLE_PDF_FALSE=
fi

 if  test x"$XSLTPROC" != x -a x"$docbook_styles" != x ; then
  ENABLE_HTML_TRUE=
  ENABLE_HTML_FALSE='#'
else
  ENABLE_HTML_TRUE='#'
  ENABLE_HTML_FALSE=
fi

 if  test x"$FOP" != x -a x"$docbook_styles" != x ; then
  ENABLE_FOP_TRUE=
  ENABLE_FOP_FALSE='#'
else
  ENABLE_FOP_TRUE='#'
  ENABLE_FOP_FALSE=
fi

 if  test x"$PDFXMLTEX" != x -a x"$XSLTPROC" != x -a x"$docbook_styles" != x ; then
  ENABLE_XMLTEX_TRUE=
  ENABLE_XMLTEX_FALSE='#'
else
  ENABLE_XMLTEX_TRUE='#'
  ENABLE_XMLTEX_FALSE=
fi

 if  test x"$DB2X_MAN" != x -o x"$DB2X_MANXML" != x ; then
  ENABLE_MAN_TRUE=
  ENABLE_MAN_FALSE='#'
else
  ENABLE_MAN_TRUE='#'
  ENABLE_MAN_FALSE=
fi

 if test x"${AGG_LIBS}" != x; then
  HAVE_AGG_TRUE=
  HAVE_AGG_FALSE='#'
else
  HAVE_AGG_TRUE='#'
  HAVE_AGG_FALSE=
fi




# Check whether --with-curl_incl was given.
if test "${with_curl_incl+set}" = set; then :
  withval=$with_curl_incl; with_curl_incl=${withval}
fi

    if test "${ac_cv_path_curl_incl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_curl_incl}" != x ; then
      if test -f ${with_curl_incl}/curl/curl.h ; then
	      ac_cv_path_curl_incl="`(cd ${with_curl_incl}; pwd)`"
      else
	      as_fn_error "${with_curl_incl} directory doesn't contain curl/curl.h" "$LINENO" 5
      fi
    fi

fi


  curlconfig=""
  # Extract the first word of "curl-config", so it can be a program name with args.
set dummy curl-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_curlconfig+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $curlconfig in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_curlconfig="$curlconfig" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${pathlist}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_curlconfig="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
curlconfig=$ac_cv_path_curlconfig
if test -n "$curlconfig"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curlconfig" >&5
$as_echo "$curlconfig" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    if test x"${ac_cv_path_curl_incl}" = x; then
    if test x"${curlconfig}" != "x"; then
      ac_cv_path_curl_incl="`${curlconfig} --cflags`"
    else
      for i in $incllist; do
        if test -f $i/curl/curl.h; then
          ac_cv_path_curl_incl="-I$i"
	        break
        fi
      done
    fi

    if test x"${ac_cv_path_curl_incl}" = x ; then
      for ac_header in curl/curl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CURL_CURL_H 1
_ACEOF

fi

done

    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl header" >&5
$as_echo_n "checking for libcurl header... " >&6; }
    if test x"${ac_cv_path_curl_incl}" != x ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi


  if test x"${ac_cv_path_curl_incl}" != x"/usr/include"; then
    ac_cv_path_curl_incl="${ac_cv_path_curl_incl}"
  else
    ac_cv_path_curl_incl=""
  fi


# Check whether --with-curl_lib was given.
if test "${with_curl_lib+set}" = set; then :
  withval=$with_curl_lib; with_curl_lib=${withval}
fi

    if test "${ac_cv_path_curl_lib+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    if test x"${with_curl_lib}" != x ; then # {
      if test -f ${with_curl_lib}/libcurl.a -o -f ${with_curl_lib}/libcurl.${shlibext}; then # {
        ac_cv_path_curl_lib="-L`(cd ${with_curl_lib}; pwd)`"
      else # }{
        as_fn_error "${with_curl_lib} directory doesn't contain libcurl." "$LINENO" 5
      fi # }
    fi # }

fi


    if test x"${ac_cv_path_curl_lib}" = x; then # {
    if test x"${curlconfig}" != "x" -a x"${darwin}" = xno; then # {
                        ac_cv_path_curl_lib=`${curlconfig} --libs | sed -e 's/lcurl.*/lcurl/' -e 's:-L/usr/lib ::'`
    else # }{
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl library" >&5
$as_echo_n "checking for libcurl library... " >&6; }
      for i in $libslist; do # {
        if test -f $i/libcurl.a -o -f $i/libcurl.${shlibext}; then # {
          if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then # {
            ac_cv_path_curl_lib="-L$i -lcurl"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_curl_lib}" >&5
$as_echo "${ac_cv_path_curl_lib}" >&6; }
            break
          else # }{
            ac_cv_path_curl_lib="-lcurl"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            break
          fi # }
        fi # }
      done # }
      if test x"${ac_cv_path_curl_lib}" = x; then # {
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi # }
    fi # }

  fi # }

  if test x"${ac_cv_path_curl_incl}" != x ; then
    CURL_CFLAGS="${ac_cv_path_curl_incl}"
  else
    CURL_CFLAGS=""
  fi

  if test x"${ac_cv_path_curl_lib}" != x ; then
    CURL_LIBS="${ac_cv_path_curl_lib}"
  else
    CURL_LIBS=""
  fi

   if test -n "$CURL_LIBS"; then
  CURL_TRUE=
  CURL_FALSE='#'
else
  CURL_TRUE='#'
  CURL_FALSE=
fi


  if test -n "$CURL_LIBS"; then

$as_echo "#define USE_CURL 1" >>confdefs.h

  fi





if test x"$EXEEXT" = "exe"; then

$as_echo "#define HAVE_WINSOCK 1" >>confdefs.h

fi


# Check whether --enable-visibility was given.
if test "${enable_visibility+set}" = set; then :
  enableval=$enable_visibility;
else
  enable_visibility=no
fi


if test x"$enable_visibility" != x"no"; then
    save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -Wall -Werror"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the GNUC visibility attribute" >&5
$as_echo_n "checking whether $CC supports the GNUC visibility attribute... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

      void __attribute__ ((visibility("default"))) test_default (void) {}
      void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
      int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :


$as_echo "#define HAVE_GNUC_VISIBILITY 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

else

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"
fi

# Check whether --enable-pch was given.
if test "${enable_pch+set}" = set; then :
  enableval=$enable_pch;
else
  enable_pch=no
fi


 if test x"$enable_pch" != x"no"; then
  ENABLE_PCH_TRUE=
  ENABLE_PCH_FALSE='#'
else
  ENABLE_PCH_TRUE='#'
  ENABLE_PCH_FALSE=
fi


PCH_FLAGS="-include all-includes.h -Winvalid-pch"





ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

PTHREAD_LIBS=""
PTHREAD_CFLAGS=""


if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  save_LIBS="$LIBS"
  LIBS="$PTHREAD_LIBS $LIBS"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pthread_join ();
int
main ()
{
return pthread_join ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pthreads=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthreads" >&5
$as_echo "$pthreads" >&6; }
  if test x"$pthreads" = xno; then
    PTHREAD_LIBS=""
    PTHREAD_CFLAGS=""
  fi
  LIBS="$save_LIBS"
  CFLAGS="$save_CFLAGS"
fi



pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pth-config"

if test x$cross_compiling = xyes; then
    pthread_flags="none"
fi



case "${host_os}" in
  *linux* | *bsd*)
    pthread_flags="-pthread"
    ;;
  *darwin*)
    pthread_flags="none"
    ;;
  *mingw* | *cygwin*)
    pthread_flags="-mthreads"
    ;;
  *solaris*)


    pthread_flags="-pthreads pthread -mt -pthread $pthread_flags"
    ;;
esac

for flag in $pthread_flags; do\
    case $flag in
      none)
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
$as_echo_n "checking whether pthreads work without any flags... " >&6; }
        PTHREAD_CFLAGS=""
        PTHREAD_LIBS=""
        ;;
      -*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
$as_echo_n "checking whether pthreads work with $flag... " >&6; }
        PTHREAD_CFLAGS="$flag"
	      PTHREAD_LIBS=""
        ;;

      pth-config)
       # Extract the first word of "pth-config", so it can be a program name with args.
set dummy pth-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_pth_config+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$pth_config"; then
  ac_cv_prog_pth_config="$pth_config" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_pth_config="yes"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_pth_config" && ac_cv_prog_pth_config="no"
fi
fi
pth_config=$ac_cv_prog_pth_config
if test -n "$pth_config"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pth_config" >&5
$as_echo "$pth_config" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


       if test x"$pth_config" = xno; then
         continue;
       fi
       PTHREAD_CFLAGS="`pth-config --cflags`"
       PTHREAD_LIBS="`pth-config --ldflags` `pth-config --libs`"
       ;;

      pthread-config)
       # Extract the first word of "pthread-config", so it can be a program name with args.
set dummy pthread-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_pthread_config+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$pthread_config"; then
  ac_cv_prog_pthread_config="$pthread_config" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_pthread_config="yes"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_pthread_config" && ac_cv_prog_pthread_config="no"
fi
fi
pthread_config=$ac_cv_prog_pthread_config
if test -n "$pthread_config"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthread_config" >&5
$as_echo "$pthread_config" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


       if test x"$pthread_config" = xno; then
         continue;
       fi
       PTHREAD_CFLAGS="`pthread-config --cflags`"
       PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
       ;;

      *)
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
        PTHREAD_LIBS="-l$flag"
	      PTHREAD_CFLAGS=""
        ;;
    esac

    save_LIBS="$LIBS"
    save_CFLAGS="$CFLAGS"
    save_CXXFLAGS="$CXXFLAGS"
    LIBS="$PTHREAD_LIBS $LIBS"
    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"

                                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th; pthread_join(th, 0);
      pthread_attr_init(0); pthread_cleanup_push(0, 0);
      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pthreads=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    LIBS="$save_LIBS"
    CFLAGS="$save_CFLAGS"
    CXXFLAGS="$save_CXXFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthreads" >&5
$as_echo "$pthreads" >&6; }
    if test "x${pthreads}" = xyes; then
       break;
    fi
done

if test "x${pthreads}" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking searching for pthread library" >&5
$as_echo_n "checking searching for pthread library... " >&6; }
  for i in $libslist; do
    if test -f $i/libpthread.a -o -f $i/libpthread.${shlibext} -o -f $i/libpthread.dylib; then
      pthreads=yes
      if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then
        PTHREAD_LIBS="-L$i -lpthread"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PTHREAD_LIBS" >&5
$as_echo "using $PTHREAD_LIBS" >&6; }
        break
      else
                        if test x"${host_os}" = x"mingw32"; then
          PTHREAD_LIBS="-lpthreadGCE2"
        else
          PTHREAD_LIBS="-lpthread"
        fi
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PTHREAD_LIBS" >&5
$as_echo "using $PTHREAD_LIBS" >&6; }
        break
      fi
    fi
  done
  if test x"${PTHREAD_LIBS}" = "x"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    pthreads=no
  fi
fi

if test "x$pthreads" = xyes; then
  save_LIBS="$LIBS"
  LIBS="$PTHREAD_LIBS $LIBS"
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
$as_echo_n "checking for joinable pthread attribute... " >&6; }
  attr_name=unknown
  for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
int attr=$attr; return attr;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  attr_name=$attr; break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  done
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
$as_echo "$attr_name" >&6; }
  if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then

cat >>confdefs.h <<_ACEOF
#define PTHREAD_CREATE_JOINABLE $attr_name
_ACEOF

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  flag=no
  case "${host_cpu}-${host_os}" in
    *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
    *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
    *irix*) flag="-D_SGI_MP_SOURCE";;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
$as_echo "${flag}" >&6; }
  if test "x$flag" != xno; then
    PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  fi

  LIBS="$save_LIBS"
  CFLAGS="$save_CFLAGS"

    case "${host_os}" in
    aix* )
      case "$CC" in
    *xlc )
      # Extract the first word of "xlc_r", so it can be a program name with args.
set dummy xlc_r; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PTHREAD_CC"; then
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_PTHREAD_CC="xlc_r"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
fi
fi
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
if test -n "$PTHREAD_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
$as_echo "$PTHREAD_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

 ;;
    *cc )
      # Extract the first word of "cc_r", so it can be a program name with args.
set dummy cc_r; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PTHREAD_CC"; then
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_PTHREAD_CC="cc_r"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
fi
fi
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
if test -n "$PTHREAD_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
$as_echo "$PTHREAD_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

 ;;
  esac
  case "$CXX" in
    *xlC )
      # Extract the first word of "xlC_r", so it can be a program name with args.
set dummy xlC_r; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PTHREAD_CXX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PTHREAD_CXX"; then
  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_PTHREAD_CXX="xlC_r"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}"
fi
fi
PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
if test -n "$PTHREAD_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
$as_echo "$PTHREAD_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

 ;;
  esac
     ;;
  esac
fi

if test "${PTHREAD_CC}x" = "x"; then
  PTHREAD_CC="$CC"
fi
if test "${PTHREAD_CXX}x" = "x"; then
  PTHREAD_CXX="$CXX"
fi






if test x"$pthreads" = xyes; then

$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h

        :
else
  pthreads=no

fi
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




    gnash_boost_version=""
  gnash_boost_topdir=""
  gnash_boost_libdir=""
  missing_headers=""
  missing_libs=""
  extra_missing_libs=""
  gcc_version=""
  dirname=""
  libname=""
      boost_headers="detail/lightweight_mutex.hpp thread/thread.hpp multi_index_container.hpp multi_index/key_extractors.hpp thread/mutex.hpp"
      boost_libs="thread date_time"

      extra_boost_libs="serialization"
#  extra_boost_libs="unit_test_framework"

      newlist=$incllist


# Check whether --with-boost_incl was given.
if test "${with_boost_incl+set}" = set; then :
  withval=$with_boost_incl; with_boost_incl=${withval}
fi

  if test x"${with_boost_incl}" != x ; then
    gnash_boost_topdir="`(cd ${with_boost_incl}; pwd)`"
    gnash_boost_version="`echo ${gnash_boost_topdir} | sed -e 's:.*boost-::'`"
    newlist=${gnash_boost_topdir}
  fi

    if test x"${GXX}" = xyes; then
  	gcc_version="`${CXX} --version | head -1 | cut -d ' ' -f 3 | cut -d '.' -f 1-2 | tr -d '.'`"
  fi

  if test x"${gnash_boost_topdir}" = x; then
                if test x$cross_compiling = xno; then
      if test x"$PKG_CONFIG" != x; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost Version" >&5
$as_echo_n "checking for the Boost Version... " >&6; }
        $PKG_CONFIG --exists boost && gnash_boost_version="`$PKG_CONFIG --modversion boost | cut -d "." -f 1 | awk '{print $'0'".0"}'`"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnash_boost_version}" >&5
$as_echo "${gnash_boost_version}" >&6; }
      fi
    fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost header" >&5
$as_echo_n "checking for boost header... " >&6; }
  for i in $newlist; do
    dirs="`ls -dr $i/boost* 2>/dev/null | xargs`"
    for u in ${dirs}; do
    	if test -n "$u" -a -d "$u" -a x"$u" != x"/usr/include/boost"; then
      	gnash_boost_topdir="`(cd $u; pwd)`"
      	gnash_boost_subdir="`dirname ${gnash_boost_topdir}`"
      	gnash_boost_version="`echo ${gnash_boost_topdir} | sed -e 's:.*boost-::'`"
      	     	for k in ${boost_headers}; do
       		if test ! -f ${gnash_boost_topdir}/boost/$k; then
        	  if test ! -f ${gnash_boost_subdir}/boost/$k; then
		    	    missing_headers="${missing_headers} $k"
	        	else
	  	      	gnash_boost_topdir=${gnash_boost_subdir}
	        	fi
        	fi
      	done
      if test x"${missing_headers}" = x ; then
        ac_cv_path_boost_incl="-I${gnash_boost_topdir}"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_boost_incl}" >&5
$as_echo "${ac_cv_path_boost_incl}" >&6; }
        break
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers missing" >&5
$as_echo "headers missing" >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need to install ${missing_headers}" >&5
$as_echo "$as_me: WARNING: You need to install ${missing_headers}" >&2;}
      fi
    fi
    done
  done

      newlist=$libslist


# Check whether --with-boost_lib was given.
if test "${with_boost_lib+set}" = set; then :
  withval=$with_boost_lib; with_boost_lib=${withval}
fi

  if test x"${with_boost_lib}" != x ; then
    gnash_boost_libdir="`(cd ${with_boost_lib}; pwd)`"
    newlist="${gnash_boost_libdir}"
  fi

                if test x${ac_cv_path_boost_lib} = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost libraries" >&5
$as_echo_n "checking for Boost libraries... " >&6; }
    for i in $newlist; do
      if test x"${ac_cv_path_boost_lib}" != x; then
        break
      else
        missing_libs=""
      fi
      for j in ${boost_libs}; do
        dirs="`ls -dr $i/libboost_${j}*.${shlibext} $i/libboost_${j}*.a 2>/dev/null`"
        if test -n "${dirs}"; then
          libname="`echo ${dirs} | sed -e 's:^.*/lib::' -e "s:\.${shlibext}::" -e "s:\.a::"`"
          if test x$dirname = x; then
            dirname="`echo ${dirs} | sed -e 's:/libboost.*$::'`"
           if test x"${dirname}" != "x/usr/lib"; then
      	      ac_cv_path_boost_lib="-L${dirname}"
            fi
          fi
          ac_cv_path_boost_lib="${ac_cv_path_boost_lib} -l${libname}"
        else
          missing_libs="${missing_libs} $j"
        fi
      done
    done
    for j in ${extra_boost_libs}; do
      dirs="`ls -dr ${dirname}/libboost_${j}*.${shlibext} ${dirname}/libboost_${j}*.a 2>/dev/null`"
      if test -n "${dirs}"; then
          libname="`echo ${dirs} | sed -e 's:^.*/lib::' -e "s:\.${shlibext}::" -e "s:\.a::"`"
        ac_cv_path_boost_extra_lib="${ac_cv_path_boost_extra_lib} -l${libname}"
      else
        extra_missing_libs="${extra_missing_libs} $j"
      fi
    done
  fi

  if test x"${missing_libs}" != x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries ${missing_libs} ${extra_missing_libs} aren't installed " >&5
$as_echo "$as_me: WARNING: Libraries ${missing_libs} ${extra_missing_libs} aren't installed " >&2;}
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_boost_lib}" >&5
$as_echo "${ac_cv_path_boost_lib}" >&6; }

  if test x"${ac_cv_path_boost_incl}" != x; then
    BOOST_CFLAGS="$ac_cv_path_boost_incl"
  fi

  if test x"${ac_cv_path_boost_lib}" != x; then
    BOOST_LIBS="$ac_cv_path_boost_lib"
  fi

  if test x"${ac_cv_path_boost_extra_lib}" != x; then
    BOOST_EXTRA_LIBS="$ac_cv_path_boost_extra_lib"
  fi






         if test -n "${BOOST_LIBS}"; then
  HAVE_BOOST_TRUE=
  HAVE_BOOST_FALSE='#'
else
  HAVE_BOOST_TRUE='#'
  HAVE_BOOST_FALSE=
fi



# Check whether --enable-strict was given.
if test "${enable_strict+set}" = set; then :
  enableval=$enable_strict; case "${enableval}" in
    yes) strict=yes ;;
    no) strict=no ;;
    *) as_fn_error "bad value ${enableval} for --enable-strict option" "$LINENO" 5 ;;
  esac
else
  strict=no

fi


if test x"$strict" = x"yes" -a x$build_agg = xyes; then
   as_fn_error "agg renderer will fail with --enable-strict." "$LINENO" 5;
fi

# We want warnings, lots of warnings  :-)
# It should be possible to build with -ansi, not with
# -pedantic because of agg.
#
# -ansi was actually dropped because it hides 'fileno', which
# is used in a few places
#
if test x"$GCC" = x"yes"; then
  CXXFLAGS="$CXXFLAGS \
    $CROSS_CXXFLAGS \
    -W \
    -Wall \
    -Wcast-align \
    -Wcast-qual \
    -Wpointer-arith \
    -Wreturn-type \
    -Wnon-virtual-dtor \
    -Wunused \
    "
  CFLAGS="$CFLAGS \
    $CROSS_CXXFLAGS \
    -W \
    -Wall \
    -Wcast-align \
    -Wcast-qual \
    -Wpointer-arith \
    -Wreturn-type \
    -Wmissing-declarations \
    -Wmissing-prototypes \
    -Wstrict-prototypes \
    "
  if test x"$strict" = x"yes"; then
    CXXFLAGS="$CXXFLAGS \
      -Wextra \
      -pedantic \
      -Wno-long-long \
      "

    CFLAGS="$CFLAGS \
      -pedantic \
      -Wno-long-long \
      -ansi \
      "
  fi
fi

# Check whether --enable-cassert was given.
if test "${enable_cassert+set}" = set; then :
  enableval=$enable_cassert; case "${enableval}" in
    yes) cassert=yes ;;
    no) cassert=no ;;
    *) as_fn_error "bad value ${enableval} for --enable-cassert option" "$LINENO" 5 ;;
  esac
else
  cassert=yes

fi


if test x"$cassert" = x"no"; then
    CXXFLAGS="$CXXFLAGS \
      -DNDEBUG \
      "
    CFLAGS="$CFLAGS \
      -DNDEBUG \
      "
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fvisibility-inlines-hidden is broken" >&5
$as_echo_n "checking if -fvisibility-inlines-hidden is broken... " >&6; }
if test "${ac_cv_gcc_visibility_bug+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        save_CXXFLAGS=$CXXFLAGS
        save_LDFLAGS=$LDFLAGS
        CXXFLAGS="-fPIC -fvisibility-inlines-hidden -O0"
        LDFLAGS="$LDFLAGS -shared -fPIC"

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          template<typename CharT>
          struct VisTest
          {
            inline VisTest ();
          };
          template<typename CharT>
          inline VisTest<CharT>::VisTest()
        {}
        extern template class VisTest<char>;  // It works if we drop that line
        int some_function( int do_something ) __attribute__((visibility("default")));
	int some_function( int )
          {
            VisTest<char> a;
            return 0;
          }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ac_cv_gcc_visibility_bug=no
else
  ac_cv_gcc_visibility_bug=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

        CXXFLAGS=$save_CXXFLAGS
        LDFLAGS=$save_LDFLAGS
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_visibility_bug" >&5
$as_echo "$ac_cv_gcc_visibility_bug" >&6; }
    if test x$ac_cv_gcc_visibility_bug = xno; then
      CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
    fi




if test x$ac_cv_gcc_visibility_bug = xno; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fvisibility=hidden" >&5
$as_echo_n "checking whether $CXX supports -fvisibility=hidden... " >&6; }
  save_CXXFLAGS=$CXXFLAGS
  CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  ac_cv_gcc_visibility=yes;
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  ac_cv_gcc_visibility=no;
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext;
  CXXFLAGS="$save_CXXFLAGS"
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi


 if test x"$ac_cv_gcc_visibility" = xyes; then
  VISIBILITY_WORKS_TRUE=
  VISIBILITY_WORKS_FALSE='#'
else
  VISIBILITY_WORKS_TRUE='#'
  VISIBILITY_WORKS_FALSE=
fi


if test x"$ac_cv_gcc_visibility" = xyes -a x"$enable_visibility" != xno; then
  CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
fi

RENDERER_CONFIG="${renderer_list}"
RENDERER_LIBS=
for rend in `echo "${add_renderer}" | tr ',' ' '`; do
	RENDERER_LIBS="${RENDERER_LIBS} \$(top_builddir)/librender/libgnash${rend}.la"
done



HWACCEL_CONFIG="${hwaccel_list}"


if test x"$BOOST_LIBS" != x; then
  if test x"${extra_missing_libs}" != x; then
    for i in ${extra_missing_libs}; do
      if test $i = serialization; then

$as_echo "#define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION \"1\"" >>confdefs.h

      fi
    done
  fi
fi



for ac_header in poll.h sys/epoll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/sendfile.h>
int
main ()
{

    sendfile(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  has_sendfile=yes
else
  has_sendfile=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test x${has_sendfile} = xyes; then

$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h

fi

for ac_func in pselect ppoll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <fcntl.h>
int
main ()
{

    splice(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  has_splice=yes
else
  has_splice=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test x${has_splice} = xyes; then

$as_echo "#define HAVE_FCNTL_SPLICE 1" >>confdefs.h

fi

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <fcntl.h>
int
main ()
{

    tee(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  has_tee=yes
else
  has_tee=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test x${has_tee} = xyes; then

$as_echo "#define HAVE_FCNTL_TEE 1" >>confdefs.h

fi



SUPPORTED_GUIS=
if test x$build_qtopia3 = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},qtopia3"
fi
if test x$build_qtopia4 = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},qtopia4"
fi
if test x$build_hildon = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},hildon"
fi
if test x$build_alp = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},alp"
fi
if test x$build_fb = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},fb"
fi
if test x$build_fltk = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},fltk"
fi
if test x$build_qt3 = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},qt3"
fi
if test x$build_qt4 = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},qt4"
fi
if test x$build_kde3 = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},kde3"
fi
if test x$build_kde4 = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},kde4"
fi
if test x$build_gtk = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},gtk"
fi
if test x$build_sdl = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},sdl"
fi
if test x$build_riscos = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},riscos"
fi
if test x$build_aqua = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},aqua"
fi
if test x$build_dump = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},dump"
fi
if test x$build_aos4 = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},aos4"
fi
if test x$build_haiku = xyes; then
  SUPPORTED_GUIS="${SUPPORTED_GUIS},haiku"
fi
SUPPORTED_GUIS="`echo ${SUPPORTED_GUIS} | sed 's/,//'`" # Strip leading comma


ac_config_links="$ac_config_links cygnal/testsuite/cygnal.all/cygnalrc:cygnal/testsuite/cygnal.all/cygnalrc.in"

ac_config_links="$ac_config_links testsuite/libbase.all/gnashrc:testsuite/libbase.all/gnashrc.in"

ac_config_links="$ac_config_links testsuite/libbase.all/gnashrc-local:testsuite/libbase.all/gnashrc-local.in"


ac_config_files="$ac_config_files gnash.pc:gnash.pc.in"


ac_config_files="$ac_config_files Makefile po/Makefile libltdl/Makefile libmedia/Makefile libsound/Makefile libbase/Makefile libcore/Makefile libcore/vm/Makefile libcore/parser/Makefile libvaapi/Makefile librender/Makefile utilities/Makefile doc/Makefile doc/C/Makefile doc/Doxyfile testsuite/Makefile testsuite/media/Makefile testsuite/libbase.all/Makefile testsuite/as3compile.all/Makefile testsuite/actionscript.all/Makefile testsuite/samples/Makefile testsuite/swfdec/Makefile testsuite/misc-ming.all/Makefile testsuite/misc-mtasc.all/Makefile testsuite/misc-haxe.all/Makefile testsuite/misc-haxe.all/classes.all/Makefile testsuite/misc-swfmill.all/Makefile testsuite/misc-swfmill.all/trace-as2/Makefile testsuite/misc-swfmill.all/trace-as3/Makefile testsuite/misc-swfc.all/Makefile testsuite/network.all/Makefile testsuite/movies.all/Makefile testsuite/libcore.all/Makefile testsuite/libmedia.all/Makefile gui/Makefile gui/Info.plist gui/pythonmod/Makefile extensions/Makefile extensions/dejagnu/Makefile extensions/mysql/Makefile extensions/fileio/Makefile extensions/gtk2/Makefile extensions/lirc/Makefile extensions/dbus/Makefile plugin/Makefile plugin/npapi/Makefile plugin/klash/Makefile plugin/klash4/Makefile plugin/win32/Makefile cygnal/Makefile cygnal/libnet/Makefile cygnal/libamf/Makefile cygnal/cgi-bin/Makefile cygnal/cgi-bin/echo/Makefile cygnal/cgi-bin/oflaDemo/Makefile cygnal/cgi-bin/fitcDemo/Makefile cygnal/testsuite/Makefile cygnal/testsuite/libamf.all/Makefile cygnal/testsuite/libnet.all/Makefile cygnal/testsuite/cygnal.all/Makefile"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${PLUGIN_LINK_UNDEFINED_TRUE}" && test -z "${PLUGIN_LINK_UNDEFINED_FALSE}"; then
  as_fn_error "conditional \"PLUGIN_LINK_UNDEFINED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
  as_fn_error "conditional \"WIN32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAIKU_TRUE}" && test -z "${HAIKU_FALSE}"; then
  as_fn_error "conditional \"HAIKU\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAS_GETTEXT_TRUE}" && test -z "${HAS_GETTEXT_FALSE}"; then
  as_fn_error "conditional \"HAS_GETTEXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
  as_fn_error "conditional \"ANDROID\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${LIBLTDL2_TRUE}" && test -z "${LIBLTDL2_FALSE}"; then
  as_fn_error "conditional \"LIBLTDL2\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${LIBLTDL1_TRUE}" && test -z "${LIBLTDL1_FALSE}"; then
  as_fn_error "conditional \"LIBLTDL1\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
LT_CONFIG_H=gnashconfig.h

    _ltdl_libobjs=
    _ltdl_ltlibobjs=
    if test -n "$_LT_LIBOBJS"; then
      # Remove the extension.
      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
      done
    fi
    ltdl_LIBOBJS=$_ltdl_libobjs

    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs


if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
  as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_TSLIB_TRUE}" && test -z "${ENABLE_TSLIB_FALSE}"; then
  as_fn_error "conditional \"ENABLE_TSLIB\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_MOUSE_TRUE}" && test -z "${ENABLE_MOUSE_FALSE}"; then
  as_fn_error "conditional \"ENABLE_MOUSE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_INPUT_EVENTS_TRUE}" && test -z "${ENABLE_INPUT_EVENTS_FALSE}"; then
  as_fn_error "conditional \"ENABLE_INPUT_EVENTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_INPUT_DEVICES_TRUE}" && test -z "${ENABLE_INPUT_DEVICES_FALSE}"; then
  as_fn_error "conditional \"ENABLE_INPUT_DEVICES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_OVG_RENDERER_TRUE}" && test -z "${BUILD_OVG_RENDERER_FALSE}"; then
  as_fn_error "conditional \"BUILD_OVG_RENDERER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GLES_RENDERER_TRUE}" && test -z "${BUILD_GLES_RENDERER_FALSE}"; then
  as_fn_error "conditional \"BUILD_GLES_RENDERER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_OGL_RENDERER_TRUE}" && test -z "${BUILD_OGL_RENDERER_FALSE}"; then
  as_fn_error "conditional \"BUILD_OGL_RENDERER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_AGG_RENDERER_TRUE}" && test -z "${BUILD_AGG_RENDERER_FALSE}"; then
  as_fn_error "conditional \"BUILD_AGG_RENDERER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CAIRO_RENDERER_TRUE}" && test -z "${BUILD_CAIRO_RENDERER_FALSE}"; then
  as_fn_error "conditional \"BUILD_CAIRO_RENDERER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_OMAP_TRUE}" && test -z "${BUILD_OMAP_FALSE}"; then
  as_fn_error "conditional \"BUILD_OMAP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_VAAPI_TRUE}" && test -z "${USE_VAAPI_FALSE}"; then
  as_fn_error "conditional \"USE_VAAPI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_VAAPI_TRUE}" && test -z "${HAVE_VAAPI_FALSE}"; then
  as_fn_error "conditional \"HAVE_VAAPI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_VAAPI_GLX_TRUE}" && test -z "${HAVE_VAAPI_GLX_FALSE}"; then
  as_fn_error "conditional \"HAVE_VAAPI_GLX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_VAAPI_X11_TRUE}" && test -z "${HAVE_VAAPI_X11_FALSE}"; then
  as_fn_error "conditional \"HAVE_VAAPI_X11\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
  as_fn_error "conditional \"HAVE_PERL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_CSOUND_TRUE}" && test -z "${HAVE_CSOUND_FALSE}"; then
  as_fn_error "conditional \"HAVE_CSOUND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_LIRC_TRUE}" && test -z "${USE_LIRC_FALSE}"; then
  as_fn_error "conditional \"USE_LIRC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DEJAGNU_EXT_TRUE}" && test -z "${BUILD_DEJAGNU_EXT_FALSE}"; then
  as_fn_error "conditional \"BUILD_DEJAGNU_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILEIO_EXT_TRUE}" && test -z "${BUILD_FILEIO_EXT_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILEIO_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MYSQL_EXT_TRUE}" && test -z "${BUILD_MYSQL_EXT_FALSE}"; then
  as_fn_error "conditional \"BUILD_MYSQL_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LAUNCHER_EXT_TRUE}" && test -z "${BUILD_LAUNCHER_EXT_FALSE}"; then
  as_fn_error "conditional \"BUILD_LAUNCHER_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GTK_EXT_TRUE}" && test -z "${BUILD_GTK_EXT_FALSE}"; then
  as_fn_error "conditional \"BUILD_GTK_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LIRC_EXT_TRUE}" && test -z "${BUILD_LIRC_EXT_FALSE}"; then
  as_fn_error "conditional \"BUILD_LIRC_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DBUS_EXT_TRUE}" && test -z "${BUILD_DBUS_EXT_FALSE}"; then
  as_fn_error "conditional \"BUILD_DBUS_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_EXTENSIONS_TRUE}" && test -z "${BUILD_EXTENSIONS_FALSE}"; then
  as_fn_error "conditional \"BUILD_EXTENSIONS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_UICOMPONENT_AS3_TRUE}" && test -z "${BUILD_UICOMPONENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_UICOMPONENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_INVALIDATIONTYPE_AS3_TRUE}" && test -z "${BUILD_INVALIDATIONTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_INVALIDATIONTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_EXTERNALINTERFACE_AS3_TRUE}" && test -z "${BUILD_EXTERNALINTERFACE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_EXTERNALINTERFACE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SIGNERTRUSTSETTINGS_AS3_TRUE}" && test -z "${BUILD_SIGNERTRUSTSETTINGS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SIGNERTRUSTSETTINGS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_XMLSIGNATUREVALIDATOR_AS3_TRUE}" && test -z "${BUILD_XMLSIGNATUREVALIDATOR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_XMLSIGNATUREVALIDATOR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SIGNATURESTATUS_AS3_TRUE}" && test -z "${BUILD_SIGNATURESTATUS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SIGNATURESTATUS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IURIDEREFERENCER_AS3_TRUE}" && test -z "${BUILD_IURIDEREFERENCER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IURIDEREFERENCER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_REVOCATIONCHECKSETTINGS_AS3_TRUE}" && test -z "${BUILD_REVOCATIONCHECKSETTINGS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_REVOCATIONCHECKSETTINGS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IDATAINPUT_AS3_TRUE}" && test -z "${BUILD_IDATAINPUT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IDATAINPUT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IEXTERNALIZABLE_AS3_TRUE}" && test -z "${BUILD_IEXTERNALIZABLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IEXTERNALIZABLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BYTEARRAY_AS3_TRUE}" && test -z "${BUILD_BYTEARRAY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BYTEARRAY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PROXY_AS3_TRUE}" && test -z "${BUILD_PROXY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PROXY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_COMPRESSIONALGORITHM_AS3_TRUE}" && test -z "${BUILD_COMPRESSIONALGORITHM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_COMPRESSIONALGORITHM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IDATAOUTPUT_AS3_TRUE}" && test -z "${BUILD_IDATAOUTPUT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IDATAOUTPUT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ENDIAN_AS3_TRUE}" && test -z "${BUILD_ENDIAN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ENDIAN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TIMER_AS3_TRUE}" && test -z "${BUILD_TIMER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TIMER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DICTIONARY_AS3_TRUE}" && test -z "${BUILD_DICTIONARY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DICTIONARY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILE_AS3_TRUE}" && test -z "${BUILD_FILE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILEMODE_AS3_TRUE}" && test -z "${BUILD_FILEMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILEMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILESTREAM_AS3_TRUE}" && test -z "${BUILD_FILESTREAM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILESTREAM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ROTATE_AS3_TRUE}" && test -z "${BUILD_ROTATE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ROTATE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PIXELDISSOLVE_AS3_TRUE}" && test -z "${BUILD_PIXELDISSOLVE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PIXELDISSOLVE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BLINDS_AS3_TRUE}" && test -z "${BUILD_BLINDS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BLINDS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQUEEZE_AS3_TRUE}" && test -z "${BUILD_SQUEEZE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQUEEZE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TRANSITION_AS3_TRUE}" && test -z "${BUILD_TRANSITION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TRANSITION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FADE_AS3_TRUE}" && test -z "${BUILD_FADE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FADE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TWEEN_AS3_TRUE}" && test -z "${BUILD_TWEEN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TWEEN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ZOOM_AS3_TRUE}" && test -z "${BUILD_ZOOM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ZOOM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IRIS_AS3_TRUE}" && test -z "${BUILD_IRIS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IRIS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FLY_AS3_TRUE}" && test -z "${BUILD_FLY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FLY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TWEENEVENT_AS3_TRUE}" && test -z "${BUILD_TWEENEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TWEENEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PHOTO_AS3_TRUE}" && test -z "${BUILD_PHOTO_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PHOTO_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TRANSITIONMANAGER_AS3_TRUE}" && test -z "${BUILD_TRANSITIONMANAGER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TRANSITIONMANAGER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_WIPE_AS3_TRUE}" && test -z "${BUILD_WIPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_WIPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IFOCUSMANAGER_AS3_TRUE}" && test -z "${BUILD_IFOCUSMANAGER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IFOCUSMANAGER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FOCUSMANAGER_AS3_TRUE}" && test -z "${BUILD_FOCUSMANAGER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FOCUSMANAGER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IFOCUSMANAGERGROUP_AS3_TRUE}" && test -z "${BUILD_IFOCUSMANAGERGROUP_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IFOCUSMANAGERGROUP_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STYLEMANAGER_AS3_TRUE}" && test -z "${BUILD_STYLEMANAGER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STYLEMANAGER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IFOCUSMANAGERCOMPONENT_AS3_TRUE}" && test -z "${BUILD_IFOCUSMANAGERCOMPONENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IFOCUSMANAGERCOMPONENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILEREFERENCELIST_AS3_TRUE}" && test -z "${BUILD_FILEREFERENCELIST_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILEREFERENCELIST_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_RESPONDER_AS3_TRUE}" && test -z "${BUILD_RESPONDER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_RESPONDER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IDYNAMICPROPERTYWRITER_AS3_TRUE}" && test -z "${BUILD_IDYNAMICPROPERTYWRITER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IDYNAMICPROPERTYWRITER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLREQUEST_AS3_TRUE}" && test -z "${BUILD_URLREQUEST_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLREQUEST_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLREQUESTMETHOD_AS3_TRUE}" && test -z "${BUILD_URLREQUESTMETHOD_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLREQUESTMETHOD_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILEFILTER_AS3_TRUE}" && test -z "${BUILD_FILEFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILEFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NETSTREAM_AS3_TRUE}" && test -z "${BUILD_NETSTREAM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NETSTREAM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLREQUESTDEFAULTS_AS3_TRUE}" && test -z "${BUILD_URLREQUESTDEFAULTS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLREQUESTDEFAULTS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_OBJECTENCODING_AS3_TRUE}" && test -z "${BUILD_OBJECTENCODING_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_OBJECTENCODING_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLVARIABLES_AS3_TRUE}" && test -z "${BUILD_URLVARIABLES_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLVARIABLES_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLLOADER_AS3_TRUE}" && test -z "${BUILD_URLLOADER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLLOADER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NETCONNECTION_AS3_TRUE}" && test -z "${BUILD_NETCONNECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NETCONNECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLREQUESTHEADER_AS3_TRUE}" && test -z "${BUILD_URLREQUESTHEADER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLREQUESTHEADER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOCKET_AS3_TRUE}" && test -z "${BUILD_SOCKET_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOCKET_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLLOADERDATAFORMAT_AS3_TRUE}" && test -z "${BUILD_URLLOADERDATAFORMAT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLLOADERDATAFORMAT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_XMLSOCKET_AS3_TRUE}" && test -z "${BUILD_XMLSOCKET_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_XMLSOCKET_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILEREFERENCE_AS3_TRUE}" && test -z "${BUILD_FILEREFERENCE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILEREFERENCE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_TRUE}" && test -z "${BUILD_SHAREDOBJECTFLUSHSTATUS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SHAREDOBJECTFLUSHSTATUS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_URLSTREAM_AS3_TRUE}" && test -z "${BUILD_URLSTREAM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_URLSTREAM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IDYNAMICPROPERTYOUTPUT_AS3_TRUE}" && test -z "${BUILD_IDYNAMICPROPERTYOUTPUT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IDYNAMICPROPERTYOUTPUT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SHAREDOBJECT_AS3_TRUE}" && test -z "${BUILD_SHAREDOBJECT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SHAREDOBJECT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LOCALCONNECTION_AS3_TRUE}" && test -z "${BUILD_LOCALCONNECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LOCALCONNECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SIMPLEEASE_AS3_TRUE}" && test -z "${BUILD_SIMPLEEASE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SIMPLEEASE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TWEENABLES_AS3_TRUE}" && test -z "${BUILD_TWEENABLES_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TWEENABLES_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MOTIONEVENT_AS3_TRUE}" && test -z "${BUILD_MOTIONEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MOTIONEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ITWEEN_AS3_TRUE}" && test -z "${BUILD_ITWEEN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ITWEEN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CUSTOMEASE_AS3_TRUE}" && test -z "${BUILD_CUSTOMEASE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CUSTOMEASE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOURCE_AS3_TRUE}" && test -z "${BUILD_SOURCE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOURCE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BEZIEREASE_AS3_TRUE}" && test -z "${BUILD_BEZIEREASE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BEZIEREASE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MATRIXTRANSFORMER_AS3_TRUE}" && test -z "${BUILD_MATRIXTRANSFORMER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MATRIXTRANSFORMER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BEZIERSEGMENT_AS3_TRUE}" && test -z "${BUILD_BEZIERSEGMENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BEZIERSEGMENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FUNCTIONEASE_AS3_TRUE}" && test -z "${BUILD_FUNCTIONEASE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FUNCTIONEASE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MOTION_AS3_TRUE}" && test -z "${BUILD_MOTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MOTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_COLOR_AS3_TRUE}" && test -z "${BUILD_COLOR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_COLOR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ROTATEDIRECTION_AS3_TRUE}" && test -z "${BUILD_ROTATEDIRECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ROTATEDIRECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ANIMATOR_AS3_TRUE}" && test -z "${BUILD_ANIMATOR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ANIMATOR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_KEYFRAME_AS3_TRUE}" && test -z "${BUILD_KEYFRAME_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_KEYFRAME_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PRINTJOB_AS3_TRUE}" && test -z "${BUILD_PRINTJOB_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PRINTJOB_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PRINTJOBOPTIONS_AS3_TRUE}" && test -z "${BUILD_PRINTJOBOPTIONS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PRINTJOBOPTIONS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PRINTJOBORIENTATION_AS3_TRUE}" && test -z "${BUILD_PRINTJOBORIENTATION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PRINTJOBORIENTATION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_COLORTRANSFORM_AS3_TRUE}" && test -z "${BUILD_COLORTRANSFORM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_COLORTRANSFORM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MATRIX_AS3_TRUE}" && test -z "${BUILD_MATRIX_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MATRIX_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_POINT_AS3_TRUE}" && test -z "${BUILD_POINT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_POINT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TRANSFORM_AS3_TRUE}" && test -z "${BUILD_TRANSFORM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TRANSFORM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_RECTANGLE_AS3_TRUE}" && test -z "${BUILD_RECTANGLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_RECTANGLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CONTEXTMENU_AS3_TRUE}" && test -z "${BUILD_CONTEXTMENU_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CONTEXTMENU_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MOUSE_AS3_TRUE}" && test -z "${BUILD_MOUSE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MOUSE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CONTEXTMENUITEM_AS3_TRUE}" && test -z "${BUILD_CONTEXTMENUITEM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CONTEXTMENUITEM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_KEYLOCATION_AS3_TRUE}" && test -z "${BUILD_KEYLOCATION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_KEYLOCATION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_KEYBOARD_AS3_TRUE}" && test -z "${BUILD_KEYBOARD_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_KEYBOARD_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CONTEXTMENUBUILTINITEMS_AS3_TRUE}" && test -z "${BUILD_CONTEXTMENUBUILTINITEMS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CONTEXTMENUBUILTINITEMS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOUNDCHANNEL_AS3_TRUE}" && test -z "${BUILD_SOUNDCHANNEL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOUNDCHANNEL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOUNDTRANSFORM_AS3_TRUE}" && test -z "${BUILD_SOUNDTRANSFORM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOUNDTRANSFORM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOUNDMIXER_AS3_TRUE}" && test -z "${BUILD_SOUNDMIXER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOUNDMIXER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEO_AS3_TRUE}" && test -z "${BUILD_VIDEO_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEO_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CAMERA_AS3_TRUE}" && test -z "${BUILD_CAMERA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CAMERA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MICROPHONE_AS3_TRUE}" && test -z "${BUILD_MICROPHONE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MICROPHONE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ID3INFO_AS3_TRUE}" && test -z "${BUILD_ID3INFO_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ID3INFO_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOUNDLOADERCONTEXT_AS3_TRUE}" && test -z "${BUILD_SOUNDLOADERCONTEXT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOUNDLOADERCONTEXT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOUND_AS3_TRUE}" && test -z "${BUILD_SOUND_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOUND_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ACCESSIBILITY_PROPERTIES_AS3_TRUE}" && test -z "${BUILD_ACCESSIBILITY_PROPERTIES_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ACCESSIBILITY_PROPERTIES_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CHECKBOXACCIMPL_AS3_TRUE}" && test -z "${BUILD_CHECKBOXACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CHECKBOXACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BUTTONACCIMPL_AS3_TRUE}" && test -z "${BUILD_BUTTONACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BUTTONACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DATAGRIDACCIMPL_AS3_TRUE}" && test -z "${BUILD_DATAGRIDACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DATAGRIDACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_RADIOBUTTONACCIMPL_AS3_TRUE}" && test -z "${BUILD_RADIOBUTTONACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_RADIOBUTTONACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ACCIMPL_AS3_TRUE}" && test -z "${BUILD_ACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TILELISTACCIMPL_AS3_TRUE}" && test -z "${BUILD_TILELISTACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TILELISTACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LISTACCIMPL_AS3_TRUE}" && test -z "${BUILD_LISTACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LISTACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_COMBOBOXACCIMPL_AS3_TRUE}" && test -z "${BUILD_COMBOBOXACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_COMBOBOXACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_UICOMPONENTACCIMPL_AS3_TRUE}" && test -z "${BUILD_UICOMPONENTACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_UICOMPONENTACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LABELBUTTONACCIMPL_AS3_TRUE}" && test -z "${BUILD_LABELBUTTONACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LABELBUTTONACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ACCESSIBILITY_AS3_TRUE}" && test -z "${BUILD_ACCESSIBILITY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ACCESSIBILITY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SELECTABLELISTACCIMPL_AS3_TRUE}" && test -z "${BUILD_SELECTABLELISTACCIMPL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SELECTABLELISTACCIMPL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLEVENT_AS3_TRUE}" && test -z "${BUILD_SQLEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_OUTPUTPROGRESSEVENT_AS3_TRUE}" && test -z "${BUILD_OUTPUTPROGRESSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_OUTPUTPROGRESSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTTPSTATUSEVENT_AS3_TRUE}" && test -z "${BUILD_HTTPSTATUSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_HTTPSTATUSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BROWSERINVOKEEVENT_AS3_TRUE}" && test -z "${BUILD_BROWSERINVOKEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BROWSERINVOKEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DRMAUTHENTICATEEVENT_AS3_TRUE}" && test -z "${BUILD_DRMAUTHENTICATEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DRMAUTHENTICATEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SECURITYERROREVENT_AS3_TRUE}" && test -z "${BUILD_SECURITYERROREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SECURITYERROREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLUPDATEEVENT_AS3_TRUE}" && test -z "${BUILD_SQLUPDATEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLUPDATEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MOUSEEVENT_AS3_TRUE}" && test -z "${BUILD_MOUSEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MOUSEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DATAEVENT_AS3_TRUE}" && test -z "${BUILD_DATAEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DATAEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TIMEREVENT_AS3_TRUE}" && test -z "${BUILD_TIMEREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TIMEREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_TRUE}" && test -z "${BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_TRUE}" && test -z "${BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ASYNCERROREVENT_AS3_TRUE}" && test -z "${BUILD_ASYNCERROREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ASYNCERROREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STATUSEVENT_AS3_TRUE}" && test -z "${BUILD_STATUSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STATUSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_EVENTDISPATCHER_AS3_TRUE}" && test -z "${BUILD_EVENTDISPATCHER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_EVENTDISPATCHER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FOCUSEVENT_AS3_TRUE}" && test -z "${BUILD_FOCUSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FOCUSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_EVENTPHASE_AS3_TRUE}" && test -z "${BUILD_EVENTPHASE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_EVENTPHASE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IMEEVENT_AS3_TRUE}" && test -z "${BUILD_IMEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IMEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FILELISTEVENT_AS3_TRUE}" && test -z "${BUILD_FILELISTEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FILELISTEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SYNCEVENT_AS3_TRUE}" && test -z "${BUILD_SYNCEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SYNCEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DRMSTATUSEVENT_AS3_TRUE}" && test -z "${BUILD_DRMSTATUSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DRMSTATUSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTEVENT_AS3_TRUE}" && test -z "${BUILD_TEXTEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_EVENT_AS3_TRUE}" && test -z "${BUILD_EVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_EVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PROGRESSEVENT_AS3_TRUE}" && test -z "${BUILD_PROGRESSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PROGRESSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CONTEXTMENUEVENT_AS3_TRUE}" && test -z "${BUILD_CONTEXTMENUEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CONTEXTMENUEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IOERROREVENT_AS3_TRUE}" && test -z "${BUILD_IOERROREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IOERROREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_INVOKEEVENT_AS3_TRUE}" && test -z "${BUILD_INVOKEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_INVOKEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_TRUE}" && test -z "${BUILD_NATIVEWINDOWBOUNDSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEWINDOWBOUNDSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IEVENTDISPATCHER_AS3_TRUE}" && test -z "${BUILD_IEVENTDISPATCHER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IEVENTDISPATCHER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ERROREVENT_AS3_TRUE}" && test -z "${BUILD_ERROREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ERROREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FULLSCREENEVENT_AS3_TRUE}" && test -z "${BUILD_FULLSCREENEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FULLSCREENEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DRMERROREVENT_AS3_TRUE}" && test -z "${BUILD_DRMERROREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DRMERROREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEDRAGEVENT_AS3_TRUE}" && test -z "${BUILD_NATIVEDRAGEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEDRAGEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NETSTATUSEVENT_AS3_TRUE}" && test -z "${BUILD_NETSTATUSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NETSTATUSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_KEYBOARDEVENT_AS3_TRUE}" && test -z "${BUILD_KEYBOARDEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_KEYBOARDEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLERROREVENT_AS3_TRUE}" && test -z "${BUILD_SQLERROREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLERROREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCREENMOUSEEVENT_AS3_TRUE}" && test -z "${BUILD_SCREENMOUSEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCREENMOUSEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ACTIVITYEVENT_AS3_TRUE}" && test -z "${BUILD_ACTIVITYEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ACTIVITYEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BEVELFILTER_AS3_TRUE}" && test -z "${BUILD_BEVELFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BEVELFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BITMAPFILTERQUALITY_AS3_TRUE}" && test -z "${BUILD_BITMAPFILTERQUALITY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BITMAPFILTERQUALITY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DROPSHADOWFILTER_AS3_TRUE}" && test -z "${BUILD_DROPSHADOWFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DROPSHADOWFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GLOWFILTER_AS3_TRUE}" && test -z "${BUILD_GLOWFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_GLOWFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CONVOLUTIONFILTER_AS3_TRUE}" && test -z "${BUILD_CONVOLUTIONFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CONVOLUTIONFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BITMAPFILTERTYPE_AS3_TRUE}" && test -z "${BUILD_BITMAPFILTERTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BITMAPFILTERTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GRADIENTGLOWFILTER_AS3_TRUE}" && test -z "${BUILD_GRADIENTGLOWFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_GRADIENTGLOWFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BLURFILTER_AS3_TRUE}" && test -z "${BUILD_BLURFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BLURFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DISPLACEMENTMAPFILTER_AS3_TRUE}" && test -z "${BUILD_DISPLACEMENTMAPFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DISPLACEMENTMAPFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BITMAPFILTER_AS3_TRUE}" && test -z "${BUILD_BITMAPFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BITMAPFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GRADIENTBEVELFILTER_AS3_TRUE}" && test -z "${BUILD_GRADIENTBEVELFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_GRADIENTBEVELFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DISPLACEMENTMAPFILTERMODE_AS3_TRUE}" && test -z "${BUILD_DISPLACEMENTMAPFILTERMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DISPLACEMENTMAPFILTERMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_COLORMATRIXFILTER_AS3_TRUE}" && test -z "${BUILD_COLORMATRIXFILTER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_COLORMATRIXFILTER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_AUTOLAYOUTEVENT_AS3_TRUE}" && test -z "${BUILD_AUTOLAYOUTEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_AUTOLAYOUTEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FLVPLAYBACKCAPTIONING_AS3_TRUE}" && test -z "${BUILD_FLVPLAYBACKCAPTIONING_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FLVPLAYBACKCAPTIONING_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SOUNDEVENT_AS3_TRUE}" && test -z "${BUILD_SOUNDEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SOUNDEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LAYOUTEVENT_AS3_TRUE}" && test -z "${BUILD_LAYOUTEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LAYOUTEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_INCMANAGER_AS3_TRUE}" && test -z "${BUILD_INCMANAGER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_INCMANAGER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEOERROR_AS3_TRUE}" && test -z "${BUILD_VIDEOERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEOERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FLVPLAYBACK_AS3_TRUE}" && test -z "${BUILD_FLVPLAYBACK_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FLVPLAYBACK_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEOALIGN_AS3_TRUE}" && test -z "${BUILD_VIDEOALIGN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEOALIGN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NCMANAGER_AS3_TRUE}" && test -z "${BUILD_NCMANAGER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NCMANAGER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEOPLAYER_AS3_TRUE}" && test -z "${BUILD_VIDEOPLAYER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEOPLAYER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CAPTIONCHANGEEVENT_AS3_TRUE}" && test -z "${BUILD_CAPTIONCHANGEEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CAPTIONCHANGEEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEOSTATE_AS3_TRUE}" && test -z "${BUILD_VIDEOSTATE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEOSTATE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NCMANAGERNATIVE_AS3_TRUE}" && test -z "${BUILD_NCMANAGERNATIVE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NCMANAGERNATIVE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEOSCALEMODE_AS3_TRUE}" && test -z "${BUILD_VIDEOSCALEMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEOSCALEMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CAPTIONTARGETEVENT_AS3_TRUE}" && test -z "${BUILD_CAPTIONTARGETEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CAPTIONTARGETEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEOEVENT_AS3_TRUE}" && test -z "${BUILD_VIDEOEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEOEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IVPEVENT_AS3_TRUE}" && test -z "${BUILD_IVPEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IVPEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_METADATAEVENT_AS3_TRUE}" && test -z "${BUILD_METADATAEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_METADATAEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CUEPOINTTYPE_AS3_TRUE}" && test -z "${BUILD_CUEPOINTTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CUEPOINTTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_VIDEOPROGRESSEVENT_AS3_TRUE}" && test -z "${BUILD_VIDEOPROGRESSEVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_VIDEOPROGRESSEVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SKINERROREVENT_AS3_TRUE}" && test -z "${BUILD_SKINERROREVENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SKINERROREVENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTFIELDAUTOSIZE_AS3_TRUE}" && test -z "${BUILD_TEXTFIELDAUTOSIZE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTFIELDAUTOSIZE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTRENDERER_AS3_TRUE}" && test -z "${BUILD_TEXTRENDERER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTRENDERER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CSMSETTINGS_AS3_TRUE}" && test -z "${BUILD_CSMSETTINGS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CSMSETTINGS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTDISPLAYMODE_AS3_TRUE}" && test -z "${BUILD_TEXTDISPLAYMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTDISPLAYMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTLINEMETRICS_AS3_TRUE}" && test -z "${BUILD_TEXTLINEMETRICS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTLINEMETRICS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GRIDFITTYPE_AS3_TRUE}" && test -z "${BUILD_GRIDFITTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_GRIDFITTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ANTIALIASTYPE_AS3_TRUE}" && test -z "${BUILD_ANTIALIASTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ANTIALIASTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STYLESHEET_AS3_TRUE}" && test -z "${BUILD_STYLESHEET_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STYLESHEET_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTFIELDTYPE_AS3_TRUE}" && test -z "${BUILD_TEXTFIELDTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTFIELDTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FONTSTYLE_AS3_TRUE}" && test -z "${BUILD_FONTSTYLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FONTSTYLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTFIELD_AS3_TRUE}" && test -z "${BUILD_TEXTFIELD_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTFIELD_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTCOLORTYPE_AS3_TRUE}" && test -z "${BUILD_TEXTCOLORTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTCOLORTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FONTTYPE_AS3_TRUE}" && test -z "${BUILD_FONTTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FONTTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FONT_AS3_TRUE}" && test -z "${BUILD_FONT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FONT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STATICTEXT_AS3_TRUE}" && test -z "${BUILD_STATICTEXT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STATICTEXT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTFORMAT_AS3_TRUE}" && test -z "${BUILD_TEXTFORMAT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTFORMAT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTSNAPSHOT_AS3_TRUE}" && test -z "${BUILD_TEXTSNAPSHOT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTSNAPSHOT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTFORMATALIGN_AS3_TRUE}" && test -z "${BUILD_TEXTFORMATALIGN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTFORMATALIGN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLTRANSACTIONLOCKTYPE_AS3_TRUE}" && test -z "${BUILD_SQLTRANSACTIONLOCKTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLTRANSACTIONLOCKTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLSCHEMARESULT_AS3_TRUE}" && test -z "${BUILD_SQLSCHEMARESULT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLSCHEMARESULT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLTRIGGERSCHEMA_AS3_TRUE}" && test -z "${BUILD_SQLTRIGGERSCHEMA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLTRIGGERSCHEMA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLTABLESCHEMA_AS3_TRUE}" && test -z "${BUILD_SQLTABLESCHEMA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLTABLESCHEMA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLCONNECTION_AS3_TRUE}" && test -z "${BUILD_SQLCONNECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLCONNECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLINDEXSCHEMA_AS3_TRUE}" && test -z "${BUILD_SQLINDEXSCHEMA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLINDEXSCHEMA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLRESULT_AS3_TRUE}" && test -z "${BUILD_SQLRESULT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLRESULT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLSCHEMA_AS3_TRUE}" && test -z "${BUILD_SQLSCHEMA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLSCHEMA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLCOLLATIONTYPE_AS3_TRUE}" && test -z "${BUILD_SQLCOLLATIONTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLCOLLATIONTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLVIEWSCHEMA_AS3_TRUE}" && test -z "${BUILD_SQLVIEWSCHEMA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLVIEWSCHEMA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLCOLUMNNAMESTYLE_AS3_TRUE}" && test -z "${BUILD_SQLCOLUMNNAMESTYLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLCOLUMNNAMESTYLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLMODE_AS3_TRUE}" && test -z "${BUILD_SQLMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ENCRYPTEDLOCALSTORE_AS3_TRUE}" && test -z "${BUILD_ENCRYPTEDLOCALSTORE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ENCRYPTEDLOCALSTORE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLSTATEMENT_AS3_TRUE}" && test -z "${BUILD_SQLSTATEMENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLSTATEMENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLCOLUMNSCHEMA_AS3_TRUE}" && test -z "${BUILD_SQLCOLUMNSCHEMA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLCOLUMNSCHEMA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IMECONVERSIONMODE_AS3_TRUE}" && test -z "${BUILD_IMECONVERSIONMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IMECONVERSIONMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IME_AS3_TRUE}" && test -z "${BUILD_IME_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IME_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SECURITYPANEL_AS3_TRUE}" && test -z "${BUILD_SECURITYPANEL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SECURITYPANEL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CAPABILITIES_AS3_TRUE}" && test -z "${BUILD_CAPABILITIES_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CAPABILITIES_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_APPLICATIONDOMAIN_AS3_TRUE}" && test -z "${BUILD_APPLICATIONDOMAIN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_APPLICATIONDOMAIN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LOADERCONTEXT_AS3_TRUE}" && test -z "${BUILD_LOADERCONTEXT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LOADERCONTEXT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SYSTEM_AS3_TRUE}" && test -z "${BUILD_SYSTEM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SYSTEM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SECURITYDOMAIN_AS3_TRUE}" && test -z "${BUILD_SECURITYDOMAIN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SECURITYDOMAIN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SECURITY_AS3_TRUE}" && test -z "${BUILD_SECURITY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SECURITY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_INVALIDSWFERROR_AS3_TRUE}" && test -z "${BUILD_INVALIDSWFERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_INVALIDSWFERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STACKOVERFLOWERROR_AS3_TRUE}" && test -z "${BUILD_STACKOVERFLOWERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STACKOVERFLOWERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IOERROR_AS3_TRUE}" && test -z "${BUILD_IOERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IOERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MEMORYERROR_AS3_TRUE}" && test -z "${BUILD_MEMORYERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MEMORYERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLERROR_AS3_TRUE}" && test -z "${BUILD_SQLERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ILLEGALOPERATIONERROR_AS3_TRUE}" && test -z "${BUILD_ILLEGALOPERATIONERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ILLEGALOPERATIONERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_EOFERROR_AS3_TRUE}" && test -z "${BUILD_EOFERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_EOFERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCRIPTTIMEOUTERROR_AS3_TRUE}" && test -z "${BUILD_SCRIPTTIMEOUTERROR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCRIPTTIMEOUTERROR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SQLERROROPERATION_AS3_TRUE}" && test -z "${BUILD_SQLERROROPERATION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SQLERROROPERATION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_UPDATER_AS3_TRUE}" && test -z "${BUILD_UPDATER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_UPDATER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEDRAGMANAGER_AS3_TRUE}" && test -z "${BUILD_NATIVEDRAGMANAGER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEDRAGMANAGER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEAPPLICATION_AS3_TRUE}" && test -z "${BUILD_NATIVEAPPLICATION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEAPPLICATION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEDRAGACTIONS_AS3_TRUE}" && test -z "${BUILD_NATIVEDRAGACTIONS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEDRAGACTIONS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CLIPBOARD_AS3_TRUE}" && test -z "${BUILD_CLIPBOARD_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CLIPBOARD_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NOTIFICATIONTYPE_AS3_TRUE}" && test -z "${BUILD_NOTIFICATIONTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NOTIFICATIONTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CLIPBOARDFORMATS_AS3_TRUE}" && test -z "${BUILD_CLIPBOARDFORMATS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CLIPBOARDFORMATS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CLIPBOARDTRANSFERMODE_AS3_TRUE}" && test -z "${BUILD_CLIPBOARDTRANSFERMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CLIPBOARDTRANSFERMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEDRAGOPTIONS_AS3_TRUE}" && test -z "${BUILD_NATIVEDRAGOPTIONS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEDRAGOPTIONS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DOCKICON_AS3_TRUE}" && test -z "${BUILD_DOCKICON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DOCKICON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SYSTEMTRAYICON_AS3_TRUE}" && test -z "${BUILD_SYSTEMTRAYICON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SYSTEMTRAYICON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ICON_AS3_TRUE}" && test -z "${BUILD_ICON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ICON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_INTERACTIVEICON_AS3_TRUE}" && test -z "${BUILD_INTERACTIVEICON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_INTERACTIVEICON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PROGRESSBARDIRECTION_AS3_TRUE}" && test -z "${BUILD_PROGRESSBARDIRECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PROGRESSBARDIRECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCROLLPOLICY_AS3_TRUE}" && test -z "${BUILD_SCROLLPOLICY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCROLLPOLICY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SLIDER_AS3_TRUE}" && test -z "${BUILD_SLIDER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SLIDER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTINPUT_AS3_TRUE}" && test -z "${BUILD_TEXTINPUT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTINPUT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEXTAREA_AS3_TRUE}" && test -z "${BUILD_TEXTAREA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TEXTAREA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SELECTABLELIST_AS3_TRUE}" && test -z "${BUILD_SELECTABLELIST_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SELECTABLELIST_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LABEL_AS3_TRUE}" && test -z "${BUILD_LABEL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LABEL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCROLLBAR_AS3_TRUE}" && test -z "${BUILD_SCROLLBAR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCROLLBAR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BASEBUTTON_AS3_TRUE}" && test -z "${BUILD_BASEBUTTON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BASEBUTTON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCROLLBARDIRECTION_AS3_TRUE}" && test -z "${BUILD_SCROLLBARDIRECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCROLLBARDIRECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_RADIOBUTTONGROUP_AS3_TRUE}" && test -z "${BUILD_RADIOBUTTONGROUP_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_RADIOBUTTONGROUP_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_COMBOBOX_AS3_TRUE}" && test -z "${BUILD_COMBOBOX_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_COMBOBOX_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LABELBUTTON_AS3_TRUE}" && test -z "${BUILD_LABELBUTTON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LABELBUTTON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NUMERICSTEPPER_AS3_TRUE}" && test -z "${BUILD_NUMERICSTEPPER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NUMERICSTEPPER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_UISCROLLBAR_AS3_TRUE}" && test -z "${BUILD_UISCROLLBAR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_UISCROLLBAR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PROGRESSBARMODE_AS3_TRUE}" && test -z "${BUILD_PROGRESSBARMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PROGRESSBARMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DATAGRID_AS3_TRUE}" && test -z "${BUILD_DATAGRID_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DATAGRID_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PROGRESSBAR_AS3_TRUE}" && test -z "${BUILD_PROGRESSBAR_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PROGRESSBAR_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BUTTON_AS3_TRUE}" && test -z "${BUILD_BUTTON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BUTTON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_COLORPICKER_AS3_TRUE}" && test -z "${BUILD_COLORPICKER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_COLORPICKER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CHECKBOX_AS3_TRUE}" && test -z "${BUILD_CHECKBOX_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CHECKBOX_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TILELIST_AS3_TRUE}" && test -z "${BUILD_TILELIST_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_TILELIST_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LIST_AS3_TRUE}" && test -z "${BUILD_LIST_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LIST_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BUTTONLABELPLACEMENT_AS3_TRUE}" && test -z "${BUILD_BUTTONLABELPLACEMENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BUTTONLABELPLACEMENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SLIDERDIRECTION_AS3_TRUE}" && test -z "${BUILD_SLIDERDIRECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SLIDERDIRECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_RADIOBUTTON_AS3_TRUE}" && test -z "${BUILD_RADIOBUTTON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_RADIOBUTTON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_XMLNODE_AS3_TRUE}" && test -z "${BUILD_XMLNODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_XMLNODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_XMLNODETYPE_AS3_TRUE}" && test -z "${BUILD_XMLNODETYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_XMLNODETYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_XMLDOCUMENT_AS3_TRUE}" && test -z "${BUILD_XMLDOCUMENT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_XMLDOCUMENT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FRAMELABEL_AS3_TRUE}" && test -z "${BUILD_FRAMELABEL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FRAMELABEL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCREEN_AS3_TRUE}" && test -z "${BUILD_SCREEN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCREEN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BITMAP_AS3_TRUE}" && test -z "${BUILD_BITMAP_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BITMAP_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SWFVERSION_AS3_TRUE}" && test -z "${BUILD_SWFVERSION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SWFVERSION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STAGEALIGN_AS3_TRUE}" && test -z "${BUILD_STAGEALIGN_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STAGEALIGN_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STAGEDISPLAYSTATE_AS3_TRUE}" && test -z "${BUILD_STAGEDISPLAYSTATE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STAGEDISPLAYSTATE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_IBITMAPDRAWABLE_AS3_TRUE}" && test -z "${BUILD_IBITMAPDRAWABLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_IBITMAPDRAWABLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEWINDOWTYPE_AS3_TRUE}" && test -z "${BUILD_NATIVEWINDOWTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEWINDOWTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEMENUITEM_AS3_TRUE}" && test -z "${BUILD_NATIVEMENUITEM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEMENUITEM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_INTERPOLATIONMETHOD_AS3_TRUE}" && test -z "${BUILD_INTERPOLATIONMETHOD_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_INTERPOLATIONMETHOD_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_INTERACTIVEOBJECT_AS3_TRUE}" && test -z "${BUILD_INTERACTIVEOBJECT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_INTERACTIVEOBJECT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BITMAPDATA_AS3_TRUE}" && test -z "${BUILD_BITMAPDATA_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BITMAPDATA_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCENE_AS3_TRUE}" && test -z "${BUILD_SCENE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCENE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STAGE_AS3_TRUE}" && test -z "${BUILD_STAGE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STAGE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STAGESCALEMODE_AS3_TRUE}" && test -z "${BUILD_STAGESCALEMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STAGESCALEMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SPRITE_AS3_TRUE}" && test -z "${BUILD_SPRITE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SPRITE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SPREADMETHOD_AS3_TRUE}" && test -z "${BUILD_SPREADMETHOD_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SPREADMETHOD_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SIMPLEBUTTON_AS3_TRUE}" && test -z "${BUILD_SIMPLEBUTTON_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SIMPLEBUTTON_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEWINDOWRESIZE_AS3_TRUE}" && test -z "${BUILD_NATIVEWINDOWRESIZE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEWINDOWRESIZE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEWINDOW_AS3_TRUE}" && test -z "${BUILD_NATIVEWINDOW_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEWINDOW_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_AVM1MOVIE_AS3_TRUE}" && test -z "${BUILD_AVM1MOVIE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_AVM1MOVIE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GRADIENTTYPE_AS3_TRUE}" && test -z "${BUILD_GRADIENTTYPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_GRADIENTTYPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DISPLAYOBJECT_AS3_TRUE}" && test -z "${BUILD_DISPLAYOBJECT_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DISPLAYOBJECT_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GRAPHICS_AS3_TRUE}" && test -z "${BUILD_GRAPHICS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_GRAPHICS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CAPSSTYLE_AS3_TRUE}" && test -z "${BUILD_CAPSSTYLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_CAPSSTYLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BITMAPDATACHANNEL_AS3_TRUE}" && test -z "${BUILD_BITMAPDATACHANNEL_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BITMAPDATACHANNEL_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MOVIECLIP_AS3_TRUE}" && test -z "${BUILD_MOVIECLIP_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MOVIECLIP_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STAGEQUALITY_AS3_TRUE}" && test -z "${BUILD_STAGEQUALITY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STAGEQUALITY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_PIXELSNAPPING_AS3_TRUE}" && test -z "${BUILD_PIXELSNAPPING_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_PIXELSNAPPING_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ACTIONSCRIPTVERSION_AS3_TRUE}" && test -z "${BUILD_ACTIONSCRIPTVERSION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_ACTIONSCRIPTVERSION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LOADERINFO_AS3_TRUE}" && test -z "${BUILD_LOADERINFO_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LOADERINFO_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LINESCALEMODE_AS3_TRUE}" && test -z "${BUILD_LINESCALEMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LINESCALEMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_JOINTSTYLE_AS3_TRUE}" && test -z "${BUILD_JOINTSTYLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_JOINTSTYLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_TRUE}" && test -z "${BUILD_NATIVEWINDOWDISPLAYSTATE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEWINDOWDISPLAYSTATE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FOCUSDIRECTION_AS3_TRUE}" && test -z "${BUILD_FOCUSDIRECTION_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_FOCUSDIRECTION_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BLENDMODE_AS3_TRUE}" && test -z "${BUILD_BLENDMODE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BLENDMODE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEMENU_AS3_TRUE}" && test -z "${BUILD_NATIVEMENU_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEMENU_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MORPHSHAPE_AS3_TRUE}" && test -z "${BUILD_MORPHSHAPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_MORPHSHAPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SHAPE_AS3_TRUE}" && test -z "${BUILD_SHAPE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SHAPE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NATIVEWINDOWINITOPTIONS_AS3_TRUE}" && test -z "${BUILD_NATIVEWINDOWINITOPTIONS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NATIVEWINDOWINITOPTIONS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LOADER_AS3_TRUE}" && test -z "${BUILD_LOADER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_LOADER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DISPLAYOBJECTCONTAINER_AS3_TRUE}" && test -z "${BUILD_DISPLAYOBJECTCONTAINER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DISPLAYOBJECTCONTAINER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_BASESCROLLPANE_AS3_TRUE}" && test -z "${BUILD_BASESCROLLPANE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_BASESCROLLPANE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_UILOADER_AS3_TRUE}" && test -z "${BUILD_UILOADER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_UILOADER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SCROLLPANE_AS3_TRUE}" && test -z "${BUILD_SCROLLPANE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SCROLLPANE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SAMPLE_AS3_TRUE}" && test -z "${BUILD_SAMPLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_SAMPLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_STACKFRAME_AS3_TRUE}" && test -z "${BUILD_STACKFRAME_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_STACKFRAME_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NEWOBJECTSAMPLE_AS3_TRUE}" && test -z "${BUILD_NEWOBJECTSAMPLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_NEWOBJECTSAMPLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DELETEOBJECTSAMPLE_AS3_TRUE}" && test -z "${BUILD_DELETEOBJECTSAMPLE_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_DELETEOBJECTSAMPLE_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTMLWINDOWCREATEOPTIONS_AS3_TRUE}" && test -z "${BUILD_HTMLWINDOWCREATEOPTIONS_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_HTMLWINDOWCREATEOPTIONS_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTMLLOADER_AS3_TRUE}" && test -z "${BUILD_HTMLLOADER_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_HTMLLOADER_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTMLHISTORYITEM_AS3_TRUE}" && test -z "${BUILD_HTMLHISTORYITEM_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_HTMLHISTORYITEM_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTMLPDFCAPABILITY_AS3_TRUE}" && test -z "${BUILD_HTMLPDFCAPABILITY_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_HTMLPDFCAPABILITY_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTMLHOST_AS3_TRUE}" && test -z "${BUILD_HTMLHOST_AS3_FALSE}"; then
  as_fn_error "conditional \"BUILD_HTMLHOST_AS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_AVM2_TRUE}" && test -z "${ENABLE_AVM2_FALSE}"; then
  as_fn_error "conditional \"ENABLE_AVM2\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_PYTHON_TRUE}" && test -z "${USE_PYTHON_FALSE}"; then
  as_fn_error "conditional \"USE_PYTHON\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAS_PYTHON_TRUE}" && test -z "${HAS_PYTHON_FALSE}"; then
  as_fn_error "conditional \"HAS_PYTHON\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_MALLINFO_TRUE}" && test -z "${HAVE_MALLINFO_FALSE}"; then
  as_fn_error "conditional \"HAVE_MALLINFO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${JEMALLOC_TRUE}" && test -z "${JEMALLOC_FALSE}"; then
  as_fn_error "conditional \"JEMALLOC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DEBUGGER_TRUE}" && test -z "${DEBUGGER_FALSE}"; then
  as_fn_error "conditional \"DEBUGGER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ALLSTATIC_TRUE}" && test -z "${ALLSTATIC_FALSE}"; then
  as_fn_error "conditional \"ALLSTATIC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MENUS_TRUE}" && test -z "${MENUS_FALSE}"; then
  as_fn_error "conditional \"MENUS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${SWFTREE_TRUE}" && test -z "${SWFTREE_FALSE}"; then
  as_fn_error "conditional \"SWFTREE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${TESTSUITE_TRUE}" && test -z "${TESTSUITE_FALSE}"; then
  as_fn_error "conditional \"TESTSUITE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${CYGNAL_TRUE}" && test -z "${CYGNAL_FALSE}"; then
  as_fn_error "conditional \"CYGNAL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_CGI_TRUE}" && test -z "${USE_CGI_FALSE}"; then
  as_fn_error "conditional \"USE_CGI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_DBUF_TRUE}" && test -z "${ENABLE_DBUF_FALSE}"; then
  as_fn_error "conditional \"ENABLE_DBUF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SSH_TRUE}" && test -z "${BUILD_SSH_FALSE}"; then
  as_fn_error "conditional \"BUILD_SSH\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SSL_TRUE}" && test -z "${BUILD_SSL_FALSE}"; then
  as_fn_error "conditional \"BUILD_SSL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_GIF_TRUE}" && test -z "${USE_GIF_FALSE}"; then
  as_fn_error "conditional \"USE_GIF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_PNG_TRUE}" && test -z "${USE_PNG_FALSE}"; then
  as_fn_error "conditional \"USE_PNG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_DMALLOC_TRUE}" && test -z "${HAVE_DMALLOC_FALSE}"; then
  as_fn_error "conditional \"HAVE_DMALLOC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${LIRC_TRUE}" && test -z "${LIRC_FALSE}"; then
  as_fn_error "conditional \"LIRC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_XV_TRUE}" && test -z "${HAVE_XV_FALSE}"; then
  as_fn_error "conditional \"HAVE_XV\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
  as_fn_error "conditional \"HAVE_X11\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BROKEN_FLOAT_TRUE}" && test -z "${BROKEN_FLOAT_FALSE}"; then
  as_fn_error "conditional \"BROKEN_FLOAT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_SPEEX_TRUE}" && test -z "${HAVE_SPEEX_FALSE}"; then
  as_fn_error "conditional \"HAVE_SPEEX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${FREETYPE_TRUE}" && test -z "${FREETYPE_FALSE}"; then
  as_fn_error "conditional \"FREETYPE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_MING_TRUE}" && test -z "${ENABLE_MING_FALSE}"; then
  as_fn_error "conditional \"ENABLE_MING\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MING_VERSION_0_4_TRUE}" && test -z "${MING_VERSION_0_4_FALSE}"; then
  as_fn_error "conditional \"MING_VERSION_0_4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MAKESWF_SUPPORTS_PREBUILT_CLIPS_TRUE}" && test -z "${MAKESWF_SUPPORTS_PREBUILT_CLIPS_FALSE}"; then
  as_fn_error "conditional \"MAKESWF_SUPPORTS_PREBUILT_CLIPS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MING_SUPPORTS_INIT_ACTIONS_TRUE}" && test -z "${MING_SUPPORTS_INIT_ACTIONS_FALSE}"; then
  as_fn_error "conditional \"MING_SUPPORTS_INIT_ACTIONS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MING_SUPPORTS_REPLACE_TAG_TRUE}" && test -z "${MING_SUPPORTS_REPLACE_TAG_FALSE}"; then
  as_fn_error "conditional \"MING_SUPPORTS_REPLACE_TAG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_TRUE}" && test -z "${MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER_FALSE}"; then
  as_fn_error "conditional \"MING_SUPPORTS_SWFBUTTON_ADD_CHARACTER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MING_SUPPORTS_STREAMING_SOUND_TRUE}" && test -z "${MING_SUPPORTS_STREAMING_SOUND_FALSE}"; then
  as_fn_error "conditional \"MING_SUPPORTS_STREAMING_SOUND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MING_SUPPORTS_SWFBUTTON_SET_DEPTH_TRUE}" && test -z "${MING_SUPPORTS_SWFBUTTON_SET_DEPTH_FALSE}"; then
  as_fn_error "conditional \"MING_SUPPORTS_SWFBUTTON_SET_DEPTH\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MING_VERSION_0_4_3_TRUE}" && test -z "${MING_VERSION_0_4_3_FALSE}"; then
  as_fn_error "conditional \"MING_VERSION_0_4_3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_SWFDEC_TESTSUITE_TRUE}" && test -z "${ENABLE_SWFDEC_TESTSUITE_FALSE}"; then
  as_fn_error "conditional \"ENABLE_SWFDEC_TESTSUITE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_HTTP_TESTSUITE_TRUE}" && test -z "${ENABLE_HTTP_TESTSUITE_FALSE}"; then
  as_fn_error "conditional \"ENABLE_HTTP_TESTSUITE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_RED5_TESTING_TRUE}" && test -z "${ENABLE_RED5_TESTING_FALSE}"; then
  as_fn_error "conditional \"ENABLE_RED5_TESTING\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAS_NETCAT_TRUE}" && test -z "${HAS_NETCAT_FALSE}"; then
  as_fn_error "conditional \"HAS_NETCAT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAS_WGET_TRUE}" && test -z "${HAS_WGET_FALSE}"; then
  as_fn_error "conditional \"HAS_WGET\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_SWFMILL_TRUE}" && test -z "${ENABLE_SWFMILL_FALSE}"; then
  as_fn_error "conditional \"ENABLE_SWFMILL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${SWFMILL_AS3_SUPPORT_TRUE}" && test -z "${SWFMILL_AS3_SUPPORT_FALSE}"; then
  as_fn_error "conditional \"SWFMILL_AS3_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_TRUE}" && test -z "${SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT_FALSE}"; then
  as_fn_error "conditional \"SWFMILL_FUNCTION2_FLAGS_ORDER_CORRECT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_AS3COMPILE_TRUE}" && test -z "${ENABLE_AS3COMPILE_FALSE}"; then
  as_fn_error "conditional \"ENABLE_AS3COMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_MTASC_TRUE}" && test -z "${ENABLE_MTASC_FALSE}"; then
  as_fn_error "conditional \"ENABLE_MTASC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_HAXE_TRUE}" && test -z "${ENABLE_HAXE_FALSE}"; then
  as_fn_error "conditional \"ENABLE_HAXE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_SWFC_TRUE}" && test -z "${ENABLE_SWFC_FALSE}"; then
  as_fn_error "conditional \"ENABLE_SWFC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_HAXE_TRUE}" && test -z "${ENABLE_HAXE_FALSE}"; then
  as_fn_error "conditional \"ENABLE_HAXE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
  as_fn_error "conditional \"ENABLE_DOXYGEN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
  as_fn_error "conditional \"HAVE_SDL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_QTOPIA3_TRUE}" && test -z "${HAVE_QTOPIA3_FALSE}"; then
  as_fn_error "conditional \"HAVE_QTOPIA3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_QTOPIA4_TRUE}" && test -z "${HAVE_QTOPIA4_FALSE}"; then
  as_fn_error "conditional \"HAVE_QTOPIA4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_KDE3_TRUE}" && test -z "${HAVE_KDE3_FALSE}"; then
  as_fn_error "conditional \"HAVE_KDE3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_KDE4_TRUE}" && test -z "${HAVE_KDE4_FALSE}"; then
  as_fn_error "conditional \"HAVE_KDE4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_QT3_TRUE}" && test -z "${HAVE_QT3_FALSE}"; then
  as_fn_error "conditional \"HAVE_QT3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_QT4_TRUE}" && test -z "${HAVE_QT4_FALSE}"; then
  as_fn_error "conditional \"HAVE_QT4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WITH_KDE4_TRUE}" && test -z "${WITH_KDE4_FALSE}"; then
  as_fn_error "conditional \"WITH_KDE4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${QT_X11_TRUE}" && test -z "${QT_X11_FALSE}"; then
  as_fn_error "conditional \"QT_X11\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${QTOPIA_TRUE}" && test -z "${QTOPIA_FALSE}"; then
  as_fn_error "conditional \"QTOPIA\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${QT_OSX_TRUE}" && test -z "${QT_OSX_FALSE}"; then
  as_fn_error "conditional \"QT_OSX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${QT_OS9_TRUE}" && test -z "${QT_OS9_FALSE}"; then
  as_fn_error "conditional \"QT_OS9\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${QT_WIN32_TRUE}" && test -z "${QT_WIN32_FALSE}"; then
  as_fn_error "conditional \"QT_WIN32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
  as_fn_error "conditional \"HAVE_GLIB\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_QTOPIA3_GUI_TRUE}" && test -z "${BUILD_QTOPIA3_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_QTOPIA3_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_QTOPIA4_GUI_TRUE}" && test -z "${BUILD_QTOPIA4_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_QTOPIA4_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_QT3_GUI_TRUE}" && test -z "${BUILD_QT3_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_QT3_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_QT4_GUI_TRUE}" && test -z "${BUILD_QT4_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_QT4_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_KDE3_GUI_TRUE}" && test -z "${BUILD_KDE3_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_KDE3_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_KDE4_GUI_TRUE}" && test -z "${BUILD_KDE4_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_KDE4_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ALP_GUI_TRUE}" && test -z "${BUILD_ALP_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_ALP_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HILDON_GUI_TRUE}" && test -z "${BUILD_HILDON_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_HILDON_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_GTK_GUI_TRUE}" && test -z "${BUILD_GTK_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_GTK_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FLTK_GUI_TRUE}" && test -z "${BUILD_FLTK_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_FLTK_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SDL_GUI_TRUE}" && test -z "${BUILD_SDL_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_SDL_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_FB_GUI_TRUE}" && test -z "${BUILD_FB_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_FB_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_AQUA_GUI_TRUE}" && test -z "${BUILD_AQUA_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_AQUA_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ALLSTATIC_TRUE}" && test -z "${ALLSTATIC_FALSE}"; then
  as_fn_error "conditional \"ALLSTATIC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_RISCOS_GUI_TRUE}" && test -z "${BUILD_RISCOS_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_RISCOS_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DUMP_GUI_TRUE}" && test -z "${BUILD_DUMP_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_DUMP_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_AMIGAOS4_GUI_TRUE}" && test -z "${BUILD_AMIGAOS4_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_AMIGAOS4_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HAIKU_GUI_TRUE}" && test -z "${BUILD_HAIKU_GUI_FALSE}"; then
  as_fn_error "conditional \"BUILD_HAIKU_GUI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NPAPI_TRUE}" && test -z "${NPAPI_FALSE}"; then
  as_fn_error "conditional \"NPAPI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${KPARTS3_TRUE}" && test -z "${KPARTS3_FALSE}"; then
  as_fn_error "conditional \"KPARTS3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${KPARTS4_TRUE}" && test -z "${KPARTS4_FALSE}"; then
  as_fn_error "conditional \"KPARTS4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GHELP_TRUE}" && test -z "${GHELP_FALSE}"; then
  as_fn_error "conditional \"GHELP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAS_KDE3_TRUE}" && test -z "${HAS_KDE3_FALSE}"; then
  as_fn_error "conditional \"HAS_KDE3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
  as_fn_error "conditional \"include_x11\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
  as_fn_error "conditional \"include_ARTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
  as_fn_error "conditional \"unsermake_enable_pch\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
  as_fn_error "conditional \"HAVE_GTK2\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_GLEXT_TRUE}" && test -z "${HAVE_GLEXT_FALSE}"; then
  as_fn_error "conditional \"HAVE_GLEXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
  as_fn_error "conditional \"HAVE_CAIRO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
  as_fn_error "conditional \"HAVE_OPENGL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_SOUND_SDL_TRUE}" && test -z "${USE_SOUND_SDL_FALSE}"; then
  as_fn_error "conditional \"USE_SOUND_SDL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_SOUND_AHI_TRUE}" && test -z "${USE_SOUND_AHI_FALSE}"; then
  as_fn_error "conditional \"USE_SOUND_AHI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_SOUND_MKIT_TRUE}" && test -z "${USE_SOUND_MKIT_FALSE}"; then
  as_fn_error "conditional \"USE_SOUND_MKIT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_FFMPEG_ENGINE_TRUE}" && test -z "${USE_FFMPEG_ENGINE_FALSE}"; then
  as_fn_error "conditional \"USE_FFMPEG_ENGINE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_GST_ENGINE_TRUE}" && test -z "${USE_GST_ENGINE_FALSE}"; then
  as_fn_error "conditional \"USE_GST_ENGINE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
  as_fn_error "conditional \"HAVE_OPENGL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_HAIKU_ENGINE_TRUE}" && test -z "${USE_HAIKU_ENGINE_FALSE}"; then
  as_fn_error "conditional \"USE_HAIKU_ENGINE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_FLTK2_TRUE}" && test -z "${HAVE_FLTK2_FALSE}"; then
  as_fn_error "conditional \"HAVE_FLTK2\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAS_XFT_TRUE}" && test -z "${HAS_XFT_FALSE}"; then
  as_fn_error "conditional \"HAS_XFT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_INFO_TRUE}" && test -z "${ENABLE_INFO_FALSE}"; then
  as_fn_error "conditional \"ENABLE_INFO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_TEXI_TRUE}" && test -z "${ENABLE_TEXI_FALSE}"; then
  as_fn_error "conditional \"ENABLE_TEXI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_PDF_TRUE}" && test -z "${ENABLE_PDF_FALSE}"; then
  as_fn_error "conditional \"ENABLE_PDF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_HTML_TRUE}" && test -z "${ENABLE_HTML_FALSE}"; then
  as_fn_error "conditional \"ENABLE_HTML\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_FOP_TRUE}" && test -z "${ENABLE_FOP_FALSE}"; then
  as_fn_error "conditional \"ENABLE_FOP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_XMLTEX_TRUE}" && test -z "${ENABLE_XMLTEX_FALSE}"; then
  as_fn_error "conditional \"ENABLE_XMLTEX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
  as_fn_error "conditional \"ENABLE_MAN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_INFO_TRUE}" && test -z "${ENABLE_INFO_FALSE}"; then
  as_fn_error "conditional \"ENABLE_INFO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DOCBOOK_TRUE}" && test -z "${DOCBOOK_FALSE}"; then
  as_fn_error "conditional \"DOCBOOK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_TEXI_TRUE}" && test -z "${ENABLE_TEXI_FALSE}"; then
  as_fn_error "conditional \"ENABLE_TEXI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_PDF_TRUE}" && test -z "${ENABLE_PDF_FALSE}"; then
  as_fn_error "conditional \"ENABLE_PDF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_HTML_TRUE}" && test -z "${ENABLE_HTML_FALSE}"; then
  as_fn_error "conditional \"ENABLE_HTML\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_FOP_TRUE}" && test -z "${ENABLE_FOP_FALSE}"; then
  as_fn_error "conditional \"ENABLE_FOP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_XMLTEX_TRUE}" && test -z "${ENABLE_XMLTEX_FALSE}"; then
  as_fn_error "conditional \"ENABLE_XMLTEX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
  as_fn_error "conditional \"ENABLE_MAN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_AGG_TRUE}" && test -z "${HAVE_AGG_FALSE}"; then
  as_fn_error "conditional \"HAVE_AGG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
  as_fn_error "conditional \"CURL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_PCH_TRUE}" && test -z "${ENABLE_PCH_FALSE}"; then
  as_fn_error "conditional \"ENABLE_PCH\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_BOOST_TRUE}" && test -z "${HAVE_BOOST_FALSE}"; then
  as_fn_error "conditional \"HAVE_BOOST\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${VISIBILITY_WORKS_TRUE}" && test -z "${VISIBILITY_WORKS_FALSE}"; then
  as_fn_error "conditional \"VISIBILITY_WORKS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by gnash $as_me 0.8.8, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_links="$ac_config_links"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration links:
$config_links

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
gnash config.status 0.8.8
configured by $0, generated by GNU Autoconf 2.64,
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2009 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
    # from automake.
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
    LINGUAS="${LINGUAS-%UNSET%}"



# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# Quote evaled strings.
for var in SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
deplibs_check_method \
file_magic_cmd \
AR \
AR_FLAGS \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
SHELL \
ECHO \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_wl \
lt_prog_compiler_pic \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
fix_srcfile_path \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
finish_eval \
old_striplib \
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
fix_srcfile_path_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Fix-up fallback echo if it was mangled by the above quoting rules.
case \$lt_ECHO in
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  ;;
esac

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'






_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "gnashconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gnashconfig.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "cygnal/testsuite/cygnal.all/cygnalrc") CONFIG_LINKS="$CONFIG_LINKS cygnal/testsuite/cygnal.all/cygnalrc:cygnal/testsuite/cygnal.all/cygnalrc.in" ;;
    "testsuite/libbase.all/gnashrc") CONFIG_LINKS="$CONFIG_LINKS testsuite/libbase.all/gnashrc:testsuite/libbase.all/gnashrc.in" ;;
    "testsuite/libbase.all/gnashrc-local") CONFIG_LINKS="$CONFIG_LINKS testsuite/libbase.all/gnashrc-local:testsuite/libbase.all/gnashrc-local.in" ;;
    "gnash.pc") CONFIG_FILES="$CONFIG_FILES gnash.pc:gnash.pc.in" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
    "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
    "libmedia/Makefile") CONFIG_FILES="$CONFIG_FILES libmedia/Makefile" ;;
    "libsound/Makefile") CONFIG_FILES="$CONFIG_FILES libsound/Makefile" ;;
    "libbase/Makefile") CONFIG_FILES="$CONFIG_FILES libbase/Makefile" ;;
    "libcore/Makefile") CONFIG_FILES="$CONFIG_FILES libcore/Makefile" ;;
    "libcore/vm/Makefile") CONFIG_FILES="$CONFIG_FILES libcore/vm/Makefile" ;;
    "libcore/parser/Makefile") CONFIG_FILES="$CONFIG_FILES libcore/parser/Makefile" ;;
    "libvaapi/Makefile") CONFIG_FILES="$CONFIG_FILES libvaapi/Makefile" ;;
    "librender/Makefile") CONFIG_FILES="$CONFIG_FILES librender/Makefile" ;;
    "utilities/Makefile") CONFIG_FILES="$CONFIG_FILES utilities/Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
    "testsuite/media/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/media/Makefile" ;;
    "testsuite/libbase.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libbase.all/Makefile" ;;
    "testsuite/as3compile.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/as3compile.all/Makefile" ;;
    "testsuite/actionscript.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/actionscript.all/Makefile" ;;
    "testsuite/samples/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/samples/Makefile" ;;
    "testsuite/swfdec/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/swfdec/Makefile" ;;
    "testsuite/misc-ming.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-ming.all/Makefile" ;;
    "testsuite/misc-mtasc.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-mtasc.all/Makefile" ;;
    "testsuite/misc-haxe.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-haxe.all/Makefile" ;;
    "testsuite/misc-haxe.all/classes.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-haxe.all/classes.all/Makefile" ;;
    "testsuite/misc-swfmill.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-swfmill.all/Makefile" ;;
    "testsuite/misc-swfmill.all/trace-as2/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-swfmill.all/trace-as2/Makefile" ;;
    "testsuite/misc-swfmill.all/trace-as3/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-swfmill.all/trace-as3/Makefile" ;;
    "testsuite/misc-swfc.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/misc-swfc.all/Makefile" ;;
    "testsuite/network.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/network.all/Makefile" ;;
    "testsuite/movies.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/movies.all/Makefile" ;;
    "testsuite/libcore.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libcore.all/Makefile" ;;
    "testsuite/libmedia.all/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libmedia.all/Makefile" ;;
    "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
    "gui/Info.plist") CONFIG_FILES="$CONFIG_FILES gui/Info.plist" ;;
    "gui/pythonmod/Makefile") CONFIG_FILES="$CONFIG_FILES gui/pythonmod/Makefile" ;;
    "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
    "extensions/dejagnu/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/dejagnu/Makefile" ;;
    "extensions/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/mysql/Makefile" ;;
    "extensions/fileio/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/fileio/Makefile" ;;
    "extensions/gtk2/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/gtk2/Makefile" ;;
    "extensions/lirc/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/lirc/Makefile" ;;
    "extensions/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/dbus/Makefile" ;;
    "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
    "plugin/npapi/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/npapi/Makefile" ;;
    "plugin/klash/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/klash/Makefile" ;;
    "plugin/klash4/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/klash4/Makefile" ;;
    "plugin/win32/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/win32/Makefile" ;;
    "cygnal/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/Makefile" ;;
    "cygnal/libnet/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/libnet/Makefile" ;;
    "cygnal/libamf/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/libamf/Makefile" ;;
    "cygnal/cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/cgi-bin/Makefile" ;;
    "cygnal/cgi-bin/echo/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/cgi-bin/echo/Makefile" ;;
    "cygnal/cgi-bin/oflaDemo/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/cgi-bin/oflaDemo/Makefile" ;;
    "cygnal/cgi-bin/fitcDemo/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/cgi-bin/fitcDemo/Makefile" ;;
    "cygnal/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/testsuite/Makefile" ;;
    "cygnal/testsuite/libamf.all/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/testsuite/libamf.all/Makefile" ;;
    "cygnal/testsuite/libnet.all/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/testsuite/libnet.all/Makefile" ;;
    "cygnal/testsuite/cygnal.all/Makefile") CONFIG_FILES="$CONFIG_FILES cygnal/testsuite/cygnal.all/Makefile" ;;

  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_t"; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  || as_fn_error "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out" && rm -f "$tmp/out";;
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  esac \
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    } >"$tmp/config.h" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$tmp/config.h" "$ac_file" \
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;
  :L)
  #
  # CONFIG_LINK
  #

  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
    :
  else
    # Prefer the file from the source tree if names are identical.
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
      ac_source=$srcdir/$ac_source
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}

    if test ! -r "$ac_source"; then
      as_fn_error "$ac_source: file not found" "$LINENO" 5
    fi
    rm -f "$ac_file"

    # Try a relative symlink, then a hard link, then a copy.
    case $srcdir in
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
    esac
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
      ln "$ac_source" "$ac_file" 2>/dev/null ||
      cp -p "$ac_source" "$ac_file" ||
      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  fi
 ;;
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "default-1":C)
    for ac_file in $CONFIG_FILES; do
      # Support "outfile[:infile[:infile...]]"
      case "$ac_file" in
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
      esac
      # PO directories have a Makefile.in generated from Makefile.in.in.
      case "$ac_file" in */Makefile.in)
        # Adjust a relative srcdir.
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
        # In autoconf-2.13 it is called $ac_given_srcdir.
        # In autoconf-2.50 it is called $srcdir.
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
        case "$ac_given_srcdir" in
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
          /*) top_srcdir="$ac_given_srcdir" ;;
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
        esac
        # Treat a directory as a PO directory if and only if it has a
        # POTFILES.in file. This allows packages to have multiple PO
        # directories under different names or in different locations.
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
          rm -f "$ac_dir/POTFILES"
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
          POMAKEFILEDEPS="POTFILES.in"
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
          # on $ac_dir but don't depend on user-specified configuration
          # parameters.
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
            # The LINGUAS file contains the set of available languages.
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
            fi
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
            # Hide the ALL_LINGUAS assigment from automake.
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
          else
            # The set of available languages was given in configure.in.
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
          fi
          # Compute POFILES
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
          # Compute UPDATEPOFILES
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
          # Compute DUMMYPOFILES
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
          # Compute GMOFILES
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
          case "$ac_given_srcdir" in
            .) srcdirpre= ;;
            *) srcdirpre='$(srcdir)/' ;;
          esac
          POFILES=
          UPDATEPOFILES=
          DUMMYPOFILES=
          GMOFILES=
          for lang in $ALL_LINGUAS; do
            POFILES="$POFILES $srcdirpre$lang.po"
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
          done
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
          # environment variable.
          INST_LINGUAS=
          if test -n "$ALL_LINGUAS"; then
            for presentlang in $ALL_LINGUAS; do
              useit=no
              if test "%UNSET%" != "$LINGUAS"; then
                desiredlanguages="$LINGUAS"
              else
                desiredlanguages="$ALL_LINGUAS"
              fi
              for desiredlang in $desiredlanguages; do
                # Use the presentlang catalog if desiredlang is
                #   a. equal to presentlang, or
                #   b. a variant of presentlang (because in this case,
                #      presentlang can be used as a fallback for messages
                #      which are not translated in the desiredlang catalog).
                case "$desiredlang" in
                  "$presentlang"*) useit=yes;;
                esac
              done
              if test $useit = yes; then
                INST_LINGUAS="$INST_LINGUAS $presentlang"
              fi
            done
          fi
          CATALOGS=
          if test -n "$INST_LINGUAS"; then
            for lang in $INST_LINGUAS; do
              CATALOGS="$CATALOGS $lang.gmo"
            done
          fi
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
            if test -f "$f"; then
              case "$f" in
                *.orig | *.bak | *~) ;;
                *) cat "$f" >> "$ac_dir/Makefile" ;;
              esac
            fi
          done
        fi
        ;;
      esac
    done ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008 Free Software Foundation, Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags="CXX "

# ### BEGIN LIBTOOL CONFIG

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# Assembler program.
AS=$AS

# DLL creation program.
DLLTOOL=$DLLTOOL

# Object dumper program.
OBJDUMP=$OBJDUMP

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that does not interpret backslashes.
ECHO=$lt_ECHO

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
  esac


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  case $xsi_shell in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
}

# func_basename file
func_basename ()
{
  func_basename_result="${1##*/}"
}

# func_dirname_and_basename file append nondir_replacement
# perform func_basename and func_dirname in a single function
# call:
#   dirname:  Compute the dirname of FILE.  If nonempty,
#             add APPEND to the result, otherwise set result
#             to NONDIR_REPLACEMENT.
#             value returned in "$func_dirname_result"
#   basename: Compute filename of FILE.
#             value retuned in "$func_basename_result"
# Implementation must be kept synchronized with func_dirname
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here.
func_dirname_and_basename ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
  func_basename_result="${1##*/}"
}

# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
func_stripname ()
{
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  # positional parameters, so assign one to ordinary parameter first.
  func_stripname_result=${3}
  func_stripname_result=${func_stripname_result#"${1}"}
  func_stripname_result=${func_stripname_result%"${2}"}
}

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=${1%%=*}
  func_opt_split_arg=${1#*=}
}

# func_lo2o object
func_lo2o ()
{
  case ${1} in
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    *)    func_lo2o_result=${1} ;;
  esac
}

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=${1%.*}.lo
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=$(( $* ))
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=${#1}
}

_LT_EOF
    ;;
  *) # Bourne compatible functions.
    cat << \_LT_EOF >> "$cfgfile"

# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  if test "X$func_dirname_result" = "X${1}"; then
    func_dirname_result="${3}"
  else
    func_dirname_result="$func_dirname_result${2}"
  fi
}

# func_basename file
func_basename ()
{
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
}


# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# func_strip_suffix prefix name
func_stripname ()
{
  case ${2} in
    .*) func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    *)  func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  esac
}

# sed scripts:
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
my_sed_long_arg='1s/^-[^=]*=//'

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
}

# func_lo2o object
func_lo2o ()
{
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
}

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=`expr "$@"`
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
}

_LT_EOF
esac

case $lt_shell_append in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1+=\$2"
}
_LT_EOF
    ;;
  *)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1=\$$1\$2"
}

_LT_EOF
    ;;
  esac


  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

 ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit $?
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


###
########################## Final report begins... ############################
###

cerr=/tmp/gnash-configure-errors.$$
cwarn=/tmp/gnash-configure-warnings.$$
crec=/tmp/gnash-configure-recommended.$$
echo ""

#trap 'rm cerr' 0 # trap isn't a good idea, might override other traps
exec 3> $cerr
exec 4> $cwarn
exec 5> $crec

echo "Configurable options are:"

if test x"${i810lodbias}" = x"yes"; then
  echo "        Intel 810 LOD bias hack enabled"
else
  echo "        Intel 810 LOD bias hack disabled (default). Use --enable-i810-lod-bias to enable."
fi

if test x"${pthreads}" = x"yes"; then
  echo "        POSIX Threads support enabled (default)"
else
  if test x"${build_haiku}" = x"yes"; then
     echo "        POSIX Thread support built into C library."
  els
     echo "        POSIX Thread support disabled."
  fi
fi

if test x"${dmalloc}" = x"yes"; then
  echo "        DMalloc support enabled"
  echo "        For a list of the command-line options enter: dmalloc --usage"
else
  echo "        DMalloc support disabled (default). Use --enable-dmalloc to enable."
fi

if test x"${npapi}" = x"yes"; then
  echo "        NPAPI plugin enabled (default). Use --disable-npapi to disable."
  echo "            NPAPI plugin will be installed in ${FIREFOX_PLUGINS}"
else
  echo "        NPAPI plugin disabled."
fi

if test x"${build_kparts3}" = x"yes"; then
  echo "        KPARTS 3.x plugin enabled (default). Use --disable-kparts3 to disable"
  echo "            KPARTS 3.x plugin will be installed in ${KDE3_PLUGINDIR}"
  echo "            KPARTS 3.x service will be installed in ${KDE3_SERVICESDIR}"
  echo "            KPARTS 3.x config dir will be in ${KDE3_CONFIGDIR}"
  echo "            KPARTS 3.x appsdata will be installed in ${KDE3_APPSDATADIR}"
else
  echo "        KPARTS 3.x plugin disabled."
fi

if test x"${build_kparts4}" = x"yes"; then
  echo "        KPARTS 4.x plugin enabled (default). Use --disable-kparts4 to disable"
  echo "            KPARTS 4.x plugin will be installed in ${KDE4_PLUGINDIR}"
  echo "            KPARTS 4.x service will be installed in ${KDE4_SERVICESDIR}"
  echo "            KPARTS 4.x config dir will be in ${KDE4_CONFIGDIR}"
  echo "            KPARTS 4.x appsdata will be installed in ${KDE4_APPSDATADIR}"
else
  echo "        KPARTS 4.x plugin disabled."
fi


# set a variable if we shouldn't continue. This way we can print
# out everything that is missing in one pass, hopefully making it
# easy for new developers to get everything they need installed.

echo "Configured paths for ${build} are:"

if test x"${build_qt3}" = xyes; then
  if test x"${has_qt3}" = xyes; then
    echo "        QT3 flags are: ${QT3_CFLAGS}"
    echo "        QT3 libs are: ${QT3_LIBS}"
  else
    echo "        ERROR: No QT 3.x development package installed!" >&3
    echo "               Install a QT 3.x development environment from http://trolltech.com" >&3
    echo "               or .deb users: apt-get install libqt3-mt-dev" >&3
    if test x$build_kde3 = xyes; then
      echo "               or change to a different gui with --enable-gui=..." >&3
    fi
  fi
fi

if test x"${build_qt4}" = xyes; then
  if test x"${has_qt4}" = xyes; then
    echo "        QT4 flags are: ${QT4_CFLAGS}"
    echo "        QT4 libs are: ${QT4_LIBS}"
  else
    echo "        ERROR: No QT 4.x development package installed!" >&3
    echo "               Install a QT 4.x development environment from http://trolltech.com" >&3
    echo "               or .deb users: apt-get install qt4-dev-tools" >&3
    if test x$build_kde4 = xyes; then
      echo "               or change to a different gui with --enable-gui=..." >&3
    fi
  fi
fi

if test x"$build_qtopia3" = xyes; then
  if test x"${QTOPIA3_LIBS}" != x ; then
    if test x"${QTOPIA3_CFLAGS}" != x ; then
      echo "        QTOPIA 3.x flags are: $QTOPIA3_CFLAGS"
    else
      echo "        QTOPIA 3.x flags are: default include path"
    fi
    echo "        QTOPIA 3.x libs are: $QTOPIA3_LIBS"
  else
    echo "        ERROR: No QTOPIA 3.x library development package installed!" >&3
    echo "               Install it from http://trolltech.com/downloads/" >&3
    echo "               binary packages are not available." >&3
  fi
fi

if test x"$build_qtopia4" = xyes; then
  if test x"${QTOPIA4_LIBS}" != x ; then
    if test x"${QTOPIA4_CFLAGS}" != x ; then
      echo "        QTOPIA 4.x flags are: $QTOPIA4_CFLAGS"
    else
      echo "        QTOPIA 4.x flags are: default include path"
    fi
    echo "        QTOPIA 4.x libs are: $QTOPIA4_LIBS"
  else
    echo "        ERROR: No QTOPIA 4.x library development package installed!" >&3
    echo "               Install it from http://trolltech.com/downloads/" >&3
    echo "               binary packages are not available." >&3
  fi
fi


# -o x$build_kparts3 = xyes
if test x$build_kde3 = xyes; then
  if test x"$has_kde3" = xyes; then
    echo "        KDE 3.x flags are: $KDE3_CFLAGS"
    echo "        KDE 3.x libs are: $KDE3_LIBS"
  else
      echo "        ERROR: No KDE 3.x development package installed!" >&3
      echo "               To disable the KDE 3.x gui," >&3
      echo "               reconfigure using --enable-gui=<list-of-guis>" >&3
      echo "               and omit "kde" from the list." >&3
      echo "               When the option --enable-gui=... is omitted," >&3
      echo "               the default is the same of --enable-gui=kde,gtk" >&3
      echo "               To be able to build the kde 3.x gui," >&3
      echo "               install version 3.x of the KDE development environment from http://kde.org" >&3
      echo "               or .deb users: apt-get install kdelibs4-dev" >&3
      echo "               or .rpm users: yum install kdelibs3-devel." >&3
  fi
fi

# -o x$build_kparts4 = xyes
if test x$build_kde4 = xyes; then
  if test x"$has_kde4" = xyes; then
    echo "        KDE 4.x flags are: $KDE4_CFLAGS"
    echo "        KDE 4.x libs are: $KDE4_LIBS"
  else
      echo "        ERROR: No KDE 4.x development package installed!" >&3
      echo "               To disable the KDE 4.x gui," >&3
      echo "               reconfigure using --enable-gui=<list-of-guis>" >&3
      echo "               and omit "kde" from the list." >&3
      echo "               When the option --enable-gui=... is omitted," >&3
      echo "               the default is the same of --enable-gui=kde,gtk" >&3
      echo "               To be able to build the kde 4.x gui," >&3
      echo "               install version 4.x of the KDE development environment from http://kde.org" >&3
      echo "               or .deb users: apt-get install kdelibs5-dev" >&3
      echo "               or .rpm users: yum install kdelibs-devel." >&3
  fi
fi

if test x"${JPEG_LIBS}" != x ; then
  if test x"${JPEG_CFLAGS}" != x ; then
    echo "        JPEG flags are: $JPEG_CFLAGS"
  else
    echo "        JPEG flags are: default include path"
  fi
  echo "        JPEG libs are: $JPEG_LIBS"
else
  echo "        ERROR: No JPEG library development package installed!" >&3
  echo "               Install it from http://ijg.org" >&3
  echo "               or .deb users: apt-get install libjpeg-dev" >&3
  echo "               or .rpm users: yum install libjpeg-devel" >&3
fi

if test x"${GIF_LIBS}" != x ; then
  if test x"${GIF_CFLAGS}" != x ; then
    echo "        GIF flags are: $GIF_CFLAGS"
  else
    echo "        GIF flags are: default include path"
  fi
  echo "        GIF libs are: $GIF_LIBS"
else
  echo "        ERROR: No GIF library development package installed!" >&3
  echo "               Install it from http://sourceforge.net/projects/giflib/" >&3
  echo "               or .deb users: apt-get install libungif-dev" >&3
  echo "               or maybe     : apt-get install libgif-dev" >&3
  echo "               or .rpm users: yum install libungif-devel" >&3
fi

if test x"${PNG_LIBS}" != x ; then
  if test x"${PNG_CFLAGS}" != x ; then
    echo "        PNG flags are: $PNG_CFLAGS"
  else
    echo "        PNG flags are: default include path"
  fi
  echo "        PNG libs are: $PNG_LIBS"
else
  echo "        RECOMMENDED: No PNG library development package installed!" >&5
  echo "                     Gnash will be built without support for dynamic loading of PNG files." >&5
  echo "                     Install it from http://www.libpng.org" >&5
  echo "                     or .deb users: apt-get install libpng12-dev" >&5
  echo "                     or .rpm users: yum install libpng-devel" >&5
fi

if test x"${build_ogl}" = x"yes"; then
  if test x"$OPENGL_LIBS" != x; then
    if test x"$OPENGL_CFLAGS" != x; then
      echo "        OpenGL flags are: $OPENGL_CFLAGS"
    else
      echo "        OpenGL flags are: default include path"
    fi
    echo "        OpenGL libs are: $OPENGL_LIBS"
    else
      echo "        ERROR: No OpenGL development package installed!" >&3
      echo "               You need to install the libmesa development package" >&3
      echo "               or .deb users: apt-get install libgl1-mesa-dev" >&3
      echo "               or .rpm users: yum install xorg-x11-Mesa-libGL" >&3
      echo "               or use a different renderer with --enable-renderer=" >&3
  fi
fi

if test x"${build_gles}" = x"yes"; then
  if test x"${has_gles}" != x; then
    if test x"$GLES_CFLAGS" != x; then
      echo "        OpenGL-ES flags are: $GLES_CFLAGS"
    else
      echo "        OpenGL-ES flags are: default include path"
    fi
    echo "        OpenGL-ES libs are: $GLES_LIBS"
  else
      echo "        ERROR: No OpenGL-ES development package installed!" >&3
      echo "               You need to install the this from source proobably" >&3
      echo "               or use a different renderer with --enable-renderer=" >&3
  fi
fi

if test x$build_gtk = xyes -a x$build_ogl = xyes ; then
  if test x"$GLEXT_LIBS" != x; then
    if test x"$GLEXT_CFLAGS" != x; then
      echo "        GtkGLExt flags are: $GLEXT_CFLAGS"
    else
      echo "        GtkGLExt flags are: default include path"
    fi
      echo "        GtkGLExt libs are: $GLEXT_LIBS"
  else
    if test x$build_gtk = xyes; then
      if test x$build_ogl = xyes; then
        echo "        ERROR: No GtkGLExt development package installed!" >&3
	echo "               It is needed to build the GTK/OpenGL GUI/renderer combination." >&3
	echo "               Either install it from http://gtkglext.sourceforge.net" >&3
        echo "               or .deb users: apt-get install libgtkglext1-dev" >&3
        echo "               or .rpm users: yum install gtkglext-devel" >&3
        echo "               or --enable-gui=sdl or --enable-renderer=agg" >&3
      fi
    fi
  fi
fi


if test x$build_hildon = xyes; then #{
  if test x"$HILDON_LIBS" != x; then
    if test x"$HILDON_CFLAGS" != x; then
      echo "        HILDON flags are: $HILDON_CFLAGS"
    else
      echo "        HILDON flags are: default include path"
    fi
      echo "        HILDON libs are: $HILDON_LIBS"
  else
    echo "        ERROR: No HILDON development package installed!" >&3
    echo "               Install it from http://gtk.org" >&3
    #echo "               or .deb users: apt-get install libhildon.0-dev" >&3
    echo "               or .deb users: apt-get install libhildon-1-dev" >&3
    echo "               or .rpm users: yum install hildon-devel" >&3
  fi
fi

if test x$build_gtk = xyes; then #{
  if test x"$GTK2_LIBS" != x; then
    if test x"$GTK2_CFLAGS" != x; then
      echo "        GTK2 flags are: $GTK2_CFLAGS"
    else
      echo "        GTK2 flags are: default include path"
    fi
      echo "        GTK2 libs are: $GTK2_LIBS"
  else
    echo "        ERROR: No GTK2 development package installed!" >&3
    echo "               Install it from http://gtk.org" >&3
    echo "               or .deb users: apt-get install libgtk2.0-dev" >&3
    echo "               or .rpm users: yum install gtk2-devel" >&3
  fi

  if test x"$PANGO_LIBS" != x; then
    if test x"$PANGO_CFLAGS" != x; then
      echo "        Pango flags are: $PANGO_CFLAGS"
    else
      echo "        Pango flags are: default include path"
    fi
    echo "        Pango libs are: $PANGO_LIBS"
  else
    echo "        ERROR: No Pango development package installed!" >&3
    echo "               Install it from http://pango.org" >&3
    echo "               or .deb users: apt-get install libpango1.0-dev" >&3
    echo "               or .rpm users: yum install pango-devel" >&3
  fi

  if test x"$GLIB_LIBS" != x; then
    if test x"$GLIB_CFLAGS" != x; then
      echo "        GLib flags are: $GLIB_CFLAGS"
    else
      echo "        GLib flags are: default include path"
    fi
    echo "        GLib libs are: $GLIB_LIBS"
  else
    echo "        ERROR: No GLib development package installed!" >&3
    echo "               Install it from http://gtk.org" >&3
    echo "               or .deb users: apt-get install libglib2.0-dev" >&3
    echo "               or .rpm users: yum install glib2-devel" >&3
  fi

  if test x"$ATK_LIBS" != x; then
    if test x"$ATK_CFLAGS" != x; then
      echo "        ATK flags are: $ATK_CFLAGS"
    else
      echo "        ATK flags are: default include path"
    fi
      echo "        ATK libs are: $ATK_LIBS"
  else
    echo "        ERROR: No ATK development package installed!" >&3
    echo "               Install it from http://gtk.org" >&3
    echo "               or .deb users: apt-get install libatk1.0-dev" >&3
    echo "               or .rpm users: yum install atk-devel" >&3
  fi

fi

if test x"$build_media_gst" = x"yes"; then
  if test x"$missing_codecs" != x; then
      echo "        Your Gstreamer installation is missing these codecs: $missing_codecs"
      echo "        Please install the gstreamer-ffmpeg for Gstreamer"
  fi
  if test x"$GSTREAMER_LIBS" != x; then
    if test x"$GSTREAMER_CFLAGS" != x; then
      echo "        Gstreamer flags are: $GSTREAMER_CFLAGS"
    else
      echo "        Gstreamer flags are: default include path"
    fi
    echo "        Gstreamer libs are: $GSTREAMER_LIBS"
    if test x"$has_modern_gstpbutils" = "xno"; then
      echo "        RECOMMENDED: If the user has not installed the necessary Gstreamer plugins," >&5
      echo "                     Gstreamer can pop up a message prompting them to." >&5
      echo "                     Install gstpbutils (>= 0.10.15) from http://www.gstreamer.net for that to be enabled" >&5
      echo "                     or .deb users: apt-get install libgstreamer-plugins-base0.10-dev" >&5
    fi
    if test x"$has_gstreamer_plugins_base" = "xno"; then
      echo "                        Install gstreamer-plugins-base from http://www.gstreamer.net" >&5
      echo "                        or .rpm users: yum install gstreamer-plugins-base-devel" >&5
      echo "                        or .deb users: apt-get install libgstreamer-plugins-base0.10-dev" >&5
    fi
  else
    echo "        ERROR: GST media handling requested but gstreamer-0.10+ not found" >&3
    echo "               Install it from http://www.gstreamer.net" >&3
    echo "               or .deb users: apt-get install libgstreamer0.10-dev" >&3
    echo "               or .rpm users: yum install gstreamer-devel" >&3
    echo "               or             yast install gstreamer010-devel" >&3
  fi
fi

  if test x"${build_media_ffmpeg}" = x"yes"; then
    if test x"$FFMPEG_LIBS" != x; then
      echo "        MP3 and video support enabled through ffmpeg"
      if test x"${ffmpeg_version_check}" != xok; then
        echo "        ERROR: You have version ${ffmpeg_version} of ffmpeg installed," >&3
        if test x"${have_ffmpeg_swscale}" = "xno"; then
          echo "               with no swscale enabled." >&3
        else
          echo "               with swscale enabled." >&3
        fi
        echo "               This setup isn't supported!" >&3
        echo "               Version 51.11.0 or newer is required, enabling swscale if >= 52.0.0." >&3
        echo "               You can install libswscale from http://ffmpeg.org" >&3
        echo "               or .deb users: apt-get install libswscale-dev" >&3
      else
	if test x"${avformat_h}" = x; then
          echo "        ERROR: FFMPEG's libavcodec header is installed but not libavformat." >&3
          echo "               You can install FFMPEG from http://ffmpeg.mplayerhq.hu" >&3
          echo "               or .deb users: apt-get install libavformat-dev" >&3
          echo "               or YaST users: yast -i libavformat-api (but currently installs into /usr/lib64)" >&3
          echo "               or explicitly set the path using --with-ffmpeg-incl=" >&5
          echo "               or reconfigure with --enable-media=gst" >&3
	else
          if test x"$FFMPEG_CFLAGS" != x; then
            echo "        FFMPEG flags are: $FFMPEG_CFLAGS"
          else
            echo "        FFMPEG flags are: default include path"
          fi
          echo "        FFMPEG libs are: $FFMPEG_LIBS"
	fi
      fi
    else
      echo "        ERROR: No FFMPEG development package installed!" >&3
      echo "               You can install FFMPEG from http://ffmpeg.mplayerhq.hu" >&3
      echo "               or .deb users: apt-get install libavformat-dev" >&3
      echo "               or .rpm users: yum install ffmpeg-devel" >&3
      echo "               or reconfigure with --enable-media=gst" >&3
    fi
  fi

if test x$build_cairo = xyes; then
  if test x"$CAIRO_LIBS" != x; then
    if test x"$CAIRO_CFLAGS" != x; then
      echo "        Cairo flags are: $CAIRO_CFLAGS"
    else
      echo "        Cairo flags are: default include path"
    fi
    echo "        Cairo libs are: $CAIRO_LIBS"
  else
    echo "        ERROR: No Cairo development package installed!" >&3
    echo "               You need to have the Cairo development package installed" >&3
    echo "               if you have used --enable-render=cairo to configure." >&3
    echo "               Install it from http://cairographics.org" >&3
    echo "               or .deb users: apt-get install libcairo-dev" >&3
    echo "               or .rpm users: yum install cairo-devel" >&3
  fi
fi

if test x$build_fltk = xyes; then
  if test x"$FLTK2_LIBS" != x; then
    if test x"$FLTK2_CFLAGS" != x; then
      echo "        FLTK flags are: $FLTK2_CFLAGS"
    else
      echo "        FLTK flags are: default include path"
    fi
      echo "        FLTK libs are: $FLTK2_LIBS"
  else
    echo "        ERROR: No FLTK2 development package installed!" >&3
    echo "               There are currently no Debian or RPM packages for FLTK2;" >&3
    echo "               see http://www.fltk.org to install it from source." >&3
    echo "               or change to a different gui with --enable-gui=..." >&3
  fi
fi

if test x$build_fltk = xyes; then
  if test x"$XFT_LIBS" != x; then
    if test x"$XFT_CFLAGS" != x; then
      echo "        Xft flags are: $XFT_CFLAGS"
    else
      echo "        Xft flags are: default include path"
    fi
      echo "        Xft libs are: $XFT_LIBS"
  fi
fi

# See whether SDL is required
need_sdl=false
test x$build_sdl = xyes			&& need_sdl=true
test x$build_sound_sdl = xyes	&& need_sdl=true

if $need_sdl; then
  if test x"$SDL_LIBS" != x; then
    echo "        SDL flags are: $SDL_CFLAGS"
    echo "        SDL libs are: $SDL_LIBS"
  else
    echo "        ERROR: No SDL development package installed!" >&3
    echo "               Install it from http://www.libsdl.org/download-1.2.php" >&3
    echo "               or .deb users: apt-get install libsdl1.2-dev" >&3
    echo "               or .rpm users: yum install SDL-devel" >&3
    test x$build_sdl = xyes &&
	echo "               or select a different GUI with --enable-gui= " >&3
  fi
fi
unset need_sdl

if test x"$nsapi" = x"yes"; then
    echo "        Plugin will be installed in ${FIREFOX_PLUGINS}"
fi

if test x"${pthreads}" = x"yes"; then
  if test x"$PTHREAD_CFLAGS" != x; then
    echo "        POSIX Threads flags are: $PTHREAD_CFLAGS"
  fi
  if test x"${PTHREAD_LIBS}" != x; then
    echo "        POSIX Threads lib is: $PTHREAD_LIBS"
  else
    if test x"${cross_compiling}" = xno; then
      echo "ERROR: No pthread development package installed!" >&3
    fi
  fi
fi

if test x"${docbook}" = x"yes"; then
  if test x"$MAKEINFO" = x; then
    echo "        ERROR: no makeinfo tools installed!" >&3
    echo "               Either install it from http://www.gnu.org/software/texinfo/" >&3
    echo "               or .deb users: apt-get install texinfo" >&3
    echo "               or configure without --enable-docbook" >&3
  fi
    if test x"$DB2X_TEXIXML" = x -o x"$DB2X_MANXML" = x -o x"$DB2X_XSLTPROC" = x; then
        if test x"${DB2X_TEXI}" = x -o x"${DB2X_MAN}" = x; then
      echo "        ERROR: No DocBook2X tools installed!" >&3
      echo "               Either install it from http://docbook2x.sourceforge.net" >&3
      echo "               or .deb users: apt-get install docbook docbook2x docbook-utils" >&3
      echo "                              docbook-xml docbook-xsl texinfo xsltproc" >&3
      echo "               or configure without --enable-docbook" >&3
    fi
  else
    echo "        You have version $db2x_version of the DocBook2X tools."
  fi
else
  echo "        WARNING: without --enable-docbook we will use the cached" >&4
  echo "                 documentation files included in the gnash distribution." >&4
  echo "                 If you change files in doc/C, you should --enable-docbook." >&4
fi

if test x"$CURL_LIBS" != x; then
  if test x"$CURL_CFLAGS" != x; then
    echo "        CURL flags are: $CURL_CFLAGS"
  else
    echo "        CURL flags are: default include path"
  fi
    echo "        CURL libs are: $CURL_LIBS"
else
  echo "        RECOMMENDED: If you install the CURL library, Gnash will be able to" >&5
  echo "                     display remote content (streaming from URLs) using CURL." >&5
  echo "                     Install libcurl from http://curl.haxx.se/libcurl" >&5
  echo "                     or .deb users: apt-get install libcurl-dev" >&5
  echo "                     or .rpm users: yum install curl-devel" >&5
fi

if test x"$SPEEX_LIBS" != x; then
  if test x"$SPEEX_CFLAGS" != x; then
    echo "        Speex flags are: $SPEEX_CFLAGS"
  else
    echo "        Speex flags are: default include path"
  fi
    echo "        Speex libs are: $SPEEX_LIBS"
else
  echo "        RECOMMENDED: If you install the Speex library, Gnash will be able to" >&5
  echo "                     decoded Speex encoded audio in FLV files." >&5
  echo "                     Install libspeex from http://speex.org" >&5
  echo "                     or .deb users: apt-get install libspeex-dev" >&5
  echo "                     or .rpm users: yum install speex-devel" >&5
fi

if test x"$ext_dbus" = xyes; then
  if test x"$DBUS_LIBS" != x; then
    if test x"$DBUS_CFLAGS" != x; then
      echo "        DBUS flags are: $DBUS_CFLAGS"
    else
      echo "        DBUS flags are: default include path"
    fi
      echo "        DBUS libs are: $DBUS_LIBS"
  else
    echo "        WARNING: DBUS library not found." >&4
    echo "                 Gnash will be built without support for remote controls." >&4
    echo "                 Why not install libdbus from http://www.dbus.org" >&4
    echo "                 or .deb users: apt-get install dbus-dev" >&4
    echo "                 or .rpm users: yum install dbus-devel" >&4
  fi
fi

if test x$build_agg = xyes; then # {
  echo "        AGG Pixel format is: $pixelformat"
    if test x"$AGG_LIBS" != x; then # {
      if test x"${agg25}" != xyes; then # {
        echo "        ERROR: Your installation of AGG appears to be version 2.4 or older." >&3
        echo "               Please upgrade to AGG 2.5 or greater." >&3
        echo "               Install it from http://www.antigrain.com" >&3
        echo "               or .deb users: apt-get install libagg-dev" >&3
        echo "               or .rpm users: yum install agg-devel" >&3
      else # }{
        if test x"$AGG_CFLAGS" != x; then # {
          echo "        AGG flags are: $AGG_CFLAGS"
        else # }{
          echo "        AGG flags are: default include path"
        fi # }
        echo "        AGG libs are: $AGG_LIBS"
      fi # }
    else # }{
      echo "        ERROR: No AGG development package installed!" >&3
      echo "               Install it from http://www.antigrain.com" >&3
      echo "               or .deb users: apt-get install libagg-dev" >&3
      echo "               or .rpm users: yum install agg-devel" >&3
    fi # }
fi # }

if test x"$BOOST_LIBS" != x; then
            	echo "        BOOST flags are: $BOOST_CFLAGS"
	echo "        BOOST libs are: $BOOST_LIBS"
	echo "        BOOST Extra libs are: $BOOST_EXTRA_LIBS"
        if test x"${missing_headers}" != x; then
      for i in ${missing_headers}; do
	# They have some boost libs but no date_time and want to compile cygnal.
	echo "        ERROR: The BOOST $i header file is needed!" >&3
	echo "               Install it from http://boost.org" >&3
	echo "               or from a Boost development package" >&3
      done
    fi
    if test x"${extra_missing_libs}" != x; then
      for i in ${extra_missing_libs}; do
	echo "        WARNING: The BOOST $i library is recommended!" >&4
        echo "                 Install it from http://www.boost.org" >&4
        echo "                 or .deb users: apt-get install libboost-"`echo ${i} | sed 's/_/-/g'`"-dev" >&4
        echo "                 Gnash will compile anyway, but not all tests will work." >&4
      done
    fi
    if test x"${missing_libs}" != x; then
      for i in ${missing_libs}; do
	# They have some boost libs but no date_time and want to compile cygnal.
	echo "        ERROR: The BOOST $i library is needed!" >&3
	echo "               Install it from http://boost.org" >&3
	echo "               or .deb users: apt-get install libboost-"`echo ${i} | sed 's/_/-/g'`"-dev" >&3
      done
    fi
else
    echo "        ERROR: No BOOST development package installed!" >&3
    echo "               Install it from http://www.boost.org" >&3
    echo "               or .deb users: apt-get install libboost-dev libboost-thread-dev" >&3
    if test x"$cygnal" = xyes; then
    echo "                              and libboost-date-time-dev (for cygnal)" >&3
    fi
    echo "               or .rpm users: yum install boost-devel" >&3
fi

if test x"$testsuite" = x"yes"; then
  if test x$cross_compiling = xno; then
    if test x"$MING_LIBS" != x; then
      echo "        MING flags are $MING_CFLAGS"
      echo "        MING libs are $MING_LIBS"
    else
      echo "        WARNING: You need to have the Ming development package" >&4
      echo "                 installed to run most of the tests in Gnash testsuite." >&4
      echo "                 Install it from http://www.libming.org/" >&4
      echo "                 or .deb users: apt-get install libming-dev" >&4
    fi

    if test x"$MAKESWF" != x; then
      echo "        MING version code is $MING_VERSION_CODE"
      echo "        MAKESWF is $MAKESWF"
    else
      echo "        WARNING: You need to have the Ming utilities package" >&4
      echo "                 installed to run most of the tests in Gnash testsuite." >&4
      echo "                 Install it from http://www.libming.org" >&4
      echo "                 or .deb users: apt-get install libming-util" >&4
    fi

    if test x"$MAKESWF" != x && test $MING_VERSION_CODE -lt 00040006; then
      echo "        WARNING: You have an older version of Ming installed and will not" >&4
      echo "                 be able to run all of the tests in Gnash testsuite." >&4
      echo "                 Install the latest version from http://www.libming.org" >&4
    fi

    if test x"$SWFDEC_TESTSUITE" != x; then
      echo "        SWFDEC testsuite dir is $SWFDEC_TESTSUITE"
    fi

    if test x"$MTASC" != x; then
      echo "        MTASC is $MTASC"
      echo "        MTASC CLASSPATH is $MTASC_CLASSPATH"
    else
      echo "        WARNING: You need to have the MTASC compiler packages installed" >&4
      echo "                 to run some of the tests in Gnash testsuite." >&4
      echo "                 You can install it from http://mtasc.org" >&4
      echo "                 or .deb users: apt-get install mtasc" >&4
    fi

    if test x"$HAXE" != x; then
      echo "        HAXE is $HAXE"
      echo "        HAXE CLASSPATH is $HAXE_CLASSPATH"
    else
      echo "        WARNING: You need to have the HAXE compiler package " >&4
      echo "                 version 2.00 or higher installed" >&4
      echo "                 to run some of the tests in Gnash testsuite." >&4
      echo "                 You can install it from http://haxe.org" >&4
      echo "                 or .deb users: apt-get install haxe" >&4
    fi

    if test x"$SWFMILL" != x; then
      echo "        SWFMILL is $SWFMILL"
      if test x"$ENABLE_AVM2" != x -a "$SWFMILL_VERSION" -lt 00021206; then
        echo "        WARNING: You are building Gnash with AVM2 support but" >&4
        echo "                 your swfmill version is too old to run AS3" >&4
        echo "                 tests." >&4
      fi
    else
      echo "        WARNING: You need to have the 'swfmill' tool installed" >&4
      echo "                 to run some of the tests in Gnash testsuite." >&4
      echo "                 You can install it from http://swfmill.org/" >&4
      echo "                 or .deb users: apt-get install swfmill" >&4
    fi

    if test x"$SWFC" != x; then
      echo "        SWFC is $SWFC"
    else
      echo "        WARNING: You need to have 'swfc' from SWFTools installed" >&4
      echo "                 to run some of the tests in Gnash testsuite." >&4
      echo "                 You can install it from http://www.swftools.org/" >&4
      echo "                 or .deb users: apt-get install swftools" >&4
    fi

    if test x"$AS3COMPILE" != x; then
      echo "        AS3COMPILE is $AS3COMPILE"
    else
      echo "        WARNING: you need as3compile from SWFTools" >&4
      echo "                 to run some of the tests in Gnash testsuite." >&4
      echo "                 You can install it from http://www.swftools.org/" >&4
    fi

    if test x"$HTTP_TESTSUITE" != x; then
      echo "        HTTP testsuite dir is $HTTP_TESTSUITE"
    fi

    if test x"$RED5_HOST" != x; then
      echo "        RED5 testing host is $RED5_HOST"
    fi
  fi
fi

  if test x"$PERL" != x; then
    echo "        PERL is $PERL"
  else
    echo "        WARNING: You need to have perl installed" >&4
    echo "                 to run some of the tests in Gnash testsuite." >&4
  fi

if test x"$testsuite" = x"yes"; then
  if test x"$CSOUND" != x; then
    echo "        CSOUND is $CSOUND"
  fi
fi

if test x"$Z_LIBS" != x; then
  if test x"$Z_CFLAGS" != x; then
    echo "        Z flags are: $Z_CFLAGS"
  else
    echo "        Z flags are: default include path"
  fi
  echo "        Z libs are: $Z_LIBS"
else
  echo "        RECOMMENDED: You need to have the zlib development packages installed" >&5
  echo "                     to play compressed SWF (most of them from version 6 up)" >&5
  echo "                     and to display some kinds of JPEG files." >&5
  echo "                     Install it from http://www.zlib.net" >&5
  echo "                     or .deb users: apt-get install zlib1g-dev" >&5
  echo "                     or .rpm users: yum install zlib-devel." >&5
  echo "                     It may still be possible to configure without zlib." >&5
fi

if test x"$FREETYPE2_LIBS" != x; then
  if test x"$FREETYPE2_CFLAGS" != x; then
    echo "        FreeType flags are: $FREETYPE2_CFLAGS"
  else
    echo "        FreeType flags are: default include path"
  fi
  echo "        FreeType libs are: $FREETYPE2_LIBS"
else
  echo "        RECOMMENDED: You need to have the freetype development packages installed" >&5
  echo "                     to use device fonts." >&5
  echo "                     Install it from http://www.freetype.org" >&5
  echo "                     or .deb users: apt-get install libfreetype6-dev" >&5
  echo "                     or .rpm users: yum install freetype-devel" >&5
  echo "                     It may still be possible to configure without freetype." >&5
fi

if test x"$FONTCONFIG_LIBS" != x; then
  if test x"$FONTCONFIG_CFLAGS" != x; then
    echo "        Fontconfig flags are: $FONTCONFIG_CFLAGS"
  else
    echo "        Fontconfig flags are: default include path"
  fi
  echo "        Fontconfig libs are: $FONTCONFIG_LIBS"
else
  echo "        RECOMMENDED: You need to have the fontconfig development packages installed" >&5
  echo "                     to use device fonts." >&5
  echo "                     Install it from http://www.fontconfig.org" >&5
  echo "                     or .deb users: apt-get install libfontconfig1-dev" >&5
  echo "                     or .rpm users: yum install fontconfig-devel" >&5
  echo "                     It may still be possible to configure without fontconfig." >&5
fi

if test x$ext_mysql = xyes; then
  if test x$mysql != xno; then
    if test x"$MYSQL_LIBS" != x; then
      echo "        MYSQL flags are: $MYSQL_CFLAGS"
      echo "        MYSQL libs are: $MYSQL_LIBS"
    else
      echo "        ERROR: No MySQL development package is installed." >&3
      echo "               Either reconfigure without --enable-extensions=mysql" >&3
      echo "               or install MySQL header files from http://www.mysql.org" >&3
      echo "               or .deb users: apt-get install libmysqlclient-dev" >&3
      echo "                 or .rpm users: yum install mysql-devel" >&4
    fi
  fi
fi

if test "$GMSGFMT" = ":"; then
  echo "        WARNING: You need the gettext package installed to use translations." >&4
  echo "                 Required for building a package or 'make distcheck'" >&4
  echo "                 Install it from http://www.gnu.org/software/gettext/" >&4
  echo "                 or .deb users: apt-get install gettext" >&4
  echo "                 or .rpm users: yum install gettext" >&4
fi

if test x"${build_vaapi}" = x"yes"; then
  if test x"${LIBVA_CFLAGS}" = xyes; then
      echo "        LIBVA flags are: default"
    else
      echo "        LIBVA flags are: $LIBVA_CFLAGS"
      echo "        LIBVA libraries are: $LIBVA_LIBS"
  fi
  if test x$use_libva_x11 = xyes; then
    if test x"${LIBVA_X11_CFLAGS}" = xyes; then
      echo "        LIBVA X11 flags are: default"
    else
      echo "        LIBVA X11 flags are: $LIBVA_X11_CFLAGS"
      echo "        LIBVA X11 libraries are: $LIBVA_X11_LIBS"
    fi
  fi
  if test x$use_libva_glx = xyes; then
    if test x"${LIBVA_GLX_CFLAGS}" = xyes; then
      echo "        LIBVA GLXflags are: default"
    else
      echo "        LIBVA GLX flags are: $LIBVA_GLX_CFLAGS"
    fi
    echo "        LIBVA GLX libraries are: $LIBVA_GLX_LIBS"
  fi
fi

if test x"$ac_cv_gcc_visibility" != xyes; then
  if test x"$npapi" = xyes; then
    echo "        WARNING: NPAPI (mozilla) plugin is enabled, but your compiler"
    echo "                 does not support symbol visibility. This may cause "
    echo "                 the plugin to malfunction and may result in small "
    echo "                 children being eaten. You have been warned!"
  fi
fi

if test x"${DEJAGNU}" != x""; then
  echo "        DEJAGNU's runtest is $DEJAGNU"
else
  echo "        WARNING: You need the dejagnu package installed to get a summary" >&4
  echo "                 report after running ''make check''" >&4
  echo "                 Install it from http://www.gnu.org/software/dejagnu/" >&4
  echo "                 or .deb users: apt-get install dejagnu" >&4
  echo "                 or .rpm users: yum install dejagnu" >&4
fi

if test x"${build_alp}" = xyes; then
  if test x"${ALP_CFLAGS}" != x; then
    echo "        ALP flags are: $ALP_CFLAGS"
    echo "        ALP libs are: $ALP_LIBS"
  else
    echo "        ERROR: No ALP development package is installed." >&3
  fi
fi

if test x"${build_haiku}" = xyes -o x"${build_sound_mkit}" = xyes -o x"${build_media_haiku}" = x"yes"; then
    echo "        Haiku libs are: $HAIKU_LIBS"
fi

if test x"$python" = x"yes"; then
  if test x"$has_python" = x"yes"; then
    echo "        PYTHON flags are: $PYTHON_CFLAGS"
    echo "        PYTHON libs are: $PYTHON_LIBS"
    echo "        PYTHON executable is are: $PYTHON"
  else
    echo "        ERROR: No Python development package is installed, but it's enabled." >&3
  fi
fi
if test x${build_ssl} = xyes; then
  if test x"${has_ssl}" = xyes; then
    if test x"${SSL_CFLAGS}" = xyes; then
      echo "        SSL flags are: default"
    else
      echo "        SSL flags are: $SSL_CFLAGS"
    fi
    echo "        SSL libs are: $SSL_LIBS"
  else
    echo "        ERROR: No SSL development package is installed, but it's enabled." >&3
  fi
fi

if test x${build_ssh} = xyes; then
  if test x"${has_ssh}" = xyes; then
    if test x"${SSH_CFLAGS}" = xyes; then
      echo "        SSH flags are: default"
    else
      echo "        SSH flags are: $SSH_CFLAGS"
    fi
    echo "        SSH libs are: $SSH_LIBS"
  else
    echo "        ERROR: No SSH development package is installed, but it's enabled." >&3
  fi
fi

if test x"${build_all_as3}" = x"yes"; then
  echo "        Building the entire ActionScript class libary"
else
  echo "        Only building these ActionScript classes into the library:"
  echo "     ${classlist}"
fi

if test x"$testsuite" = x"yes"; then
  if test x"$NETCAT" != x; then
    echo "        You have netcat installed, which is only used for testing"
  else
    echo "        Install netcat for networking test support"
  fi
  if test x"$WGET" != x; then
    echo "        You have wget installed, which is only used for testing"
  else
    echo "        Install wget for networking test support"
  fi
fi

if test x$cross_compiling = xyes; then
   if test x"${android_ndk}" != xno; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: This build is setup for cross compiling for Android" >&5
$as_echo "$as_me: This build is setup for cross compiling for Android" >&6;}
   else
      { $as_echo "$as_me:${as_lineno-$LINENO}: This build is setup for cross compiling" >&5
$as_echo "$as_me: This build is setup for cross compiling" >&6;}
   fi
fi

echo "--------"


if test x"${cygnal}" = x"yes"; then
  echo "        Building Cygnal media server enabled (default). Use --disable-cygnal to disable."
else
  echo "        Building Cygnal media server disabled."
fi

if test x"${debugger}" = x"yes"; then
  echo "        Building Flash debugger support (default). Use --disable-debugger to disable."
else
  echo "        Building the Flash debugger is disabled."
fi

if test x"${with-top_level}" != x; then
  echo "        Top level for cross compiling support files is: $with_top_level"
fi

if test x"${build_gtk}" = xyes -a x"${pixelformat}" = xrgb565; then
  echo "        WARNING: Pixel format RGB565 selected in combination with the" >&4
  echo "                 GTK GUI. Only a hacked GTK will work (e.g. on the OLPC)." >&4
fi

if test x"${extensions_list}" != x; then
  echo "        Building extensions: ${extensions_list}"
fi

if test x"${security_list}" != x; then
  echo "        Enabling security features: ${security_list}"
fi

if test x"${hwaccel_list}" != xnone; then
  echo "        Enabling hardware acceleration features: ${hwaccel_list}"
fi

if test x"${statistics_list}" != x; then
  echo "        Enabling statistics collecting for: ${statistics_list}"
fi

if test x"${SUPPORTED_GUIS}" = x; then
  as_fn_error "no supported GUIs found" "$LINENO" 5;
fi

echo "        GUI toolkits supported: ${SUPPORTED_GUIS}"
echo "        Renderers supported: ${renderer_list}"
echo "        Hardware Acceleration: ${hwaccel_list}"
echo "        Media handlers: ${media_list}"
echo "        Using ${add_sound} for sound handling"
echo "        Using $with_shm mode for shared memory"

if test x"$docbook" = x"yes"; then
  echo '        DocBook document processing enabled (for "make html" and "make pdf")'
  if test x"$docbook_styles" != x; then
    echo "        Docbook styles sheets in $docbook_styles"
  fi
else
  echo "        DocBook document processing disabled (default)"
fi

if test x"${build_fb}" = xyes; then
echo "        Using ${input_events} for Input"
  if test x"${fakefb}" != x; then
    echo "        Using shared memory as a fake framebuffer"
  fi
  if test x"${offscreen}" = xyes; then
    echo "        Using offscreen rendering"
  fi
  if test x"${doublebuf}" = xyes; then
    echo "        Using double buffering when rendering"
  fi
fi

if test -s $cwarn; then
  echo ""
  cat $cwarn
  rm $cwarn
  echo ""
  echo "Gnash should still compile even with these warnings."
  echo "If it doesn't, report the warnings as a bug."
fi

if test -s $crec; then
  echo ""
  cat $crec
  rm $crec
  echo ""
  echo "Gnash should still compile, but you'll miss important support"
fi

if test -s $cerr; then
  echo ""
  cat $cerr >&2
  rm $cerr
  as_fn_error "Please install required packages" "$LINENO" 5
fi

if test x"$fork" = x"no"; then
  as_fn_error "Currently only forking the standalone player works!" "$LINENO" 5
fi
echo ""

# Local Variables:
# c-basic-offset: 2
# tab-width: 2
# indent-tabs-mode: nil
# End:
