summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
commit940b4d1848e8c70ab7642901a68594e8016caffc (patch)
treeeb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /configure
parentInitial commit. (diff)
downloadlibreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.tar.xz
libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.zip
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure42925
1 files changed, 42925 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..eeb94bc87
--- /dev/null
+++ b/configure
@@ -0,0 +1,42925 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.69 for LibreOffice 7.0.4.2.
+#
+#
+# Copyright (C) 1992-1996, 1998-2012 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.
+as_myself=
+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
+
+# Use a proper internal environment variable to ensure we don't fall
+ # into an infinite loop, continuously re-executing ourselves.
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
+ _as_can_reexec=no; export _as_can_reexec;
+ # 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.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+as_fn_exit 255
+ fi
+ # We don't want this to propagate to other subprocesses.
+ { _as_can_reexec=; unset _as_can_reexec;}
+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
+test -x / || 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 :
+ export CONFIG_SHELL
+ # 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.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+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_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&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; }
+
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
+ # already done that, so ensure we don't try to do so again and fall
+ # in an infinite loop. This has already happened in practice.
+ _as_can_reexec=no; export _as_can_reexec
+ # 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 -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+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
+
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# 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'"
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/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='LibreOffice'
+PACKAGE_TARNAME='libreoffice'
+PACKAGE_VERSION='7.0.4.2'
+PACKAGE_STRING='LibreOffice 7.0.4.2'
+PACKAGE_BUGREPORT=''
+PACKAGE_URL='http://documentfoundation.org/'
+
+# 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='LTLIBOBJS
+LIBOBJS
+LO_PATH
+TEMP_DIRECTORY
+SOLARINC
+BUILD_TYPE
+WIN_TOUCH
+WIN_LS
+WIN_GREP
+SORT
+FIND
+ATL_LIB
+ATL_INCLUDE
+ENABLE_FORMULA_LOGGER
+MPL_SUBSET
+ICECC_VERSION
+x_ICECC_VERSION
+ICECREAM_RUN
+MERGELIBS
+ILIB
+IWYU_PATH
+PARALLELISM
+nodep
+TESTINSTALLDIR
+INSTALLDIR
+BINDIR
+DOCDIR
+MANDIR
+DATADIR
+LIBDIR
+PREFIXDIR
+INSTALLDIRNAME
+WITH_COMPAT_OOWRAPPERS
+ANDROID_PACKAGE_NAME
+OOO_VENDOR
+PROGRESSTEXTBASELINE
+PROGRESSTEXTCOLOR
+PROGRESSFRAMECOLOR
+PROGRESSPOSITION
+PROGRESSSIZE
+PROGRESSBARCOLOR
+DEFAULT_BRAND_IMAGES
+CUSTOM_BRAND_IMAGES
+CUSTOM_BRAND_DIR
+BRAND_INTRO_IMAGES
+GIT_LINK_SRC
+GIT_REFERENCE_SRC
+WITH_LOCALES
+WITH_POOR_HELP_LOCALIZATIONS
+GIT_NEEDED_SUBMODULES
+WITH_LANG_LIST
+WITH_LANG
+ALL_LANGS
+MSGUNIQ
+MSGFMT
+SHA256SUM
+CURL
+WGET
+SCPDEFS
+HAMCREST_JAR
+OOO_JUNIT_JAR
+ANT_LIB
+ANT_HOME
+ANT
+JVM_ONE_PATH_CHECK
+SYSTEM_LIBPNG
+LIBPNG_LIBS
+LIBPNG_CFLAGS
+SYSTEM_LIBLANGTAG
+LIBLANGTAG_LIBS
+LIBLANGTAG_CFLAGS
+ENABLE_AVAHI
+AVAHI_LIBS
+AVAHI_CFLAGS
+SYSTEM_CAIRO
+CAIRO_LIBS
+CAIRO_CFLAGS
+XINERAMA_LINK
+USE_XINERAMA
+ENABLE_SILENT_MSI
+ENABLE_EXTENSION_UPDATE
+SYSTEM_BZIP2
+BZIP2_LIBS
+BZIP2_CFLAGS
+UPDATE_CONFIG
+ENABLE_ONLINE_UPDATE_MAR
+ENABLE_ONLINE_UPDATE
+WITH_FONTS
+OPENSYMBOL_TTF
+FONTFORGE
+LANGUAGETOOL_EXTENSION_PACK
+NLPSOLVER_EXTENSION_PACK
+NUMBERTEXT_EXTENSION_PACK
+CT2N_EXTENSION_PACK
+WITH_EXTRA_EXTENSIONS
+WITH_EXTENSION_INTEGRATION
+WITH_THEMES
+ENABLE_EVOAB2
+GOBJECT_LIBS
+GOBJECT_CFLAGS
+KF5_LIBS
+KF5_CFLAGS
+KF5_CONFIG
+QT5_HAVE_GOBJECT
+QT5_LIBS
+QT5_CFLAGS
+QT5_GOBJECT_LIBS
+QT5_GOBJECT_CFLAGS
+MOC5
+QT5_XCB_ICCCM_LIBS
+QT5_XCB_ICCCM_CFLAGS
+QT5_XCB_LIBS
+QT5_XCB_CFLAGS
+QMAKE5
+RHINO_JAR
+SYSTEM_RHINO
+ENABLE_SCRIPTING_JAVASCRIPT
+BSH_JAR
+SYSTEM_BSH
+ENABLE_SCRIPTING_BEANSHELL
+COMMONS_LOGGING_VERSION
+COMMONS_LOGGING_JAR
+SYSTEM_APACHE_COMMONS
+LIBSERIALIZER_JAR
+LIBFONTS_JAR
+LIBREPOSITORY_JAR
+LIBFORMULA_JAR
+LIBLOADER_JAR
+LIBLAYOUT_JAR
+LIBBASE_JAR
+JFREEREPORT_JAR
+FLUTE_JAR
+LIBXML_JAR
+SAC_JAR
+SYSTEM_JFREEREPORT
+ENABLE_REPORTBUILDER
+ENABLE_MEDIAWIKI
+GPGMEPP_LIBS
+GPGMEPP_CFLAGS
+LIBASSUAN_LIBS
+LIBASSUAN_CFLAGS
+GPG_ERROR_LIBS
+GPG_ERROR_CFLAGS
+SYSTEM_GPGMEPP
+ENABLE_GPGMEPP
+GPGCONF
+GPG
+CLANG_CXXFLAGS_INTRINSICS_FMA
+CLANG_CXXFLAGS_INTRINSICS_F16C
+CLANG_CXXFLAGS_INTRINSICS_AVX512
+CLANG_CXXFLAGS_INTRINSICS_AVX2
+CLANG_CXXFLAGS_INTRINSICS_AVX
+CLANG_CXXFLAGS_INTRINSICS_SSE42
+CLANG_CXXFLAGS_INTRINSICS_SSE41
+CLANG_CXXFLAGS_INTRINSICS_SSSE3
+CLANG_CXXFLAGS_INTRINSICS_SSE2
+CLANG_CXX
+CLANG_CC
+ENABLE_SKIA_DEBUG
+ENABLE_SKIA
+SYSTEM_POPPLER
+ENABLE_PDFIMPORT
+POPPLER_LIBS
+POPPLER_CFLAGS
+ENABLE_POPPLER
+ENABLE_PDFIUM
+ENABLE_DCONF
+DCONF_LIBS
+DCONF_CFLAGS
+ENABLE_OPENGL_CANVAS
+ENABLE_OPENGL_TRANSITIONS
+ENABLE_VLC
+ENABLE_GSTREAMER_1_0
+GSTREAMER_1_0_LIBS
+GSTREAMER_1_0_CFLAGS
+ENABLE_CAIRO_CANVAS
+SPLIT_OPT_FEATURES
+SPLIT_APP_MODULES
+ENABLE_GIO
+GIO_LIBS
+GIO_CFLAGS
+SYSTEM_BLUEZ
+ENABLE_SDREMOTE_BLUETOOTH
+ENABLE_SDREMOTE
+DBUS_HAVE_GLIB
+ENABLE_DBUS
+DBUS_GLIB_LIBS
+DBUS_GLIB_CFLAGS
+DBUS_LIBS
+DBUS_CFLAGS
+INTROSPECTION_MAKEFILE
+INTROSPECTION_LIBS
+INTROSPECTION_CFLAGS
+INTROSPECTION_TYPELIBDIR
+INTROSPECTION_GIRDIR
+INTROSPECTION_GENERATE
+INTROSPECTION_COMPILER
+INTROSPECTION_SCANNER
+GTK3_LIBS
+GTK3_CFLAGS
+ENABLE_KF5
+ENABLE_QT5
+ENABLE_GTK3_KDE5
+ENABLE_GTK3
+SYSTEM_EPOXY
+EPOXY_LIBS
+EPOXY_CFLAGS
+TOUCH
+UNZIP
+ZIP
+ML_EXE
+x_GNUCP
+GNUPATCH
+GNUCP
+PATCH
+FLEX
+BISON
+UUIDGEN
+ENABLE_LIBNUMBERTEXT
+SYSTEM_LIBNUMBERTEXT_DATA
+SYSTEM_LIBNUMBERTEXT
+LIBNUMBERTEXT_LIBS
+LIBNUMBERTEXT_CFLAGS
+SYSTEM_LIBEXTTEXTCAT_DATA
+SYSTEM_LIBEXTTEXTCAT
+LIBEXTTEXTCAT_LIBS
+LIBEXTTEXTCAT_CFLAGS
+SYSTEM_LPSOLVE
+ENABLE_LPSOLVE
+SYSTEM_COINMP
+ENABLE_COINMP
+COINMP_LIBS
+COINMP_CFLAGS
+SYSTEM_MYTHES
+MYTHES_LIBS
+MYTHES_CFLAGS
+HYPHEN_LIB
+SYSTEM_HYPH
+QRCODEGEN_LIBS
+QRCODEGEN_CFLAGS
+ENABLE_QRCODEGEN
+SYSTEM_QRCODEGEN
+SYSTEM_HUNSPELL
+HUNSPELL_LIBS
+HUNSPELL_CFLAGS
+REDLAND_MAJOR
+RASQAL_MAJOR
+RAPTOR_MAJOR
+SYSTEM_REDLAND
+REDLAND_LIBS
+REDLAND_CFLAGS
+GNUTLS_LIBS
+GNUTLS_CFLAGS
+LIBGCRYPT_LIBS
+LIBGCRYPT_CFLAGS
+LIBGCRYPT_CONFIG
+ENABLE_CIPHER_OPENSSL_BACKEND
+DISABLE_OPENSSL
+SYSTEM_OPENSSL
+OPENSSL_LIBS
+OPENSSL_CFLAGS
+ENABLE_CHART_TESTS
+DISABLE_CVE_TESTS
+WITH_WEBDAV
+NEON_VERSION
+SYSTEM_NEON
+NEON_LIBS
+NEON_CFLAGS
+SYSTEM_SERF
+SERF_LIBS
+SERF_CFLAGS
+SYSTEM_APR
+APR_LIBS
+APR_CFLAGS
+ENABLE_RANDR
+XRANDR_LIBS
+XRANDR_CFLAGS
+XRENDER_LIBS
+XRENDER_CFLAGS
+X_EXTRA_LIBS
+X_LIBS
+X_PRE_LIBS
+X_CFLAGS
+XMKMF
+SYSTEM_HARFBUZZ
+HARFBUZZ_LIBS
+HARFBUZZ_CFLAGS
+SYSTEM_GRAPHITE
+GRAPHITE_LIBS
+GRAPHITE_CFLAGS
+SYSTEM_LIBORCUS
+BOOST_SYSTEM_LIB
+SYSTEM_ORCUS
+ORCUS_LIBS
+ORCUS_CFLAGS
+ENABLE_FUZZERS
+DEFAULT_CRASHDUMP_VALUE
+ENABLE_BREAKPAD
+BREAKPAD_SYMBOL_CONFIG
+ICU_UCHAR_TYPE
+ICU_RECLASSIFIED_HEBREW_LETTER
+ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER
+ICU_RECLASSIFIED_PREPEND_SET_EMPTY
+ICU_MINOR
+ICU_MAJOR
+SYSTEM_ICU
+SYSTEM_GENCMN
+SYSTEM_GENCCODE
+SYSTEM_GENBRK
+ICU_LIBS
+ICU_CFLAGS
+TLS
+ENABLE_NSS
+SYSTEM_NSS
+NSS_LIBS
+NSS_CFLAGS
+SYSTEM_OPENLDAP
+ENABLE_LDAP
+SYSTEM_ODBC_HEADERS
+SYSTEM_GLM
+GLM_CFLAGS
+SYSTEM_MDDS
+MDDS_LIBS
+MDDS_CFLAGS
+SYSTEM_BOOST
+BOOST_LOCALE_LIB
+BOOST_IOSTREAMS_LIB
+BOOST_FILESYSTEM_LIB
+BOOST_DATE_TIME_LIB
+BOOST_LDFLAGS
+BOOST_CPPFLAGS
+ENABLE_CURL
+SYSTEM_CURL
+CURLCONFIG
+CURL_LIBS
+CURL_CFLAGS
+TOMMATH_LIBS
+TOMMATH_CFLAGS
+SYSTEM_FIREBIRD
+LIBATOMIC_OPS_LIBS
+LIBATOMIC_OPS_CFLAGS
+SYSTEM_LIBATOMIC_OPS
+ENABLE_FIREBIRD_SDBC
+SYSTEM_ATOMIC_OPS
+ATOMIC_OPS_LIBS
+ATOMIC_OPS_CFLAGS
+FIREBIRD_LIBS
+FIREBIRD_CFLAGS
+FIREBIRDCONFIG
+POSTGRESQL_LIB
+POSTGRESQL_INC
+SYSTEM_POSTGRESQL
+BUILD_POSTGRESQL_SDBC
+KRB5_LIBS
+GSSAPI_LIBS
+WITH_GSSAPI
+WITH_KRB5
+POSTGRESQL_LIBS
+POSTGRESQL_CFLAGS
+PGCONFIG
+HSQLDB_USE_JDBC_4_1
+HSQLDB_JAR
+SYSTEM_HSQLDB
+BUNDLE_MARIADB_CONNECTOR_C
+LIBMARIADB_PATH
+LIBMARIADB
+MARIADB_LIBS
+MARIADB_CFLAGS
+SYSTEM_MARIADB_CONNECTOR_C
+MARIADBCONFIG
+MARIADBC_MICRO
+MARIADBC_MINOR
+MARIADBC_MAJOR
+ENABLE_MARIADBC
+PYTHON_VERSION_MINOR
+PYTHON_VERSION_MAJOR
+PYTHON_LIBS
+PYTHON_CFLAGS
+SYSTEM_PYTHON
+DISABLE_PYTHON
+PYTHON_FOR_BUILD
+pkgpyexecdir
+pyexecdir
+pkgpythondir
+pythondir
+PYTHON_PLATFORM
+PYTHON_EXEC_PREFIX
+PYTHON_PREFIX
+PYTHON_VERSION
+PYTHON
+SYSTEM_LIBXML_FOR_BUILD
+SYSTEM_LIBXML
+XMLLINT
+LIBXML_LIBS
+LIBXML_CFLAGS
+SYSTEM_LIBXSLT_FOR_BUILD
+SYSTEM_LIBXSLT
+XSLTPROC
+LIBEXSLT_LIBS
+LIBEXSLT_CFLAGS
+LIBXSLT_LIBS
+LIBXSLT_CFLAGS
+SYSTEM_FREETYPE
+FREETYPE_LIBS
+FREETYPE_CFLAGS
+SYSTEM_CPPUNIT
+CPPUNIT_LIBS
+CPPUNIT_CFLAGS
+SYSTEM_LCMS2
+LCMS2_LIBS
+LCMS2_CFLAGS
+SYSTEM_STAROFFICE
+STAROFFICE_LIBS
+STAROFFICE_CFLAGS
+SYSTEM_ZMF
+ZMF_LIBS
+ZMF_CFLAGS
+SYSTEM_QXP
+QXP_LIBS
+QXP_CFLAGS
+SYSTEM_PAGEMAKER
+PAGEMAKER_LIBS
+PAGEMAKER_CFLAGS
+SYSTEM_ABW
+ABW_LIBS
+ABW_CFLAGS
+SYSTEM_EBOOK
+EBOOK_LIBS
+EBOOK_CFLAGS
+SYSTEM_FREEHAND
+FREEHAND_LIBS
+FREEHAND_CFLAGS
+SYSTEM_ETONYEK
+ETONYEK_LIBS
+ETONYEK_CFLAGS
+SYSTEM_MWAW
+MWAW_LIBS
+MWAW_CFLAGS
+SYSTEM_MSPUB
+MSPUB_LIBS
+MSPUB_CFLAGS
+SYSTEM_CDR
+CDR_LIBS
+CDR_CFLAGS
+SYSTEM_VISIO
+VISIO_LIBS
+VISIO_CFLAGS
+SYSTEM_WPS
+WPS_LIBS
+WPS_CFLAGS
+SYSTEM_WPG
+WPG_LIBS
+WPG_CFLAGS
+SYSTEM_WPD
+WPD_LIBS
+WPD_CFLAGS
+SYSTEM_EPUBGEN
+EPUBGEN_LIBS
+EPUBGEN_CFLAGS
+SYSTEM_ODFGEN
+ODFGEN_LIBS
+ODFGEN_CFLAGS
+SYSTEM_REVENGE
+REVENGE_LIBS
+REVENGE_CFLAGS
+ENABLE_EOT
+SYSTEM_LIBEOT
+LIBEOT_LIBS
+LIBEOT_CFLAGS
+SYSTEM_XMLSEC
+XMLSEC_LIBS
+XMLSEC_CFLAGS
+SYSTEM_EXPAT
+EXPAT_LIBS
+EXPAT_CFLAGS
+SYSTEM_CLUCENE
+CLUCENE_LIBS
+CLUCENE_CFLAGS
+SYSTEM_LIBJPEG
+LIBJPEG_LIBS
+LIBJPEG_CFLAGS
+NASM
+SYSTEM_ZLIB
+ZLIB_LIBS
+ZLIB_CFLAGS
+BUILD_UNOWINREG
+MINGWSTRIP
+MINGWCXX
+DOXYGEN
+ENABLE_LWP
+RPM
+PKGMK
+DPKG
+EPM
+SYSTEM_UCPP
+BFFVALIDATOR
+BFFVALIDATOR_EXE
+WINE
+OFFICEOTRON_JAR
+OFFICEOTRON
+ODFVALIDATOR_JAR
+ODFVALIDATOR
+JDK
+JAVA_TARGET_VER
+JAVA_SOURCE_VER
+JAVA_HOME
+JAVA_CLASSPATH_NOT_SET
+JAVAFLAGS
+JAVAIFLAGS
+JAWTLIB
+JAVADOCISGJDOC
+JAVADOC
+JAVACOMPILER
+JAVAINTERPRETER
+MSM_PATH
+MSVC_DLLS
+MSVC_DLL_PATH
+UCRT_REDISTDIR
+JITC_PROCESSOR_TYPE
+HAVE_POSIX_FALLOCATE
+LD_PLUGIN
+CLANGSYSINCLUDE
+CLANGTOOLLIBS
+CLANGLIBDIR
+CLANGDIR
+COMPILER_PLUGINS_TOOLING_ARGS
+COMPILER_PLUGINS_DEBUG
+COMPILER_PLUGINS_CXX_LINKFLAGS
+COMPILER_PLUGINS_CXXFLAGS
+COMPILER_PLUGINS_CXX
+COMPILER_PLUGINS_ANALYZER_PCH
+COMPILER_PLUGINS
+COMPILER_PLUGINS_COM_IS_CLANG
+LLVM_CONFIG
+HAVE_GCC_FNO_ENFORCE_EH_SPECS
+CXXFLAGS_INTRINSICS_FMA
+CXXFLAGS_INTRINSICS_F16C
+CXXFLAGS_INTRINSICS_AVX512
+CXXFLAGS_INTRINSICS_AVX2
+CXXFLAGS_INTRINSICS_AVX
+CXXFLAGS_INTRINSICS_SSE42
+CXXFLAGS_INTRINSICS_SSE41
+CXXFLAGS_INTRINSICS_SSSE3
+CXXFLAGS_INTRINSICS_SSE2
+HAVE_BROKEN_GCC_WMAYBE_UNINITIALIZED
+HAVE_WDEPRECATED_COPY_DTOR
+HAVE_GCC_FNO_SIZED_DEALLOCATION
+ATOMIC_LIB
+CXXFLAGS_CXX11
+ENABLE_LIBCMIS
+SYSTEM_LIBCMIS
+LIBCMIS_LIBS
+LIBCMIS_CFLAGS
+GPERF
+HAVE_GCC_STACK_CLASH_PROTECTION
+HAVE_GCC_BUILTIN_ATOMIC
+HAVE_GCC_AVX
+VALGRIND_CFLAGS
+ENABLE_VALGRIND
+ENABLE_RUNTIME_OPTIMIZATIONS
+LFS_CFLAGS
+BOOST_CXXFLAGS
+CXXCPP
+ac_ct_CXX
+CXX
+WINDOWS_SDK_WILANGID
+WINDOWS_SDK_VERSION
+WINDOWS_SDK_LIB_SUBDIR
+WINDOWS_SDK_HOME
+WINDRES
+DLLTOOL
+STRIP
+READELF
+OBJDUMP
+RANLIB
+NM
+AR
+PERL
+WITH_LINKER_HASH_STYLE
+HAVE_LD_HASH_STYLE
+GNUMAKE_WIN_NATIVE
+HAVE_GNUMAKE_FILE_FUNC
+SHA1SUM
+PCH_MODULES_DEBUGINFO
+PCH_MODULES_CODEGEN
+BUILDING_PCH_WITH_OBJ
+CCACHE_BIN
+ENABLE_PCH
+THES_SYSTEM_DIR
+HYPH_SYSTEM_DIR
+DICT_SYSTEM_DIR
+SYSTEM_DICTS
+WITH_MYSPELL_DICTS
+HELP_OMINDEX_PAGE
+HELP_ONLINE
+ENABLE_HTMLHELP
+DO_FETCH_TARBALLS
+TARFILE_LOCATION
+SYSTEM_FONTCONFIG
+FONTCONFIG_LIBS
+FONTCONFIG_CFLAGS
+PKG_CONFIG_LIBDIR
+PKG_CONFIG_PATH
+PKG_CONFIG
+ENABLE_CUPS
+ENABLE_OOENV
+ASSERT_ALWAYS_ABORT
+ENABLE_WERROR
+WORKDIR_FOR_BUILD
+SDKDIRNAME_FOR_BUILD
+LIBO_URE_MISC_FOLDER_FOR_BUILD
+LIBO_URE_LIB_FOLDER_FOR_BUILD
+LIBO_LIB_FOLDER_FOR_BUILD
+LIBO_BIN_FOLDER_FOR_BUILD
+INSTROOT_FOR_BUILD
+INSTDIR_FOR_BUILD
+OS_FOR_BUILD
+PKGFORMAT
+FAKEROOT
+WINDOWS_X64
+PLATFORMID
+WORKDIR
+P_SEP
+OS
+INSTROOTBASE
+INSTROOT
+INSTDIR
+USING_X11
+EPM_FLAGS
+RTL_ARCH
+RTL_OS
+CPUNAME
+COM
+DISABLE_GUI
+ENABLE_OPTIMIZED_DEBUG
+ENABLE_OPTIMIZED
+ENABLE_SYMBOLS_FOR
+ENABLE_SAL_LOG
+ENABLE_GDB_INDEX
+HAVE_CLANG_DEBUG_INFO_KIND_CONSTRUCTOR
+HAVE_GCC_SPLIT_DWARF
+LD_GC_SECTIONS
+HAVE_LD_BSYMBOLIC_FUNCTIONS
+USE_LD
+ENABLE_DEBUG
+MSVC_USE_DEBUG_RUNTIME
+ENABLE_DBGUTIL
+GCC_VERSION
+HAVE_GCC_GGDB2
+SHOWINCLUDES_PREFIX
+COM_IS_CLANG
+UNOWINREG_DLL
+MSVC_CXX
+DEVENV
+VCVER
+CXX_X86_BINARY
+BUILD_X86
+CXX_X64_BINARY
+BUILD_X64
+UCRTVERSION
+UCRTSDKDIR
+ISYSTEM
+CROSS_COMPILING
+LIBO_URE_SHARE_JAVA_FOLDER
+LIBO_URE_MISC_FOLDER
+LIBO_URE_LIB_FOLDER
+LIBO_URE_ETC_FOLDER
+LIBO_URE_BIN_FOLDER
+LIBO_SHARE_RESOURCE_FOLDER
+LIBO_SHARE_READMES_FOLDER
+LIBO_SHARE_PRESETS_FOLDER
+LIBO_SHARE_JAVA_FOLDER
+LIBO_SHARE_HELP_FOLDER
+LIBO_SHARE_FOLDER
+LIBO_LIB_PYUNO_FOLDER
+LIBO_LIB_FOLDER
+LIBO_ETC_FOLDER
+LIBO_BIN_FOLDER
+MACOSX_BUNDLE_IDENTIFIER
+ENABLE_MACOSX_SANDBOX
+MACOSX_PACKAGE_SIGNING_IDENTITY
+MACOSX_CODESIGNING_IDENTITY
+LIBTOOL
+INSTALL_NAME_TOOL
+MAC_OS_X_VERSION_MAX_ALLOWED
+MAC_OS_X_VERSION_MIN_REQUIRED
+MACOSX_DEPLOYMENT_TARGET
+MACOSX_SDK_PATH
+ENABLE_JAVA
+COMPATH
+GCC_HOME
+CCACHE_DEPEND_MODE
+CCACHE
+WITH_GALLERY_BUILD
+SYSBASE
+DISABLE_DYNLOADING
+USE_AVMEDIA_DUMMY
+STRIP_COMPONENTS
+GNUTAR
+BASH
+AWK
+WINDOWS_BUILD_SIGNING
+GET_TASK_ALLOW_ENTITLEMENT
+ENABLE_RELEASE_BUILD
+USE_LIBRARY_BIN_TAR
+ENABLE_IOS_LIBREOFFICELIGHT_APP
+DLOPEN_LIBS
+ENDIANNESS
+CPP
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+CC
+x_LDFLAGS
+x_OBJCXXFLAGS
+x_OBJCFLAGS
+x_CXXFLAGS
+x_CFLAGS
+x_AFLAGS
+LDFLAGS
+OBJCXXFLAGS
+OBJCFLAGS
+CXXFLAGS
+CFLAGS
+AFLAGS
+PTHREAD_LIBS
+PTHREAD_CFLAGS
+SDKDIRNAME
+GAWK
+HOST_PLATFORM
+ENABLE_ANDROID_EDITING
+ENABLE_ANDROID_LOK
+ANDROID_SDK_HOME
+ANDROID_GCC_TOOLCHAIN_VERSION
+ANDROID_APP_ABI
+ANDROID_NDK_HOME
+ANDROID_BINUTILS_PREBUILT_ROOT
+ENABLE_LTO
+SED
+x_Cygwin
+BUILDDIR
+SRC_ROOT
+EGREP
+GREP
+PRODUCTVERSION
+LIBO_VERSION_SUFFIX_SUFFIX
+LIBO_VERSION_SUFFIX
+LIBO_VERSION_PATCH
+LIBO_VERSION_MICRO
+LIBO_VERSION_MINOR
+LIBO_VERSION_MAJOR
+PRODUCTNAME_WITHOUT_SPACES
+PRODUCTNAME
+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
+runstatedir
+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_fuzz_options
+with_android_ndk
+with_android_ndk_toolchain_version
+with_android_sdk
+with_android_api_level
+enable_android_lok
+enable_android_editing
+enable_ios_simulator
+enable_ios_libreofficelight_app
+enable_extension_integration
+enable_avmedia
+enable_database_connectivity
+enable_extensions
+enable_scripting
+enable_dynamic_loading
+enable_report_builder
+enable_ext_wiki_publisher
+enable_lpsolve
+enable_coinmp
+enable_pdfimport
+enable_pdfium
+enable_skia
+enable_mergelibs
+enable_breakpad
+enable_crashdump
+enable_fetch_external
+enable_fuzzers
+enable_pch
+enable_epm
+enable_odk
+enable_mpl_subset
+enable_evolution2
+enable_avahi
+enable_werror
+enable_assert_always_abort
+enable_dbgutil
+enable_debug
+enable_split_debug
+enable_gdb_index
+enable_sal_log
+enable_symbols
+enable_optimized
+enable_runtime_optimizations
+with_valgrind
+enable_compiler_plugins
+enable_compiler_plugins_analyzer_pch
+enable_ooenv
+enable_libnumbertext
+enable_lto
+enable_python
+enable_gtk3
+enable_introspection
+enable_split_app_modules
+enable_split_opt_features
+enable_cairo_canvas
+enable_dbus
+enable_sdremote
+enable_sdremote_bluetooth
+enable_gio
+enable_qt5
+enable_kf5
+enable_kde5
+enable_gtk3_kde5
+enable_gui
+enable_randr
+enable_gstreamer_1_0
+enable_vlc
+enable_neon
+enable_eot
+enable_cve_tests
+enable_chart_tests
+enable_build_unowinreg
+enable_build_opensymbol
+enable_dependency_tracking
+enable_icecream
+enable_ld
+enable_cups
+enable_ccache
+enable_64_bit
+enable_online_update
+with_update_config
+enable_extension_update
+enable_release_build
+enable_windows_build_signing
+enable_silent_msi
+enable_macosx_code_signing
+enable_macosx_package_signing
+enable_macosx_sandbox
+with_macosx_bundle_identifier
+with_product_name
+with_package_version
+enable_readonly_installset
+enable_postgresql_sdbc
+enable_lotuswordpro
+enable_firebird_sdbc
+enable_bogus_pkg_config
+enable_openssl
+enable_cipher_openssl_backend
+enable_library_bin_tar
+enable_dconf
+enable_formula_logger
+enable_ldap
+with_gcc_home
+with_gnu_patch
+with_build_platform_configure_options
+with_gnu_cp
+with_external_tar
+with_referenced_git
+with_linked_git
+with_galleries
+with_theme
+with_helppack_integration
+with_fonts
+with_epm
+with_package_format
+with_tls
+with_system_libs
+with_system_bzip2
+with_system_headers
+with_system_jars
+with_system_cairo
+with_system_epoxy
+with_myspell_dicts
+with_system_dicts
+with_external_dict_dir
+with_external_hyph_dir
+with_external_thes_dir
+with_system_zlib
+with_system_jpeg
+with_system_clucene
+with_system_expat
+with_system_libxml
+with_system_icu
+with_system_ucpp
+with_system_openldap
+enable_poppler
+with_system_poppler
+with_system_gpgmepp
+with_system_apache_commons
+with_system_mariadb
+enable_bundle_mariadb
+with_system_postgresql
+with_libpq_path
+with_system_firebird
+with_system_libtommath
+with_system_hsqldb
+with_hsqldb_jar
+enable_scripting_beanshell
+with_system_beanshell
+with_beanshell_jar
+enable_scripting_javascript
+with_system_rhino
+with_rhino_jar
+with_commons_logging_jar
+with_system_jfreereport
+with_sac_jar
+with_libxml_jar
+with_flute_jar
+with_jfreereport_jar
+with_liblayout_jar
+with_libloader_jar
+with_libformula_jar
+with_librepository_jar
+with_libfonts_jar
+with_libserializer_jar
+with_libbase_jar
+with_system_odbc
+with_system_sane
+with_system_bluez
+with_system_curl
+with_system_boost
+with_system_glm
+with_system_hunspell
+enable_qrcodegen
+with_system_qrcodegen
+with_system_mythes
+with_system_altlinuxhyph
+with_system_lpsolve
+with_system_coinmp
+with_system_liblangtag
+with_webdav
+with_linker_hash_style
+with_jdk_home
+with_help
+with_omindex
+with_java
+with_jvm_path
+with_ant_home
+with_symbol_config
+with_export_validation
+with_bffvalidator
+with_junit
+with_hamcrest
+with_perl_home
+with_doxygen
+with_visual_studio
+with_windows_sdk
+with_lang
+with_locales
+with_krb5
+with_gssapi
+with_iwyu
+with_lxml
+with_latest_c__
+with_branding
+with_extra_buildid
+with_vendor
+with_android_package_name
+with_compat_oowrappers
+with_os_version
+with_mingw_cross_compiler
+with_idlc_cpp
+with_parallelism
+with_all_tarballs
+with_gdrive_client_id
+with_gdrive_client_secret
+with_alfresco_cloud_client_id
+with_alfresco_cloud_client_secret
+with_onedrive_client_id
+with_onedrive_client_secret
+with_macosx_sdk
+with_macosx_version_min_required
+with_macosx_version_max_allowed
+with_system_icu_for_build
+enable_largefile
+with_system_libcmis
+with_ucrt_dir
+with_system_xmlsec
+with_system_libeot
+with_system_librevenge
+with_system_libodfgen
+with_system_libepubgen
+with_system_libwpd
+with_system_libwpg
+with_system_libwps
+with_system_libvisio
+with_system_libcdr
+with_system_libmspub
+with_system_libmwaw
+with_system_libetonyek
+with_system_libfreehand
+with_system_libebook
+with_system_libabw
+with_system_libpagemaker
+with_system_libqxp
+with_system_libzmf
+with_system_libstaroffice
+with_system_lcms2
+with_system_cppunit
+with_system_libatomic_ops
+with_boost
+with_boost_libdir
+with_boost_date_time
+with_boost_filesystem
+with_boost_iostreams
+with_boost_locale
+with_system_mdds
+with_system_nss
+with_system_orcus
+with_boost_system
+with_system_graphite
+with_system_harfbuzz
+with_x
+with_system_apr
+with_system_serf
+with_system_neon
+with_system_openssl
+with_libgcrypt_prefix
+with_system_redland
+with_system_libexttextcat
+with_system_libnumbertext
+enable_ext_ct2n
+enable_ext_numbertext
+enable_ext_nlpsolver
+enable_ext_languagetool
+with_system_libpng
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CPP
+PKG_CONFIG
+PKG_CONFIG_PATH
+PKG_CONFIG_LIBDIR
+FONTCONFIG_CFLAGS
+FONTCONFIG_LIBS
+CXX
+CXXFLAGS
+CCC
+CXXCPP
+LIBCMIS_CFLAGS
+LIBCMIS_LIBS
+CLUCENE_CFLAGS
+CLUCENE_LIBS
+EXPAT_CFLAGS
+EXPAT_LIBS
+XMLSEC_CFLAGS
+XMLSEC_LIBS
+LIBEOT_CFLAGS
+LIBEOT_LIBS
+REVENGE_CFLAGS
+REVENGE_LIBS
+ODFGEN_CFLAGS
+ODFGEN_LIBS
+EPUBGEN_CFLAGS
+EPUBGEN_LIBS
+WPD_CFLAGS
+WPD_LIBS
+WPG_CFLAGS
+WPG_LIBS
+WPS_CFLAGS
+WPS_LIBS
+VISIO_CFLAGS
+VISIO_LIBS
+CDR_CFLAGS
+CDR_LIBS
+MSPUB_CFLAGS
+MSPUB_LIBS
+MWAW_CFLAGS
+MWAW_LIBS
+ETONYEK_CFLAGS
+ETONYEK_LIBS
+FREEHAND_CFLAGS
+FREEHAND_LIBS
+EBOOK_CFLAGS
+EBOOK_LIBS
+ABW_CFLAGS
+ABW_LIBS
+PAGEMAKER_CFLAGS
+PAGEMAKER_LIBS
+QXP_CFLAGS
+QXP_LIBS
+ZMF_CFLAGS
+ZMF_LIBS
+STAROFFICE_CFLAGS
+STAROFFICE_LIBS
+LCMS2_CFLAGS
+LCMS2_LIBS
+CPPUNIT_CFLAGS
+CPPUNIT_LIBS
+FREETYPE_CFLAGS
+FREETYPE_LIBS
+LIBXSLT_CFLAGS
+LIBXSLT_LIBS
+LIBEXSLT_CFLAGS
+LIBEXSLT_LIBS
+LIBXML_CFLAGS
+LIBXML_LIBS
+PYTHON
+POSTGRESQL_CFLAGS
+POSTGRESQL_LIBS
+FIREBIRD_CFLAGS
+FIREBIRD_LIBS
+ATOMIC_OPS_CFLAGS
+ATOMIC_OPS_LIBS
+CURL_CFLAGS
+CURL_LIBS
+MDDS_CFLAGS
+MDDS_LIBS
+NSS_CFLAGS
+NSS_LIBS
+ICU_CFLAGS
+ICU_LIBS
+ORCUS_CFLAGS
+ORCUS_LIBS
+GRAPHITE_CFLAGS
+GRAPHITE_LIBS
+HARFBUZZ_CFLAGS
+HARFBUZZ_LIBS
+XMKMF
+XRENDER_CFLAGS
+XRENDER_LIBS
+XRANDR_CFLAGS
+XRANDR_LIBS
+APR_CFLAGS
+APR_LIBS
+SERF_CFLAGS
+SERF_LIBS
+NEON_CFLAGS
+NEON_LIBS
+OPENSSL_CFLAGS
+OPENSSL_LIBS
+GNUTLS_CFLAGS
+GNUTLS_LIBS
+REDLAND_CFLAGS
+REDLAND_LIBS
+HUNSPELL_CFLAGS
+HUNSPELL_LIBS
+MYTHES_CFLAGS
+MYTHES_LIBS
+COINMP_CFLAGS
+COINMP_LIBS
+LIBEXTTEXTCAT_CFLAGS
+LIBEXTTEXTCAT_LIBS
+LIBNUMBERTEXT_CFLAGS
+LIBNUMBERTEXT_LIBS
+EPOXY_CFLAGS
+EPOXY_LIBS
+GTK3_CFLAGS
+GTK3_LIBS
+DBUS_CFLAGS
+DBUS_LIBS
+DBUS_GLIB_CFLAGS
+DBUS_GLIB_LIBS
+GIO_CFLAGS
+GIO_LIBS
+GSTREAMER_1_0_CFLAGS
+GSTREAMER_1_0_LIBS
+DCONF_CFLAGS
+DCONF_LIBS
+POPPLER_CFLAGS
+POPPLER_LIBS
+QT5_XCB_CFLAGS
+QT5_XCB_LIBS
+QT5_XCB_ICCCM_CFLAGS
+QT5_XCB_ICCCM_LIBS
+QT5_GOBJECT_CFLAGS
+QT5_GOBJECT_LIBS
+GOBJECT_CFLAGS
+GOBJECT_LIBS
+BZIP2_CFLAGS
+BZIP2_LIBS
+CAIRO_CFLAGS
+CAIRO_LIBS
+AVAHI_CFLAGS
+AVAHI_LIBS
+LIBLANGTAG_CFLAGS
+LIBLANGTAG_LIBS
+LIBPNG_CFLAGS
+LIBPNG_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'
+runstatedir='${localstatedir}/run'
+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= ;;
+ *) 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 ;;
+
+ -runstatedir | --runstatedir | --runstatedi | --runstated \
+ | --runstate | --runstat | --runsta | --runst | --runs \
+ | --run | --ru | --r)
+ ac_prev=runstatedir ;;
+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+ | --run=* | --ru=* | --r=*)
+ runstatedir=$ac_optarg ;;
+
+ -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 runstatedir
+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
+ 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 LibreOffice 7.0.4.2 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]
+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
+ --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/libreoffice]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+X features:
+ --x-includes=DIR X include files are in DIR
+ --x-libraries=DIR X library files are in DIR
+
+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 LibreOffice 7.0.4.2:";;
+ 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]
+ --enable-fuzz-options Randomly enable or disable each of those
+ configurable options that are supposed to be freely
+ selectable without interdependencies, or where bad
+ interaction from interdependencies is automatically
+ avoided.
+
+ --enable-android-lok The Android app from the android/ subdir needs
+ several tweaks all over the place that break the LOK
+ when used in the Online-based Android app. This
+ switch indicates that the intent of this build is
+ actually the Online-based, non-modified LOK.
+
+ --enable-android-editing
+ Enable the experimental editing feature on Android.
+
+ --enable-ios-simulator build i386 or x86_64 for ios simulator
+
+ --enable-ios-libreofficelight-app
+ When building for iOS, build stuff relevant only for
+ the 'LibreOfficeLight' app (in
+ ios/LibreOfficeLight). Note that this app is not
+ known to work in any useful manner, and also that
+ its actual build (in Xcode) requires some obvious
+ modifications to the project.
+
+ --disable-extension-integration
+ Disable integration of the built extensions in the
+ installer of the product. Use this switch to disable
+ the integration.
+
+ --disable-avmedia Disable displaying and inserting AV media in
+ documents. Work in progress, use only if you are
+ hacking on it.
+
+ --disable-database-connectivity
+ Disable various database connectivity. Work in
+ progress, use only if you are hacking on it.
+
+ --disable-extensions Disable all add-on extension functionality. Work in
+ progress, use only if you are hacking on it.
+
+ --disable-scripting Disable BASIC, Java and Python. Work in progress,
+ use only if you are hacking on it.
+
+ --disable-dynamic-loading
+ Disable any use of dynamic loading of code. Work in
+ progress, use only if you are hacking on it.
+
+ --disable-report-builder
+ Disable the Report Builder.
+
+ --enable-ext-wiki-publisher
+ Enable the Wiki Publisher extension.
+
+ --disable-lpsolve Disable compilation of the lp solve solver
+
+ --disable-coinmp Disable compilation of the CoinMP solver
+
+ --disable-pdfimport Disable building the PDF import feature.
+
+ --disable-pdfium Disable building PDFium.
+
+ --disable-skia Disable building Skia. Use --enable-skia=debug to
+ build without optimizations.
+
+ --enable-mergelibs Merge several of the smaller libraries into one big,
+ "merged", one.
+
+ --enable-breakpad Enables breakpad for crash reporting.
+
+ --disable-crashdump Disable dump.ini and dump-file, when
+ --enable-breakpad
+
+ --disable-fetch-external
+ Disables fetching external tarballs from web
+ sources.
+
+ --enable-fuzzers Enables building libfuzzer targets for fuzz testing.
+
+ --enable-pch=<yes/no/system/base/normal/full>
+ Enables precompiled header support for C++. Forced
+ default on Windows/VC build. Using 'system' will
+ include only external headers, 'base' will add also
+ headers from base modules, 'normal' will also add
+ all headers except from the module built, 'full'
+ will use all suitable headers even from a module
+ itself.
+
+ --enable-epm LibreOffice includes self-packaging code, that
+ requires epm, however epm is useless for large scale
+ package building.
+
+ --disable-odk LibreOffice includes an ODK, office development kit
+ which some packagers may wish to build without.
+
+ --enable-mpl-subset Don't compile any pieces which are not MPL or more
+ liberally licensed
+
+ --enable-evolution2 Allows the built-in evolution 2 addressbook
+ connectivity build to be enabled.
+
+ --enable-avahi Determines whether to use Avahi to advertise Impress
+ to remote controls.
+
+ --enable-werror Turn warnings to errors. (Has no effect in modules
+ where the treating of warnings as errors is disabled
+ explicitly.)
+ --enable-assert-always-abort
+ make assert() failures abort even when building
+ without --enable-debug or --enable-dbgutil.
+ --enable-dbgutil Provide debugging support from --enable-debug and
+ include additional debugging utilities such as
+ object counting or more expensive checks. This is
+ the recommended option for developers. Note that
+ this makes the build ABI incompatible, it is not
+ possible to mix object files or libraries from a
+ --enable-dbgutil and a --disable-dbgutil build.
+ --enable-debug Include debugging information, disable compiler
+ optimization and inlining plus extra debugging code
+ like assertions. Extra large build! (enables -g
+ compiler flag).
+ --disable-split-debug Disable using split debug information (-gsplit-dwarf
+ compile flag). Split debug information saves disk
+ space and build time, but requires tools that
+ support it (both build tools and debuggers).
+ --disable-gdb-index Disables creating debug information in the gdb index
+ format, which makes gdb start faster. The feature
+ requires the gold or lld linker.
+ --enable-sal-log Make SAL_INFO and SAL_WARN calls do something even
+ in a non-debug build.
+ --enable-symbols Generate debug information. By default, enabled for
+ --enable-debug and --enable-dbgutil, disabled
+ otherwise. It is possible to explicitly specify
+ gbuild build targets (where 'all' means everything,
+ '-' prepended means to not enable, '/' appended
+ means everything in the directory; there is no
+ ordering, more specific overrides more general, and
+ disabling takes precedence). Example:
+ --enable-symbols="all -sw/ -Library_sc".
+ --enable-optimized=<yes/no/debug>
+ Whether to compile with optimization flags. By
+ default, disabled for --enable-debug and
+ --enable-dbgutil, enabled otherwise. Using 'debug'
+ will try to use only optimizations that should not
+ interfere with debugging.
+ --disable-runtime-optimizations
+ Statically disable certain runtime optimizations
+ (like rtl/alloc.h or JVM JIT) that are known to
+ interact badly with certain dynamic analysis tools
+ (like -fsanitize=address or Valgrind). By default,
+ disabled iff CC contains "-fsanitize=*". (For
+ Valgrind, those runtime optimizations are typically
+ disabled dynamically via RUNNING_ON_VALGRIND.)
+ --enable-compiler-plugins
+ Enable compiler plugins that will perform additional
+ checks during building. Enabled automatically by
+ --enable-dbgutil. Use
+ --enable-compiler-plugins=debug to also enable debug
+ code in the plugins.
+ --disable-compiler-plugins-analyzer-pch
+ Disable use of precompiled headers when running the
+ Clang compiler plugin analyzer. Not relevant in the
+ --disable-compiler-plugins case.
+ --disable-ooenv Disable ooenv for the instdir installation.
+ --disable-libnumbertext Disable use of numbertext external library.
+ --enable-lto Enable link-time optimization. Suitable for
+ (optimised) product builds. Building might take
+ longer but libraries and executables are optimized
+ for speed. For GCC, best to use the 'gold' linker.
+ For MSVC, this option is broken at the moment. This
+ is experimental work in progress that shouldn't be
+ used unless you are working on it.)
+ --enable-python=<no/auto/system/internal/fully-internal>
+ Enables or disables Python support at run-time. Also
+ specifies what Python to use at build-time.
+ 'fully-internal' even forces the internal version
+ for uses of Python during the build. On macOS the
+ only choices are 'internal' (default) or
+ 'fully-internal'. Otherwise the default is 'auto'.
+ --disable-gtk3 Determines whether to use Gtk+ 3.0 vclplug on
+ platforms where Gtk+ 3.0 is available.
+ --enable-introspection Generate files for GObject introspection. Requires
+ --enable-gtk3. (Typically used by Linux
+ distributions.)
+ --enable-split-app-modules
+ Split file lists for app modules, e.g. base, calc.
+ Has effect only with make distro-pack-install
+ --enable-split-opt-features
+ Split file lists for some optional features, e.g.
+ pyuno, testtool. Has effect only with make
+ distro-pack-install
+ --disable-cairo-canvas Determines whether to build the Cairo canvas on
+ platforms where Cairo is available.
+ --disable-dbus Determines whether to enable features that depend on
+ dbus. e.g. Presentation mode screensaver control,
+ bluetooth presentation control, automatic font
+ install
+ --disable-sdremote Determines whether to enable Impress remote control
+ (i.e. the server component).
+ --disable-sdremote-bluetooth
+ Determines whether to build sdremote with bluetooth
+ support. Requires dbus on Linux.
+ --disable-gio Determines whether to use the GIO support.
+ --enable-qt5 Determines whether to use Qt5 vclplug on platforms
+ where Qt5 is available.
+ --enable-kf5 Determines whether to use Qt5/KF5 vclplug on
+ platforms where Qt5 and KF5 are available.
+ --enable-kde5 Compatibility switch for the kde5 => kf5 rename. Use
+ --enable-kf5!
+
+ --enable-gtk3-kde5 Determines whether to use Gtk3 vclplug with KF5 file
+ dialogs on platforms where Gtk3, Qt5 and Plasma is
+ available.
+ --disable-gui Disable use of X11 or Wayland to reduce dependencies
+ (e.g. for building LibreOfficeKit).
+ --disable-randr Disable RandR support in the vcl project.
+ --disable-gstreamer-1-0 Disable building with the gstreamer 1.0 avmedia
+ backend.
+ --enable-vlc Enable building with the (experimental) VLC avmedia
+ backend.
+ --disable-neon Disable neon and the compilation of webdav binding.
+ --enable-eot Enable support for Embedded OpenType fonts.
+ --disable-cve-tests Prevent CVE tests to be executed
+ --enable-chart-tests Executes chart XShape tests. In a perfect world
+ these tests would be stable and everyone could run
+ them, in reality it is best to run them only on a
+ few machines that are known to work and maintained
+ by people who can judge if a test failure is a
+ regression or not.
+ --enable-build-unowinreg
+ Do not use the prebuilt unowinreg.dll. Build it
+ instead. The MinGW C++ compiler is needed on Linux.
+ --enable-build-opensymbol
+ Do not use the prebuilt opens___.ttf. Build it
+ instead. This needs fontforge installed.
+ --enable-dependency-tracking
+ Do not reject slow dependency extractors.
+ --disable-dependency-tracking
+ Disables generation of dependency information.
+ Speed up one-time builds.
+ --enable-icecream Use the 'icecream' distributed compiling tool to
+ speedup the compilation. It defaults to
+ /opt/icecream for the location of the icecream
+ gcc/g++ wrappers, you can override that using
+ --with-gcc-home=/the/path switch.
+ --enable-ld=<linker> Use the specified linker. Both 'gold' and 'lld'
+ linkers generally use less memory and link faster.
+ By default tries to use the best linker possible,
+ use --disable-ld to use the default linker.
+ --disable-cups Do not build cups support.
+
+ --disable-ccache Do not try to use ccache automatically. By default,
+ unless on Windows, we will try to detect if ccache
+ is available; in that case if CC/CXX are not yet
+ set, and --enable-icecream is not given, we attempt
+ to use ccache. --disable-ccache disables ccache
+ completely. Additionally ccache's depend mode is
+ enabled if possible, use --enable-ccache=nodepend to
+ enable ccache without depend mode.
+ --enable-64-bit Build a 64-bit LibreOffice on platforms where the
+ normal build is 32-bit. At the moment meaningful
+ only for Windows.
+ --enable-online-update Enable the online update service that will check for
+ new versions of LibreOffice. By default, it is
+ enabled on Windows and Mac, disabled on Linux. If
+ the value is "mar", the experimental Mozilla-like
+ update will be enabled instead of the traditional
+ update mechanism.
+ --disable-extension-update
+ Disable possibility to update installed extensions.
+ --enable-release-build Enable release build. Note that the "release build"
+ choice is orthogonal to whether symbols are present,
+ debug info is generated, or optimization is done.
+ See
+ http://wiki.documentfoundation.org/Development/DevBuild
+ --enable-windows-build-signing
+ Enable signing of windows binaries (*.exe, *.dll)
+ --enable-silent-msi Enable MSI with LIMITUI=1 (silent install).
+ --enable-macosx-code-signing=<identity>
+ Sign executables, dylibs, frameworks and the app
+ bundle. If you don't provide an identity the first
+ suitable certificate in your keychain is used.
+ --enable-macosx-package-signing=<identity>
+ Create a .pkg suitable for uploading to the Mac App
+ Store and sign it. If you don't provide an identity
+ the first suitable certificate in your keychain is
+ used.
+ --enable-macosx-sandbox Make the app bundle run in a sandbox. Requires code
+ signing. Is required by apps distributed in the Mac
+ App Store, and implies adherence to App Store rules.
+ --enable-readonly-installset
+ Prevents any attempts by LibreOffice to write into
+ its installation. That means at least that no
+ "system-wide" extensions can be added. Partly
+ experimental work in progress, probably not fully
+ implemented. Always enabled for macOS.
+ --disable-postgresql-sdbc
+ Disable the build of the PostgreSQL-SDBC driver.
+
+ --disable-lotuswordpro Disable the build of the Lotus Word Pro filter.
+ --disable-firebird-sdbc Disable the build of the Firebird-SDBC driver if it
+ doesn't compile for you.
+ --enable-bogus-pkg-config
+ MACOSX only: on MacOSX pkg-config can cause trouble.
+ by default if one is found in the PATH, an error is
+ issued. This flag turn that error into a warning.
+ --disable-openssl Disable using libssl/libcrypto from OpenSSL. If
+ disabled, components will either use GNUTLS or NSS.
+ Work in progress, use only if you are hacking on it.
+ --enable-cipher-openssl-backend
+ Enable using OpenSSL as the actual implementation of
+ the rtl/cipher.h functionality. Requires
+ --enable-openssl.
+ --enable-library-bin-tar
+ Enable the building and reused of tarball of binary
+ build for some 'external' libraries. Some libraries
+ can save their build result in a tarball stored in
+ TARFILE_LOCATION. That binary tarball is uniquely
+ identified by the source tarball, the content of the
+ config_host.mk file and the content of the top-level
+ directory in core for that library If this option is
+ enabled, then if such a tarfile exist, it will be
+ untarred instead of the source tarfile, and the
+ build step will be skipped for that library. If a
+ proper tarfile does not exist, then the normal
+ source-based build is done for that library and a
+ proper binary tarfile is created for the next time.
+ --disable-dconf Disable the dconf configuration backend (enabled by
+ default where available).
+ --enable-formula-logger Enable formula logger for logging formula
+ calculation flow in Calc.
+
+ --disable-ldap Disable LDAP support.
+ --disable-poppler Disable building Poppler.
+
+ --enable-bundle-mariadb When using MariaDB/MySQL libraries already on
+ system, bundle them with the MariaDB
+ Connector/LibreOffice.
+
+ --disable-scripting-beanshell
+ Disable support for scripts in BeanShell.
+ --disable-scripting-javascript
+ Disable support for scripts in JavaScript.
+ --disable-qrcodegen Disable use of qrcodegen external library.
+ --disable-largefile omit support for large files
+ --enable-ext-ct2n Enable the ConvertTextToNumber extension
+
+ --enable-ext-numbertext Enable the Numbertext extension
+
+ --enable-ext-nlpsolver Enable the NLPSolver extension
+
+ --enable-ext-languagetool
+ Enable the LanguageTool extension
+
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-android-ndk Specify location of the Android Native Development
+ Kit. Mandatory when building for Android.
+ --with-android-ndk-toolchain-version
+ Specify which toolchain version to use, of those
+ present in the Android NDK you are using. The
+ default (and only supported version currently) is
+ "clang5.0"
+ --with-android-sdk Specify location of the Android SDK. Mandatory when
+ building for Android.
+ --with-android-api-level
+ Specify the API level when building for Android.
+ Defaults to 16 for ARM and x86 and to 21 for ARM64
+ and x86-64
+ --with-valgrind Make availability of Valgrind headers a hard
+ requirement.
+ --with-update-config=/tmp/update.ini
+ Path to the update config ini file
+ --with-macosx-bundle-identifier=tld.mumble.orifice.TheOffice
+ Define the macOS bundle identifier. Default is the
+ somewhat weird org.libreoffice.script ("script",
+ huh?).
+ --with-product-name='My Own Office Suite'
+ Define the product name. Default is LibreOffice.
+ --with-package-version='3.1.4.5'
+ Define the package version. Default is
+ 7.0.4.2. Use only if you distribute an
+ own build for macOS.
+ --with-gcc-home Specify the location of gcc/g++ manually. This can
+ be used in conjunction with --enable-icecream when
+ icecream gcc/g++ wrappers are installed in a
+ non-default path.
+ --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD.
+ --with-build-platform-configure-options
+ Specify options for the configure script run for the
+ *build* platform in a cross-compilation
+ --with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD.
+ --with-external-tar=<TARFILE_PATH>
+ Specify an absolute path of where to find (and
+ store) tarfiles.
+ --with-referenced-git=<OTHER_CHECKOUT_DIR>
+ Specify another checkout directory to reference.
+ This makes use of git submodule update --reference,
+ and saves a lot of diskspace when having multiple
+ trees side-by-side.
+ --with-linked-git=<submodules repo basedir>
+ Specify a directory where the repositories of
+ submodules are located. This uses a method similar
+ to git-new-workdir to get submodules.
+ --with-galleries Specify how galleries should be built. It is
+ possible either to build these internally from
+ source ("build"), or to disable them ("no")
+ --with-theme="theme1 theme2..."
+ Choose which themes to include. By default those
+ themes with an '*' are included. Possible choices:
+ *breeze, *breeze_dark, *breeze_dark_svg,
+ *breeze_svg, *colibre, *colibre_svg, *elementary,
+ *elementary_svg, *karasa_jaga, *karasa_jaga_svg,
+ *sifr, *sifr_dark, *sifr_dark_svg, *sifr_svg,
+ *sukapura, *sukapura_svg.
+ --without-helppack-integration
+ It will not integrate the helppacks to the installer
+ of the product. Please use this switch to use the
+ online help or separate help packages.
+ --without-fonts LibreOffice includes some third-party fonts to
+ provide a reliable basis for help content,
+ templates, samples, etc. When these fonts are
+ already known to be available on the system then you
+ should use this option.
+ --with-epm Decides which epm to use. Default is to use the one
+ from the system if one is built. When either this is
+ not there or you say =internal epm will be built.
+ --with-package-format Specify package format(s) for LibreOffice
+ installation sets. The implicit
+ --without-package-format leads to no installation
+ sets being generated. Possible values: aix, archive,
+ bsd, deb, dmg, installed, msi, pkg, and rpm.
+ Example: --with-package-format='deb rpm'
+ --with-tls Decides which TLS/SSL and cryptographic
+ implementations to use for LibreOffice's code.
+ Notice that this doesn't apply for depending
+ libraries like "neon", for example. Default is to
+ use NSS although OpenSSL is also possible. Notice
+ that selecting NSS restricts the usage of OpenSSL in
+ LO's code but selecting OpenSSL doesn't restrict by
+ now the usage of NSS in LO's code. Possible values:
+ openssl, nss. Example: --with-tls="nss"
+ --with-system-libs Use libraries already on system -- enables all
+ --with-system-* flags.
+ --with-system-bzip2 Use bzip2 already on system. Used only when
+ --enable-online-update=mar
+ --with-system-headers Use headers already on system -- enables all
+ --with-system-* flags for external packages whose
+ headers are the only entities used i.e.
+ boost/odbc/sane-header(s).
+ --without-system-jars When building with --with-system-libs, also the
+ needed jars are expected on the system. Use this to
+ disable that
+ --with-system-cairo Use cairo libraries already on system. Happens
+ automatically for (implicit) --enable-gtk3.
+ --with-system-epoxy Use epoxy libraries already on system. Happens
+ automatically for (implicit) --enable-gtk3.
+ --with-myspell-dicts Adds myspell dictionaries to the LibreOffice
+ installation set
+ --without-system-dicts Do not use dictionaries from system paths.
+ --with-external-dict-dir
+ Specify external dictionary dir.
+ --with-external-hyph-dir
+ Specify external hyphenation pattern dir.
+ --with-external-thes-dir
+ Specify external thesaurus dir.
+ --with-system-zlib Use zlib already on system.
+ --with-system-jpeg Use jpeg already on system.
+ --with-system-clucene Use clucene already on system.
+ --with-system-expat Use expat already on system.
+ --with-system-libxml Use libxml/libxslt already on system.
+ --with-system-icu Use icu already on system.
+ --with-system-ucpp Use ucpp already on system.
+ --with-system-openldap Use the OpenLDAP LDAP SDK already on system.
+ --with-system-poppler Use system poppler (only needed for PDF import).
+ --with-system-gpgmepp Use gpgmepp already on system
+ --with-system-apache-commons
+ Use Apache commons libraries already on system.
+ --with-system-mariadb Use MariaDB/MySQL libraries already on system.
+ --with-system-postgresql
+ Use PostgreSQL libraries already on system, for
+ building the PostgreSQL-SDBC driver. If pg_config is
+ not in PATH, use PGCONFIG to point to it.
+ --with-libpq-path=<absolute path to your libpq installation>
+ Use this PostgreSQL C interface (libpq) installation
+ for building the PostgreSQL-SDBC extension.
+ --with-system-firebird Use Firebird libraries already on system, for
+ building the Firebird-SDBC driver. If fb_config is
+ not in PATH, use FBCONFIG to point to it.
+ --with-system-libtommath
+ Use libtommath already on system
+ --with-system-hsqldb Use hsqldb already on system.
+ --with-hsqldb-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-system-beanshell Use beanshell already on system.
+ --with-beanshell-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-system-rhino Use rhino already on system.
+ --with-rhino-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-commons-logging-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-system-jfreereport
+ Use JFreeReport already on system.
+ --with-sac-jar=JARFILE Specify path to jarfile manually.
+ --with-libxml-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-flute-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-jfreereport-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-liblayout-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-libloader-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-libformula-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-librepository-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-libfonts-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-libserializer-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-libbase-jar=JARFILE
+ Specify path to jarfile manually.
+ --with-system-odbc Use the odbc headers already on system.
+ --with-system-sane Use sane.h already on system.
+ --with-system-bluez Use bluetooth.h already on system.
+ --with-system-curl Use curl already on system.
+ --with-system-boost Use boost already on system.
+ --with-system-glm Use glm already on system.
+ --with-system-hunspell Use libhunspell already on system.
+ --with-system-qrcodegen Use libqrcodegen already on system.
+ --with-system-mythes Use mythes already on system.
+ --with-system-altlinuxhyph
+ Use ALTLinuxhyph already on system.
+ --with-system-lpsolve Use lpsolve already on system.
+ --with-system-coinmp Use CoinMP already on system.
+ --with-system-liblangtag
+ Use liblangtag library already on system.
+ --with-webdav Specify which library to use for webdav
+ implementation. Possible values: "neon", "serf",
+ "no". The default value is "neon". Example:
+ --with-webdav="serf"
+ --with-linker-hash-style
+ Use linker with --hash-style=<style> when linking
+ shared objects. Possible values: "sysv", "gnu",
+ "both". The default value is "gnu" if supported on
+ the build system, and "sysv" otherwise.
+ --with-jdk-home=<absolute path to JDK home>
+ If you have installed JDK 9 or later on your system
+ please supply the path here. Note that this is not
+ the location of the java command but the location of
+ the entire distribution.
+ --with-help Enable the build of help. There is a special
+ parameter "common" that can be used to bundle only
+ the common part, .e.g help-specific icons. This is
+ useful when you build the helpcontent separately.
+
+ Usage: --with-help build the old local help
+ --without-help no local help (default)
+ --with-help=html build the new HTML local help
+ --with-help=online build the new HTML online help
+
+ --with-omindex Enable the support of xapian-omega index for online
+ help.
+
+ Usage: --with-omindex=server prepare the pages for omindex
+ but let xapian-omega be built in server.
+ --with-omindex=noxap do not prepare online pages
+ for xapian-omega
+
+ --with-java=<java command>
+ Specify the name of the Java interpreter command.
+ Typically "java" which is the default. To build
+ without support for Java components, applets,
+ accessibility or the XML filters written in Java,
+ use --without-java or --with-java=no.
+ --with-jvm-path=<absolute path to parent of jvm home>
+ Use a specific JVM search path at runtime. e.g. use
+ --with-jvm-path=/usr/lib/ to find JRE/JDK in
+ /usr/lib/jvm/
+ --with-ant-home=<absolute path to Ant home>
+ If you have installed Apache Ant on your system,
+ please supply the path here. Note that this is not
+ the location of the Ant binary but the location of
+ the entire distribution.
+ --with-symbol-config Configuration for the crashreport symbol upload
+ --without-export-validation
+ Disable validating OOXML and ODF files as exported
+ from in-tree tests.
+ --with-bffvalidator=<absolute path to BFFValidator>
+ Enables export validation for Microsoft Binary
+ formats (doc, xls, ppt). Requires installed
+ Microsoft Office Binary File Format Validator. Note:
+ export-validation (--with-export-validation) is
+ required to be turned on. See
+ https://www.microsoft.com/en-us/download/details.aspx?id=26794
+ --with-junit=<absolute path to JUnit 4 jar>
+ Specifies the JUnit 4 jar file to use for
+ JUnit-based tests. --without-junit disables those
+ tests. Not relevant in the --without-java case.
+ --with-hamcrest=<absolute path to hamcrest jar>
+ Specifies the hamcrest jar file to use for
+ JUnit-based tests. --without-junit disables those
+ tests. Not relevant in the --without-java case.
+ --with-perl-home=<abs. path to Perl 5 home>
+ If you have installed Perl 5 Distribution, on your
+ system, please supply the path here. Note that this
+ is not the location of the Perl binary but the
+ location of the entire distribution.
+ --with-doxygen=<absolute path to doxygen executable>
+ Specifies the doxygen executable to use when
+ generating ODK C/C++ documentation.
+ --without-doxygen disables generation of ODK C/C++
+ documentation. Not relevant in the --disable-odk
+ case.
+ --with-visual-studio=<2019>
+ Specify which Visual Studio version to use in case
+ several are installed. Currently only 2019 (default)
+ is supported.
+ --with-windows-sdk=<8.0(A)/8.1(A)/10.0>
+ Specify which Windows SDK, or "Windows Kit", version
+ to use in case the one that came with the selected
+ Visual Studio is not what you want for some reason.
+ Note that not all compiler/SDK combinations are
+ supported. The intent is that this option should not
+ be needed.
+ --with-lang="es sw tu cs sk"
+ Use this option to build LibreOffice with additional
+ UI language support. English (US) is always included
+ by default. Separate multiple languages with space.
+ For all languages, use --with-lang=ALL.
+ --with-locales="en es pt fr zh kr ja"
+ Use this option to limit the locale information
+ built in. Separate multiple locales with space. Very
+ experimental and might well break stuff. Just a
+ desperate measure to shrink code and data size. By
+ default all the locales available is included. This
+ option is completely unrelated to --with-lang.
+
+ Affects also our character encoding conversion
+ tables for encodings mainly targeted for a
+ particular locale, like EUC-CN and EUC-TW for
+ zh, ISO-2022-JP for ja.
+
+ Affects also our add-on break iterator data for
+ some languages.
+
+ For the default, all locales, don't use this switch at all.
+ Specifying just the language part of a locale means all matching
+ locales will be included.
+
+ --with-krb5 Enable MIT Kerberos 5 support in modules that
+ support it. By default automatically enabled on
+ platforms where a good system Kerberos 5 is
+ available.
+ --with-gssapi Enable GSSAPI support in modules that support it. By
+ default automatically enabled on platforms where a
+ good system GSSAPI is available.
+ --with-iwyu Use given IWYU binary path to check unneeded
+ includes instead of building. Use only if you are
+ hacking on it.
+ --without-lxml gla11y will use python lxml when available,
+ potentially building a local copy if necessary.
+ --without-lxml tells it to not use python lxml at
+ all, which means that gla11y will only report widget
+ classes and ids.
+ --with-latest-c++ Try to enable the latest features of the C++
+ compiler, even if they are not yet part of a
+ published standard.
+ --with-branding=/path/to/images
+ Use given path to retrieve branding images set.
+
+ Search for intro.png about.svg and logo.svg.
+ If any is missing, default ones will be used instead.
+
+ Search also progress.conf for progress
+ settings on intro screen :
+
+ PROGRESSBARCOLOR="255,255,255" Set color of
+ progress bar. Comma separated RGB decimal values.
+ PROGRESSSIZE="407,6" Set size of progress bar.
+ Comma separated decimal values (width, height).
+ PROGRESSPOSITION="61,317" Set position of progress
+ bar from left,top. Comma separated decimal values.
+ PROGRESSFRAMECOLOR="20,136,3" Set color of progress
+ bar frame. Comma separated RGB decimal values.
+ PROGRESSTEXTCOLOR="0,0,0" Set color of progress
+ bar text. Comma separated RGB decimal values.
+ PROGRESSTEXTBASELINE="287" Set vertical position of
+ progress bar text from top. Decimal value.
+
+ Default values will be used if not found.
+
+ --with-extra-buildid="Tinderbox: Win-x86@6, Branch:master, Date:2012-11-26_00.29.34"
+ Show addition build identification in about dialog.
+ --with-vendor="John the Builder"
+ Set vendor of the build.
+ --with-android-package-name="org.libreoffice"
+ Set Android package name of the build.
+ --with-compat-oowrappers
+ Install oo* wrappers in parallel with lo* ones to
+ keep backward compatibility. Has effect only with
+ make distro-pack-install
+ --with-os-version=<OSVERSION>
+ For FreeBSD users, use this option to override the
+ detected OSVERSION.
+ --with-mingw-cross-compiler=<mingw32-g++ command>
+ Specify the MinGW cross-compiler to use. When
+ building on the ODK on Unix and building
+ unowinreg.dll, specify the MinGW C++ cross-compiler.
+ --with-idlc-cpp=<cpp/ucpp>
+ Specify the C Preprocessor to use for idlc. Default
+ is ucpp.
+ --with-parallelism Number of jobs to run simultaneously during build.
+ Parallel builds can save a lot of time on multi-cpu
+ machines. Defaults to the number of CPUs on the
+ machine, unless you configure --enable-icecream -
+ then to 40.
+ --with-all-tarballs Download all external tarballs unconditionally
+ --with-gdrive-client-id Provides the client id of the application for OAuth2
+ authentication on Google Drive. If either this or
+ --with-gdrive-client-secret is empty, the feature
+ will be disabled
+ --with-gdrive-client-secret
+ Provides the client secret of the application for
+ OAuth2 authentication on Google Drive. If either
+ this or --with-gdrive-client-id is empty, the
+ feature will be disabled
+ --with-alfresco-cloud-client-id
+ Provides the client id of the application for OAuth2
+ authentication on Alfresco Cloud. If either this or
+ --with-alfresco-cloud-client-secret is empty, the
+ feature will be disabled
+ --with-alfresco-cloud-client-secret
+ Provides the client secret of the application for
+ OAuth2 authentication on Alfresco Cloud. If either
+ this or --with-alfresco-cloud-client-id is empty,
+ the feature will be disabled
+ --with-onedrive-client-id
+ Provides the client id of the application for OAuth2
+ authentication on OneDrive. If either this or
+ --with-onedrive-client-secret is empty, the feature
+ will be disabled
+ --with-onedrive-client-secret
+ Provides the client secret of the application for
+ OAuth2 authentication on OneDrive. If either this or
+ --with-onedrive-client-id is empty, the feature will
+ be disabled
+ --with-macosx-sdk=<version>
+ Prefer a specific SDK for building.
+
+ If the requested SDK is not available, a search for the oldest one will be done.
+ With current Xcode versions, only the latest SDK is included, so this option is
+ not terribly useful. It works fine to build with a new SDK and run the result
+ on an older OS.
+
+ e. g.: --with-macosx-sdk=10.10
+
+ there are 3 options to control the MacOSX build:
+ --with-macosx-sdk (referred as 'sdk' below)
+ --with-macosx-version-min-required (referred as 'min' below)
+ --with-macosx-version-max-allowed (referred as 'max' below)
+
+ the connection between these value and the default they take is as follow:
+ ( ? means not specified on the command line, s means the SDK version found,
+ constraint: 8 <= x <= y <= z)
+
+ ==========================================
+ command line || config result
+ ==========================================
+ min | max | sdk || min | max | sdk |
+ ? | ? | ? || 10.10 | 10.s | 10.s |
+ ? | ? | 10.x || 10.10 | 10.x | 10.x |
+ ? | 10.x | ? || 10.10 | 10.s | 10.s |
+ ? | 10.x | 10.y || 10.10 | 10.x | 10.y |
+ 10.x | ? | ? || 10.x | 10.s | 10.s |
+ 10.x | ? | 10.y || 10.x | 10.y | 10.y |
+ 10.x | 10.y | ? || 10.x | 10.y | 10.y |
+ 10.x | 10.y | 10.z || 10.x | 10.y | 10.z |
+
+
+ see: http://developer.apple.com/library/mac/#technotes/tn2064/_index.html
+ for a detailed technical explanation of these variables
+
+ Note: MACOSX_DEPLOYMENT_TARGET will be set to the value of 'min'.
+
+ --with-macosx-version-min-required=<version>
+ set the minimum OS version needed to run the built
+ LibreOffice
+
+ e. g.: --with-macos-version-min-required=10.10
+ see --with-macosx-sdk for more info
+
+ --with-macosx-version-max-allowed=<version>
+ set the maximum allowed OS version the LibreOffice
+ compilation can use APIs from
+
+ e. g.: --with-macos-version-max-allowed=10.10
+ see --with-macosx-sdk for more info
+
+ --with-system-icu-for-build=yes/no/force
+ Use icu already on system for build tools
+ (cross-compilation only).
+ --with-system-libcmis Use libcmis from operating system instead of
+ building and bundling it.
+ --with-ucrt-dir path to the directory with the arch-specific MSU
+ packages of the Windows Universal CRT
+ redistributables (MS KB 2999226) for packaging into
+ the installsets (without those the target system
+ needs to install the UCRT or Visual C++ Runtimes
+ manually). The directory must contain the following
+ 6 files: Windows6.1-KB2999226-x64.msu
+ Windows6.1-KB2999226-x86.msu
+ Windows8.1-KB2999226-x64.msu
+ Windows8.1-KB2999226-x86.msu
+ Windows8-RT-KB2999226-x64.msu
+ Windows8-RT-KB2999226-x86.msu A zip archive
+ including those files is available from Microsoft
+ site:
+ https://www.microsoft.com/en-us/download/details.aspx?id=48234
+ --with-system-expat Use expat from operating system instead of building
+ and bundling it.
+ --with-system-xmlsec Use xmlsec from operating system instead of building
+ and bundling it.
+ --with-system-libeot Use libeot from operating system instead of building
+ and bundling it.
+ --with-system-librevenge
+ Use librevenge from operating system instead of
+ building and bundling it.
+ --with-system-libodfgen Use libodfgen from operating system instead of
+ building and bundling it.
+ --with-system-libepubgen
+ Use libepubgen from operating system instead of
+ building and bundling it.
+ --with-system-libwpd Use libwpd from operating system instead of building
+ and bundling it.
+ --with-system-libwpg Use libwpg from operating system instead of building
+ and bundling it.
+ --with-system-libwps Use libwps from operating system instead of building
+ and bundling it.
+ --with-system-libvisio Use libvisio from operating system instead of
+ building and bundling it.
+ --with-system-libcdr Use libcdr from operating system instead of building
+ and bundling it.
+ --with-system-libmspub Use libmspub from operating system instead of
+ building and bundling it.
+ --with-system-libmwaw Use libmwaw from operating system instead of
+ building and bundling it.
+ --with-system-libetonyek
+ Use libetonyek from operating system instead of
+ building and bundling it.
+ --with-system-libfreehand
+ Use libfreehand from operating system instead of
+ building and bundling it.
+ --with-system-libebook Use libebook from operating system instead of
+ building and bundling it.
+ --with-system-libabw Use libabw from operating system instead of building
+ and bundling it.
+ --with-system-libpagemaker
+ Use libpagemaker from operating system instead of
+ building and bundling it.
+ --with-system-libqxp Use libqxp from operating system instead of building
+ and bundling it.
+ --with-system-libzmf Use libzmf from operating system instead of building
+ and bundling it.
+ --with-system-libstaroffice
+ Use libstaroffice from operating system instead of
+ building and bundling it.
+ --with-system-lcms2 Use lcms2 from operating system instead of building
+ and bundling it.
+ --with-system-cppunit Use cppunit from operating system instead of
+ building and bundling it.
+ --with-system-libatomic_ops
+ Use libatomic_ops from operating system instead of
+ building and bundling it.
+ --with-boost[=ARG] use Boost library from a standard location
+ (ARG=yes), from the specified location (ARG=<path>),
+ or disable it (ARG=no) [ARG=yes]
+ --with-boost-libdir=LIB_DIR
+ Force given directory for boost libraries. Note that
+ this will override library path detection, so use
+ this parameter only if default library detection
+ fails and you know exactly where your boost
+ libraries are located.
+ --with-boost-date-time[=special-lib]
+ use the Date_Time library from boost - it is
+ possible to specify a certain library for the linker
+ e.g.
+ --with-boost-date-time=boost_date_time-gcc-mt-d-1_33_1
+ --with-boost-filesystem[=special-lib]
+ use the Filesystem library from boost - it is
+ possible to specify a certain library for the linker
+ e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
+ --with-boost-iostreams[=special-lib]
+ use the IOStreams library from boost - it is
+ possible to specify a certain library for the linker
+ e.g.
+ --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
+ --with-boost-locale[=special-lib]
+ use the Locale library from boost - it is possible
+ to specify a certain library for the linker e.g.
+ --with-boost-locale=boost_locale-gcc-mt
+ --with-system-mdds Use mdds from operating system instead of building
+ and bundling it.
+ --with-system-nss Use nss from operating system instead of building
+ and bundling it.
+ --with-system-orcus Use orcus from operating system instead of building
+ and bundling it.
+ --with-boost-system[=special-lib]
+ use the System library from boost - it is possible
+ to specify a certain library for the linker e.g.
+ --with-boost-system=boost_system-gcc-mt
+ --with-system-graphite Use graphite from operating system instead of
+ building and bundling it.
+ --with-system-harfbuzz Use harfbuzz from operating system instead of
+ building and bundling it.
+ --with-x use the X Window System
+ --with-system-apr Use apr from operating system instead of building
+ and bundling it.
+ --with-system-serf Use serf from operating system instead of building
+ and bundling it.
+ --with-system-neon Use neon from operating system instead of building
+ and bundling it.
+ --with-system-openssl Use openssl from operating system instead of
+ building and bundling it.
+ --with-libgcrypt-prefix=PFX
+ prefix where LIBGCRYPT is installed (optional)
+ --with-system-redland Use redland from operating system instead of
+ building and bundling it.
+ --with-system-libexttextcat
+ Use libexttextcat from operating system instead of
+ building and bundling it.
+ --with-system-libnumbertext
+ Use libnumbertext from operating system instead of
+ building and bundling it.
+ --with-system-epoxy Use epoxy from operating system instead of building
+ and bundling it.
+ --with-system-libpng Use libpng from operating system instead of building
+ and bundling it.
+
+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 (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CPP C preprocessor
+ PKG_CONFIG path to pkg-config utility
+ PKG_CONFIG_PATH
+ directories to add to pkg-config's search path
+ PKG_CONFIG_LIBDIR
+ path overriding pkg-config's built-in search path
+ FONTCONFIG_CFLAGS
+ C compiler flags for FONTCONFIG, overriding pkg-config
+ FONTCONFIG_LIBS
+ linker flags for FONTCONFIG, overriding pkg-config
+ CXX C++ compiler command
+ CXXFLAGS C++ compiler flags
+ CXXCPP C++ preprocessor
+ LIBCMIS_CFLAGS
+ C compiler flags for LIBCMIS, overriding pkg-config
+ LIBCMIS_LIBS
+ linker flags for LIBCMIS, overriding pkg-config
+ CLUCENE_CFLAGS
+ C compiler flags for CLUCENE, overriding pkg-config
+ CLUCENE_LIBS
+ linker flags for CLUCENE, overriding pkg-config
+ EXPAT_CFLAGS
+ C compiler flags for EXPAT, overriding pkg-config
+ EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
+ XMLSEC_CFLAGS
+ C compiler flags for XMLSEC, overriding pkg-config
+ XMLSEC_LIBS linker flags for XMLSEC, overriding pkg-config
+ LIBEOT_CFLAGS
+ C compiler flags for LIBEOT, overriding pkg-config
+ LIBEOT_LIBS linker flags for LIBEOT, overriding pkg-config
+ REVENGE_CFLAGS
+ C compiler flags for REVENGE, overriding pkg-config
+ REVENGE_LIBS
+ linker flags for REVENGE, overriding pkg-config
+ ODFGEN_CFLAGS
+ C compiler flags for ODFGEN, overriding pkg-config
+ ODFGEN_LIBS linker flags for ODFGEN, overriding pkg-config
+ EPUBGEN_CFLAGS
+ C compiler flags for EPUBGEN, overriding pkg-config
+ EPUBGEN_LIBS
+ linker flags for EPUBGEN, overriding pkg-config
+ WPD_CFLAGS C compiler flags for WPD, overriding pkg-config
+ WPD_LIBS linker flags for WPD, overriding pkg-config
+ WPG_CFLAGS C compiler flags for WPG, overriding pkg-config
+ WPG_LIBS linker flags for WPG, overriding pkg-config
+ WPS_CFLAGS C compiler flags for WPS, overriding pkg-config
+ WPS_LIBS linker flags for WPS, overriding pkg-config
+ VISIO_CFLAGS
+ C compiler flags for VISIO, overriding pkg-config
+ VISIO_LIBS linker flags for VISIO, overriding pkg-config
+ CDR_CFLAGS C compiler flags for CDR, overriding pkg-config
+ CDR_LIBS linker flags for CDR, overriding pkg-config
+ MSPUB_CFLAGS
+ C compiler flags for MSPUB, overriding pkg-config
+ MSPUB_LIBS linker flags for MSPUB, overriding pkg-config
+ MWAW_CFLAGS C compiler flags for MWAW, overriding pkg-config
+ MWAW_LIBS linker flags for MWAW, overriding pkg-config
+ ETONYEK_CFLAGS
+ C compiler flags for ETONYEK, overriding pkg-config
+ ETONYEK_LIBS
+ linker flags for ETONYEK, overriding pkg-config
+ FREEHAND_CFLAGS
+ C compiler flags for FREEHAND, overriding pkg-config
+ FREEHAND_LIBS
+ linker flags for FREEHAND, overriding pkg-config
+ EBOOK_CFLAGS
+ C compiler flags for EBOOK, overriding pkg-config
+ EBOOK_LIBS linker flags for EBOOK, overriding pkg-config
+ ABW_CFLAGS C compiler flags for ABW, overriding pkg-config
+ ABW_LIBS linker flags for ABW, overriding pkg-config
+ PAGEMAKER_CFLAGS
+ C compiler flags for PAGEMAKER, overriding pkg-config
+ PAGEMAKER_LIBS
+ linker flags for PAGEMAKER, overriding pkg-config
+ QXP_CFLAGS C compiler flags for QXP, overriding pkg-config
+ QXP_LIBS linker flags for QXP, overriding pkg-config
+ ZMF_CFLAGS C compiler flags for ZMF, overriding pkg-config
+ ZMF_LIBS linker flags for ZMF, overriding pkg-config
+ STAROFFICE_CFLAGS
+ C compiler flags for STAROFFICE, overriding pkg-config
+ STAROFFICE_LIBS
+ linker flags for STAROFFICE, overriding pkg-config
+ LCMS2_CFLAGS
+ C compiler flags for LCMS2, overriding pkg-config
+ LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
+ CPPUNIT_CFLAGS
+ C compiler flags for CPPUNIT, overriding pkg-config
+ CPPUNIT_LIBS
+ linker flags for CPPUNIT, overriding pkg-config
+ FREETYPE_CFLAGS
+ C compiler flags for FREETYPE, overriding pkg-config
+ FREETYPE_LIBS
+ linker flags for FREETYPE, overriding pkg-config
+ LIBXSLT_CFLAGS
+ C compiler flags for LIBXSLT, overriding pkg-config
+ LIBXSLT_LIBS
+ linker flags for LIBXSLT, overriding pkg-config
+ LIBEXSLT_CFLAGS
+ C compiler flags for LIBEXSLT, overriding pkg-config
+ LIBEXSLT_LIBS
+ linker flags for LIBEXSLT, overriding pkg-config
+ LIBXML_CFLAGS
+ C compiler flags for LIBXML, overriding pkg-config
+ LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
+ PYTHON the Python interpreter
+ POSTGRESQL_CFLAGS
+ C compiler flags for POSTGRESQL, overriding pkg-config
+ POSTGRESQL_LIBS
+ linker flags for POSTGRESQL, overriding pkg-config
+ FIREBIRD_CFLAGS
+ C compiler flags for FIREBIRD, overriding pkg-config
+ FIREBIRD_LIBS
+ linker flags for FIREBIRD, overriding pkg-config
+ ATOMIC_OPS_CFLAGS
+ C compiler flags for ATOMIC_OPS, overriding pkg-config
+ ATOMIC_OPS_LIBS
+ linker flags for ATOMIC_OPS, overriding pkg-config
+ CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
+ CURL_LIBS linker flags for CURL, overriding pkg-config
+ MDDS_CFLAGS C compiler flags for MDDS, overriding pkg-config
+ MDDS_LIBS linker flags for MDDS, overriding pkg-config
+ NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
+ NSS_LIBS linker flags for NSS, overriding pkg-config
+ ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
+ ICU_LIBS linker flags for ICU, overriding pkg-config
+ ORCUS_CFLAGS
+ C compiler flags for ORCUS, overriding pkg-config
+ ORCUS_LIBS linker flags for ORCUS, overriding pkg-config
+ GRAPHITE_CFLAGS
+ C compiler flags for GRAPHITE, overriding pkg-config
+ GRAPHITE_LIBS
+ linker flags for GRAPHITE, overriding pkg-config
+ HARFBUZZ_CFLAGS
+ C compiler flags for HARFBUZZ, overriding pkg-config
+ HARFBUZZ_LIBS
+ linker flags for HARFBUZZ, overriding pkg-config
+ XMKMF Path to xmkmf, Makefile generator for X Window System
+ XRENDER_CFLAGS
+ C compiler flags for XRENDER, overriding pkg-config
+ XRENDER_LIBS
+ linker flags for XRENDER, overriding pkg-config
+ XRANDR_CFLAGS
+ C compiler flags for XRANDR, overriding pkg-config
+ XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
+ APR_CFLAGS C compiler flags for APR, overriding pkg-config
+ APR_LIBS linker flags for APR, overriding pkg-config
+ SERF_CFLAGS C compiler flags for SERF, overriding pkg-config
+ SERF_LIBS linker flags for SERF, overriding pkg-config
+ NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
+ NEON_LIBS linker flags for NEON, overriding pkg-config
+ OPENSSL_CFLAGS
+ C compiler flags for OPENSSL, overriding pkg-config
+ OPENSSL_LIBS
+ linker flags for OPENSSL, overriding pkg-config
+ GNUTLS_CFLAGS
+ C compiler flags for GNUTLS, overriding pkg-config
+ GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
+ REDLAND_CFLAGS
+ C compiler flags for REDLAND, overriding pkg-config
+ REDLAND_LIBS
+ linker flags for REDLAND, overriding pkg-config
+ HUNSPELL_CFLAGS
+ C compiler flags for HUNSPELL, overriding pkg-config
+ HUNSPELL_LIBS
+ linker flags for HUNSPELL, overriding pkg-config
+ MYTHES_CFLAGS
+ C compiler flags for MYTHES, overriding pkg-config
+ MYTHES_LIBS linker flags for MYTHES, overriding pkg-config
+ COINMP_CFLAGS
+ C compiler flags for COINMP, overriding pkg-config
+ COINMP_LIBS linker flags for COINMP, overriding pkg-config
+ LIBEXTTEXTCAT_CFLAGS
+ C compiler flags for LIBEXTTEXTCAT, overriding pkg-config
+ LIBEXTTEXTCAT_LIBS
+ linker flags for LIBEXTTEXTCAT, overriding pkg-config
+ LIBNUMBERTEXT_CFLAGS
+ C compiler flags for LIBNUMBERTEXT, overriding pkg-config
+ LIBNUMBERTEXT_LIBS
+ linker flags for LIBNUMBERTEXT, overriding pkg-config
+ EPOXY_CFLAGS
+ C compiler flags for EPOXY, overriding pkg-config
+ EPOXY_LIBS linker flags for EPOXY, overriding pkg-config
+ GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
+ GTK3_LIBS linker flags for GTK3, overriding pkg-config
+ DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
+ DBUS_LIBS linker flags for DBUS, overriding pkg-config
+ DBUS_GLIB_CFLAGS
+ C compiler flags for DBUS_GLIB, overriding pkg-config
+ DBUS_GLIB_LIBS
+ linker flags for DBUS_GLIB, overriding pkg-config
+ GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
+ GIO_LIBS linker flags for GIO, overriding pkg-config
+ GSTREAMER_1_0_CFLAGS
+ C compiler flags for GSTREAMER_1_0, overriding pkg-config
+ GSTREAMER_1_0_LIBS
+ linker flags for GSTREAMER_1_0, overriding pkg-config
+ DCONF_CFLAGS
+ C compiler flags for DCONF, overriding pkg-config
+ DCONF_LIBS linker flags for DCONF, overriding pkg-config
+ POPPLER_CFLAGS
+ C compiler flags for POPPLER, overriding pkg-config
+ POPPLER_LIBS
+ linker flags for POPPLER, overriding pkg-config
+ QT5_XCB_CFLAGS
+ C compiler flags for QT5_XCB, overriding pkg-config
+ QT5_XCB_LIBS
+ linker flags for QT5_XCB, overriding pkg-config
+ QT5_XCB_ICCCM_CFLAGS
+ C compiler flags for QT5_XCB_ICCCM, overriding pkg-config
+ QT5_XCB_ICCCM_LIBS
+ linker flags for QT5_XCB_ICCCM, overriding pkg-config
+ QT5_GOBJECT_CFLAGS
+ C compiler flags for QT5_GOBJECT, overriding pkg-config
+ QT5_GOBJECT_LIBS
+ linker flags for QT5_GOBJECT, overriding pkg-config
+ GOBJECT_CFLAGS
+ C compiler flags for GOBJECT, overriding pkg-config
+ GOBJECT_LIBS
+ linker flags for GOBJECT, overriding pkg-config
+ BZIP2_CFLAGS
+ C compiler flags for BZIP2, overriding pkg-config
+ BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
+ CAIRO_CFLAGS
+ C compiler flags for CAIRO, overriding pkg-config
+ CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
+ AVAHI_CFLAGS
+ C compiler flags for AVAHI, overriding pkg-config
+ AVAHI_LIBS linker flags for AVAHI, overriding pkg-config
+ LIBLANGTAG_CFLAGS
+ C compiler flags for LIBLANGTAG, overriding pkg-config
+ LIBLANGTAG_LIBS
+ linker flags for LIBLANGTAG, overriding pkg-config
+ LIBPNG_CFLAGS
+ C compiler flags for LIBPNG, overriding pkg-config
+ LIBPNG_LIBS linker flags for LIBPNG, 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.
+LibreOffice home page: <http://documentfoundation.org/>.
+_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
+LibreOffice configure 7.0.4.2
+generated by GNU Autoconf 2.69
+
+Copyright (C) 2012 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_compile
+
+# 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_run
+
+# 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; } > conftest.i && {
+ 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_cpp
+
+# 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 eval \${$3+:} false; 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; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_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 ||
+ 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
+# 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 eval \${$3+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; 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.i 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 eval \${$3+:} false; 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; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_mongrel
+
+# 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_compile
+
+# 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; } > conftest.i && {
+ 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_cpp
+
+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
+# --------------------------------------------
+# Tries to find the compile-time value of EXPR in a program that includes
+# INCLUDES, setting VAR accordingly. Returns whether the value could be
+# computed
+ac_fn_c_compute_int ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) >= 0)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_hi=$ac_mid; break
+else
+ as_fn_arith $ac_mid + 1 && ac_lo=$as_val
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) < 0)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) >= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_lo=$ac_mid; break
+else
+ as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ ac_lo= ac_hi=
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_hi=$ac_mid
+else
+ as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in #((
+?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
+'') ac_retval=1 ;;
+esac
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+static long int longval () { return $2; }
+static unsigned long int ulongval () { return $2; }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (($2) < 0)
+ {
+ long int i = longval ();
+ if (i != ($2))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ($2))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ echo >>conftest.val; read $3 <conftest.val; ac_retval=0
+else
+ ac_retval=1
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+rm -f conftest.val
+
+ fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_compute_int
+
+# 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 ||
+ 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_link
+
+# ac_fn_cxx_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_cxx_check_header_mongrel ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if eval \${$3+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; 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_cxx_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_cxx_try_cpp "$LINENO"; then :
+ ac_header_preproc=yes
+else
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.i 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_cxx_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 eval \${$3+:} false; 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; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_cxx_check_header_mongrel
+
+# 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 eval \${$3+:} false; 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; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_func
+
+# ac_fn_cxx_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_cxx_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 eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_cxx_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; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_cxx_check_header_compile
+
+# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
+# ----------------------------------------------------
+# Tries to find if the field MEMBER exists in type AGGR, after including
+# INCLUDES, setting cache variable VAR accordingly.
+ac_fn_c_check_member ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
+$as_echo_n "checking for $2.$3... " >&6; }
+if eval \${$4+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$5
+int
+main ()
+{
+static $2 ac_aggr;
+if (ac_aggr.$3)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$4=yes"
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$5
+int
+main ()
+{
+static $2 ac_aggr;
+if (sizeof ac_aggr.$3)
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$4=yes"
+else
+ eval "$4=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
+eval ac_res=\$$4
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_member
+
+# 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; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $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 LibreOffice $as_me 7.0.4.2, which was
+generated by GNU Autoconf 2.69. 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
+
+ $as_echo "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ 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
+
+ $as_echo "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ 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
+ $as_echo "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ 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
+ $as_echo "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ 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
+ # We do not want a PATH search for config.site.
+ case $CONFIG_SITE in #((
+ -*) ac_site_file1=./$CONFIG_SITE;;
+ */*) ac_site_file1=$CONFIG_SITE;;
+ *) ac_site_file1=./$CONFIG_SITE;;
+ esac
+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 /dev/null != "$ac_site_file" && 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" \
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
+ 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. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && 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
+
+
+
+
+
+
+if test -n "$BUILD_TYPE"; then
+ as_fn_error $? "You have sourced config_host.mk in this shell. This may lead to trouble, please run in a fresh (login) shell." "$LINENO" 5
+fi
+
+save_CC=$CC
+save_CXX=$CXX
+
+first_arg_basename()
+{
+ for i in $1; do
+ basename "$i"
+ break
+ done
+}
+
+CC_BASE=`first_arg_basename "$CC"`
+CXX_BASE=`first_arg_basename "$CXX"`
+
+BUILD_TYPE="LibO"
+SCPDEFS=""
+GIT_NEEDED_SUBMODULES=""
+LO_PATH= # used by path_munge to construct a PATH variable
+
+FilterLibs()
+{
+ filteredlibs=
+ for f in $1; do
+ case "$f" in
+ # let's start with Fedora's paths for now
+ -L/lib|-L/lib/|-L/lib64|-L/lib64/|-L/usr/lib|-L/usr/lib/|-L/usr/lib64|-L/usr/lib64/)
+ # ignore it: on UNIXoids it is searched by default anyway
+ # but if it's given explicitly then it may override other paths
+ # (on macOS it would be an error to use it instead of SDK)
+ ;;
+ *)
+ filteredlibs="$filteredlibs $f"
+ ;;
+ esac
+ done
+}
+
+PathFormat()
+{
+ formatted_path="$1"
+ if test "$build_os" = "cygwin"; then
+ pf_conv_to_dos=
+ # spaces,parentheses,brackets,braces are problematic in pathname
+ # so are backslashes
+ case "$formatted_path" in
+ *\ * | *\)* | *\(* | *\{* | *\}* | *\* | *\* | *\\* )
+ pf_conv_to_dos="yes"
+ ;;
+ esac
+ if test "$pf_conv_to_dos" = "yes"; then
+ if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ formatted_path=`cygpath -sm "$formatted_path"`
+ else
+ formatted_path=`cygpath -d "$formatted_path"`
+ fi
+ if test $? -ne 0; then
+ as_fn_error $? "path conversion failed for \"$1\"." "$LINENO" 5
+ fi
+ fi
+ fp_count_colon=`echo "$formatted_path" | $GREP -c ":"`
+ fp_count_slash=`echo "$formatted_path" | $GREP -c "/"`
+ if test "$fp_count_slash$fp_count_colon" != "00"; then
+ if test "$fp_count_colon" = "0"; then
+ new_formatted_path=`realpath "$formatted_path"`
+ if test $? -ne 0; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: realpath failed for \"$1\", not necessarily a problem." >&5
+$as_echo "$as_me: WARNING: realpath failed for \"$1\", not necessarily a problem." >&2;}
+ else
+ formatted_path="$new_formatted_path"
+ fi
+ fi
+ formatted_path=`cygpath -m "$formatted_path"`
+ if test $? -ne 0; then
+ as_fn_error $? "path conversion failed for \"$1\"." "$LINENO" 5
+ fi
+ fi
+ fp_count_space=`echo "$formatted_path" | $GREP -c " "`
+ if test "$fp_count_space" != "0"; then
+ as_fn_error $? "converted path \"$formatted_path\" still contains spaces. Short filenames (8.3 filenames) support was disabled on this system?" "$LINENO" 5
+ fi
+ fi
+}
+
+AbsolutePath()
+{
+ # There appears to be no simple and portable method to get an absolute and
+ # canonical path, so we try creating the directory if does not exist and
+ # utilizing the shell and pwd.
+ rel="$1"
+ absolute_path=""
+ test ! -e "$rel" && mkdir -p "$rel"
+ if test -d "$rel" ; then
+ cd "$rel" || as_fn_error $? "absolute path resolution failed for \"$rel\"." "$LINENO" 5
+ absolute_path="$(pwd)"
+ cd - > /dev/null
+ else
+ as_fn_error $? "Failed to resolve absolute path. \"$rel\" does not exist or is not a directory." "$LINENO" 5
+ fi
+}
+
+rm -f warn
+have_WARNINGS="no"
+add_warning()
+{
+ if test "$have_WARNINGS" = "no"; then
+ echo "*************************************" > warn
+ have_WARNINGS="yes"
+ if which tput >/dev/null && test "`tput colors 2>/dev/null || echo 0`" -ge 8; then
+ COLORWARN='* WARNING :'
+ else
+ COLORWARN="* WARNING :"
+ fi
+ fi
+ echo "$COLORWARN $@" >> warn
+}
+
+
+mac_sanitize_path()
+{
+ mac_path="$LODE_HOME/opt/bin:/usr/bin:/bin:/usr/sbin:/sbin"
+ mac_git_path=`which git 2>/dev/null`
+ if test -n "$mac_git_path" -a -x "$mac_git_path" -a "$mac_git_path" != "/usr/bin/git" ; then
+ mac_path="$mac_path:`dirname $mac_git_path`"
+ fi
+ mac_gpg_path=`which gpg 2>/dev/null`
+ if test -n "$mac_gpg_path" -a -x "$mac_gpg_path" -a "$mac_gpg_path" != "/usr/bin/gpg" ; then
+ mac_path="$mac_path:`dirname $mac_gpg_path`"
+ fi
+ PATH="$mac_path"
+ unset mac_path
+ unset mac_git_path
+ unset mac_gpg_path
+}
+
+echo "********************************************************************"
+echo "*"
+echo "* Running ${PACKAGE_NAME} build configuration."
+echo "*"
+echo "********************************************************************"
+echo ""
+
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+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 ${ac_cv_build+:} false; 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 ${ac_cv_host+:} false; 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
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for product name" >&5
+$as_echo_n "checking for product name... " >&6; }
+PRODUCTNAME="LibreOffice"
+if test -n "$with_product_name" -a "$with_product_name" != no; then
+ PRODUCTNAME="$with_product_name"
+fi
+if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
+ PRODUCTNAME="${PRODUCTNAME}Dev"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRODUCTNAME" >&5
+$as_echo "$PRODUCTNAME" >&6; }
+
+PRODUCTNAME_WITHOUT_SPACES=$(printf %s "$PRODUCTNAME" | sed 's/ //g')
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for package version" >&5
+$as_echo_n "checking for package version... " >&6; }
+if test -n "$with_package_version" -a "$with_package_version" != no; then
+ PACKAGE_VERSION="$with_package_version"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_VERSION" >&5
+$as_echo "$PACKAGE_VERSION" >&6; }
+
+set `echo "$PACKAGE_VERSION" | sed "s/\./ /g"`
+
+LIBO_VERSION_MAJOR=$1
+LIBO_VERSION_MINOR=$2
+LIBO_VERSION_MICRO=$3
+LIBO_VERSION_PATCH=$4
+
+LIBO_VERSION_SUFFIX=$5
+# Split out LIBO_VERSION_SUFFIX_SUFFIX... horrible crack. But apparently wanted separately in
+# openoffice.lst as ABOUTBOXPRODUCTVERSIONSUFFIX. Note that the double brackets are for m4's sake,
+# they get undoubled before actually passed to sed.
+LIBO_VERSION_SUFFIX_SUFFIX=`echo "$LIBO_VERSION_SUFFIX" | sed -e 's/.*[a-zA-Z0-9]\([^a-zA-Z0-9]*\)$/\1/'`
+test -n "$LIBO_VERSION_SUFFIX_SUFFIX" && LIBO_VERSION_SUFFIX="${LIBO_VERSION_SUFFIX%${LIBO_VERSION_SUFFIX_SUFFIX}}"
+# LIBO_VERSION_SUFFIX, if non-empty, should include the period separator
+test -n "$LIBO_VERSION_SUFFIX" && LIBO_VERSION_SUFFIX=".$LIBO_VERSION_SUFFIX"
+
+
+
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_VERSION_MAJOR $LIBO_VERSION_MAJOR
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_VERSION_MINOR $LIBO_VERSION_MINOR
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_VERSION_MICRO $LIBO_VERSION_MICRO
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_VERSION_PATCH $LIBO_VERSION_PATCH
+_ACEOF
+
+
+LIBO_THIS_YEAR=`date +%Y`
+cat >>confdefs.h <<_ACEOF
+#define LIBO_THIS_YEAR $LIBO_THIS_YEAR
+_ACEOF
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for product version" >&5
+$as_echo_n "checking for product version... " >&6; }
+PRODUCTVERSION="$LIBO_VERSION_MAJOR.$LIBO_VERSION_MINOR"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRODUCTVERSION" >&5
+$as_echo "$PRODUCTVERSION" >&6; }
+
+
+{ $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 ${ac_cv_path_GREP+:} false; 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"
+ as_fn_executable_p "$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 ${ac_cv_path_EGREP+:} false; 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"
+ as_fn_executable_p "$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"
+
+
+# AC_PROG_EGREP doesn't set GREP on all systems as well
+# Extract the first word of "grep", so it can be a program name with args.
+set dummy grep; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GREP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GREP="$GREP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GREP="$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
+GREP=$ac_cv_path_GREP
+if test -n "$GREP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
+$as_echo "$GREP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+BUILDDIR=`pwd`
+cd $srcdir
+SRC_ROOT=`pwd`
+cd $BUILDDIR
+x_Cygwin=\#
+
+INTROSPECTION_REQUIRED_VERSION=1.32.0
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Make" >&5
+$as_echo_n "checking for GNU Make... " >&6; }
+
+# try to use our own make if it is available and GNUMAKE was not already defined
+if test -z "$GNUMAKE"; then
+ if test -n "$LODE_HOME" -a -x "$LODE_HOME/opt/bin/make" ; then
+ GNUMAKE="$LODE_HOME/opt/bin/make"
+ elif test -x "/opt/lo/bin/make"; then
+ GNUMAKE="/opt/lo/bin/make"
+ fi
+fi
+
+GNUMAKE_WIN_NATIVE=
+for a in "$MAKE" "$GNUMAKE" make gmake gnumake; do
+ if test -n "$a"; then
+ $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
+ if test $? -eq 0; then
+ if test "$build_os" = "cygwin"; then
+ if test -n "$($a -v | grep 'Built for Windows')" ; then
+ GNUMAKE="$(cygpath -m "$(which "$(cygpath -u $a)")")"
+ GNUMAKE_WIN_NATIVE="TRUE"
+ else
+ GNUMAKE=`which $a`
+ fi
+ else
+ GNUMAKE=`which $a`
+ fi
+ break
+ fi
+ fi
+done
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE" >&5
+$as_echo "$GNUMAKE" >&6; }
+if test -z "$GNUMAKE"; then
+ as_fn_error $? "not found. install GNU Make." "$LINENO" 5
+else
+ if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Using a native Win32 GNU Make version." >&5
+$as_echo "$as_me: Using a native Win32 GNU Make version." >&6;}
+ fi
+fi
+
+win_short_path_for_make()
+{
+ local_short_path="$1"
+ if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ cygpath -sm "$local_short_path"
+ else
+ cygpath -u "$(cygpath -d "$local_short_path")"
+ fi
+}
+
+
+if test "$build_os" = "cygwin"; then
+ PathFormat "$SRC_ROOT"
+ SRC_ROOT="$formatted_path"
+ PathFormat "$BUILDDIR"
+ BUILDDIR="$formatted_path"
+ x_Cygwin=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit COMSPEC" >&5
+$as_echo_n "checking for explicit COMSPEC... " >&6; }
+ if test -z "$COMSPEC"; then
+ as_fn_error $? "COMSPEC not set in environment, please set it and rerun" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found: $COMSPEC" >&5
+$as_echo "found: $COMSPEC" >&6; }
+ fi
+fi
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SRCDIR "$SRC_ROOT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SRC_ROOT "$SRC_ROOT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define BUILDDIR "$BUILDDIR"
+_ACEOF
+
+
+if test "z$EUID" = "z0" -a "`uname -o 2>/dev/null`" = "Cygwin"; then
+ as_fn_error $? "You must build LibreOffice as a normal user - not using an administrative account" "$LINENO" 5
+fi
+
+# need sed in os checks...
+for ac_prog in sed
+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 ${ac_cv_path_SED+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $SED in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SED="$SED" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SED="$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
+SED=$ac_cv_path_SED
+if test -n "$SED"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
+$as_echo "$SED" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$SED" && break
+done
+
+if test -z "$SED"; then
+ as_fn_error $? "install sed to run this script" "$LINENO" 5
+fi
+
+# Set the ENABLE_LTO variable
+# ===================================================================
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use link-time optimization" >&5
+$as_echo_n "checking whether to use link-time optimization... " >&6; }
+if test -n "$enable_lto" -a "$enable_lto" != "no"; then
+ ENABLE_LTO="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ ENABLE_LTO=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Check whether --enable-fuzz-options was given.
+if test "${enable_fuzz_options+set}" = set; then :
+ enableval=$enable_fuzz_options;
+fi
+
+
+
+
+# Check whether --with-android-ndk was given.
+if test "${with_android_ndk+set}" = set; then :
+ withval=$with_android_ndk;
+fi
+
+
+
+# Check whether --with-android-ndk-toolchain-version was given.
+if test "${with_android_ndk_toolchain_version+set}" = set; then :
+ withval=$with_android_ndk_toolchain_version;
+else
+ with_android_ndk_toolchain_version=clang5.0
+fi
+
+
+
+# Check whether --with-android-sdk was given.
+if test "${with_android_sdk+set}" = set; then :
+ withval=$with_android_sdk;
+fi
+
+
+
+# Check whether --with-android-api-level was given.
+if test "${with_android_api_level+set}" = set; then :
+ withval=$with_android_api_level;
+fi
+
+
+ANDROID_NDK_HOME=
+if test -z "$with_android_ndk" -a -e "$SRC_ROOT/external/android-ndk" -a "$build" != "$host"; then
+ with_android_ndk="$SRC_ROOT/external/android-ndk"
+fi
+if test -n "$with_android_ndk"; then
+ eval ANDROID_NDK_HOME=$with_android_ndk
+
+ # Set up a lot of pre-canned defaults
+
+ if test ! -f $ANDROID_NDK_HOME/RELEASE.TXT; then
+ if test ! -f $ANDROID_NDK_HOME/source.properties; then
+ as_fn_error $? "Unrecognized Android NDK. Missing RELEASE.TXT or source.properties file in $ANDROID_NDK_HOME." "$LINENO" 5
+ fi
+ ANDROID_NDK_VERSION=`sed -n -e 's/Pkg.Revision = //p' $ANDROID_NDK_HOME/source.properties`
+ else
+ ANDROID_NDK_VERSION=`cut -f1 -d' ' <$ANDROID_NDK_HOME/RELEASE.TXT`
+ fi
+ if test -z "$ANDROID_NDK_VERSION"; then
+ as_fn_error $? "Failed to determine Android NDK version. Please check your installation." "$LINENO" 5
+ fi
+ case $ANDROID_NDK_VERSION in
+ r9*|r10*)
+ as_fn_error $? "Building for Android is only supported with NDK versions above 16.x*" "$LINENO" 5
+ ;;
+ 11.1.*|12.1.*|13.1.*|14.1.*)
+ as_fn_error $? "Building for Android is only supported with NDK versions above 16.x.*" "$LINENO" 5
+ ;;
+ 16.*|17.*|18.*|19.*|20.*)
+ ;;
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Untested Android NDK version $ANDROID_NDK_VERSION, only versions 16.* til 20.* have been used successfully. Proceed at your own risk." >&5
+$as_echo "$as_me: WARNING: Untested Android NDK version $ANDROID_NDK_VERSION, only versions 16.* til 20.* have been used successfully. Proceed at your own risk." >&2;}
+ add_warning "Untested Android NDK version $ANDROID_NDK_VERSION, only versions 16.* til 20.* have been used successfully. Proceed at your own risk."
+ ;;
+ esac
+
+ ANDROID_API_LEVEL=16
+ if test -n "$with_android_api_level" ; then
+ ANDROID_API_LEVEL="$with_android_api_level"
+ fi
+
+ android_cpu=$host_cpu
+ if test $host_cpu = arm; then
+ android_platform_prefix=arm-linux-androideabi
+ android_gnu_prefix=$android_platform_prefix
+ LLVM_TRIPLE=armv7a-linux-androideabi
+ ANDROID_APP_ABI=armeabi-v7a
+ ANDROIDCFLAGS="-mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8"
+ elif test $host_cpu = aarch64; then
+ android_platform_prefix=aarch64-linux-android
+ android_gnu_prefix=$android_platform_prefix
+ LLVM_TRIPLE=$android_platform_prefix
+ # minimum android version that supports aarch64
+ if test "$ANDROID_API_LEVEL" -lt "21" ; then
+ ANDROID_API_LEVEL=21
+ fi
+ ANDROID_APP_ABI=arm64-v8a
+ elif test $host_cpu = x86_64; then
+ android_platform_prefix=x86_64-linux-android
+ android_gnu_prefix=$android_platform_prefix
+ LLVM_TRIPLE=$android_platform_prefix
+ # minimum android version that supports x86_64
+ ANDROID_API_LEVEL=21
+ ANDROID_APP_ABI=x86_64
+ else
+ # host_cpu is something like "i386" or "i686" I guess, NDK uses
+ # "x86" in some contexts
+ android_cpu=x86
+ android_platform_prefix=$android_cpu
+ android_gnu_prefix=i686-linux-android
+ LLVM_TRIPLE=$android_gnu_prefix
+ ANDROID_APP_ABI=x86
+ fi
+
+ case "$with_android_ndk_toolchain_version" in
+ clang5.0)
+ ANDROID_GCC_TOOLCHAIN_VERSION=4.9
+ ;;
+ *)
+ as_fn_error $? "Unrecognized value for the --with-android-ndk-toolchain-version option. Building for Android is only supported with Clang 5.*" "$LINENO" 5
+ esac
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: using the Android API level... $ANDROID_API_LEVEL" >&5
+$as_echo "$as_me: using the Android API level... $ANDROID_API_LEVEL" >&6;}
+
+ # NDK 15 or later toolchain is 64bit-only, except for Windows that we don't support. Using a 64-bit
+ # linker is required if you compile large parts of the code with -g. A 32-bit linker just won't
+ # manage to link the (app-specific) single huge .so that is built for the app in
+ # android/source/ if there is debug information in a significant part of the object files.
+ # (A 64-bit ld.gold grows too much over 10 gigabytes of virtual space when linking such a .so if
+ # all objects have been built with debug information.)
+ case $build_os in
+ linux-gnu*)
+ android_HOST_TAG=linux-x86_64
+ ;;
+ darwin*)
+ android_HOST_TAG=darwin-x86_64
+ ;;
+ *)
+ as_fn_error $? "We only support building for Android from Linux or macOS" "$LINENO" 5
+ # ndk would also support windows and windows-x86_64
+ ;;
+ esac
+ android_TOOLCHAIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/$android_HOST_TAG
+ ANDROID_COMPILER_BIN=$android_TOOLCHAIN/bin
+ ANDROID_BINUTILS_PREBUILT_ROOT=$ANDROID_NDK_HOME/toolchains/$android_platform_prefix-$ANDROID_GCC_TOOLCHAIN_VERSION/prebuilt/$android_HOST_TAG
+
+
+ test -z "$AR" && AR=$ANDROID_COMPILER_BIN/$android_gnu_prefix-ar
+ test -z "$NM" && NM=$ANDROID_COMPILER_BIN/$android_gnu_prefix-nm
+ test -z "$OBJDUMP" && OBJDUMP=$ANDROID_COMPILER_BIN/$android_gnu_prefix-objdump
+ test -z "$RANLIB" && RANLIB=$ANDROID_COMPILER_BIN/$android_gnu_prefix-ranlib
+ test -z "$STRIP" && STRIP=$ANDROID_COMPILER_BIN/$android_gnu_prefix-strip
+
+ ANDROIDCFLAGS="$ANDROIDCFLAGS -target ${LLVM_TRIPLE}${ANDROID_API_LEVEL}"
+ ANDROIDCFLAGS="$ANDROIDCFLAGS -no-canonical-prefixes -ffunction-sections -fdata-sections -Qunused-arguments"
+ if test "$ENABLE_LTO" = TRUE; then
+ # -flto comes from com_GCC_defs.mk, too, but we need to make sure it gets passed as part of
+ # $CC and $CXX when building external libraries
+ ANDROIDCFLAGS="$ANDROIDCFLAGS -flto -fuse-linker-plugin -O2"
+ fi
+
+ ANDROIDCXXFLAGS="$ANDROIDCFLAGS -stdlib=libc++"
+
+ if test -z "$CC"; then
+ CC="$ANDROID_COMPILER_BIN/clang $ANDROIDCFLAGS"
+ CC_BASE="clang"
+ fi
+ if test -z "$CXX"; then
+ CXX="$ANDROID_COMPILER_BIN/clang++ $ANDROIDCXXFLAGS"
+ CXX_BASE="clang++"
+ fi
+
+ # remember to download the ownCloud Android library later
+ BUILD_TYPE="$BUILD_TYPE OWNCLOUD_ANDROID_LIB"
+fi
+
+
+
+
+ANDROID_SDK_HOME=
+if test -z "$with_android_sdk" -a -e "$SRC_ROOT/external/android-sdk-linux" -a "$build" != "$host"; then
+ with_android_sdk="$SRC_ROOT/external/android-sdk-linux"
+fi
+if test -n "$with_android_sdk"; then
+ eval ANDROID_SDK_HOME=$with_android_sdk
+ PATH="$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH"
+fi
+
+
+# Check whether --enable-android-lok was given.
+if test "${enable_android_lok+set}" = set; then :
+ enableval=$enable_android_lok;
+fi
+
+ENABLE_ANDROID_LOK=
+if test -n "$ANDROID_NDK_HOME" ; then
+ if test "$enable_android_lok" = yes; then
+ ENABLE_ANDROID_LOK=TRUE
+ $as_echo "#define HAVE_FEATURE_ANDROID_LOK 1" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: building the Android version... for the Online-based Android app" >&5
+$as_echo "$as_me: building the Android version... for the Online-based Android app" >&6;}
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: building the Android version... for the app from the android/ subdir" >&5
+$as_echo "$as_me: building the Android version... for the app from the android/ subdir" >&6;}
+ fi
+fi
+
+
+
+ # Check whether --enable-android-editing was given.
+if test "${enable_android_editing+set}" = set; then :
+ enableval=$enable_android_editing;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_android_editing=yes
+ else
+ enable_android_editing=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-android-editing=$enable_android_editing" >&5
+$as_echo "$as_me: Randomly set --enable-android-editing=$enable_android_editing" >&6;}
+ libo_fuzzed_enable_android_editing=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-android-editing="'$enable_android_editing'
+ fi
+
+fi
+
+
+ENABLE_ANDROID_EDITING=
+if test "$enable_android_editing" = yes; then
+ ENABLE_ANDROID_EDITING=TRUE
+fi
+
+
+#defaults unless the os test overrides this:
+test_randr=yes
+test_xrender=yes
+test_cups=yes
+test_dbus=yes
+test_fontconfig=yes
+test_cairo=no
+test_gdb_index=no
+test_split_debug=no
+
+# Default values, as such probably valid just for Linux, set
+# differently below just for Mac OSX, but at least better than
+# hardcoding these as we used to do. Much of this is duplicated also
+# in solenv for old build system and for gbuild, ideally we should
+# perhaps define stuff like this only here in configure.ac?
+
+LINKFLAGSSHL="-shared"
+PICSWITCH="-fpic"
+DLLPOST=".so"
+
+LINKFLAGSNOUNDEFS="-Wl,-z,defs"
+
+INSTROOTBASESUFFIX=
+INSTROOTCONTENTSUFFIX=
+SDKDIRNAME=sdk
+
+HOST_PLATFORM="$host"
+
+host_cpu_for_clang="$host_cpu"
+
+case "$host_os" in
+
+solaris*)
+ build_gstreamer_1_0=yes
+ test_freetype=yes
+ build_skia=yes
+ _os=SunOS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Solaris operating system release" >&5
+$as_echo_n "checking the Solaris operating system release... " >&6; }
+ _os_release=`echo $host_os | $SED -e s/solaris2\.//`
+ if test "$_os_release" -lt "10"; then
+ as_fn_error $? "use Solaris >= 10 to build LibreOffice" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($_os_release)" >&5
+$as_echo "ok ($_os_release)" >&6; }
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the processor type" >&5
+$as_echo_n "checking the processor type... " >&6; }
+ if test "$host_cpu" = "sparc" -o "$host_cpu" = "i386"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($host_cpu)" >&5
+$as_echo "ok ($host_cpu)" >&6; }
+ else
+ as_fn_error $? "only SPARC and i386 processors are supported" "$LINENO" 5
+ fi
+ ;;
+
+linux-gnu*|k*bsd*-gnu*)
+ build_gstreamer_1_0=yes
+ test_kf5=yes
+ test_gtk3_kde5=yes
+ build_skia=yes
+ test_gdb_index=yes
+ test_split_debug=yes
+ if test "$enable_fuzzers" != yes; then
+ test_freetype=yes
+ test_fontconfig=yes
+ else
+ test_freetype=no
+ test_fontconfig=no
+ BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE"
+ fi
+ _os=Linux
+ ;;
+
+gnu)
+ test_randr=no
+ test_xrender=no
+ _os=GNU
+ ;;
+
+cygwin*|interix*)
+
+ # When building on Windows normally with MSVC under Cygwin,
+ # configure thinks that the host platform (the platform the
+ # built code will run on) is Cygwin, even if it obviously is
+ # Windows, which in Autoconf terminology is called
+ # "mingw32". (Which is misleading as MinGW is the name of the
+ # tool-chain, not an operating system.)
+
+ # Somewhat confusing, yes. But this configure script doesn't
+ # look at $host etc that much, it mostly uses its own $_os
+ # variable, set here in this case statement.
+
+ test_cups=no
+ test_dbus=no
+ test_randr=no
+ test_xrender=no
+ test_freetype=no
+ test_fontconfig=no
+ build_skia=yes
+ _os=WINNT
+
+ DLLPOST=".dll"
+ LINKFLAGSNOUNDEFS=
+ ;;
+
+darwin*|macos*) # macOS
+ test_randr=no
+ test_xrender=no
+ test_freetype=no
+ test_fontconfig=no
+ test_dbus=no
+ if test -n "$LODE_HOME" ; then
+ mac_sanitize_path
+ { $as_echo "$as_me:${as_lineno-$LINENO}: sanitized the PATH to $PATH" >&5
+$as_echo "$as_me: sanitized the PATH to $PATH" >&6;}
+ fi
+ _os=Darwin
+ INSTROOTBASESUFFIX=/$PRODUCTNAME_WITHOUT_SPACES.app
+ INSTROOTCONTENTSUFFIX=/Contents
+ SDKDIRNAME=${PRODUCTNAME_WITHOUT_SPACES}${PRODUCTVERSION}_SDK
+ # See comment above the case "$host_os"
+ LINKFLAGSSHL="-dynamiclib -single_module"
+
+ # -fPIC is default
+ PICSWITCH=""
+
+ DLLPOST=".dylib"
+
+ # -undefined error is the default
+ LINKFLAGSNOUNDEFS=""
+ case "$host_cpu" in
+ aarch64|arm64)
+ case "$host_os" in
+ macos*)
+ # HOST_PLATFORM is used for external projects and their configury occasionally doesn't like
+ # the "macos" part so be sure to use aarch64-apple-darwin for now.
+ HOST_PLATFORM=aarch64-apple-darwin
+ ;;
+ esac
+
+ # Apple's Clang uses "arm64"
+ host_cpu_for_clang=arm64
+ esac
+;;
+
+ios*) # iOS
+ test_randr=no
+ test_xrender=no
+ test_freetype=no
+ test_fontconfig=no
+ test_dbus=no
+ if test -n "$LODE_HOME" ; then
+ mac_sanitize_path
+ { $as_echo "$as_me:${as_lineno-$LINENO}: sanitized the PATH to $PATH" >&5
+$as_echo "$as_me: sanitized the PATH to $PATH" >&6;}
+ fi
+ build_for_ios=YES
+ _os=iOS
+ test_cups=no
+ enable_mpl_subset=yes
+ enable_lotuswordpro=no
+ enable_coinmp=no
+ enable_lpsolve=no
+ enable_postgresql_sdbc=no
+ enable_extension_integration=no
+ enable_report_builder=no
+ with_ppds=no
+ if test "$enable_ios_simulator" = "yes"; then
+ host=x86_64-apple-darwin
+ fi
+ # See comment above the case "$host_os"
+ LINKFLAGSSHL="-dynamiclib -single_module"
+
+ # -fPIC is default
+ PICSWITCH=""
+
+ DLLPOST=".dylib"
+
+ # -undefined error is the default
+ LINKFLAGSNOUNDEFS=""
+
+ # HOST_PLATFORM is used for external projects and their configury typically doesn't like the "ios"
+ # part, so use aarch64-apple-darwin for now.
+ HOST_PLATFORM=aarch64-apple-darwin
+
+ # Apple's Clang uses "arm64"
+ host_cpu_for_clang=arm64
+;;
+
+freebsd*)
+ build_gstreamer_1_0=yes
+ test_kf5=yes
+ test_gtk3_kde5=yes
+ test_freetype=yes
+ build_skia=yes
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the FreeBSD operating system release" >&5
+$as_echo_n "checking the FreeBSD operating system release... " >&6; }
+ if test -n "$with_os_version"; then
+ OSVERSION="$with_os_version"
+ else
+ OSVERSION=`/sbin/sysctl -n kern.osreldate`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found OSVERSION=$OSVERSION" >&5
+$as_echo "found OSVERSION=$OSVERSION" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which thread library to use" >&5
+$as_echo_n "checking which thread library to use... " >&6; }
+ if test "$OSVERSION" -lt "500016"; then
+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
+ PTHREAD_LIBS="-pthread"
+ elif test "$OSVERSION" -lt "502102"; then
+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
+ PTHREAD_LIBS="-lc_r"
+ else
+ PTHREAD_CFLAGS=""
+ PTHREAD_LIBS="-pthread"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_LIBS" >&5
+$as_echo "$PTHREAD_LIBS" >&6; }
+ _os=FreeBSD
+ ;;
+
+*netbsd*)
+ build_gstreamer_1_0=yes
+ test_kf5=yes
+ test_gtk3_kde5=yes
+ test_freetype=yes
+ build_skia=yes
+ PTHREAD_LIBS="-pthread -lpthread"
+ _os=NetBSD
+ ;;
+
+aix*)
+ test_randr=no
+ test_freetype=yes
+ PTHREAD_LIBS=-pthread
+ _os=AIX
+ ;;
+
+openbsd*)
+ test_freetype=yes
+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
+ PTHREAD_LIBS="-pthread"
+ _os=OpenBSD
+ ;;
+
+dragonfly*)
+ build_gstreamer_1_0=yes
+ test_kf5=yes
+ test_gtk3_kde5=yes
+ test_freetype=yes
+ build_skia=yes
+ PTHREAD_LIBS="-pthread"
+ _os=DragonFly
+ ;;
+
+linux-android*)
+ build_gstreamer_1_0=no
+ enable_lotuswordpro=no
+ enable_mpl_subset=yes
+ enable_coinmp=yes
+ enable_lpsolve=no
+ enable_report_builder=no
+ enable_odk=no
+ enable_postgresql_sdbc=no
+ enable_python=no
+ test_cups=no
+ test_dbus=no
+ test_fontconfig=no
+ test_freetype=no
+ test_kf5=no
+ test_qt5=no
+ test_gtk3_kde5=no
+ test_randr=no
+ test_xrender=no
+ _os=Android
+
+ $as_echo "#define HAVE_FT_FACE_GETCHARVARIANTINDEX 1" >>confdefs.h
+
+ BUILD_TYPE="$BUILD_TYPE CAIRO FONTCONFIG FREETYPE"
+ ;;
+
+haiku*)
+ test_cups=no
+ test_dbus=no
+ test_randr=no
+ test_xrender=no
+ test_freetype=yes
+ enable_odk=no
+ enable_gstreamer_1_0=no
+ enable_vlc=no
+ enable_coinmp=no
+ enable_pdfium=no
+ enable_sdremote=no
+ enable_postgresql_sdbc=no
+ enable_firebird_sdbc=no
+ _os=Haiku
+ ;;
+
+*)
+ as_fn_error $? "$host_os operating system is not suitable to build LibreOffice for!" "$LINENO" 5
+ ;;
+esac
+
+
+
+if test "$_os" = "Android" ; then
+ # Verify that the NDK and SDK options are proper
+ if test -z "$with_android_ndk"; then
+ as_fn_error $? "the --with-android-ndk option is mandatory, unless it is available at external/android-ndk/." "$LINENO" 5
+ elif test ! -f "$ANDROID_NDK_HOME/meta/abis.json"; then
+ as_fn_error $? "the --with-android-ndk option does not point to an Android NDK" "$LINENO" 5
+ fi
+
+ if test -z "$ANDROID_SDK_HOME"; then
+ as_fn_error $? "the --with-android-sdk option is mandatory, unless it is available at external/android-sdk-linux/." "$LINENO" 5
+ elif test ! -d "$ANDROID_SDK_HOME/platforms"; then
+ as_fn_error $? "the --with-android-sdk option does not point to an Android SDK" "$LINENO" 5
+ fi
+
+ BUILD_TOOLS_VERSION=`$SED -n -e 's/.*buildToolsVersion "\(.*\)"/\1/p' $SRC_ROOT/android/source/build.gradle`
+ if test ! -d "$ANDROID_SDK_HOME/build-tools/$BUILD_TOOLS_VERSION"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: android build-tools $BUILD_TOOLS_VERSION not found - install with
+ $ANDROID_SDK_HOME/tools/android update sdk -u --all --filter build-tools-$BUILD_TOOLS_VERSION
+ or adjust change $SRC_ROOT/android/source/build.gradle accordingly" >&5
+$as_echo "$as_me: WARNING: android build-tools $BUILD_TOOLS_VERSION not found - install with
+ $ANDROID_SDK_HOME/tools/android update sdk -u --all --filter build-tools-$BUILD_TOOLS_VERSION
+ or adjust change $SRC_ROOT/android/source/build.gradle accordingly" >&2;}
+ add_warning "android build-tools $BUILD_TOOLS_VERSION not found - install with"
+ add_warning " $ANDROID_SDK_HOME/tools/android update sdk -u --all --filter build-tools-$BUILD_TOOLS_VERSION"
+ add_warning "or adjust $SRC_ROOT/android/source/build.gradle accordingly"
+ fi
+ if test ! -f "$ANDROID_SDK_HOME/extras/android/m2repository/source.properties"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: android support repository not found - install with
+ $ANDROID_SDK_HOME/tools/android update sdk -u --filter extra-android-m2repository
+ to allow the build to download the specified version of the android support libraries" >&5
+$as_echo "$as_me: WARNING: android support repository not found - install with
+ $ANDROID_SDK_HOME/tools/android update sdk -u --filter extra-android-m2repository
+ to allow the build to download the specified version of the android support libraries" >&2;}
+ add_warning "android support repository not found - install with"
+ add_warning " $ANDROID_SDK_HOME/tools/android update sdk -u --filter extra-android-m2repository"
+ add_warning "to allow the build to download the specified version of the android support libraries"
+ fi
+fi
+
+if test "$_os" = "AIX"; then
+ # Extract the first word of "gawk", so it can be a program name with args.
+set dummy gawk; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GAWK+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GAWK in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GAWK="$GAWK" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GAWK="$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
+GAWK=$ac_cv_path_GAWK
+if test -n "$GAWK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5
+$as_echo "$GAWK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$GAWK"; then
+ as_fn_error $? "gawk not found in \$PATH" "$LINENO" 5
+ fi
+fi
+
+
+
+
+
+
+# Check for explicit A/C/CXX/OBJC/OBJCXX/LDFLAGS.
+# By default use the ones specified by our build system,
+# but explicit override is possible.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit AFLAGS" >&5
+$as_echo_n "checking for explicit AFLAGS... " >&6; }
+if test -n "$AFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFLAGS" >&5
+$as_echo "$AFLAGS" >&6; }
+ x_AFLAGS=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ x_AFLAGS=\#
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit CFLAGS" >&5
+$as_echo_n "checking for explicit CFLAGS... " >&6; }
+if test -n "$CFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5
+$as_echo "$CFLAGS" >&6; }
+ x_CFLAGS=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ x_CFLAGS=\#
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit CXXFLAGS" >&5
+$as_echo_n "checking for explicit CXXFLAGS... " >&6; }
+if test -n "$CXXFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXFLAGS" >&5
+$as_echo "$CXXFLAGS" >&6; }
+ x_CXXFLAGS=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ x_CXXFLAGS=\#
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit OBJCFLAGS" >&5
+$as_echo_n "checking for explicit OBJCFLAGS... " >&6; }
+if test -n "$OBJCFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCFLAGS" >&5
+$as_echo "$OBJCFLAGS" >&6; }
+ x_OBJCFLAGS=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ x_OBJCFLAGS=\#
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit OBJCXXFLAGS" >&5
+$as_echo_n "checking for explicit OBJCXXFLAGS... " >&6; }
+if test -n "$OBJCXXFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXXFLAGS" >&5
+$as_echo "$OBJCXXFLAGS" >&6; }
+ x_OBJCXXFLAGS=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ x_OBJCXXFLAGS=\#
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit LDFLAGS" >&5
+$as_echo_n "checking for explicit LDFLAGS... " >&6; }
+if test -n "$LDFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDFLAGS" >&5
+$as_echo "$LDFLAGS" >&6; }
+ x_LDFLAGS=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ x_LDFLAGS=\#
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+my_original_CFLAGS=$CFLAGS
+my_original_CXXFLAGS=$CXXFLAGS
+my_original_CPPFLAGS=$CPPFLAGS
+
+if test "$_os" != "WINNT"; then
+ # AC_PROG_CC sets CFLAGS to -g -O2 if not set, avoid that
+ save_CFLAGS=$CFLAGS
+ 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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$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
+ fi
+ rm -f conftest.er1 conftest.err
+ $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. */
+
+int
+main ()
+{
+
+ ;
+ 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"
+# 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 whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&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
+if test -z "$ac_file"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+$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 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+{ $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; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ $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 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
+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="$ac_clean_files conftest.out"
+# 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; }
+if test "$cross_compiling" != yes; then
+ { { 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; }
+ if { ac_try='./conftest$ac_cv_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
+ 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: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ $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 ${ac_cv_objext+:} false; 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 ${ac_cv_c_compiler_gnu+:} false; 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 ${ac_cv_prog_cc_g+:} false; 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 ${ac_cv_prog_cc_c89+:} false; 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>
+struct stat;
+/* 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
+
+ CFLAGS=$save_CFLAGS
+ if test -z "$CC_BASE"; then
+ CC_BASE=`first_arg_basename "$CC"`
+ fi
+fi
+
+if test "$_os" != "WINNT"; then
+
+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 ${ac_cv_prog_CPP+:} false; 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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 ${ac_cv_header_stdc+:} false; 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
+"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+ { $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 ${ac_cv_c_bigendian+:} false; 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)
+ ENDIANNESS=big;; #(
+ no)
+ ENDIANNESS=little ;; #(
+ 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
+
+else
+ ENDIANNESS=little
+fi
+
+
+if test $_os != "WINNT"; then
+ save_LIBS="$LIBS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
+$as_echo_n "checking for library containing dlsym... " >&6; }
+if ${ac_cv_search_dlsym+:} false; 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 dlsym ();
+int
+main ()
+{
+return dlsym ();
+ ;
+ 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_dlsym=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_dlsym+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_dlsym+:} false; then :
+
+else
+ ac_cv_search_dlsym=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
+$as_echo "$ac_cv_search_dlsym" >&6; }
+ac_res=$ac_cv_search_dlsym
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+ case "$ac_cv_search_dlsym" in -l*) DLOPEN_LIBS="$ac_cv_search_dlsym";; esac
+else
+ as_fn_error $? "dlsym not found in either libc nor libdl" "$LINENO" 5
+fi
+
+ LIBS="$save_LIBS"
+fi
+
+
+# Check whether --enable-ios-simulator was given.
+if test "${enable_ios_simulator+set}" = set; then :
+ enableval=$enable_ios_simulator;
+fi
+
+
+# Check whether --enable-ios-libreofficelight-app was given.
+if test "${enable_ios_libreofficelight_app+set}" = set; then :
+ enableval=$enable_ios_libreofficelight_app;
+fi
+
+
+ENABLE_IOS_LIBREOFFICELIGHT_APP=
+if test "$enable_ios_libreofficelight_app" = yes; then
+ ENABLE_IOS_LIBREOFFICELIGHT_APP=TRUE
+fi
+
+
+###############################################################################
+# Extensions switches --enable/--disable
+###############################################################################
+# By default these should be enabled unless having extra dependencies.
+# If there is extra dependency over configure options then the enable should
+# be automagic based on whether the requiring feature is enabled or not.
+# All this options change anything only with --enable-extension-integration.
+
+# The name of this option and its help string makes it sound as if
+# extensions are built anyway, just not integrated in the installer,
+# if you use --disable-extension-integration. Is that really the
+# case?
+
+
+ # Check whether --enable-extension-integration was given.
+if test "${enable_extension_integration+set}" = set; then :
+ enableval=$enable_extension_integration;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_extension_integration=yes
+ else
+ enable_extension_integration=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-extension-integration=$enable_extension_integration" >&5
+$as_echo "$as_me: Randomly set --enable-extension-integration=$enable_extension_integration" >&6;}
+ libo_fuzzed_enable_extension_integration=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-extension-integration="'$enable_extension_integration'
+ fi
+
+fi
+
+
+
+# Check whether --enable-avmedia was given.
+if test "${enable_avmedia+set}" = set; then :
+ enableval=$enable_avmedia;
+fi
+
+
+# Check whether --enable-database-connectivity was given.
+if test "${enable_database_connectivity+set}" = set; then :
+ enableval=$enable_database_connectivity;
+fi
+
+
+# This doesn't mean not building (or "integrating") extensions
+# (although it probably should; i.e. it should imply
+# --disable-extension-integration I guess), it means not supporting
+# any extension mechanism at all
+
+ # Check whether --enable-extensions was given.
+if test "${enable_extensions+set}" = set; then :
+ enableval=$enable_extensions;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_extensions=yes
+ else
+ enable_extensions=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-extensions=$enable_extensions" >&5
+$as_echo "$as_me: Randomly set --enable-extensions=$enable_extensions" >&6;}
+ libo_fuzzed_enable_extensions=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-extensions="'$enable_extensions'
+ fi
+
+fi
+
+
+
+# Check whether --enable-scripting was given.
+if test "${enable_scripting+set}" = set; then :
+ enableval=$enable_scripting;
+fi
+
+
+# This is mainly for Android and iOS, but could potentially be used in some
+# special case otherwise, too, so factored out as a separate setting
+
+# Check whether --enable-dynamic-loading was given.
+if test "${enable_dynamic_loading+set}" = set; then :
+ enableval=$enable_dynamic_loading;
+fi
+
+
+
+ # Check whether --enable-report-builder was given.
+if test "${enable_report_builder+set}" = set; then :
+ enableval=$enable_report_builder;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_report_builder=yes
+ else
+ enable_report_builder=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-report-builder=$enable_report_builder" >&5
+$as_echo "$as_me: Randomly set --enable-report-builder=$enable_report_builder" >&6;}
+ libo_fuzzed_enable_report_builder=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-report-builder="'$enable_report_builder'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-ext-wiki-publisher was given.
+if test "${enable_ext_wiki_publisher+set}" = set; then :
+ enableval=$enable_ext_wiki_publisher;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_ext_wiki_publisher=yes
+ else
+ enable_ext_wiki_publisher=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-ext-wiki-publisher=$enable_ext_wiki_publisher" >&5
+$as_echo "$as_me: Randomly set --enable-ext-wiki-publisher=$enable_ext_wiki_publisher" >&6;}
+ libo_fuzzed_enable_ext_wiki_publisher=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-ext-wiki-publisher="'$enable_ext_wiki_publisher'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-lpsolve was given.
+if test "${enable_lpsolve+set}" = set; then :
+ enableval=$enable_lpsolve;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_lpsolve=yes
+ else
+ enable_lpsolve=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-lpsolve=$enable_lpsolve" >&5
+$as_echo "$as_me: Randomly set --enable-lpsolve=$enable_lpsolve" >&6;}
+ libo_fuzzed_enable_lpsolve=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-lpsolve="'$enable_lpsolve'
+ fi
+
+fi
+
+
+
+ # Check whether --enable-coinmp was given.
+if test "${enable_coinmp+set}" = set; then :
+ enableval=$enable_coinmp;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_coinmp=yes
+ else
+ enable_coinmp=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-coinmp=$enable_coinmp" >&5
+$as_echo "$as_me: Randomly set --enable-coinmp=$enable_coinmp" >&6;}
+ libo_fuzzed_enable_coinmp=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-coinmp="'$enable_coinmp'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-pdfimport was given.
+if test "${enable_pdfimport+set}" = set; then :
+ enableval=$enable_pdfimport;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_pdfimport=yes
+ else
+ enable_pdfimport=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-pdfimport=$enable_pdfimport" >&5
+$as_echo "$as_me: Randomly set --enable-pdfimport=$enable_pdfimport" >&6;}
+ libo_fuzzed_enable_pdfimport=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-pdfimport="'$enable_pdfimport'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-pdfium was given.
+if test "${enable_pdfium+set}" = set; then :
+ enableval=$enable_pdfium;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_pdfium=yes
+ else
+ enable_pdfium=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-pdfium=$enable_pdfium" >&5
+$as_echo "$as_me: Randomly set --enable-pdfium=$enable_pdfium" >&6;}
+ libo_fuzzed_enable_pdfium=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-pdfium="'$enable_pdfium'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-skia was given.
+if test "${enable_skia+set}" = set; then :
+ enableval=$enable_skia;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_skia=yes
+ else
+ enable_skia=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-skia=$enable_skia" >&5
+$as_echo "$as_me: Randomly set --enable-skia=$enable_skia" >&6;}
+ libo_fuzzed_enable_skia=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-skia="'$enable_skia'
+ fi
+
+fi
+
+
+
+###############################################################################
+
+
+
+ # Check whether --enable-mergelibs was given.
+if test "${enable_mergelibs+set}" = set; then :
+ enableval=$enable_mergelibs;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_mergelibs=yes
+ else
+ enable_mergelibs=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-mergelibs=$enable_mergelibs" >&5
+$as_echo "$as_me: Randomly set --enable-mergelibs=$enable_mergelibs" >&6;}
+ libo_fuzzed_enable_mergelibs=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-mergelibs="'$enable_mergelibs'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-breakpad was given.
+if test "${enable_breakpad+set}" = set; then :
+ enableval=$enable_breakpad;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_breakpad=yes
+ else
+ enable_breakpad=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-breakpad=$enable_breakpad" >&5
+$as_echo "$as_me: Randomly set --enable-breakpad=$enable_breakpad" >&6;}
+ libo_fuzzed_enable_breakpad=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-breakpad="'$enable_breakpad'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-crashdump was given.
+if test "${enable_crashdump+set}" = set; then :
+ enableval=$enable_crashdump;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_crashdump=yes
+ else
+ enable_crashdump=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-crashdump=$enable_crashdump" >&5
+$as_echo "$as_me: Randomly set --enable-crashdump=$enable_crashdump" >&6;}
+ libo_fuzzed_enable_crashdump=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-crashdump="'$enable_crashdump'
+ fi
+
+fi
+
+
+
+# Check whether --enable-fetch-external was given.
+if test "${enable_fetch_external+set}" = set; then :
+ enableval=$enable_fetch_external;
+fi
+
+
+# Check whether --enable-fuzzers was given.
+if test "${enable_fuzzers+set}" = set; then :
+ enableval=$enable_fuzzers;
+fi
+
+
+
+ # Check whether --enable-pch was given.
+if test "${enable_pch+set}" = set; then :
+ enableval=$enable_pch;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_pch=yes
+ else
+ enable_pch=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-pch=$enable_pch" >&5
+$as_echo "$as_me: Randomly set --enable-pch=$enable_pch" >&6;}
+ libo_fuzzed_enable_pch=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-pch="'$enable_pch'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-epm was given.
+if test "${enable_epm+set}" = set; then :
+ enableval=$enable_epm;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_epm=yes
+ else
+ enable_epm=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-epm=$enable_epm" >&5
+$as_echo "$as_me: Randomly set --enable-epm=$enable_epm" >&6;}
+ libo_fuzzed_enable_epm=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-epm="'$enable_epm'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-odk was given.
+if test "${enable_odk+set}" = set; then :
+ enableval=$enable_odk;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_odk=yes
+ else
+ enable_odk=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-odk=$enable_odk" >&5
+$as_echo "$as_me: Randomly set --enable-odk=$enable_odk" >&6;}
+ libo_fuzzed_enable_odk=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-odk="'$enable_odk'
+ fi
+
+fi
+
+
+
+# Check whether --enable-mpl-subset was given.
+if test "${enable_mpl_subset+set}" = set; then :
+ enableval=$enable_mpl_subset;
+fi
+
+
+
+ # Check whether --enable-evolution2 was given.
+if test "${enable_evolution2+set}" = set; then :
+ enableval=$enable_evolution2;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_evolution2=yes
+ else
+ enable_evolution2=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-evolution2=$enable_evolution2" >&5
+$as_echo "$as_me: Randomly set --enable-evolution2=$enable_evolution2" >&6;}
+ libo_fuzzed_enable_evolution2=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-evolution2="'$enable_evolution2'
+ fi
+
+fi
+
+
+
+# Check whether --enable-avahi was given.
+if test "${enable_avahi+set}" = set; then :
+ enableval=$enable_avahi;
+fi
+
+
+
+ # Check whether --enable-werror was given.
+if test "${enable_werror+set}" = set; then :
+ enableval=$enable_werror;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_werror=yes
+ else
+ enable_werror=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-werror=$enable_werror" >&5
+$as_echo "$as_me: Randomly set --enable-werror=$enable_werror" >&6;}
+ libo_fuzzed_enable_werror=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-werror="'$enable_werror'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-assert-always-abort was given.
+if test "${enable_assert_always_abort+set}" = set; then :
+ enableval=$enable_assert_always_abort;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_assert_always_abort=yes
+ else
+ enable_assert_always_abort=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-assert-always-abort=$enable_assert_always_abort" >&5
+$as_echo "$as_me: Randomly set --enable-assert-always-abort=$enable_assert_always_abort" >&6;}
+ libo_fuzzed_enable_assert_always_abort=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-assert-always-abort="'$enable_assert_always_abort'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-dbgutil was given.
+if test "${enable_dbgutil+set}" = set; then :
+ enableval=$enable_dbgutil;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_dbgutil=yes
+ else
+ enable_dbgutil=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-dbgutil=$enable_dbgutil" >&5
+$as_echo "$as_me: Randomly set --enable-dbgutil=$enable_dbgutil" >&6;}
+ libo_fuzzed_enable_dbgutil=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-dbgutil="'$enable_dbgutil'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-debug was given.
+if test "${enable_debug+set}" = set; then :
+ enableval=$enable_debug;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_debug=yes
+ else
+ enable_debug=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-debug=$enable_debug" >&5
+$as_echo "$as_me: Randomly set --enable-debug=$enable_debug" >&6;}
+ libo_fuzzed_enable_debug=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-debug="'$enable_debug'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-split-debug was given.
+if test "${enable_split_debug+set}" = set; then :
+ enableval=$enable_split_debug;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_split_debug=yes
+ else
+ enable_split_debug=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-split-debug=$enable_split_debug" >&5
+$as_echo "$as_me: Randomly set --enable-split-debug=$enable_split_debug" >&6;}
+ libo_fuzzed_enable_split_debug=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-split-debug="'$enable_split_debug'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-gdb-index was given.
+if test "${enable_gdb_index+set}" = set; then :
+ enableval=$enable_gdb_index;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_gdb_index=yes
+ else
+ enable_gdb_index=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-gdb-index=$enable_gdb_index" >&5
+$as_echo "$as_me: Randomly set --enable-gdb-index=$enable_gdb_index" >&6;}
+ libo_fuzzed_enable_gdb_index=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-gdb-index="'$enable_gdb_index'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-sal-log was given.
+if test "${enable_sal_log+set}" = set; then :
+ enableval=$enable_sal_log;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_sal_log=yes
+ else
+ enable_sal_log=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-sal-log=$enable_sal_log" >&5
+$as_echo "$as_me: Randomly set --enable-sal-log=$enable_sal_log" >&6;}
+ libo_fuzzed_enable_sal_log=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-sal-log="'$enable_sal_log'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-symbols was given.
+if test "${enable_symbols+set}" = set; then :
+ enableval=$enable_symbols;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_symbols=yes
+ else
+ enable_symbols=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-symbols=$enable_symbols" >&5
+$as_echo "$as_me: Randomly set --enable-symbols=$enable_symbols" >&6;}
+ libo_fuzzed_enable_symbols=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-symbols="'$enable_symbols'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-optimized was given.
+if test "${enable_optimized+set}" = set; then :
+ enableval=$enable_optimized;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_optimized=yes
+ else
+ enable_optimized=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-optimized=$enable_optimized" >&5
+$as_echo "$as_me: Randomly set --enable-optimized=$enable_optimized" >&6;}
+ libo_fuzzed_enable_optimized=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-optimized="'$enable_optimized'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-runtime-optimizations was given.
+if test "${enable_runtime_optimizations+set}" = set; then :
+ enableval=$enable_runtime_optimizations;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_runtime_optimizations=yes
+ else
+ enable_runtime_optimizations=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-runtime-optimizations=$enable_runtime_optimizations" >&5
+$as_echo "$as_me: Randomly set --enable-runtime-optimizations=$enable_runtime_optimizations" >&6;}
+ libo_fuzzed_enable_runtime_optimizations=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-runtime-optimizations="'$enable_runtime_optimizations'
+ fi
+
+fi
+
+
+
+
+# Check whether --with-valgrind was given.
+if test "${with_valgrind+set}" = set; then :
+ withval=$with_valgrind;
+fi
+
+
+
+ # Check whether --enable-compiler-plugins was given.
+if test "${enable_compiler_plugins+set}" = set; then :
+ enableval=$enable_compiler_plugins;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_compiler_plugins=yes
+ else
+ enable_compiler_plugins=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-compiler-plugins=$enable_compiler_plugins" >&5
+$as_echo "$as_me: Randomly set --enable-compiler-plugins=$enable_compiler_plugins" >&6;}
+ libo_fuzzed_enable_compiler_plugins=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-compiler-plugins="'$enable_compiler_plugins'
+ fi
+
+fi
+
+
+COMPILER_PLUGINS_DEBUG=
+if test "$enable_compiler_plugins" = debug; then
+ enable_compiler_plugins=yes
+ COMPILER_PLUGINS_DEBUG=TRUE
+fi
+
+
+ # Check whether --enable-compiler-plugins-analyzer-pch was given.
+if test "${enable_compiler_plugins_analyzer_pch+set}" = set; then :
+ enableval=$enable_compiler_plugins_analyzer_pch;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_compiler_plugins_analyzer_pch=yes
+ else
+ enable_compiler_plugins_analyzer_pch=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-compiler-plugins-analyzer-pch=$enable_compiler_plugins_analyzer_pch" >&5
+$as_echo "$as_me: Randomly set --enable-compiler-plugins-analyzer-pch=$enable_compiler_plugins_analyzer_pch" >&6;}
+ libo_fuzzed_enable_compiler_plugins_analyzer_pch=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-compiler-plugins-analyzer-pch="'$enable_compiler_plugins_analyzer_pch'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-ooenv was given.
+if test "${enable_ooenv+set}" = set; then :
+ enableval=$enable_ooenv;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_ooenv=yes
+ else
+ enable_ooenv=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-ooenv=$enable_ooenv" >&5
+$as_echo "$as_me: Randomly set --enable-ooenv=$enable_ooenv" >&6;}
+ libo_fuzzed_enable_ooenv=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-ooenv="'$enable_ooenv'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-libnumbertext was given.
+if test "${enable_libnumbertext+set}" = set; then :
+ enableval=$enable_libnumbertext;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_libnumbertext=yes
+ else
+ enable_libnumbertext=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-libnumbertext=$enable_libnumbertext" >&5
+$as_echo "$as_me: Randomly set --enable-libnumbertext=$enable_libnumbertext" >&6;}
+ libo_fuzzed_enable_libnumbertext=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-libnumbertext="'$enable_libnumbertext'
+ fi
+
+fi
+
+
+
+# Check whether --enable-lto was given.
+if test "${enable_lto+set}" = set; then :
+ enableval=$enable_lto;
+fi
+
+
+# Check whether --enable-python was given.
+if test "${enable_python+set}" = set; then :
+ enableval=$enable_python;
+fi
+
+
+
+ # Check whether --enable-gtk3 was given.
+if test "${enable_gtk3+set}" = set; then :
+ enableval=$enable_gtk3;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_gtk3=yes
+ else
+ enable_gtk3=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-gtk3=$enable_gtk3" >&5
+$as_echo "$as_me: Randomly set --enable-gtk3=$enable_gtk3" >&6;}
+ libo_fuzzed_enable_gtk3=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-gtk3="'$enable_gtk3'
+ fi
+ test "${enable_gtk3+set}" = set || enable_gtk3=yes
+fi
+
+
+
+# Check whether --enable-introspection was given.
+if test "${enable_introspection+set}" = set; then :
+ enableval=$enable_introspection;
+fi
+
+
+# Check whether --enable-split-app-modules was given.
+if test "${enable_split_app_modules+set}" = set; then :
+ enableval=$enable_split_app_modules;
+fi
+
+
+# Check whether --enable-split-opt-features was given.
+if test "${enable_split_opt_features+set}" = set; then :
+ enableval=$enable_split_opt_features;
+fi
+
+
+
+ # Check whether --enable-cairo-canvas was given.
+if test "${enable_cairo_canvas+set}" = set; then :
+ enableval=$enable_cairo_canvas;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_cairo_canvas=yes
+ else
+ enable_cairo_canvas=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-cairo-canvas=$enable_cairo_canvas" >&5
+$as_echo "$as_me: Randomly set --enable-cairo-canvas=$enable_cairo_canvas" >&6;}
+ libo_fuzzed_enable_cairo_canvas=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-cairo-canvas="'$enable_cairo_canvas'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-dbus was given.
+if test "${enable_dbus+set}" = set; then :
+ enableval=$enable_dbus;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_dbus=yes
+ else
+ enable_dbus=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-dbus=$enable_dbus" >&5
+$as_echo "$as_me: Randomly set --enable-dbus=$enable_dbus" >&6;}
+ libo_fuzzed_enable_dbus=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-dbus="'$enable_dbus'
+ fi
+ test "${enable_dbus+set}" = set || enable_dbus=yes
+fi
+
+
+
+
+ # Check whether --enable-sdremote was given.
+if test "${enable_sdremote+set}" = set; then :
+ enableval=$enable_sdremote;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_sdremote=yes
+ else
+ enable_sdremote=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-sdremote=$enable_sdremote" >&5
+$as_echo "$as_me: Randomly set --enable-sdremote=$enable_sdremote" >&6;}
+ libo_fuzzed_enable_sdremote=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-sdremote="'$enable_sdremote'
+ fi
+ test "${enable_sdremote+set}" = set || enable_sdremote=yes
+fi
+
+
+
+
+ # Check whether --enable-sdremote-bluetooth was given.
+if test "${enable_sdremote_bluetooth+set}" = set; then :
+ enableval=$enable_sdremote_bluetooth;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_sdremote_bluetooth=yes
+ else
+ enable_sdremote_bluetooth=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-sdremote-bluetooth=$enable_sdremote_bluetooth" >&5
+$as_echo "$as_me: Randomly set --enable-sdremote-bluetooth=$enable_sdremote_bluetooth" >&6;}
+ libo_fuzzed_enable_sdremote_bluetooth=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-sdremote-bluetooth="'$enable_sdremote_bluetooth'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-gio was given.
+if test "${enable_gio+set}" = set; then :
+ enableval=$enable_gio;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_gio=yes
+ else
+ enable_gio=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-gio=$enable_gio" >&5
+$as_echo "$as_me: Randomly set --enable-gio=$enable_gio" >&6;}
+ libo_fuzzed_enable_gio=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-gio="'$enable_gio'
+ fi
+ test "${enable_gio+set}" = set || enable_gio=yes
+fi
+
+
+
+# Check whether --enable-qt5 was given.
+if test "${enable_qt5+set}" = set; then :
+ enableval=$enable_qt5;
+fi
+
+
+# Check whether --enable-kf5 was given.
+if test "${enable_kf5+set}" = set; then :
+ enableval=$enable_kf5;
+fi
+
+
+# Check whether --enable-kde5 was given.
+if test "${enable_kde5+set}" = set; then :
+ enableval=$enable_kde5;
+fi
+
+
+# Check whether --enable-gtk3_kde5 was given.
+if test "${enable_gtk3_kde5+set}" = set; then :
+ enableval=$enable_gtk3_kde5;
+fi
+
+
+# Check whether --enable-gui was given.
+if test "${enable_gui+set}" = set; then :
+ enableval=$enable_gui;
+else
+ enable_gui=yes
+fi
+
+
+
+ # Check whether --enable-randr was given.
+if test "${enable_randr+set}" = set; then :
+ enableval=$enable_randr;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_randr=yes
+ else
+ enable_randr=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-randr=$enable_randr" >&5
+$as_echo "$as_me: Randomly set --enable-randr=$enable_randr" >&6;}
+ libo_fuzzed_enable_randr=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-randr="'$enable_randr'
+ fi
+ test "${enable_randr+set}" = set || enable_randr=yes
+fi
+
+
+
+
+ # Check whether --enable-gstreamer-1-0 was given.
+if test "${enable_gstreamer_1_0+set}" = set; then :
+ enableval=$enable_gstreamer_1_0;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_gstreamer_1_0=yes
+ else
+ enable_gstreamer_1_0=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-gstreamer-1-0=$enable_gstreamer_1_0" >&5
+$as_echo "$as_me: Randomly set --enable-gstreamer-1-0=$enable_gstreamer_1_0" >&6;}
+ libo_fuzzed_enable_gstreamer_1_0=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-gstreamer-1-0="'$enable_gstreamer_1_0'
+ fi
+ test "${enable_gstreamer_1_0+set}" = set || enable_gstreamer_1_0=yes
+fi
+
+
+
+
+ # Check whether --enable-vlc was given.
+if test "${enable_vlc+set}" = set; then :
+ enableval=$enable_vlc;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_vlc=yes
+ else
+ enable_vlc=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-vlc=$enable_vlc" >&5
+$as_echo "$as_me: Randomly set --enable-vlc=$enable_vlc" >&6;}
+ libo_fuzzed_enable_vlc=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-vlc="'$enable_vlc'
+ fi
+ test "${enable_vlc+set}" = set || enable_vlc=no
+fi
+
+
+
+
+ # Check whether --enable-neon was given.
+if test "${enable_neon+set}" = set; then :
+ enableval=$enable_neon;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_neon=yes
+ else
+ enable_neon=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-neon=$enable_neon" >&5
+$as_echo "$as_me: Randomly set --enable-neon=$enable_neon" >&6;}
+ libo_fuzzed_enable_neon=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-neon="'$enable_neon'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-eot was given.
+if test "${enable_eot+set}" = set; then :
+ enableval=$enable_eot;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_eot=yes
+ else
+ enable_eot=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-eot=$enable_eot" >&5
+$as_echo "$as_me: Randomly set --enable-eot=$enable_eot" >&6;}
+ libo_fuzzed_enable_eot=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-eot="'$enable_eot'
+ fi
+ test "${enable_eot+set}" = set || enable_eot=no
+fi
+
+
+
+
+ # Check whether --enable-cve-tests was given.
+if test "${enable_cve_tests+set}" = set; then :
+ enableval=$enable_cve_tests;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_cve_tests=yes
+ else
+ enable_cve_tests=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-cve-tests=$enable_cve_tests" >&5
+$as_echo "$as_me: Randomly set --enable-cve-tests=$enable_cve_tests" >&6;}
+ libo_fuzzed_enable_cve_tests=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-cve-tests="'$enable_cve_tests'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-chart-tests was given.
+if test "${enable_chart_tests+set}" = set; then :
+ enableval=$enable_chart_tests;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_chart_tests=yes
+ else
+ enable_chart_tests=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-chart-tests=$enable_chart_tests" >&5
+$as_echo "$as_me: Randomly set --enable-chart-tests=$enable_chart_tests" >&6;}
+ libo_fuzzed_enable_chart_tests=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-chart-tests="'$enable_chart_tests'
+ fi
+
+fi
+
+
+
+# Check whether --enable-build-unowinreg was given.
+if test "${enable_build_unowinreg+set}" = set; then :
+ enableval=$enable_build_unowinreg;
+fi
+
+
+# Check whether --enable-build-opensymbol was given.
+if test "${enable_build_opensymbol+set}" = set; then :
+ enableval=$enable_build_opensymbol;
+fi
+
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then :
+ enableval=$enable_dependency_tracking;
+fi
+
+
+# Check whether --enable-icecream was given.
+if test "${enable_icecream+set}" = set; then :
+ enableval=$enable_icecream;
+fi
+
+
+# Check whether --enable-ld was given.
+if test "${enable_ld+set}" = set; then :
+ enableval=$enable_ld;
+fi
+
+
+
+ # Check whether --enable-cups was given.
+if test "${enable_cups+set}" = set; then :
+ enableval=$enable_cups;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_cups=yes
+ else
+ enable_cups=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-cups=$enable_cups" >&5
+$as_echo "$as_me: Randomly set --enable-cups=$enable_cups" >&6;}
+ libo_fuzzed_enable_cups=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-cups="'$enable_cups'
+ fi
+
+fi
+
+
+
+# Check whether --enable-ccache was given.
+if test "${enable_ccache+set}" = set; then :
+ enableval=$enable_ccache;
+fi
+
+
+# Check whether --enable-64-bit was given.
+if test "${enable_64_bit+set}" = set; then :
+ enableval=$enable_64_bit;
+fi
+
+
+
+ # Check whether --enable-online-update was given.
+if test "${enable_online_update+set}" = set; then :
+ enableval=$enable_online_update;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_online_update=yes
+ else
+ enable_online_update=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-online-update=$enable_online_update" >&5
+$as_echo "$as_me: Randomly set --enable-online-update=$enable_online_update" >&6;}
+ libo_fuzzed_enable_online_update=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-online-update="'$enable_online_update'
+ fi
+
+fi
+
+
+
+
+# Check whether --with-update-config was given.
+if test "${with_update_config+set}" = set; then :
+ withval=$with_update_config;
+fi
+
+
+
+ # Check whether --enable-extension-update was given.
+if test "${enable_extension_update+set}" = set; then :
+ enableval=$enable_extension_update;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_extension_update=yes
+ else
+ enable_extension_update=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-extension-update=$enable_extension_update" >&5
+$as_echo "$as_me: Randomly set --enable-extension-update=$enable_extension_update" >&6;}
+ libo_fuzzed_enable_extension_update=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-extension-update="'$enable_extension_update'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-release-build was given.
+if test "${enable_release_build+set}" = set; then :
+ enableval=$enable_release_build;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_release_build=yes
+ else
+ enable_release_build=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-release-build=$enable_release_build" >&5
+$as_echo "$as_me: Randomly set --enable-release-build=$enable_release_build" >&6;}
+ libo_fuzzed_enable_release_build=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-release-build="'$enable_release_build'
+ fi
+
+fi
+
+
+
+# Check whether --enable-windows-build-signing was given.
+if test "${enable_windows_build_signing+set}" = set; then :
+ enableval=$enable_windows_build_signing;
+fi
+
+
+# Check whether --enable-silent-msi was given.
+if test "${enable_silent_msi+set}" = set; then :
+ enableval=$enable_silent_msi;
+fi
+
+
+# Check whether --enable-macosx-code-signing was given.
+if test "${enable_macosx_code_signing+set}" = set; then :
+ enableval=$enable_macosx_code_signing;
+fi
+
+
+# Check whether --enable-macosx-package-signing was given.
+if test "${enable_macosx_package_signing+set}" = set; then :
+ enableval=$enable_macosx_package_signing;
+fi
+
+
+# Check whether --enable-macosx-sandbox was given.
+if test "${enable_macosx_sandbox+set}" = set; then :
+ enableval=$enable_macosx_sandbox;
+fi
+
+
+
+# Check whether --with-macosx-bundle-identifier was given.
+if test "${with_macosx_bundle_identifier+set}" = set; then :
+ withval=$with_macosx_bundle_identifier;
+else
+ with_macosx_bundle_identifier=org.libreoffice.script
+fi
+
+
+
+# Check whether --with-product-name was given.
+if test "${with_product_name+set}" = set; then :
+ withval=$with_product_name;
+else
+ with_product_name=$PRODUCTNAME
+fi
+
+
+
+# Check whether --with-package-version was given.
+if test "${with_package_version+set}" = set; then :
+ withval=$with_package_version;
+fi
+
+
+
+ # Check whether --enable-readonly-installset was given.
+if test "${enable_readonly_installset+set}" = set; then :
+ enableval=$enable_readonly_installset;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_readonly_installset=yes
+ else
+ enable_readonly_installset=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-readonly-installset=$enable_readonly_installset" >&5
+$as_echo "$as_me: Randomly set --enable-readonly-installset=$enable_readonly_installset" >&6;}
+ libo_fuzzed_enable_readonly_installset=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-readonly-installset="'$enable_readonly_installset'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-postgresql-sdbc was given.
+if test "${enable_postgresql_sdbc+set}" = set; then :
+ enableval=$enable_postgresql_sdbc;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_postgresql_sdbc=yes
+ else
+ enable_postgresql_sdbc=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-postgresql-sdbc=$enable_postgresql_sdbc" >&5
+$as_echo "$as_me: Randomly set --enable-postgresql-sdbc=$enable_postgresql_sdbc" >&6;}
+ libo_fuzzed_enable_postgresql_sdbc=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-postgresql-sdbc="'$enable_postgresql_sdbc'
+ fi
+
+fi
+
+
+
+
+ # Check whether --enable-lotuswordpro was given.
+if test "${enable_lotuswordpro+set}" = set; then :
+ enableval=$enable_lotuswordpro;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_lotuswordpro=yes
+ else
+ enable_lotuswordpro=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-lotuswordpro=$enable_lotuswordpro" >&5
+$as_echo "$as_me: Randomly set --enable-lotuswordpro=$enable_lotuswordpro" >&6;}
+ libo_fuzzed_enable_lotuswordpro=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-lotuswordpro="'$enable_lotuswordpro'
+ fi
+ test "${enable_lotuswordpro+set}" = set || enable_lotuswordpro=yes
+fi
+
+
+
+
+ # Check whether --enable-firebird-sdbc was given.
+if test "${enable_firebird_sdbc+set}" = set; then :
+ enableval=$enable_firebird_sdbc;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_firebird_sdbc=yes
+ else
+ enable_firebird_sdbc=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-firebird-sdbc=$enable_firebird_sdbc" >&5
+$as_echo "$as_me: Randomly set --enable-firebird-sdbc=$enable_firebird_sdbc" >&6;}
+ libo_fuzzed_enable_firebird_sdbc=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-firebird-sdbc="'$enable_firebird_sdbc'
+ fi
+ test "${enable_firebird_sdbc+set}" = set || enable_firebird_sdbc=yes
+fi
+
+
+
+# Check whether --enable-bogus-pkg-config was given.
+if test "${enable_bogus_pkg_config+set}" = set; then :
+ enableval=$enable_bogus_pkg_config;
+fi
+
+
+# Check whether --enable-openssl was given.
+if test "${enable_openssl+set}" = set; then :
+ enableval=$enable_openssl;
+else
+ enable_openssl=yes
+fi
+
+
+
+ # Check whether --enable-cipher-openssl-backend was given.
+if test "${enable_cipher_openssl_backend+set}" = set; then :
+ enableval=$enable_cipher_openssl_backend;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_cipher_openssl_backend=yes
+ else
+ enable_cipher_openssl_backend=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-cipher-openssl-backend=$enable_cipher_openssl_backend" >&5
+$as_echo "$as_me: Randomly set --enable-cipher-openssl-backend=$enable_cipher_openssl_backend" >&6;}
+ libo_fuzzed_enable_cipher_openssl_backend=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-cipher-openssl-backend="'$enable_cipher_openssl_backend'
+ fi
+
+fi
+
+
+
+# Check whether --enable-library-bin-tar was given.
+if test "${enable_library_bin_tar+set}" = set; then :
+ enableval=$enable_library_bin_tar;
+fi
+
+
+# Check whether --enable-dconf was given.
+if test "${enable_dconf+set}" = set; then :
+ enableval=$enable_dconf;
+fi
+
+
+
+ # Check whether --enable-formula-logger was given.
+if test "${enable_formula_logger+set}" = set; then :
+ enableval=$enable_formula_logger;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_formula_logger=yes
+ else
+ enable_formula_logger=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-formula-logger=$enable_formula_logger" >&5
+$as_echo "$as_me: Randomly set --enable-formula-logger=$enable_formula_logger" >&6;}
+ libo_fuzzed_enable_formula_logger=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-formula-logger="'$enable_formula_logger'
+ fi
+
+fi
+
+
+
+# Check whether --enable-ldap was given.
+if test "${enable_ldap+set}" = set; then :
+ enableval=$enable_ldap;
+else
+ enable_ldap=yes
+fi
+
+
+
+
+# Check whether --with-gcc-home was given.
+if test "${with_gcc_home+set}" = set; then :
+ withval=$with_gcc_home;
+fi
+
+
+
+# Check whether --with-gnu-patch was given.
+if test "${with_gnu_patch+set}" = set; then :
+ withval=$with_gnu_patch;
+fi
+
+
+
+# Check whether --with-build-platform-configure-options was given.
+if test "${with_build_platform_configure_options+set}" = set; then :
+ withval=$with_build_platform_configure_options;
+fi
+
+
+
+# Check whether --with-gnu-cp was given.
+if test "${with_gnu_cp+set}" = set; then :
+ withval=$with_gnu_cp;
+fi
+
+
+
+# Check whether --with-external-tar was given.
+if test "${with_external_tar+set}" = set; then :
+ withval=$with_external_tar; TARFILE_LOCATION=$withval
+fi
+
+
+
+# Check whether --with-referenced-git was given.
+if test "${with_referenced_git+set}" = set; then :
+ withval=$with_referenced_git; GIT_REFERENCE_SRC=$withval
+fi
+
+
+
+# Check whether --with-linked-git was given.
+if test "${with_linked_git+set}" = set; then :
+ withval=$with_linked_git; GIT_LINK_SRC=$withval
+fi
+
+
+
+# Check whether --with-galleries was given.
+if test "${with_galleries+set}" = set; then :
+ withval=$with_galleries;
+fi
+
+
+
+# Check whether --with-theme was given.
+if test "${with_theme+set}" = set; then :
+ withval=$with_theme;
+fi
+
+
+
+
+# Check whether --with-helppack-integration was given.
+if test "${with_helppack_integration+set}" = set; then :
+ withval=$with_helppack_integration;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_helppack_integration=yes
+ else
+ with_helppack_integration=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-helppack-integration=$with_helppack_integration" >&5
+$as_echo "$as_me: Randomly set --with-helppack-integration=$with_helppack_integration" >&6;}
+ libo_fuzzed_with_helppack_integration=yes
+ libo_fuzz_list="$libo_fuzz_list --with-helppack-integration="'$with_helppack_integration'
+ fi
+
+
+fi
+
+
+
+
+
+# Check whether --with-fonts was given.
+if test "${with_fonts+set}" = set; then :
+ withval=$with_fonts;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_fonts=yes
+ else
+ with_fonts=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-fonts=$with_fonts" >&5
+$as_echo "$as_me: Randomly set --with-fonts=$with_fonts" >&6;}
+ libo_fuzzed_with_fonts=yes
+ libo_fuzz_list="$libo_fuzz_list --with-fonts="'$with_fonts'
+ fi
+
+
+fi
+
+
+
+
+# Check whether --with-epm was given.
+if test "${with_epm+set}" = set; then :
+ withval=$with_epm;
+fi
+
+
+
+# Check whether --with-package-format was given.
+if test "${with_package_format+set}" = set; then :
+ withval=$with_package_format;
+fi
+
+
+
+# Check whether --with-tls was given.
+if test "${with_tls+set}" = set; then :
+ withval=$with_tls;
+fi
+
+
+
+# Check whether --with-system-libs was given.
+if test "${with_system_libs+set}" = set; then :
+ withval=$with_system_libs;
+fi
+
+
+
+# Check whether --with-system-bzip2 was given.
+if test "${with_system_bzip2+set}" = set; then :
+ withval=$with_system_bzip2;
+else
+ with_system_bzip2="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-headers was given.
+if test "${with_system_headers+set}" = set; then :
+ withval=$with_system_headers;
+else
+ with_system_headers="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-jars was given.
+if test "${with_system_jars+set}" = set; then :
+ withval=$with_system_jars;
+else
+ with_system_jars="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-cairo was given.
+if test "${with_system_cairo+set}" = set; then :
+ withval=$with_system_cairo;
+fi
+
+
+
+# Check whether --with-system-epoxy was given.
+if test "${with_system_epoxy+set}" = set; then :
+ withval=$with_system_epoxy;
+else
+ with_system_epoxy="$with_system_libs"
+fi
+
+
+
+# Check whether --with-myspell-dicts was given.
+if test "${with_myspell_dicts+set}" = set; then :
+ withval=$with_myspell_dicts;
+fi
+
+
+
+# Check whether --with-system-dicts was given.
+if test "${with_system_dicts+set}" = set; then :
+ withval=$with_system_dicts;
+fi
+
+
+
+# Check whether --with-external-dict-dir was given.
+if test "${with_external_dict_dir+set}" = set; then :
+ withval=$with_external_dict_dir;
+fi
+
+
+
+# Check whether --with-external-hyph-dir was given.
+if test "${with_external_hyph_dir+set}" = set; then :
+ withval=$with_external_hyph_dir;
+fi
+
+
+
+# Check whether --with-external-thes-dir was given.
+if test "${with_external_thes_dir+set}" = set; then :
+ withval=$with_external_thes_dir;
+fi
+
+
+
+# Check whether --with-system-zlib was given.
+if test "${with_system_zlib+set}" = set; then :
+ withval=$with_system_zlib;
+else
+ with_system_zlib=auto
+fi
+
+
+
+# Check whether --with-system-jpeg was given.
+if test "${with_system_jpeg+set}" = set; then :
+ withval=$with_system_jpeg;
+else
+ with_system_jpeg="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-clucene was given.
+if test "${with_system_clucene+set}" = set; then :
+ withval=$with_system_clucene;
+else
+ with_system_clucene="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-expat was given.
+if test "${with_system_expat+set}" = set; then :
+ withval=$with_system_expat;
+else
+ with_system_expat="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-libxml was given.
+if test "${with_system_libxml+set}" = set; then :
+ withval=$with_system_libxml;
+else
+ with_system_libxml=auto
+fi
+
+
+
+# Check whether --with-system-icu was given.
+if test "${with_system_icu+set}" = set; then :
+ withval=$with_system_icu;
+else
+ with_system_icu="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-ucpp was given.
+if test "${with_system_ucpp+set}" = set; then :
+ withval=$with_system_ucpp;
+fi
+
+
+
+# Check whether --with-system-openldap was given.
+if test "${with_system_openldap+set}" = set; then :
+ withval=$with_system_openldap;
+else
+ with_system_openldap="$with_system_libs"
+fi
+
+
+
+ # Check whether --enable-poppler was given.
+if test "${enable_poppler+set}" = set; then :
+ enableval=$enable_poppler;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_poppler=yes
+ else
+ enable_poppler=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-poppler=$enable_poppler" >&5
+$as_echo "$as_me: Randomly set --enable-poppler=$enable_poppler" >&6;}
+ libo_fuzzed_enable_poppler=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-poppler="'$enable_poppler'
+ fi
+
+fi
+
+
+
+
+# Check whether --with-system-poppler was given.
+if test "${with_system_poppler+set}" = set; then :
+ withval=$with_system_poppler;
+else
+ with_system_poppler="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-gpgmepp was given.
+if test "${with_system_gpgmepp+set}" = set; then :
+ withval=$with_system_gpgmepp;
+else
+ with_system_gpgmepp="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-apache-commons was given.
+if test "${with_system_apache_commons+set}" = set; then :
+ withval=$with_system_apache_commons;
+else
+ with_system_apache_commons="$with_system_jars"
+fi
+
+
+
+# Check whether --with-system-mariadb was given.
+if test "${with_system_mariadb+set}" = set; then :
+ withval=$with_system_mariadb;
+else
+ with_system_mariadb="$with_system_libs"
+fi
+
+
+# Check whether --enable-bundle-mariadb was given.
+if test "${enable_bundle_mariadb+set}" = set; then :
+ enableval=$enable_bundle_mariadb;
+fi
+
+
+
+# Check whether --with-system-postgresql was given.
+if test "${with_system_postgresql+set}" = set; then :
+ withval=$with_system_postgresql;
+else
+ with_system_postgresql="$with_system_libs"
+fi
+
+
+
+# Check whether --with-libpq-path was given.
+if test "${with_libpq_path+set}" = set; then :
+ withval=$with_libpq_path;
+fi
+
+
+
+# Check whether --with-system-firebird was given.
+if test "${with_system_firebird+set}" = set; then :
+ withval=$with_system_firebird;
+else
+ with_system_firebird="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-libtommath was given.
+if test "${with_system_libtommath+set}" = set; then :
+ withval=$with_system_libtommath;
+else
+ with_system_libtommath="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-hsqldb was given.
+if test "${with_system_hsqldb+set}" = set; then :
+ withval=$with_system_hsqldb;
+fi
+
+
+
+# Check whether --with-hsqldb-jar was given.
+if test "${with_hsqldb_jar+set}" = set; then :
+ withval=$with_hsqldb_jar; HSQLDB_JAR=$withval
+fi
+
+
+
+ # Check whether --enable-scripting-beanshell was given.
+if test "${enable_scripting_beanshell+set}" = set; then :
+ enableval=$enable_scripting_beanshell;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_scripting_beanshell=yes
+ else
+ enable_scripting_beanshell=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-scripting-beanshell=$enable_scripting_beanshell" >&5
+$as_echo "$as_me: Randomly set --enable-scripting-beanshell=$enable_scripting_beanshell" >&6;}
+ libo_fuzzed_enable_scripting_beanshell=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-scripting-beanshell="'$enable_scripting_beanshell'
+ fi
+
+fi
+
+
+
+
+# Check whether --with-system-beanshell was given.
+if test "${with_system_beanshell+set}" = set; then :
+ withval=$with_system_beanshell;
+else
+ with_system_beanshell="$with_system_jars"
+fi
+
+
+
+# Check whether --with-beanshell-jar was given.
+if test "${with_beanshell_jar+set}" = set; then :
+ withval=$with_beanshell_jar; BSH_JAR=$withval
+fi
+
+
+
+ # Check whether --enable-scripting-javascript was given.
+if test "${enable_scripting_javascript+set}" = set; then :
+ enableval=$enable_scripting_javascript;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_scripting_javascript=yes
+ else
+ enable_scripting_javascript=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-scripting-javascript=$enable_scripting_javascript" >&5
+$as_echo "$as_me: Randomly set --enable-scripting-javascript=$enable_scripting_javascript" >&6;}
+ libo_fuzzed_enable_scripting_javascript=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-scripting-javascript="'$enable_scripting_javascript'
+ fi
+
+fi
+
+
+
+
+# Check whether --with-system-rhino was given.
+if test "${with_system_rhino+set}" = set; then :
+ withval=$with_system_rhino;
+fi
+
+# [with_system_rhino="$with_system_jars"])
+# Above is not used as we have different debug interface
+# patched into internal rhino. This code needs to be fixed
+# before we can enable it by default.
+
+
+# Check whether --with-rhino-jar was given.
+if test "${with_rhino_jar+set}" = set; then :
+ withval=$with_rhino_jar; RHINO_JAR=$withval
+fi
+
+
+
+# Check whether --with-commons-logging-jar was given.
+if test "${with_commons_logging_jar+set}" = set; then :
+ withval=$with_commons_logging_jar; COMMONS_LOGGING_JAR=$withval
+fi
+
+
+
+# Check whether --with-system-jfreereport was given.
+if test "${with_system_jfreereport+set}" = set; then :
+ withval=$with_system_jfreereport;
+else
+ with_system_jfreereport="$with_system_jars"
+fi
+
+
+
+# Check whether --with-sac-jar was given.
+if test "${with_sac_jar+set}" = set; then :
+ withval=$with_sac_jar; SAC_JAR=$withval
+fi
+
+
+
+# Check whether --with-libxml-jar was given.
+if test "${with_libxml_jar+set}" = set; then :
+ withval=$with_libxml_jar; LIBXML_JAR=$withval
+fi
+
+
+
+# Check whether --with-flute-jar was given.
+if test "${with_flute_jar+set}" = set; then :
+ withval=$with_flute_jar; FLUTE_JAR=$withval
+fi
+
+
+
+# Check whether --with-jfreereport-jar was given.
+if test "${with_jfreereport_jar+set}" = set; then :
+ withval=$with_jfreereport_jar; JFREEREPORT_JAR=$withval
+fi
+
+
+
+# Check whether --with-liblayout-jar was given.
+if test "${with_liblayout_jar+set}" = set; then :
+ withval=$with_liblayout_jar; LIBLAYOUT_JAR=$withval
+fi
+
+
+
+# Check whether --with-libloader-jar was given.
+if test "${with_libloader_jar+set}" = set; then :
+ withval=$with_libloader_jar; LIBLOADER_JAR=$withval
+fi
+
+
+
+# Check whether --with-libformula-jar was given.
+if test "${with_libformula_jar+set}" = set; then :
+ withval=$with_libformula_jar; LIBFORMULA_JAR=$withval
+fi
+
+
+
+# Check whether --with-librepository-jar was given.
+if test "${with_librepository_jar+set}" = set; then :
+ withval=$with_librepository_jar; LIBREPOSITORY_JAR=$withval
+fi
+
+
+
+# Check whether --with-libfonts-jar was given.
+if test "${with_libfonts_jar+set}" = set; then :
+ withval=$with_libfonts_jar; LIBFONTS_JAR=$withval
+fi
+
+
+
+# Check whether --with-libserializer-jar was given.
+if test "${with_libserializer_jar+set}" = set; then :
+ withval=$with_libserializer_jar; LIBSERIALIZER_JAR=$withval
+fi
+
+
+
+# Check whether --with-libbase-jar was given.
+if test "${with_libbase_jar+set}" = set; then :
+ withval=$with_libbase_jar; LIBBASE_JAR=$withval
+fi
+
+
+
+# Check whether --with-system-odbc was given.
+if test "${with_system_odbc+set}" = set; then :
+ withval=$with_system_odbc;
+else
+ with_system_odbc="auto"
+fi
+
+
+
+# Check whether --with-system-sane was given.
+if test "${with_system_sane+set}" = set; then :
+ withval=$with_system_sane;
+else
+ with_system_sane="$with_system_headers"
+fi
+
+
+
+# Check whether --with-system-bluez was given.
+if test "${with_system_bluez+set}" = set; then :
+ withval=$with_system_bluez;
+else
+ with_system_bluez="$with_system_headers"
+fi
+
+
+
+# Check whether --with-system-curl was given.
+if test "${with_system_curl+set}" = set; then :
+ withval=$with_system_curl;
+else
+ with_system_curl=auto
+fi
+
+
+
+# Check whether --with-system-boost was given.
+if test "${with_system_boost+set}" = set; then :
+ withval=$with_system_boost;
+else
+ with_system_boost="$with_system_headers"
+fi
+
+
+
+# Check whether --with-system-glm was given.
+if test "${with_system_glm+set}" = set; then :
+ withval=$with_system_glm;
+else
+ with_system_glm="$with_system_headers"
+fi
+
+
+
+# Check whether --with-system-hunspell was given.
+if test "${with_system_hunspell+set}" = set; then :
+ withval=$with_system_hunspell;
+else
+ with_system_hunspell="$with_system_libs"
+fi
+
+
+
+ # Check whether --enable-qrcodegen was given.
+if test "${enable_qrcodegen+set}" = set; then :
+ enableval=$enable_qrcodegen;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ enable_qrcodegen=yes
+ else
+ enable_qrcodegen=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --enable-qrcodegen=$enable_qrcodegen" >&5
+$as_echo "$as_me: Randomly set --enable-qrcodegen=$enable_qrcodegen" >&6;}
+ libo_fuzzed_enable_qrcodegen=yes
+ libo_fuzz_list="$libo_fuzz_list --enable-qrcodegen="'$enable_qrcodegen'
+ fi
+
+fi
+
+
+
+
+# Check whether --with-system-qrcodegen was given.
+if test "${with_system_qrcodegen+set}" = set; then :
+ withval=$with_system_qrcodegen;
+else
+ with_system_qrcodegen="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-mythes was given.
+if test "${with_system_mythes+set}" = set; then :
+ withval=$with_system_mythes;
+else
+ with_system_mythes="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-altlinuxhyph was given.
+if test "${with_system_altlinuxhyph+set}" = set; then :
+ withval=$with_system_altlinuxhyph;
+else
+ with_system_altlinuxhyph="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-lpsolve was given.
+if test "${with_system_lpsolve+set}" = set; then :
+ withval=$with_system_lpsolve;
+else
+ with_system_lpsolve="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-coinmp was given.
+if test "${with_system_coinmp+set}" = set; then :
+ withval=$with_system_coinmp;
+else
+ with_system_coinmp="$with_system_libs"
+fi
+
+
+
+# Check whether --with-system-liblangtag was given.
+if test "${with_system_liblangtag+set}" = set; then :
+ withval=$with_system_liblangtag;
+else
+ with_system_liblangtag="$with_system_libs"
+fi
+
+
+
+# Check whether --with-webdav was given.
+if test "${with_webdav+set}" = set; then :
+ withval=$with_webdav; WITH_WEBDAV=$withval
+else
+ WITH_WEBDAV="neon"
+fi
+
+
+
+# Check whether --with-linker-hash-style was given.
+if test "${with_linker_hash_style+set}" = set; then :
+ withval=$with_linker_hash_style;
+fi
+
+
+
+# Check whether --with-jdk-home was given.
+if test "${with_jdk_home+set}" = set; then :
+ withval=$with_jdk_home;
+fi
+
+
+
+# Check whether --with-help was given.
+if test "${with_help+set}" = set; then :
+ withval=$with_help;
+fi
+
+
+
+# Check whether --with-omindex was given.
+if test "${with_omindex+set}" = set; then :
+ withval=$with_omindex;
+fi
+
+
+
+
+# Check whether --with-java was given.
+if test "${with_java+set}" = set; then :
+ withval=$with_java; test -z "$with_java" -o "$with_java" = "yes" && with_java=java
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_java=yes
+ else
+ with_java=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-java=$with_java" >&5
+$as_echo "$as_me: Randomly set --with-java=$with_java" >&6;}
+ libo_fuzzed_with_java=yes
+ libo_fuzz_list="$libo_fuzz_list --with-java="'$with_java'
+ fi
+ test -z "$with_java" -o "$with_java" = "yes" && with_java=java
+
+
+fi
+
+
+
+
+# Check whether --with-jvm-path was given.
+if test "${with_jvm_path+set}" = set; then :
+ withval=$with_jvm_path;
+fi
+
+
+
+# Check whether --with-ant-home was given.
+if test "${with_ant_home+set}" = set; then :
+ withval=$with_ant_home;
+fi
+
+
+
+# Check whether --with-symbol-config was given.
+if test "${with_symbol_config+set}" = set; then :
+ withval=$with_symbol_config;
+else
+ with_symbol_config=no
+fi
+
+
+
+# Check whether --with-export-validation was given.
+if test "${with_export_validation+set}" = set; then :
+ withval=$with_export_validation;
+else
+ with_export_validation=auto
+fi
+
+
+
+# Check whether --with-bffvalidator was given.
+if test "${with_bffvalidator+set}" = set; then :
+ withval=$with_bffvalidator;
+else
+ with_bffvalidator=no
+fi
+
+
+
+
+# Check whether --with-junit was given.
+if test "${with_junit+set}" = set; then :
+ withval=$with_junit;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_junit=yes
+ else
+ with_junit=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-junit=$with_junit" >&5
+$as_echo "$as_me: Randomly set --with-junit=$with_junit" >&6;}
+ libo_fuzzed_with_junit=yes
+ libo_fuzz_list="$libo_fuzz_list --with-junit="'$with_junit'
+ fi
+ with_junit=yes
+
+fi
+
+
+
+
+# Check whether --with-hamcrest was given.
+if test "${with_hamcrest+set}" = set; then :
+ withval=$with_hamcrest;
+else
+ with_hamcrest=yes
+fi
+
+
+
+# Check whether --with-perl-home was given.
+if test "${with_perl_home+set}" = set; then :
+ withval=$with_perl_home;
+fi
+
+
+
+
+# Check whether --with-doxygen was given.
+if test "${with_doxygen+set}" = set; then :
+ withval=$with_doxygen;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_doxygen=yes
+ else
+ with_doxygen=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-doxygen=$with_doxygen" >&5
+$as_echo "$as_me: Randomly set --with-doxygen=$with_doxygen" >&6;}
+ libo_fuzzed_with_doxygen=yes
+ libo_fuzz_list="$libo_fuzz_list --with-doxygen="'$with_doxygen'
+ fi
+ with_doxygen=yes
+
+fi
+
+
+
+
+# Check whether --with-visual-studio was given.
+if test "${with_visual_studio+set}" = set; then :
+ withval=$with_visual_studio;
+fi
+
+
+
+# Check whether --with-windows-sdk was given.
+if test "${with_windows_sdk+set}" = set; then :
+ withval=$with_windows_sdk;
+fi
+
+
+
+# Check whether --with-lang was given.
+if test "${with_lang+set}" = set; then :
+ withval=$with_lang;
+fi
+
+
+
+# Check whether --with-locales was given.
+if test "${with_locales+set}" = set; then :
+ withval=$with_locales;
+fi
+
+
+# Kerberos and GSSAPI used only by PostgreSQL as of LibO 3.5
+
+
+# Check whether --with-krb5 was given.
+if test "${with_krb5+set}" = set; then :
+ withval=$with_krb5;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_krb5=yes
+ else
+ with_krb5=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-krb5=$with_krb5" >&5
+$as_echo "$as_me: Randomly set --with-krb5=$with_krb5" >&6;}
+ libo_fuzzed_with_krb5=yes
+ libo_fuzz_list="$libo_fuzz_list --with-krb5="'$with_krb5'
+ fi
+
+
+fi
+
+
+
+
+
+# Check whether --with-gssapi was given.
+if test "${with_gssapi+set}" = set; then :
+ withval=$with_gssapi;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_gssapi=yes
+ else
+ with_gssapi=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-gssapi=$with_gssapi" >&5
+$as_echo "$as_me: Randomly set --with-gssapi=$with_gssapi" >&6;}
+ libo_fuzzed_with_gssapi=yes
+ libo_fuzz_list="$libo_fuzz_list --with-gssapi="'$with_gssapi'
+ fi
+
+
+fi
+
+
+
+
+# Check whether --with-iwyu was given.
+if test "${with_iwyu+set}" = set; then :
+ withval=$with_iwyu;
+fi
+
+
+
+
+# Check whether --with-lxml was given.
+if test "${with_lxml+set}" = set; then :
+ withval=$with_lxml;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_lxml=yes
+ else
+ with_lxml=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-lxml=$with_lxml" >&5
+$as_echo "$as_me: Randomly set --with-lxml=$with_lxml" >&6;}
+ libo_fuzzed_with_lxml=yes
+ libo_fuzz_list="$libo_fuzz_list --with-lxml="'$with_lxml'
+ fi
+
+
+fi
+
+
+
+
+
+# Check whether --with-latest-c++ was given.
+if test "${with_latest_c__+set}" = set; then :
+ withval=$with_latest_c__;
+else
+ if test "$enable_fuzz_options" = yes; then
+ if test `expr $RANDOM % 2` = 1; then
+ with_latest_c__=yes
+ else
+ with_latest_c__=no
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Randomly set --with-latest-c++=$with_latest_c__" >&5
+$as_echo "$as_me: Randomly set --with-latest-c++=$with_latest_c__" >&6;}
+ libo_fuzzed_with_latest_c__=yes
+ libo_fuzz_list="$libo_fuzz_list --with-latest-c++="'$with_latest_c__'
+ fi
+ with_latest_c__=no
+
+fi
+
+
+
+
+
+# Check whether --with-branding was given.
+if test "${with_branding+set}" = set; then :
+ withval=$with_branding;
+fi
+
+
+
+
+# Check whether --with-extra-buildid was given.
+if test "${with_extra_buildid+set}" = set; then :
+ withval=$with_extra_buildid;
+fi
+
+
+
+
+# Check whether --with-vendor was given.
+if test "${with_vendor+set}" = set; then :
+ withval=$with_vendor;
+fi
+
+
+
+# Check whether --with-android-package-name was given.
+if test "${with_android_package_name+set}" = set; then :
+ withval=$with_android_package_name;
+fi
+
+
+
+# Check whether --with-compat-oowrappers was given.
+if test "${with_compat_oowrappers+set}" = set; then :
+ withval=$with_compat_oowrappers;
+fi
+
+
+
+# Check whether --with-os-version was given.
+if test "${with_os_version+set}" = set; then :
+ withval=$with_os_version;
+fi
+
+
+
+# Check whether --with-mingw-cross-compiler was given.
+if test "${with_mingw_cross_compiler+set}" = set; then :
+ withval=$with_mingw_cross_compiler;
+fi
+
+
+
+# Check whether --with-idlc-cpp was given.
+if test "${with_idlc_cpp+set}" = set; then :
+ withval=$with_idlc_cpp;
+fi
+
+
+
+# Check whether --with-parallelism was given.
+if test "${with_parallelism+set}" = set; then :
+ withval=$with_parallelism;
+fi
+
+
+
+# Check whether --with-all-tarballs was given.
+if test "${with_all_tarballs+set}" = set; then :
+ withval=$with_all_tarballs;
+fi
+
+
+
+# Check whether --with-gdrive-client-id was given.
+if test "${with_gdrive_client_id+set}" = set; then :
+ withval=$with_gdrive_client_id;
+fi
+
+
+
+# Check whether --with-gdrive-client-secret was given.
+if test "${with_gdrive_client_secret+set}" = set; then :
+ withval=$with_gdrive_client_secret;
+fi
+
+
+
+# Check whether --with-alfresco-cloud-client-id was given.
+if test "${with_alfresco_cloud_client_id+set}" = set; then :
+ withval=$with_alfresco_cloud_client_id;
+fi
+
+
+
+# Check whether --with-alfresco-cloud-client-secret was given.
+if test "${with_alfresco_cloud_client_secret+set}" = set; then :
+ withval=$with_alfresco_cloud_client_secret;
+fi
+
+
+
+# Check whether --with-onedrive-client-id was given.
+if test "${with_onedrive_client_id+set}" = set; then :
+ withval=$with_onedrive_client_id;
+fi
+
+
+
+# Check whether --with-onedrive-client-secret was given.
+if test "${with_onedrive_client_secret+set}" = set; then :
+ withval=$with_onedrive_client_secret;
+fi
+
+
+if test "$enable_library_bin_tar" = "yes" ; then
+ USE_LIBRARY_BIN_TAR=TRUE
+else
+ USE_LIBRARY_BIN_TAR=
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is Release Build" >&5
+$as_echo_n "checking whether build target is Release Build... " >&6; }
+if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_RELEASE_BUILD=
+ GET_TASK_ALLOW_ENTITLEMENT='
+ <!-- We want to be able to debug a hardened process when not building for release -->
+ <key>com.apple.security.get-task-allow</key>
+ <true/>'
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_RELEASE_BUILD=TRUE
+ GET_TASK_ALLOW_ENTITLEMENT=''
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to sign windows build" >&5
+$as_echo_n "checking whether to sign windows build... " >&6; }
+if test "$enable_windows_build_signing" = "yes" -a "$_os" = "WINNT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ WINDOWS_BUILD_SIGNING="TRUE"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ WINDOWS_BUILD_SIGNING="FALSE"
+fi
+
+
+
+
+# Check whether --with-macosx-sdk was given.
+if test "${with_macosx_sdk+set}" = set; then :
+ withval=$with_macosx_sdk;
+fi
+
+
+
+# Check whether --with-macosx-version-min-required was given.
+if test "${with_macosx_version_min_required+set}" = set; then :
+ withval=$with_macosx_version_min_required;
+fi
+
+
+
+# Check whether --with-macosx-version-max-allowed was given.
+if test "${with_macosx_version_max_allowed+set}" = set; then :
+ withval=$with_macosx_version_max_allowed;
+fi
+
+
+
+
+
+# Check whether --with-system-icu-for-build was given.
+if test "${with_system_icu_for_build+set}" = set; then :
+ withval=$with_system_icu_for_build;
+fi
+
+
+
+
+if test "$libo_fuzzed_enable_dbus" = yes -a "$libo_fuzzed_enable_avahi" -a \
+ "$enable_dbus" != "$enable_avahi"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Resetting --enable-avahi=$enable_dbus" >&5
+$as_echo "$as_me: Resetting --enable-avahi=$enable_dbus" >&6;}
+ enable_avahi=$enable_dbus
+fi
+
+add_lopath_after ()
+{
+ if ! echo "$LO_PATH" | $EGREP -q "(^|${P_SEP})$1($|${P_SEP})"; then
+ LO_PATH="${LO_PATH:+$LO_PATH$P_SEP}$1"
+ fi
+}
+
+add_lopath_before ()
+{
+ local IFS=${P_SEP}
+ local path_cleanup
+ local dir
+ for dir in $LO_PATH ; do
+ if test "$dir" != "$1" ; then
+ path_cleanup=${path_cleanup:+$path_cleanup$P_SEP}$dir
+ fi
+ done
+ LO_PATH="$1${path_cleanup:+$P_SEP$path_cleanup}"
+}
+
+
+pathmunge ()
+{
+ if test -n "$1"; then
+ if test "$build_os" = "cygwin"; then
+ if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ PathFormat "$1"
+ new_path=`cygpath -sm "$formatted_path"`
+ else
+ PathFormat "$1"
+ new_path=`cygpath -u "$formatted_path"`
+ fi
+ else
+ new_path="$1"
+ fi
+ if test "$2" = "after"; then
+ add_lopath_after "$new_path"
+ else
+ add_lopath_before "$new_path"
+ fi
+ unset new_path
+ fi
+}
+
+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 ${ac_cv_prog_AWK+:} false; 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 as_fn_executable_p "$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
+
+# Extract the first word of "$AWK", so it can be a program name with args.
+set dummy $AWK; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_AWK+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $AWK in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_AWK="$AWK" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_AWK="$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
+AWK=$ac_cv_path_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
+
+
+if test -z "$AWK"; then
+ as_fn_error $? "install awk to run this script" "$LINENO" 5
+fi
+
+# Extract the first word of "bash", so it can be a program name with args.
+set dummy bash; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_BASH+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $BASH in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_BASH="$BASH" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_BASH="$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
+BASH=$ac_cv_path_BASH
+if test -n "$BASH"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
+$as_echo "$BASH" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test -z "$BASH"; then
+ as_fn_error $? "bash not found in \$PATH" "$LINENO" 5
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU or BSD tar" >&5
+$as_echo_n "checking for GNU or BSD tar... " >&6; }
+for a in $GNUTAR gtar gnutar bsdtar tar /usr/sfw/bin/gtar; do
+ $a --version 2> /dev/null | egrep "GNU|bsdtar" 2>&1 > /dev/null
+ if test $? -eq 0; then
+ GNUTAR=$a
+ break
+ fi
+done
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
+$as_echo "$GNUTAR" >&6; }
+if test -z "$GNUTAR"; then
+ as_fn_error $? "not found. install GNU or BSD tar." "$LINENO" 5
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar's option to strip components" >&5
+$as_echo_n "checking for tar's option to strip components... " >&6; }
+$GNUTAR --help 2> /dev/null | egrep "bsdtar|strip-components" 2>&1 >/dev/null
+if test $? -eq 0; then
+ STRIP_COMPONENTS="--strip-components"
+else
+ $GNUTAR --help 2> /dev/null | egrep "strip-path" 2>&1 >/dev/null
+ if test $? -eq 0; then
+ STRIP_COMPONENTS="--strip-path"
+ else
+ STRIP_COMPONENTS="unsupported"
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_COMPONENTS" >&5
+$as_echo "$STRIP_COMPONENTS" >&6; }
+if test x$STRIP_COMPONENTS = xunsupported; then
+ as_fn_error $? "you need a tar that is able to strip components." "$LINENO" 5
+fi
+
+
+
+
+
+if test $_os != iOS -a $_os != Android -a "$enable_fuzzers" != "yes"; then
+ BUILD_TYPE="$BUILD_TYPE DESKTOP"
+ $as_echo "#define HAVE_FEATURE_DESKTOP 1" >>confdefs.h
+
+ $as_echo "#define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 1" >>confdefs.h
+
+fi
+
+# Whether to build "avmedia" functionality or not.
+
+if test -z "$enable_avmedia"; then
+ enable_avmedia=yes
+fi
+
+BUILD_TYPE="$BUILD_TYPE AVMEDIA"
+if test "$enable_avmedia" = yes; then
+ $as_echo "#define HAVE_FEATURE_AVMEDIA 1" >>confdefs.h
+
+else
+ USE_AVMEDIA_DUMMY='TRUE'
+fi
+
+
+# Decide whether to build database connectivity stuff (including
+# Base) or not. We probably don't want to on non-desktop OSes.
+if test -z "$enable_database_connectivity"; then
+ # --disable-database-connectivity is unfinished work in progress
+ # and the iOS test app doesn't link if we actually try to use it.
+ # if test $_os != iOS -a $_os != Android; then
+ if test $_os != iOS; then
+ enable_database_connectivity=yes
+ fi
+fi
+
+if test "$enable_database_connectivity" = yes; then
+ BUILD_TYPE="$BUILD_TYPE DBCONNECTIVITY"
+ $as_echo "#define HAVE_FEATURE_DBCONNECTIVITY 1" >>confdefs.h
+
+fi
+
+if test -z "$enable_extensions"; then
+ # For iOS and Android Viewer, disable extensions unless specifically overridden with --enable-extensions.
+ if test $_os != iOS && test $_os != Android -o "$ENABLE_ANDROID_LOK" = TRUE ; then
+ enable_extensions=yes
+ fi
+fi
+
+if test "$enable_extensions" = yes; then
+ BUILD_TYPE="$BUILD_TYPE EXTENSIONS"
+ $as_echo "#define HAVE_FEATURE_EXTENSIONS 1" >>confdefs.h
+
+fi
+
+if test -z "$enable_scripting"; then
+ # Disable scripting for iOS unless specifically overridden
+ # with --enable-scripting.
+ if test $_os != iOS; then
+ enable_scripting=yes
+ fi
+fi
+
+DISABLE_SCRIPTING=''
+if test "$enable_scripting" = yes; then
+ BUILD_TYPE="$BUILD_TYPE SCRIPTING"
+ $as_echo "#define HAVE_FEATURE_SCRIPTING 1" >>confdefs.h
+
+else
+ DISABLE_SCRIPTING='TRUE'
+ SCPDEFS="$SCPDEFS -DDISABLE_SCRIPTING"
+fi
+
+if test $_os = iOS -o $_os = Android; then
+ # Disable dynamic_loading always for iOS and Android
+ enable_dynamic_loading=no
+elif test -z "$enable_dynamic_loading"; then
+ # Otherwise enable it unless specifically disabled
+ enable_dynamic_loading=yes
+fi
+
+DISABLE_DYNLOADING=''
+if test "$enable_dynamic_loading" = yes; then
+ BUILD_TYPE="$BUILD_TYPE DYNLOADING"
+else
+ DISABLE_DYNLOADING='TRUE'
+fi
+
+
+# remember SYSBASE value
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build and package galleries" >&5
+$as_echo_n "checking how to build and package galleries... " >&6; }
+if test -n "${with_galleries}"; then
+ if test "$with_galleries" = "build"; then
+ WITH_GALLERY_BUILD=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: build from source images internally" >&5
+$as_echo "build from source images internally" >&6; }
+ elif test "$with_galleries" = "no"; then
+ WITH_GALLERY_BUILD=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disable non-internal gallery build" >&5
+$as_echo "disable non-internal gallery build" >&6; }
+ else
+ as_fn_error $? "unknown value --with-galleries=$with_galleries" "$LINENO" 5
+ fi
+else
+ if test $_os != iOS -a $_os != Android; then
+ WITH_GALLERY_BUILD=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal src images for desktop" >&5
+$as_echo "internal src images for desktop" >&6; }
+ else
+ WITH_GALLERY_BUILD=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disable src image build" >&5
+$as_echo "disable src image build" >&6; }
+ fi
+fi
+
+
+CCACHE_DEPEND_MODE=
+if test "$_os" = "WINNT"; then
+ # on windows/VC build do not use ccache
+ CCACHE=""
+elif test "$enable_ccache" = "no"; then
+ CCACHE=""
+elif test -n "$enable_ccache" -o \( "$enable_ccache" = "" -a "$enable_icecream" != "yes" \); then
+ case "%$CC%$CXX%" in
+ # If $CC and/or $CXX already contain "ccache" (possibly suffixed with some version number etc),
+ # assume that's good then
+ *%ccache[-_' ']*|*/ccache[-_' ']*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: ccache seems to be included in a pre-defined CC and/or CXX" >&5
+$as_echo "$as_me: ccache seems to be included in a pre-defined CC and/or CXX" >&6;}
+ CCACHE_DEPEND_MODE=1
+ ;;
+ *)
+ # Extract the first word of "ccache", so it can be a program name with args.
+set dummy ccache; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_CCACHE+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $CCACHE in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_CCACHE="$CCACHE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_CCACHE="$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_CCACHE" && ac_cv_path_CCACHE="not found"
+ ;;
+esac
+fi
+CCACHE=$ac_cv_path_CCACHE
+if test -n "$CCACHE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
+$as_echo "$CCACHE" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$CCACHE" = "not found"; then
+ CCACHE=""
+ else
+ CCACHE_DEPEND_MODE=1
+ # Need to check for ccache version: otherwise prevents
+ # caching of the results (like "-x objective-c++" for Mac)
+ if test $_os = Darwin -o $_os = iOS; then
+ # Check ccache version
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether version of ccache is suitable" >&5
+$as_echo_n "checking whether version of ccache is suitable... " >&6; }
+ CCACHE_VERSION=`"$CCACHE" -V | "$AWK" '/^ccache version/{print $3}'`
+ CCACHE_NUMVER=`echo $CCACHE_VERSION | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
+ if test "$CCACHE_VERSION" = "2.4_OOo" -o "$CCACHE_NUMVER" -ge "030100"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $CCACHE_VERSION" >&5
+$as_echo "yes, $CCACHE_VERSION" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $CCACHE_VERSION" >&5
+$as_echo "no, $CCACHE_VERSION" >&6; }
+ CCACHE=""
+ CCACHE_DEPEND_MODE=
+ fi
+ fi
+ fi
+ ;;
+ esac
+else
+ CCACHE=""
+fi
+if test "$enable_ccache" = "nodepend"; then
+ CCACHE_DEPEND_MODE=""
+fi
+
+
+if test "$CCACHE" != ""; then
+ ccache_size_msg=$(ccache -s | tail -n 1 | sed 's/^[^0-9]*//' | sed -e 's/\.[0-9]*//')
+ ccache_size=$(echo "$ccache_size_msg" | grep "G" | sed -e 's/G.*$//')
+ if test "$ccache_size" = ""; then
+ ccache_size=$(echo "$ccache_size_msg" | grep "M" | sed -e 's/\ M.*$//')
+ if test "$ccache_size" = ""; then
+ ccache_size=0
+ fi
+ # we could not determine the size or it was less than 1GB -> disable auto-ccache
+ if test $ccache_size -lt 1024; then
+ CCACHE=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache's cache size is less than 1GB using it is counter-productive: Disabling auto-ccache detection" >&5
+$as_echo "$as_me: WARNING: ccache's cache size is less than 1GB using it is counter-productive: Disabling auto-ccache detection" >&2;}
+ add_warning "ccache's cache size is less than 1GB using it is counter-productive: auto-ccache detection disabled"
+ else
+ # warn that ccache may be too small for debug build
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache's cache size is less than 5GB using it may be counter-productive for debug or symbol-enabled build" >&5
+$as_echo "$as_me: WARNING: ccache's cache size is less than 5GB using it may be counter-productive for debug or symbol-enabled build" >&2;}
+ add_warning "ccache's cache size is less than 5GB using it may be counter-productive for debug or symbol-enabled build"
+ fi
+ else
+ if test $ccache_size -lt 5; then
+ #warn that ccache may be too small for debug build
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache's cache size is less than 5GB using it may be counter-productive for debug or symbol-enabled build" >&5
+$as_echo "$as_me: WARNING: ccache's cache size is less than 5GB using it may be counter-productive for debug or symbol-enabled build" >&2;}
+ add_warning "ccache's cache size is less than 5GB using it may be counter-productive for debug or symbol-enabled build"
+ fi
+ fi
+fi
+
+if test "$_os" != "WINNT"; then
+ GCC_HOME_SET="true"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc home" >&5
+$as_echo_n "checking gcc home... " >&6; }
+ if test -z "$with_gcc_home"; then
+ if test "$enable_icecream" = "yes"; then
+ if test -d "/usr/lib/icecc/bin"; then
+ GCC_HOME="/usr/lib/icecc/"
+ elif test -d "/usr/libexec/icecc/bin"; then
+ GCC_HOME="/usr/libexec/icecc/"
+ elif test -d "/opt/icecream/bin"; then
+ GCC_HOME="/opt/icecream/"
+ else
+ as_fn_error $? "Could not figure out the location of icecream GCC wrappers, manually use --with-gcc-home" "$LINENO" 5
+
+ fi
+ else
+ GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
+ GCC_HOME_SET="false"
+ fi
+ else
+ GCC_HOME="$with_gcc_home"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_HOME" >&5
+$as_echo "$GCC_HOME" >&6; }
+
+
+ if test "$GCC_HOME_SET" = "true"; then
+ if test -z "$CC"; then
+ CC="$GCC_HOME/bin/gcc"
+ CC_BASE="gcc"
+ fi
+ if test -z "$CXX"; then
+ CXX="$GCC_HOME/bin/g++"
+ CXX_BASE="g++"
+ fi
+ fi
+fi
+
+COMPATH=`dirname "$CC"`
+if test "$COMPATH" = "."; then
+ for ac_prog in $CC
+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 ${ac_cv_path_COMPATH+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $COMPATH in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_COMPATH="$COMPATH" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_COMPATH="$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
+COMPATH=$ac_cv_path_COMPATH
+if test -n "$COMPATH"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPATH" >&5
+$as_echo "$COMPATH" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$COMPATH" && break
+done
+
+ COMPATH=`echo $COMPATH | $SED "s@/[^/:]*\\\$@@"`
+fi
+COMPATH=`echo $COMPATH | $SED "s@/[Bb][Ii][Nn]\\\$@@"`
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Java support" >&5
+$as_echo_n "checking whether to build with Java support... " >&6; }
+if test "$with_java" != "no"; then
+ if test "$DISABLE_SCRIPTING" = TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, overridden by --disable-scripting" >&5
+$as_echo "no, overridden by --disable-scripting" >&6; }
+ ENABLE_JAVA=""
+ with_java=no
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_JAVA="TRUE"
+ $as_echo "#define HAVE_FEATURE_JAVA 1" >>confdefs.h
+
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_JAVA=""
+fi
+
+
+
+
+
+
+if test $_os = Darwin; then
+
+ # If no --with-macosx-sdk option is given, look for one
+
+ # The intent is that for "most" Mac-based developers, a suitable
+ # SDK will be found automatically without any configure options.
+
+ # For developers with a current Xcode, the lowest-numbered SDK
+ # higher than or equal to the minimum required should be found.
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS SDK to use" >&5
+$as_echo_n "checking what macOS SDK to use... " >&6; }
+ for _macosx_sdk in ${with_macosx_sdk-11.0 10.15 10.14 10.13}; do
+ MACOSX_SDK_PATH=`xcrun --sdk macosx${_macosx_sdk} --show-sdk-path 2> /dev/null`
+ if test -d "$MACOSX_SDK_PATH"; then
+ with_macosx_sdk="${_macosx_sdk}"
+ break
+ else
+ MACOSX_SDK_PATH="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macosx_sdk}.sdk"
+ if test -d "$MACOSX_SDK_PATH"; then
+ with_macosx_sdk="${_macosx_sdk}"
+ break
+ fi
+ fi
+ done
+ if test ! -d "$MACOSX_SDK_PATH"; then
+ as_fn_error $? "Could not find an appropriate macOS SDK" "$LINENO" 5
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK $with_macosx_sdk at $MACOSX_SDK_PATH" >&5
+$as_echo "SDK $with_macosx_sdk at $MACOSX_SDK_PATH" >&6; }
+
+ case $with_macosx_sdk in
+ 10.13)
+ MACOSX_SDK_VERSION=101300
+ ;;
+ 10.14)
+ MACOSX_SDK_VERSION=101400
+ ;;
+ 10.15)
+ MACOSX_SDK_VERSION=101500
+ ;;
+ 11.0)
+ MACOSX_SDK_VERSION=110000
+ ;;
+ *)
+ as_fn_error $? "with-macosx-sdk $with_macosx_sdk is not a supported value, supported values are 10.13--11.0" "$LINENO" 5
+ ;;
+ esac
+
+ if test "$host_cpu" = arm64 -a $MACOSX_SDK_VERSION -lt 110000; then
+ as_fn_error $? "with-macosx-sdk $with_macosx_sdk is not a supported value for Apple Silicon" "$LINENO" 5
+ fi
+
+ if test "$with_macosx_version_min_required" = "" ; then
+ if test "$host_cpu" = x86_64; then
+ with_macosx_version_min_required="10.10";
+ else
+ with_macosx_version_min_required="11.0";
+ fi
+ fi
+
+ if test "$with_macosx_version_max_allowed" = "" ; then
+ with_macosx_version_max_allowed="$with_macosx_sdk"
+ fi
+
+ # export this so that "xcrun" invocations later return matching values
+ DEVELOPER_DIR="${MACOSX_SDK_PATH%/SDKs*}"
+ DEVELOPER_DIR="${DEVELOPER_DIR%/Platforms*}"
+ export DEVELOPER_DIR
+ FRAMEWORKSHOME="$MACOSX_SDK_PATH/System/Library/Frameworks"
+ MACOSX_DEPLOYMENT_TARGET="$with_macosx_version_min_required"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xcode is new enough" >&5
+$as_echo_n "checking whether Xcode is new enough... " >&6; }
+ my_xcode_ver1=$(xcrun xcodebuild -version | head -n 1)
+ my_xcode_ver2=${my_xcode_ver1#Xcode }
+ my_xcode_ver3=$(printf %s "$my_xcode_ver2" | $AWK -F. '{ print $1*100+($2<100?$2:99) }')
+ if test "$my_xcode_ver3" -ge 1103; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($my_xcode_ver2)" >&5
+$as_echo "yes ($my_xcode_ver2)" >&6; }
+ else
+ as_fn_error $? "\"$my_xcode_ver1\" is too old or unrecognized, must be at least Xcode 11.3" "$LINENO" 5
+ fi
+
+ case "$with_macosx_version_min_required" in
+ 10.10)
+ MAC_OS_X_VERSION_MIN_REQUIRED="101000"
+ ;;
+ 10.11)
+ MAC_OS_X_VERSION_MIN_REQUIRED="101100"
+ ;;
+ 10.12)
+ MAC_OS_X_VERSION_MIN_REQUIRED="101200"
+ ;;
+ 10.13)
+ MAC_OS_X_VERSION_MIN_REQUIRED="101300"
+ ;;
+ 10.14)
+ MAC_OS_X_VERSION_MIN_REQUIRED="101400"
+ ;;
+ 10.15)
+ MAC_OS_X_VERSION_MIN_REQUIRED="101500"
+ ;;
+ 11.0)
+ MAC_OS_X_VERSION_MIN_REQUIRED="110000"
+ ;;
+ *)
+ as_fn_error $? "with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported values are 10.10--11.0" "$LINENO" 5
+ ;;
+ esac
+
+ LIBTOOL=/usr/bin/libtool
+ INSTALL_NAME_TOOL=install_name_tool
+ if test -z "$save_CC"; then
+ stdlib=-stdlib=libc++
+ if test "$ENABLE_LTO" = TRUE; then
+ lto=-flto
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking what C compiler to use" >&5
+$as_echo_n "checking what C compiler to use... " >&6; }
+ CC="`xcrun -find clang`"
+ CC_BASE=`first_arg_basename "$CC"`
+ if test "$host_cpu" = x86_64; then
+ CC+=" -target x86_64-apple-macos"
+ else
+ CC+=" -target arm64-apple-macos"
+ fi
+ CC+=" $lto -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking what C++ compiler to use" >&5
+$as_echo_n "checking what C++ compiler to use... " >&6; }
+ CXX="`xcrun -find clang++`"
+ CXX_BASE=`first_arg_basename "$CXX"`
+ if test "$host_cpu" = x86_64; then
+ CXX+=" -target x86_64-apple-macos"
+ else
+ CXX+=" -target arm64-apple-macos"
+ fi
+ CXX+=" $lto $stdlib -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
+$as_echo "$CXX" >&6; }
+
+ INSTALL_NAME_TOOL=`xcrun -find install_name_tool`
+ AR=`xcrun -find ar`
+ NM=`xcrun -find nm`
+ STRIP=`xcrun -find strip`
+ LIBTOOL=`xcrun -find libtool`
+ RANLIB=`xcrun -find ranlib`
+ fi
+
+ case "$with_macosx_version_max_allowed" in
+ 10.10)
+ MAC_OS_X_VERSION_MAX_ALLOWED="101000"
+ ;;
+ 10.11)
+ MAC_OS_X_VERSION_MAX_ALLOWED="101100"
+ ;;
+ 10.12)
+ MAC_OS_X_VERSION_MAX_ALLOWED="101200"
+ ;;
+ 10.13)
+ MAC_OS_X_VERSION_MAX_ALLOWED="101300"
+ ;;
+ 10.14)
+ MAC_OS_X_VERSION_MAX_ALLOWED="101400"
+ ;;
+ 10.15)
+ MAC_OS_X_VERSION_MAX_ALLOWED="101500"
+ ;;
+ 11.0)
+ MAC_OS_X_VERSION_MAX_ALLOWED="110000"
+ ;;
+ *)
+ as_fn_error $? "with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported values are 10.10--11.0" "$LINENO" 5
+ ;;
+ esac
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking that macosx-version-min-required is coherent with macosx-version-max-allowed" >&5
+$as_echo_n "checking that macosx-version-min-required is coherent with macosx-version-max-allowed... " >&6; }
+ if test $MAC_OS_X_VERSION_MIN_REQUIRED -gt $MAC_OS_X_VERSION_MAX_ALLOWED; then
+ as_fn_error $? "the version minimum required, $MAC_OS_X_VERSION_MIN_REQUIRED, must be <= the version maximum allowed, $MAC_OS_X_VERSION_MAX_ALLOWED" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+$as_echo "ok" >&6; }
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking that macosx-version-max-allowed is coherent with macos-with-sdk" >&5
+$as_echo_n "checking that macosx-version-max-allowed is coherent with macos-with-sdk... " >&6; }
+ if test $MAC_OS_X_VERSION_MAX_ALLOWED -gt $MACOSX_SDK_VERSION; then
+ as_fn_error $? "the version maximum allowed cannot be greater than the sdk level" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+$as_echo "ok" >&6; }
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: MAC_OS_X_VERSION_MIN_REQUIRED=$MAC_OS_X_VERSION_MIN_REQUIRED" >&5
+$as_echo "$as_me: MAC_OS_X_VERSION_MIN_REQUIRED=$MAC_OS_X_VERSION_MIN_REQUIRED" >&6;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: MAC_OS_X_VERSION_MAX_ALLOWED=$MAC_OS_X_VERSION_MAX_ALLOWED" >&5
+$as_echo "$as_me: MAC_OS_X_VERSION_MAX_ALLOWED=$MAC_OS_X_VERSION_MAX_ALLOWED" >&6;}
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do code signing" >&5
+$as_echo_n "checking whether to do code signing... " >&6; }
+
+ if test "$enable_macosx_code_signing" = yes; then
+ # By default use the first suitable certificate (?).
+
+ # http://stackoverflow.com/questions/13196291/difference-between-mac-developer-and-3rd-party-mac-developer-application
+ # says that the "Mac Developer" certificate is useful just for self-testing. For distribution
+ # outside the Mac App Store, use the "Developer ID Application" one, and for distribution in
+ # the App Store, the "3rd Party Mac Developer" one. I think it works best to the
+ # "Developer ID Application" one.
+
+ identity=`security find-identity -p codesigning -v 2>/dev/null | grep 'Developer ID Application:' | $AWK '{print $2}' |head -1`
+ if test -n "$identity"; then
+ MACOSX_CODESIGNING_IDENTITY=$identity
+ pretty_name=`security find-identity -p codesigning -v | grep "$MACOSX_CODESIGNING_IDENTITY" | sed -e 's/^[^"]*"//' -e 's/"//'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using the identity $MACOSX_CODESIGNING_IDENTITY for $pretty_name" >&5
+$as_echo "yes, using the identity $MACOSX_CODESIGNING_IDENTITY for $pretty_name" >&6; }
+ else
+ as_fn_error $? "cannot determine identity to use" "$LINENO" 5
+ fi
+ elif test -n "$enable_macosx_code_signing" -a "$enable_macosx_code_signing" != no ; then
+ MACOSX_CODESIGNING_IDENTITY=$enable_macosx_code_signing
+ pretty_name=`security find-identity -p codesigning -v | grep "$MACOSX_CODESIGNING_IDENTITY" | sed -e 's/^[^"]*"//' -e 's/"//'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using the identity $MACOSX_CODESIGNING_IDENTITY for $pretty_name" >&5
+$as_echo "yes, using the identity $MACOSX_CODESIGNING_IDENTITY for $pretty_name" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create a Mac App Store package" >&5
+$as_echo_n "checking whether to create a Mac App Store package... " >&6; }
+
+ if test -n "$enable_macosx_package_signing" -a -z "$MACOSX_CODESIGNING_IDENTITY"; then
+ as_fn_error $? "You forgot --enable-macosx-code-signing" "$LINENO" 5
+ elif test "$enable_macosx_package_signing" = yes; then
+ # By default use the first suitable certificate.
+ # It should be a "3rd Party Mac Developer Installer" one
+
+ identity=`security find-identity -v 2>/dev/null | grep '3rd Party Mac Developer Installer:' | awk '{print $2}' |head -1`
+ if test -n "$identity"; then
+ MACOSX_PACKAGE_SIGNING_IDENTITY=$identity
+ pretty_name=`security find-identity -v | grep "$MACOSX_PACKAGE_SIGNING_IDENTITY" | sed -e 's/^[^"]*"//' -e 's/"//'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using the identity $MACOSX_PACKAGE_SIGNING_IDENTITY for $pretty_name" >&5
+$as_echo "yes, using the identity $MACOSX_PACKAGE_SIGNING_IDENTITY for $pretty_name" >&6; }
+ else
+ as_fn_error $? "Could not find any suitable '3rd Party Mac Developer Installer' certificate" "$LINENO" 5
+ fi
+ elif test -n "$enable_macosx_package_signing"; then
+ MACOSX_PACKAGE_SIGNING_IDENTITY=$enable_macosx_package_signing
+ pretty_name=`security find-identity -v | grep "$MACOSX_PACKAGE_SIGNING_IDENTITY" | sed -e 's/^[^"]*"//' -e 's/"//'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using the identity $MACOSX_PACKAGE_SIGNING_IDENTITY for $pretty_name" >&5
+$as_echo "yes, using the identity $MACOSX_PACKAGE_SIGNING_IDENTITY for $pretty_name" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+
+ if test -n "$MACOSX_CODESIGNING_IDENTITY" -a -n "$MACOSX_PACKAGE_SIGNING_IDENTITY" -a "$MACOSX_CODESIGNING_IDENTITY" = "$MACOSX_PACKAGE_SIGNING_IDENTITY"; then
+ as_fn_error $? "You should not use the same identity for code and package signing" "$LINENO" 5
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to sandbox the application" >&5
+$as_echo_n "checking whether to sandbox the application... " >&6; }
+
+ if test -z "$MACOSX_CODESIGNING_IDENTITY" -a "$enable_macosx_sandbox" = yes; then
+ as_fn_error $? "macOS sandboxing requires code signing" "$LINENO" 5
+ elif test -n "$ENABLE_JAVA" -a "$enable_macosx_sandbox" = yes; then
+ as_fn_error $? "macOS sandboxing (actually App Store rules) disallows use of Java" "$LINENO" 5
+ elif test -n "$MACOSX_CODESIGNING_IDENTITY" -a "$enable_macosx_sandbox" = yes; then
+ ENABLE_MACOSX_SANDBOX=TRUE
+ $as_echo "#define HAVE_FEATURE_MACOSX_SANDBOX 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
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS app bundle identifier to use" >&5
+$as_echo_n "checking what macOS app bundle identifier to use... " >&6; }
+ MACOSX_BUNDLE_IDENTIFIER=$with_macosx_bundle_identifier
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_BUNDLE_IDENTIFIER" >&5
+$as_echo "$MACOSX_BUNDLE_IDENTIFIER" >&6; }
+fi
+
+
+
+
+
+ # Note that the macOS libtool command is unrelated to GNU libtool
+
+
+
+
+
+
+if test $_os = iOS; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK to use" >&5
+$as_echo_n "checking what iOS SDK to use... " >&6; }
+ current_sdk_ver=13.5
+ older_sdk_vers="13.4 13.2 13.1 13.0 12.4 12.2"
+ if test "$enable_ios_simulator" = "yes"; then
+ platform=iPhoneSimulator
+ versionmin=-mios-simulator-version-min=12.2
+ else
+ platform=iPhoneOS
+ versionmin=-miphoneos-version-min=12.2
+ fi
+ xcode_developer=`xcode-select -print-path`
+
+ for sdkver in $current_sdk_ver $older_sdk_vers; do
+ t=$xcode_developer/Platforms/$platform.platform/Developer/SDKs/$platform$sdkver.sdk
+ if test -d $t; then
+ sysroot=$t
+ break
+ fi
+ done
+
+ if test -z "$sysroot"; then
+ as_fn_error $? "Could not find iOS SDK, expected something like $xcode_developer/Platforms/$platform.platform/Developer/SDKs/${platform}${current_sdk_ver}.sdk" "$LINENO" 5
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sysroot" >&5
+$as_echo "$sysroot" >&6; }
+
+ # LTO is not really recommended for iOS builds,
+ # the link time will be astronomical
+ if test "$ENABLE_LTO" = TRUE; then
+ lto=-flto
+ fi
+
+ stdlib="-stdlib=libc++"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking what C compiler to use" >&5
+$as_echo_n "checking what C compiler to use... " >&6; }
+ CC="`xcrun -find clang`"
+ CC_BASE=`first_arg_basename "$CC"`
+ CC+=" -arch $host_cpu_for_clang -isysroot $sysroot $lto $versionmin"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking what C++ compiler to use" >&5
+$as_echo_n "checking what C++ compiler to use... " >&6; }
+ CXX="`xcrun -find clang++`"
+ CXX_BASE=`first_arg_basename "$CXX"`
+ CXX+=" -arch $host_cpu_for_clang $stdlib -isysroot $sysroot $lto $versionmin"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
+$as_echo "$CXX" >&6; }
+
+ INSTALL_NAME_TOOL=`xcrun -find install_name_tool`
+ AR=`xcrun -find ar`
+ NM=`xcrun -find nm`
+ STRIP=`xcrun -find strip`
+ LIBTOOL=`xcrun -find libtool`
+ RANLIB=`xcrun -find ranlib`
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to treat the installation as read-only" >&5
+$as_echo_n "checking whether to treat the installation as read-only... " >&6; }
+
+if test $_os = Darwin; then
+ enable_readonly_installset=yes
+elif test "$enable_extensions" != yes; then
+ enable_readonly_installset=yes
+fi
+if test "$enable_readonly_installset" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ $as_echo "#define HAVE_FEATURE_READONLY_INSTALLSET 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test $_os = Darwin; then
+ LIBO_BIN_FOLDER=MacOS
+ LIBO_ETC_FOLDER=Resources
+ LIBO_LIBEXEC_FOLDER=MacOS
+ LIBO_LIB_FOLDER=Frameworks
+ LIBO_LIB_PYUNO_FOLDER=Resources
+ LIBO_SHARE_FOLDER=Resources
+ LIBO_SHARE_HELP_FOLDER=Resources/help
+ LIBO_SHARE_JAVA_FOLDER=Resources/java
+ LIBO_SHARE_PRESETS_FOLDER=Resources/presets
+ LIBO_SHARE_READMES_FOLDER=Resources/readmes
+ LIBO_SHARE_RESOURCE_FOLDER=Resources/resource
+ LIBO_SHARE_SHELL_FOLDER=Resources/shell
+ LIBO_URE_BIN_FOLDER=MacOS
+ LIBO_URE_ETC_FOLDER=Resources/ure/etc
+ LIBO_URE_LIB_FOLDER=Frameworks
+ LIBO_URE_MISC_FOLDER=Resources/ure/share/misc
+ LIBO_URE_SHARE_JAVA_FOLDER=Resources/java
+elif test $_os = WINNT; then
+ LIBO_BIN_FOLDER=program
+ LIBO_ETC_FOLDER=program
+ LIBO_LIBEXEC_FOLDER=program
+ LIBO_LIB_FOLDER=program
+ LIBO_LIB_PYUNO_FOLDER=program
+ LIBO_SHARE_FOLDER=share
+ LIBO_SHARE_HELP_FOLDER=help
+ LIBO_SHARE_JAVA_FOLDER=program/classes
+ LIBO_SHARE_PRESETS_FOLDER=presets
+ LIBO_SHARE_READMES_FOLDER=readmes
+ LIBO_SHARE_RESOURCE_FOLDER=program/resource
+ LIBO_SHARE_SHELL_FOLDER=program/shell
+ LIBO_URE_BIN_FOLDER=program
+ LIBO_URE_ETC_FOLDER=program
+ LIBO_URE_LIB_FOLDER=program
+ LIBO_URE_MISC_FOLDER=program
+ LIBO_URE_SHARE_JAVA_FOLDER=program/classes
+else
+ LIBO_BIN_FOLDER=program
+ LIBO_ETC_FOLDER=program
+ LIBO_LIBEXEC_FOLDER=program
+ LIBO_LIB_FOLDER=program
+ LIBO_LIB_PYUNO_FOLDER=program
+ LIBO_SHARE_FOLDER=share
+ LIBO_SHARE_HELP_FOLDER=help
+ LIBO_SHARE_JAVA_FOLDER=program/classes
+ LIBO_SHARE_PRESETS_FOLDER=presets
+ LIBO_SHARE_READMES_FOLDER=readmes
+ if test "$enable_fuzzers" != yes; then
+ LIBO_SHARE_RESOURCE_FOLDER=program/resource
+ else
+ LIBO_SHARE_RESOURCE_FOLDER=resource
+ fi
+ LIBO_SHARE_SHELL_FOLDER=program/shell
+ LIBO_URE_BIN_FOLDER=program
+ LIBO_URE_ETC_FOLDER=program
+ LIBO_URE_LIB_FOLDER=program
+ LIBO_URE_MISC_FOLDER=program
+ LIBO_URE_SHARE_JAVA_FOLDER=program/classes
+fi
+cat >>confdefs.h <<_ACEOF
+#define LIBO_BIN_FOLDER "$LIBO_BIN_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_ETC_FOLDER "$LIBO_ETC_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_LIBEXEC_FOLDER "$LIBO_LIBEXEC_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_LIB_FOLDER "$LIBO_LIB_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_LIB_PYUNO_FOLDER "$LIBO_LIB_PYUNO_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_SHARE_FOLDER "$LIBO_SHARE_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_SHARE_HELP_FOLDER "$LIBO_SHARE_HELP_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_SHARE_JAVA_FOLDER "$LIBO_SHARE_JAVA_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_SHARE_PRESETS_FOLDER "$LIBO_SHARE_PRESETS_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_SHARE_RESOURCE_FOLDER "$LIBO_SHARE_RESOURCE_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_SHARE_SHELL_FOLDER "$LIBO_SHARE_SHELL_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_URE_BIN_FOLDER "$LIBO_URE_BIN_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_URE_ETC_FOLDER "$LIBO_URE_ETC_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_URE_LIB_FOLDER "$LIBO_URE_LIB_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_URE_MISC_FOLDER "$LIBO_URE_MISC_FOLDER"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define LIBO_URE_SHARE_JAVA_FOLDER "$LIBO_URE_SHARE_JAVA_FOLDER"
+_ACEOF
+
+
+# Not all of them needed in config_host.mk, add more if need arises
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+reg_get_value()
+{
+ # Return value: $regvalue
+ unset regvalue
+
+ local _regentry="/proc/registry${1}/${2}"
+ if test -f "$_regentry"; then
+ # Stop bash complaining about \0 bytes in input, as it can't handle them.
+ # Registry keys read via /proc/registry* are always \0 terminated!
+ local _regvalue=$(tr -d '\0' < "$_regentry")
+ if test $? -eq 0; then
+ regvalue=$_regvalue
+ fi
+ fi
+}
+
+# Get a value from the 32-bit side of the Registry
+reg_get_value_32()
+{
+ reg_get_value "32" "$1"
+}
+
+# Get a value from the 64-bit side of the Registry
+reg_get_value_64()
+{
+ reg_get_value "64" "$1"
+}
+
+if test "$_os" = "WINNT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a 64-bit LibreOffice" >&5
+$as_echo_n "checking whether to build a 64-bit LibreOffice... " >&6; }
+ if test "$enable_64_bit" = "" -o "$enable_64_bit" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ WINDOWS_SDK_ARCH="x86"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ WINDOWS_SDK_ARCH="x64"
+ BITNESS_OVERRIDE=64
+ fi
+fi
+if test "$_os" = "iOS" -o "$build_cpu" != "$host_cpu"; then
+ cross_compiling="yes"
+fi
+if test "$cross_compiling" = "yes"; then
+ export CROSS_COMPILING=TRUE
+else
+ CROSS_COMPILING=
+ BUILD_TYPE="$BUILD_TYPE NATIVE"
+fi
+
+
+# Use -isystem (gcc) if possible, to avoid warnings in 3rd party headers.
+# NOTE: must _not_ be used for bundled external libraries!
+ISYSTEM=
+if test "$GCC" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -isystem " >&5
+$as_echo_n "checking for -isystem ... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ISYSTEM="-isystem "
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test -n "$ISYSTEM"; 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 -z "$ISYSTEM"; then
+ # fall back to using -I
+ ISYSTEM=-I
+fi
+
+
+
+map_vs_year_to_version()
+{
+ # Return value: $vsversion
+
+ unset vsversion
+
+ case $1 in
+ 2019)
+ vsversion=16;;
+ *)
+ as_fn_error $? "Assertion failure - invalid argument \"$1\" to map_vs_year_to_version()" "$LINENO" 5;;
+ esac
+}
+
+vs_versions_to_check()
+{
+ # Args: $1 (optional) : versions to check, in the order of preference
+ # Return value: $vsversions
+
+ unset vsversions
+
+ if test -n "$1"; then
+ map_vs_year_to_version "$1"
+ vsversions=$vsversion
+ else
+ # We accept only 2019
+ vsversions="16"
+ fi
+}
+
+win_get_env_from_vsvars32bat()
+{
+ WRAPPERBATCHFILEPATH="`mktemp -t wrpXXXXXX.bat`"
+ # Also seems to be located in another directory under the same name: vsvars32.bat
+ # https://github.com/bazelbuild/bazel/blob/master/src/main/native/build_windows_jni.sh#L56-L57
+ printf '@call "%s/../Common7/Tools/VsDevCmd.bat" /no_logo\r\n' "$(cygpath -w $VC_PRODUCT_DIR)" > $WRAPPERBATCHFILEPATH
+ printf '@setlocal\r\n@echo %%%s%%\r\n@endlocal\r\n' "$1" >> $WRAPPERBATCHFILEPATH
+ chmod +x $WRAPPERBATCHFILEPATH
+ _win_get_env_from_vsvars32bat=$("$WRAPPERBATCHFILEPATH" | tr -d '\r')
+ rm -f $WRAPPERBATCHFILEPATH
+ printf '%s' "$_win_get_env_from_vsvars32bat"
+}
+
+find_ucrt()
+{
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v10.0/InstallationFolder"
+ if test -n "$regvalue"; then
+ PathFormat "$regvalue"
+ UCRTSDKDIR=$formatted_path
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v10.0/ProductVersion"
+ UCRTVERSION=$regvalue
+ # Rest if not exist
+ if ! test -d "${UCRTSDKDIR}Include/$UCRTVERSION/ucrt"; then
+ UCRTSDKDIR=
+ fi
+ fi
+ if test -z "$UCRTSDKDIR"; then
+ ide_env_dir="$VC_PRODUCT_DIR/../Common7/Tools/"
+ ide_env_file="${ide_env_dir}VsDevCmd.bat"
+ if test -f "$ide_env_file"; then
+ PathFormat "$(win_get_env_from_vsvars32bat UniversalCRTSdkDir)"
+ UCRTSDKDIR=$formatted_path
+ UCRTVERSION=$(win_get_env_from_vsvars32bat UCRTVersion)
+ if test "$UCRTVERSION" = 10.0.15063.0 \
+ -a ! -f "${UCRTSDKDIR}Include/10.0.15063.0/um/sqlext.h" \
+ -a -f "${UCRTSDKDIR}Include/10.0.14393.0/um/sqlext.h"
+ then
+ UCRTVERSION=10.0.14393.0
+ fi
+ else
+ as_fn_error $? "No UCRT found" "$LINENO" 5
+ fi
+ fi
+}
+
+find_msvc()
+{
+ # Find Visual C++ 2019
+ # Args: $1 (optional) : The VS version year
+ # Return values: $vctest, $vcyear, $vcnum, $vcnumwithdot, $vcbuildnumber
+
+ unset vctest vcnum vcnumwithdot vcbuildnumber
+
+ vs_versions_to_check "$1"
+ vswhere="$(perl -e 'print $ENV{"ProgramFiles(x86)"}')"
+ vswhere+="\\Microsoft Visual Studio\\Installer\\vswhere.exe"
+ PathFormat "$vswhere"
+ vswhere=$formatted_path
+ for ver in $vsversions; do
+ vswhereoutput=`$vswhere -version "[ $ver , $(expr $ver + 1) )" -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath | head -1`
+ # Fall back to all MS products (this includes VC++ Build Tools)
+ if ! test -n "$vswhereoutput"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking VC++ Build Tools and similar" >&5
+$as_echo_n "checking VC++ Build Tools and similar... " >&6; }
+ vswhereoutput=`$vswhere -products \* -version "[ $ver , $(expr $ver + 1) )" -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath | head -1`
+ fi
+ if test -n "$vswhereoutput"; then
+ PathFormat "$vswhereoutput"
+ vctest=$formatted_path
+ break
+ fi
+ done
+
+ if test -n "$vctest"; then
+ vcnumwithdot="$ver.0"
+ case "$vcnumwithdot" in
+ 16.0)
+ vcyear=2019
+ vcnum=160
+ ;;
+ esac
+ vcbuildnumber=`ls $vctest/VC/Tools/MSVC -A1r | head -1`
+
+ fi
+}
+
+SOLARINC=
+MSBUILD_PATH=
+DEVENV=
+if test "$_os" = "WINNT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Visual C++" >&5
+$as_echo_n "checking Visual C++... " >&6; }
+ find_msvc "$with_visual_studio"
+ if test -z "$vctest"; then
+ if test -n "$with_visual_studio"; then
+ as_fn_error $? "no Visual Studio $with_visual_studio installation found" "$LINENO" 5
+ else
+ as_fn_error $? "no Visual Studio 2019 installation found" "$LINENO" 5
+ fi
+ fi
+
+ if test "$BITNESS_OVERRIDE" = ""; then
+ if test -f "$vctest/VC/Tools/MSVC/$vcbuildnumber/bin/HostX86/x86/cl.exe"; then
+ VC_PRODUCT_DIR=$vctest/VC
+ else
+ as_fn_error $? "no compiler (cl.exe) in $vctest/VC/Tools/MSVC/$vcbuildnumber/bin/HostX86/x86" "$LINENO" 5
+ fi
+ else
+ if test -f "$vctest/VC/Tools/MSVC/$vcbuildnumber/bin/HostX64/x64/cl.exe"; then
+ VC_PRODUCT_DIR=$vctest/VC
+ else
+ as_fn_error $? "no compiler (cl.exe) in $vctest/VC/Tools/MSVC/$vcbuildnumber/bin/HostX64/x64" "$LINENO" 5
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VC_PRODUCT_DIR" >&5
+$as_echo "$VC_PRODUCT_DIR" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for short pathname of VC product directory" >&5
+$as_echo_n "checking for short pathname of VC product directory... " >&6; }
+ VC_PRODUCT_DIR=`win_short_path_for_make "$VC_PRODUCT_DIR"`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VC_PRODUCT_DIR" >&5
+$as_echo "$VC_PRODUCT_DIR" >&6; }
+
+ UCRTSDKDIR=
+ UCRTVERSION=
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCRT location" >&5
+$as_echo_n "checking for UCRT location... " >&6; }
+ find_ucrt
+ # find_ucrt errors out if it doesn't find it
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
+$as_echo "found" >&6; }
+ PathFormat "${UCRTSDKDIR}Include/$UCRTVERSION/ucrt"
+ ucrtincpath_formatted=$formatted_path
+ # SOLARINC is used for external modules and must be set too.
+ # And no, it's not sufficient to set SOLARINC only, as configure
+ # itself doesn't honour it.
+ SOLARINC="$SOLARINC -I$ucrtincpath_formatted"
+ CFLAGS="$CFLAGS -I$ucrtincpath_formatted"
+ CXXFLAGS="$CXXFLAGS -I$ucrtincpath_formatted"
+ CPPFLAGS="$CPPFLAGS -I$ucrtincpath_formatted"
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSBuild.exe location for: $vcnumwithdot" >&5
+$as_echo_n "checking for MSBuild.exe location for: $vcnumwithdot... " >&6; }
+ # Find the proper version of MSBuild.exe to use based on the VS version
+ reg_get_value_32 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSBuild/$vcnumwithdot/MSBuildOverrideTasksPath
+ if test -n "$regvalue" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found: $regvalue" >&5
+$as_echo "found: $regvalue" >&6; }
+ MSBUILD_PATH=`win_short_path_for_make "$regvalue"`
+ else
+ if test "$vcnumwithdot" = "16.0"; then
+ if test "$BITNESS_OVERRIDE" = ""; then
+ regvalue="$VC_PRODUCT_DIR/../MSBuild/Current/Bin"
+ else
+ regvalue="$VC_PRODUCT_DIR/../MSBuild/Current/Bin/amd64"
+ fi
+ else
+ if test "$BITNESS_OVERRIDE" = ""; then
+ regvalue="$VC_PRODUCT_DIR/../MSBuild/$vcnumwithdot/Bin"
+ else
+ regvalue="$VC_PRODUCT_DIR/../MSBuild/$vcnumwithdot/Bin/amd64"
+ fi
+ fi
+ MSBUILD_PATH=`win_short_path_for_make "$regvalue"`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $regvalue" >&5
+$as_echo "$regvalue" >&6; }
+ fi
+
+ # Find the version of devenv.exe
+ # MSVC 2017 devenv does not start properly from a DOS 8.3 path
+ DEVENV=$(cygpath -lm "$VC_PRODUCT_DIR/../Common7/IDE/devenv.exe")
+ if test ! -e "$DEVENV"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No devenv.exe found - this is expected for VC++ Build Tools" >&5
+$as_echo "$as_me: WARNING: No devenv.exe found - this is expected for VC++ Build Tools" >&2;}
+ fi
+
+
+ VC_HOST_DIR=
+ MSPDB_PATH=
+ CL_PATH=
+
+ if "$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/HostX64/x64/cl.exe" -? </dev/null >/dev/null 2>&1; then
+ VC_HOST_DIR="HostX64"
+ MSPDB_PATH="$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x64"
+ else
+ VC_HOST_DIR="HostX86"
+ MSPDB_PATH="$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x86"
+ fi
+
+ if test "$BITNESS_OVERRIDE" = ""; then
+ CL_PATH="$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x86"
+ else
+ CL_PATH="$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x64"
+ fi
+
+ # MSVC 15.0 has libraries from 14.0?
+ mspdbnum="140"
+
+ if test ! -e "$MSPDB_PATH/mspdb${mspdbnum}.dll"; then
+ as_fn_error $? "No mspdb${mspdbnum}.dll in $MSPDB_PATH, Visual Studio installation broken?" "$LINENO" 5
+ fi
+
+ TEMP_PATH=`cygpath -d "$MSPDB_PATH"`
+ PATH="`cygpath -u "$TEMP_PATH"`:$PATH"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking cl.exe" >&5
+$as_echo_n "checking cl.exe... " >&6; }
+
+ # Is there really ever a need to pass CC explicitly? Surely we can hope to get all the
+ # automagical niceness to work OK? If somebody has some unsupported compiler in some weird
+ # location, isn't it likely that lots of other things needs changes, too, and just setting CC
+ # is not enough?
+
+ if test -z "$MSVC_CXX"; then
+ if test -f "$CL_PATH/cl.exe"; then
+ MSVC_CXX="$CL_PATH/cl.exe"
+ fi
+
+ # This gives us a posix path with 8.3 filename restrictions
+ MSVC_CXX=`win_short_path_for_make "$MSVC_CXX"`
+ fi
+
+ if test -z "$CC"; then
+ CC=$MSVC_CXX
+ CC_BASE=`first_arg_basename "$CC"`
+ fi
+ if test -z "$CXX"; then
+ CXX=$MSVC_CXX
+ CXX_BASE=`first_arg_basename "$CXX"`
+ fi
+
+ if test -n "$CC"; then
+ # Remove /cl.exe from CC case insensitive
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Visual C++ $vcyear ($CC)" >&5
+$as_echo "found Visual C++ $vcyear ($CC)" >&6; }
+ if test "$BITNESS_OVERRIDE" = ""; then
+ COMPATH="$VC_PRODUCT_DIR"
+ else
+ if test -n "$VC_PRODUCT_DIR"; then
+ COMPATH=$VC_PRODUCT_DIR
+ fi
+ fi
+
+ COMPATH="$COMPATH/Tools/MSVC/$vcbuildnumber"
+
+ export INCLUDE=`cygpath -d "$COMPATH\Include"`
+
+ PathFormat "$COMPATH"
+ COMPATH=`win_short_path_for_make "$formatted_path"`
+
+ VCVER=$vcnum
+
+ # The WINDOWS_SDK_ACCEPTABLE_VERSIONS is mostly an educated guess... Assuming newer ones
+ # are always "better", we list them in reverse chronological order.
+
+ case "$vcnum" in
+ 160)
+ WINDOWS_SDK_ACCEPTABLE_VERSIONS="10.0 8.1A 8.1 8.0"
+ ;;
+ esac
+
+ # The expectation is that --with-windows-sdk should not need to be used
+ if test -n "$with_windows_sdk"; then
+ case " $WINDOWS_SDK_ACCEPTABLE_VERSIONS " in
+ *" "$with_windows_sdk" "*)
+ WINDOWS_SDK_ACCEPTABLE_VERSIONS=$with_windows_sdk
+ ;;
+ *)
+ as_fn_error $? "Windows SDK $with_windows_sdk is not known to work with VS $vcyear" "$LINENO" 5
+ ;;
+ esac
+ fi
+
+ # Make AC_COMPILE_IFELSE etc. work (set by AC_PROG_C, which we don't use for MSVC)
+ ac_objext=obj
+ ac_exeext=exe
+
+ else
+ as_fn_error $? "Visual C++ not found after all, huh" "$LINENO" 5
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC_BASE is at least Visual Studio 2019 version 16.4" >&5
+$as_echo_n "checking $CC_BASE is at least Visual Studio 2019 version 16.4... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ // See <https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros> for mapping
+ // between Visual Studio versions and _MSC_VER:
+ #if _MSC_VER < 1924
+ #error
+ #endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ as_fn_error $? "no" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ # Check for 64-bit (cross-)compiler to use to build the 64-bit
+ # version of the Explorer extension (and maybe other small
+ # bits, too) needed when installing a 32-bit LibreOffice on a
+ # 64-bit OS. The 64-bit Explorer extension is a feature that
+ # has been present since long in OOo. Don't confuse it with
+ # building LibreOffice itself as 64-bit code.
+
+ BUILD_X64=
+ CXX_X64_BINARY=
+
+ if test "$BITNESS_OVERRIDE" = ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a x64 compiler and libraries for 64-bit Explorer extensions" >&5
+$as_echo_n "checking for a x64 compiler and libraries for 64-bit Explorer extensions... " >&6; }
+ if test -f "$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/atlmfc/lib/x64/atls.lib" || \
+ test -f "$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/atlmfc/lib/spectre/x64/atls.lib"; then
+ if "$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x64/cl.exe" -? </dev/null >/dev/null 2>&1; then
+ BUILD_X64=TRUE
+ CXX_X64_BINARY=`win_short_path_for_make "$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x64/cl.exe"`
+ fi
+ fi
+ if test "$BUILD_X64" = TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
+$as_echo "found" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
+$as_echo "not found" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Installation set will not contain 64-bit Explorer extensions" >&5
+$as_echo "$as_me: WARNING: Installation set will not contain 64-bit Explorer extensions" >&2;}
+ fi
+ else
+ CXX_X64_BINARY=$CXX
+ fi
+
+
+ # These are passed to the environment and then used in gbuild/platform/com_MSC_class.mk
+
+
+ # Check for 32-bit compiler to use to build the 32-bit TWAIN shim
+ # needed to support TWAIN scan on both 32- and 64-bit systems
+
+ BUILD_X86=
+
+ if test "$BITNESS_OVERRIDE" = "64"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a x86 compiler and libraries for 32-bit binaries required for TWAIN support" >&5
+$as_echo_n "checking for a x86 compiler and libraries for 32-bit binaries required for TWAIN support... " >&6; }
+ if test -n "$CXX_X86_BINARY"; then
+ BUILD_X86=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: preset" >&5
+$as_echo "preset" >&6; }
+ elif "$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x86/cl.exe" -? </dev/null >/dev/null 2>&1; then
+ BUILD_X86=TRUE
+ CXX_X86_BINARY=`win_short_path_for_make "$VC_PRODUCT_DIR/Tools/MSVC/$vcbuildnumber/bin/$VC_HOST_DIR/x86/cl.exe"`
+ CXX_X86_BINARY+=" /arch:SSE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
+$as_echo "found" >&6; }
+ else
+ CXX_X86_BINARY=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
+$as_echo "not found" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Installation set will not contain 32-bit binaries required for TWAIN support" >&5
+$as_echo "$as_me: WARNING: Installation set will not contain 32-bit binaries required for TWAIN support" >&2;}
+ fi
+ else
+ BUILD_X86=TRUE
+ CXX_X86_BINARY=$MSVC_CXX
+ fi
+
+
+fi
+
+
+
+
+#
+# unowinreg.dll
+#
+UNOWINREG_DLL="185d60944ea767075d27247c3162b3bc-unowinreg.dll"
+
+
+COM_IS_CLANG=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is actually Clang" >&5
+$as_echo_n "checking whether the compiler is actually Clang... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #ifndef __clang__
+ you lose
+ #endif
+ int foo=42;
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ COM_IS_CLANG=TRUE
+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
+
+
+CC_PLAIN=$CC
+CLANGVER=
+if test "$COM_IS_CLANG" = TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang is new enough" >&5
+$as_echo_n "checking whether Clang is new enough... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #if !defined __apple_build_version__
+ #error
+ #endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ my_apple_clang=yes
+else
+ my_apple_clang=
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ if test "$my_apple_clang" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed yes (Apple Clang)" >&5
+$as_echo "assumed yes (Apple Clang)" >&6; }
+ else
+ if test "$_os" = WINNT; then
+ my_args="/EP /TC"
+ CC_PLAIN=
+ for i in $CC; do
+ case $i in
+ -FIIntrin.h)
+ ;;
+ *)
+ CC_PLAIN="$CC_PLAIN $i"
+ ;;
+ esac
+ done
+ else
+ my_args="-E -P"
+ fi
+ clang_version=`echo __clang_major__.__clang_minor__.__clang_patchlevel__ | $CC_PLAIN $my_args - | sed 's/ //g'`
+ CLANG_FULL_VERSION=`echo __clang_version__ | $CC_PLAIN $my_args -`
+ CLANGVER=`echo $clang_version \
+ | $AWK -F. '{ print \$1*10000+(\$2<100?\$2:99)*100+(\$3<100?\$3:99) }'`
+ if test "$CLANGVER" -ge 50002; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($clang_version)" >&5
+$as_echo "yes ($clang_version)" >&6; }
+ else
+ as_fn_error $? "\"$CLANG_FULL_VERSION\" is too old or unrecognized, must be at least Clang 5.0.2" "$LINENO" 5
+ fi
+ cat >>confdefs.h <<_ACEOF
+#define CLANG_VERSION $CLANGVER
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define CLANG_FULL_VERSION $CLANG_FULL_VERSION
+_ACEOF
+
+ fi
+fi
+
+SHOWINCLUDES_PREFIX=
+if test "$_os" = WINNT; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the dependency generation prefix (cl.exe -showIncludes)" >&5
+$as_echo_n "checking the dependency generation prefix (cl.exe -showIncludes)... " >&6; }
+ echo "#include <stdlib.h>" > conftest.c
+ SHOWINCLUDES_PREFIX=`$CC_PLAIN $CFLAGS -c -showIncludes conftest.c 2>/dev/null | \
+ grep 'stdlib\.h' | head -n1 | sed 's/ [[:alpha:]]:.*//'`
+ rm -f conftest.c conftest.obj
+ if test -z "$SHOWINCLUDES_PREFIX"; then
+ as_fn_error $? "cannot determine the -showIncludes prefix" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SHOWINCLUDES_PREFIX\"" >&5
+$as_echo "\"$SHOWINCLUDES_PREFIX\"" >&6; }
+ fi
+fi
+
+
+#
+# prefix C with ccache if needed
+#
+if test "$CCACHE" != ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE is already ccached" >&5
+$as_echo_n "checking whether $CC_BASE is already ccached... " >&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
+
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS --ccache-skip -O2"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ use_ccache=yes
+else
+ use_ccache=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ if test $use_ccache = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ CC="$CCACHE $CC"
+ CC_BASE="ccache $CC_BASE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ CFLAGS=$save_CFLAGS
+ 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
+
+# ===================================================================
+# check various GCC options that Clang does not support now but maybe
+# will somewhen in the future, check them even for GCC, so that the
+# flags are set
+# ===================================================================
+
+HAVE_GCC_GGDB2=
+if test "$GCC" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -ggdb2" >&5
+$as_echo_n "checking whether $CC_BASE supports -ggdb2... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -ggdb2"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_GCC_GGDB2=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test "$HAVE_GCC_GGDB2" = "TRUE"; 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
+
+ if test "$host_cpu" = "m68k"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -mlong-jump-table-offsets" >&5
+$as_echo_n "checking whether $CC_BASE supports -mlong-jump-table-offsets... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -mlong-jump-table-offsets"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_GCC_LONG_JUMP_TABLE_OFFSETS=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test "$HAVE_GCC_LONG_JUMP_TABLE_OFFSETS" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ as_fn_error $? "no" "$LINENO" 5
+ fi
+ fi
+fi
+
+
+if test "$GCC" = "yes" -a -z "$COM_IS_CLANG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GCC version" >&5
+$as_echo_n "checking the GCC version... " >&6; }
+ _gcc_version=`$CC -dumpversion`
+ gcc_full_version=$(printf '%s' "$_gcc_version" | \
+ $AWK -F. '{ print $1*10000+$2*100+(NF<3?1:$3) }')
+ GCC_VERSION=`echo $_gcc_version | $AWK -F. '{ print \$1*100+\$2 }'`
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc $_gcc_version ($gcc_full_version)" >&5
+$as_echo "gcc $_gcc_version ($gcc_full_version)" >&6; }
+
+ if test "$gcc_full_version" -lt 70000; then
+ as_fn_error $? "GCC $_gcc_version is too old, must be at least GCC 7.0.0" "$LINENO" 5
+ fi
+else
+ # Explicitly force GCC_VERSION to be empty, even for Clang, to check incorrect uses.
+ # GCC version should generally be checked only when handling GCC-specific bugs, for testing
+ # things like features configure checks should be used, otherwise they may e.g. fail with Clang
+ # (which reports itself as GCC 4.2.1).
+ GCC_VERSION=
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with additional debug utilities" >&5
+$as_echo_n "checking whether to build with additional debug utilities... " >&6; }
+if test -n "$enable_dbgutil" -a "$enable_dbgutil" != "no"; then
+ ENABLE_DBGUTIL="TRUE"
+ # this is an extra var so it can have different default on different MSVC
+ # versions (in case there are version specific problems with it)
+ MSVC_USE_DEBUG_RUNTIME="TRUE"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ # cppunit and graphite expose STL in public headers
+ if test "$with_system_cppunit" = "yes"; then
+ as_fn_error $? "--with-system-cppunit conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_cppunit=no
+ fi
+ if test "$with_system_graphite" = "yes"; then
+ as_fn_error $? "--with-system-graphite conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_graphite=no
+ fi
+ if test "$with_system_orcus" = "yes"; then
+ as_fn_error $? "--with-system-orcus conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_orcus=no
+ fi
+ if test "$with_system_libcmis" = "yes"; then
+ as_fn_error $? "--with-system-libcmis conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_libcmis=no
+ fi
+ if test "$with_system_hunspell" = "yes"; then
+ as_fn_error $? "--with-system-hunspell conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_hunspell=no
+ fi
+ if test "$with_system_gpgmepp" = "yes"; then
+ as_fn_error $? "--with-system-gpgmepp conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_gpgmepp=no
+ fi
+ # As mixing system libwps and non-system libnumbertext or vice versa likely causes trouble (see
+ # 603074c5f2b84de8a24593faf807da784b040625 "Pass _GLIBCXX_DEBUG into external/libwps" and the
+ # mail thread starting at <https://gcc.gnu.org/ml/gcc/2018-05/msg00057.html> "libstdc++: ODR
+ # violation when using std::regex with and without -D_GLIBCXX_DEBUG"), simply make sure neither
+ # of those two is using the system variant:
+ if test "$with_system_libnumbertext" = "yes"; then
+ as_fn_error $? "--with-system-libnumbertext conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_libnumbertext=no
+ fi
+ if test "$with_system_libwps" = "yes"; then
+ as_fn_error $? "--with-system-libwps conflicts with --enable-dbgutil" "$LINENO" 5
+ else
+ with_system_libwps=no
+ fi
+else
+ ENABLE_DBGUTIL=""
+ MSVC_USE_DEBUG_RUNTIME=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+if test -n "$enable_debug" && test "$enable_debug" != "yes" && test "$enable_debug" != "no"; then
+ as_fn_error $? "--enable-debug now accepts only yes or no, use --enable-symbols" "$LINENO" 5
+fi
+if test -n "$ENABLE_DBGUTIL" -a "$enable_debug" = "no"; then
+ if test -z "$libo_fuzzed_enable_debug"; then
+ as_fn_error $? "--disable-debug cannot be used with --enable-dbgutil" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Resetting --enable-debug=yes" >&5
+$as_echo "$as_me: Resetting --enable-debug=yes" >&6;}
+ enable_debug=yes
+ fi
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do a debug build" >&5
+$as_echo_n "checking whether to do a debug build... " >&6; }
+if test -n "$ENABLE_DBGUTIL" -o \( -n "$enable_debug" -a "$enable_debug" != "no" \) ; then
+ ENABLE_DEBUG="TRUE"
+ if test -n "$ENABLE_DBGUTIL" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (dbgutil)" >&5
+$as_echo "yes (dbgutil)" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+else
+ ENABLE_DEBUG=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+check_use_ld()
+{
+ use_ld=$1
+ use_ld_fail_if_error=$2
+ use_ld_ok=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fuse-ld=$use_ld linker support" >&5
+$as_echo_n "checking for -fuse-ld=$use_ld linker support... " >&6; }
+ use_ld_ldflags_save="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -fuse-ld=$use_ld"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+
+int
+main ()
+{
+
+printf ("hello world\n");
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ USE_LD=$use_ld
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -n "$USE_LD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes " >&5
+$as_echo "yes " >&6; }
+ use_ld_ok=yes
+ else
+ if test -n "$use_ld_fail_if_error"; then
+ as_fn_error $? "no " "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5
+$as_echo "no " >&6; }
+ fi
+ fi
+ if test -n "$use_ld_ok"; then
+ return 0
+ fi
+ LDFLAGS="$use_ld_ldflags_save"
+ return 1
+}
+USE_LD=
+if test "$enable_ld" != "no"; then
+ if test "$GCC" = "yes"; then
+ if test -n "$enable_ld"; then
+ check_use_ld "$enable_ld" fail_if_error
+ elif test -z "$ENABLE_DEBUG$ENABLE_DBGUTIL"; then
+ true
+ elif test -n "$COM_IS_CLANG"; then
+ check_use_ld lld
+ if test $? -ne 0; then
+ check_use_ld gold
+ fi
+ else
+ # For gcc first try gold, new versions also support lld.
+ check_use_ld gold
+ if test $? -ne 0; then
+ check_use_ld lld
+ fi
+ fi
+ ld_output=$(echo 'int main() { return 0; }' | $CC -Wl,-v -x c -o conftest.out - $CFLAGS $LDFLAGS 2>/dev/null)
+ rm conftest.out
+ ld_used=$(echo "$ld_output" | grep -E '(^GNU gold|^GNU ld|^LLD)')
+ if test -z "$ld_used"; then
+ ld_used="unknown"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that is used" >&5
+$as_echo_n "checking for linker that is used... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_used" >&5
+$as_echo "$ld_used" >&6; }
+ if test -n "$ENABLE_DEBUG$ENABLE_DBGUTIL"; then
+ if echo "$ld_used" | grep -q "^GNU ld"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The default GNU linker is slow, consider using the LLD or the GNU gold linker." >&5
+$as_echo "$as_me: WARNING: The default GNU linker is slow, consider using the LLD or the GNU gold linker." >&2;}
+ add_warning "The default GNU linker is slow, consider using the LLD or the GNU gold linker."
+ fi
+ fi
+ else
+ if test "$enable_ld" = "yes"; then
+ as_fn_error $? "--enable-ld not supported" "$LINENO" 5
+ fi
+ fi
+fi
+
+
+HAVE_LD_BSYMBOLIC_FUNCTIONS=
+if test "$GCC" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker support" >&5
+$as_echo_n "checking for -Bsymbolic-functions linker support... " >&6; }
+ bsymbolic_functions_ldflags_save=$LDFLAGS
+ LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+
+int
+main ()
+{
+
+printf ("hello world\n");
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found " >&5
+$as_echo "found " >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found " >&5
+$as_echo "not found " >&6; }
+ fi
+ LDFLAGS=$bsymbolic_functions_ldflags_save
+fi
+
+
+LD_GC_SECTIONS=
+if test "$GCC" = "yes"; then
+ for flag in "--gc-sections" "-dead_strip"; do
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $flag linker support" >&5
+$as_echo_n "checking for $flag linker support... " >&6; }
+ ldflags_save=$LDFLAGS
+ LDFLAGS="$LDFLAGS -Wl,$flag"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+
+int
+main ()
+{
+
+printf ("hello world\n");
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+ LD_GC_SECTIONS="-Wl,$flag"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found " >&5
+$as_echo "found " >&6; }
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found " >&5
+$as_echo "not found " >&6; }
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$ldflags_save
+ if test -n "$LD_GC_SECTIONS"; then
+ break
+ fi
+ done
+fi
+
+
+HAVE_GSPLIT_DWARF=
+if test "$enable_split_debug" != no; then
+ if test "$enable_split_debug" = yes -o \( "$test_split_debug" = "yes" -a -n "$ENABLE_DEBUG$ENABLE_DBGUTIL" \); then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -gsplit-dwarf" >&5
+$as_echo_n "checking whether $CC_BASE supports -gsplit-dwarf... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -gsplit-dwarf"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_GCC_SPLIT_DWARF=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test "$HAVE_GCC_SPLIT_DWARF" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ if test "$enable_split_debug" = yes; then
+ as_fn_error $? "no" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ fi
+ fi
+ if test -z "$HAVE_GCC_SPLIT_DWARF" -a "$test_split_debug" = "yes" -a -n "$ENABLE_DEBUG$ENABLE_DBGUTIL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler is not capable of creating split debug info, linking will require more time and disk space." >&5
+$as_echo "$as_me: WARNING: Compiler is not capable of creating split debug info, linking will require more time and disk space." >&2;}
+ add_warning "Compiler is not capable of creating split debug info, linking will require more time and disk space."
+ fi
+fi
+
+
+HAVE_CLANG_DEBUG_INFO_KIND_CONSTRUCTOR=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -Xclang -debug-info-kind=constructor" >&5
+$as_echo_n "checking whether $CC_BASE supports -Xclang -debug-info-kind=constructor... " >&6; }
+save_CFLAGS=$CFLAGS
+CFLAGS="$CFLAGS -Werror -Xclang -debug-info-kind=constructor"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_CLANG_DEBUG_INFO_KIND_CONSTRUCTOR=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+CFLAGS=$save_CFLAGS
+if test "$HAVE_CLANG_DEBUG_INFO_KIND_CONSTRUCTOR" = "TRUE"; 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
+
+
+ENABLE_GDB_INDEX=
+if test "$enable_gdb_index" != "no"; then
+ if test "$enable_gdb_index" = yes -o \( "$test_gdb_index" = "yes" -o -n "$ENABLE_DEBUG$ENABLE_DBGUTIL" \); then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -ggnu-pubnames" >&5
+$as_echo_n "checking whether $CC_BASE supports -ggnu-pubnames... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -ggnu-pubnames"
+ have_ggnu_pubnames=
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ have_ggnu_pubnames=TRUE
+else
+ have_ggnu_pubnames=
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$have_ggnu_pubnames" != "TRUE"; then
+ if test "$enable_gdb_index" = "yes"; then
+ as_fn_error --enable-gdb-index not supported "no" "$LINENO" 5
+ 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: yes " >&5
+$as_echo "yes " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -Wl,--gdb-index" >&5
+$as_echo_n "checking whether $CC_BASE supports -Wl,--gdb-index... " >&6; }
+ ldflags_save=$LDFLAGS
+ LDFLAGS="$LDFLAGS -Wl,--gdb-index"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+
+int
+main ()
+{
+
+printf ("hello world\n");
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ENABLE_GDB_INDEX=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$ENABLE_GDB_INDEX" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes " >&5
+$as_echo "yes " >&6; }
+ else
+ if test "$enable_gdb_index" = "yes"; then
+ as_fn_error $? "no " "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5
+$as_echo "no " >&6; }
+ fi
+ fi
+ LDFLAGS=$ldflags_save
+ fi
+ CFLAGS=$save_CFLAGS
+ fi
+ if test -z "$ENABLE_GDB_INDEX" -a "$test_gdb_index" = "yes" -a -n "$ENABLE_DEBUG$ENABLE_DBGUTIL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linker is not capable of creating gdb index, debugger startup will be slow." >&5
+$as_echo "$as_me: WARNING: Linker is not capable of creating gdb index, debugger startup will be slow." >&2;}
+ add_warning "Linker is not capable of creating gdb index, debugger startup will be slow."
+ fi
+fi
+
+
+if test "$enable_sal_log" = yes; then
+ ENABLE_SAL_LOG=TRUE
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate debug information" >&5
+$as_echo_n "checking whether to generate debug information... " >&6; }
+if test -z "$enable_symbols"; then
+ if test -n "$ENABLE_DEBUG$ENABLE_DBGUTIL"; then
+ enable_symbols=yes
+ else
+ enable_symbols=no
+ fi
+fi
+if test "$enable_symbols" = yes; then
+ ENABLE_SYMBOLS_FOR=all
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+elif test "$enable_symbols" = no; then
+ ENABLE_SYMBOLS_FOR=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ # Selective debuginfo.
+ ENABLE_SYMBOLS_FOR="$enable_symbols"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: for \"$enable_symbols\"" >&5
+$as_echo "for \"$enable_symbols\"" >&6; }
+fi
+
+
+if test -n "$with_android_ndk" -a \( -n "$ENABLE_SYMBOLS" -o -n "$ENABLE_DEBUG" -o -n "$ENABLE_DBGUTIL" \) -a "$ENABLE_DEBUGINFO_FOR" = "all"; then
+ # Building on Android with full symbols: without enough memory the linker never finishes currently.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether enough memory is available for linking" >&5
+$as_echo_n "checking whether enough memory is available for linking... " >&6; }
+ mem_size=$(grep -o 'MemTotal: *.\+ kB' /proc/meminfo | sed 's/MemTotal: *\(.\+\) kB/\1/')
+ # Check for 15GB, as Linux reports a bit less than the physical memory size.
+ if test -n "$mem_size" -a $mem_size -lt 15728640; then
+ as_fn_error $? "building with full symbols and less than 16GB of memory is not supported" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+fi
+
+ENABLE_OPTIMIZED=
+ENABLE_OPTIMIZED_DEBUG=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with optimization flags" >&5
+$as_echo_n "checking whether to compile with optimization flags... " >&6; }
+if test -z "$enable_optimized"; then
+ if test -n "$ENABLE_DEBUG$ENABLE_DBGUTIL"; then
+ enable_optimized=no
+ else
+ enable_optimized=yes
+ fi
+fi
+if test "$enable_optimized" = yes; then
+ ENABLE_OPTIMIZED=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+elif test "$enable_optimized" = debug; then
+ ENABLE_OPTIMIZED_DEBUG=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (debug)" >&5
+$as_echo "yes (debug)" >&6; }
+ HAVE_GCC_OG=
+ if test "$GCC" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -Og" >&5
+$as_echo_n "checking whether $CC_BASE supports -Og... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -Og"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_GCC_OG=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test "$HAVE_GCC_OG" = "TRUE"; 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 -z "$HAVE_GCC_OG"; then
+ as_fn_error $? "The compiler does not support optimizations suitable for debugging." "$LINENO" 5
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+#
+# determine CPUNAME, OS, ...
+# The USING_X11 flag tells whether the host os uses X by default. Can be overridden with the --without-x option.
+#
+case "$host_os" in
+
+aix*)
+ COM=GCC
+ CPUNAME=POWERPC
+ USING_X11=TRUE
+ OS=AIX
+ RTL_OS=AIX
+ RTL_ARCH=PowerPC
+ PLATFORMID=aix_powerpc
+ P_SEP=:
+ ;;
+
+cygwin*)
+ COM=MSC
+ USING_X11=
+ OS=WNT
+ RTL_OS=Windows
+ if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ P_SEP=";"
+ else
+ P_SEP=:
+ fi
+ case "$host_cpu" in
+ i*86|x86_64)
+ if test "$BITNESS_OVERRIDE" = 64; then
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=windows_x86_64
+ WINDOWS_X64=1
+ SCPDEFS="$SCPDEFS -DWINDOWS_X64"
+ else
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=windows_x86
+ fi
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ SCPDEFS="$SCPDEFS -D_MSC_VER"
+ ;;
+
+darwin*|macos*)
+ COM=GCC
+ USING_X11=
+ OS=MACOSX
+ RTL_OS=MacOSX
+ P_SEP=:
+
+ case "$host_cpu" in
+ aarch64|arm64)
+ if test "$enable_ios_simulator" = "yes"; then
+ OS=iOS
+ else
+ CPUNAME=AARCH64
+ RTL_ARCH=AARCH64
+ PLATFORMID=macosx_arm64
+ fi
+ ;;
+ x86_64)
+ if test "$enable_ios_simulator" = "yes"; then
+ OS=iOS
+ fi
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=macosx_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+ios*)
+ COM=GCC
+ USING_X11=
+ OS=iOS
+ RTL_OS=iOS
+ P_SEP=:
+
+ case "$host_cpu" in
+ aarch64|arm64)
+ if test "$enable_ios_simulator" = "yes"; then
+ as_fn_error $? "iOS simulator is only available in macOS not iOS" "$LINENO" 5
+ fi
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ CPUNAME=AARCH64
+ RTL_ARCH=AARCH64
+ PLATFORMID=ios_arm64
+ ;;
+
+dragonfly*)
+ COM=GCC
+ USING_X11=TRUE
+ OS=DRAGONFLY
+ RTL_OS=DragonFly
+ P_SEP=:
+
+ case "$host_cpu" in
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=dragonfly_x86
+ ;;
+ x86_64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=dragonfly_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+freebsd*)
+ COM=GCC
+ USING_X11=TRUE
+ RTL_OS=FreeBSD
+ OS=FREEBSD
+ P_SEP=:
+
+ case "$host_cpu" in
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=freebsd_x86
+ ;;
+ x86_64|amd64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=freebsd_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+haiku*)
+ COM=GCC
+ USING_X11=
+ GUIBASE=haiku
+ RTL_OS=Haiku
+ OS=HAIKU
+ P_SEP=:
+
+ case "$host_cpu" in
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=haiku_x86
+ ;;
+ x86_64|amd64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=haiku_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+kfreebsd*)
+ COM=GCC
+ USING_X11=TRUE
+ OS=LINUX
+ RTL_OS=kFreeBSD
+ P_SEP=:
+
+ case "$host_cpu" in
+
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=kfreebsd_x86
+ ;;
+ x86_64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=kfreebsd_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+linux-gnu*)
+ COM=GCC
+ USING_X11=TRUE
+ OS=LINUX
+ RTL_OS=Linux
+ P_SEP=:
+
+ case "$host_cpu" in
+
+ aarch64)
+ CPUNAME=AARCH64
+ PLATFORMID=linux_aarch64
+ RTL_ARCH=AARCH64
+ ;;
+ alpha)
+ CPUNAME=AXP
+ RTL_ARCH=ALPHA
+ PLATFORMID=linux_alpha
+ ;;
+ arm*)
+ CPUNAME=ARM
+ EPM_FLAGS="-a arm"
+ RTL_ARCH=ARM_EABI
+ PLATFORMID=linux_arm_eabi
+ case "$host_cpu" in
+ arm*-linux)
+ RTL_ARCH=ARM_OABI
+ PLATFORMID=linux_arm_oabi
+ ;;
+ esac
+ ;;
+ hppa)
+ CPUNAME=HPPA
+ RTL_ARCH=HPPA
+ EPM_FLAGS="-a hppa"
+ PLATFORMID=linux_hppa
+ ;;
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=linux_x86
+ ;;
+ ia64)
+ CPUNAME=IA64
+ RTL_ARCH=IA64
+ PLATFORMID=linux_ia64
+ ;;
+ mips)
+ CPUNAME=GODSON
+ RTL_ARCH=MIPS_EB
+ EPM_FLAGS="-a mips"
+ PLATFORMID=linux_mips_eb
+ ;;
+ mips64)
+ CPUNAME=GODSON64
+ RTL_ARCH=MIPS64_EB
+ EPM_FLAGS="-a mips64"
+ PLATFORMID=linux_mips64_eb
+ ;;
+ mips64el)
+ CPUNAME=GODSON64
+ RTL_ARCH=MIPS64_EL
+ EPM_FLAGS="-a mips64el"
+ PLATFORMID=linux_mips64_el
+ ;;
+ mipsel)
+ CPUNAME=GODSON
+ RTL_ARCH=MIPS_EL
+ EPM_FLAGS="-a mipsel"
+ PLATFORMID=linux_mips_el
+ ;;
+ m68k)
+ CPUNAME=M68K
+ RTL_ARCH=M68K
+ PLATFORMID=linux_m68k
+ ;;
+ powerpc)
+ CPUNAME=POWERPC
+ RTL_ARCH=PowerPC
+ PLATFORMID=linux_powerpc
+ ;;
+ powerpc64)
+ CPUNAME=POWERPC64
+ RTL_ARCH=PowerPC_64
+ PLATFORMID=linux_powerpc64
+ ;;
+ powerpc64le)
+ CPUNAME=POWERPC64
+ RTL_ARCH=PowerPC_64_LE
+ PLATFORMID=linux_powerpc64_le
+ ;;
+ sparc)
+ CPUNAME=SPARC
+ RTL_ARCH=SPARC
+ PLATFORMID=linux_sparc
+ ;;
+ sparc64)
+ CPUNAME=SPARC64
+ RTL_ARCH=SPARC64
+ PLATFORMID=linux_sparc64
+ ;;
+ s390)
+ CPUNAME=S390
+ RTL_ARCH=S390
+ PLATFORMID=linux_s390
+ ;;
+ s390x)
+ CPUNAME=S390X
+ RTL_ARCH=S390x
+ PLATFORMID=linux_s390x
+ ;;
+ x86_64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=linux_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+linux-android*)
+ COM=GCC
+ USING_X11=
+ OS=ANDROID
+ RTL_OS=Android
+ P_SEP=:
+
+ case "$host_cpu" in
+
+ arm|armel)
+ CPUNAME=ARM
+ RTL_ARCH=ARM_EABI
+ PLATFORMID=android_arm_eabi
+ ;;
+ aarch64)
+ CPUNAME=AARCH64
+ RTL_ARCH=AARCH64
+ PLATFORMID=android_aarch64
+ ;;
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=android_x86
+ ;;
+ x86_64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=android_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+*netbsd*)
+ COM=GCC
+ USING_X11=TRUE
+ OS=NETBSD
+ RTL_OS=NetBSD
+ P_SEP=:
+
+ case "$host_cpu" in
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=netbsd_x86
+ ;;
+ powerpc)
+ CPUNAME=POWERPC
+ RTL_ARCH=PowerPC
+ PLATFORMID=netbsd_powerpc
+ ;;
+ sparc)
+ CPUNAME=SPARC
+ RTL_ARCH=SPARC
+ PLATFORMID=netbsd_sparc
+ ;;
+ x86_64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=netbsd_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ ;;
+
+openbsd*)
+ COM=GCC
+ USING_X11=TRUE
+ OS=OPENBSD
+ RTL_OS=OpenBSD
+ P_SEP=:
+
+ case "$host_cpu" in
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=openbsd_x86
+ ;;
+ x86_64)
+ CPUNAME=X86_64
+ RTL_ARCH=X86_64
+ PLATFORMID=openbsd_x86_64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ SOLARINC="$SOLARINC -I/usr/local/include"
+ ;;
+
+solaris*)
+ COM=GCC
+ USING_X11=TRUE
+ OS=SOLARIS
+ RTL_OS=Solaris
+ P_SEP=:
+
+ case "$host_cpu" in
+ i*86)
+ CPUNAME=INTEL
+ RTL_ARCH=x86
+ PLATFORMID=solaris_x86
+ ;;
+ sparc)
+ CPUNAME=SPARC
+ RTL_ARCH=SPARC
+ PLATFORMID=solaris_sparc
+ ;;
+ sparc64)
+ CPUNAME=SPARC64
+ RTL_ARCH=SPARC64
+ PLATFORMID=solaris_sparc64
+ ;;
+ *)
+ as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
+ ;;
+ esac
+ SOLARINC="$SOLARINC -I/usr/local/include"
+ ;;
+
+*)
+ as_fn_error $? "$host_os operating system is not suitable to build LibreOffice for!" "$LINENO" 5
+ ;;
+esac
+
+if test "$with_x" = "no"; then
+ as_fn_error $? "Use --disable-gui instead. How can we get rid of this option? No idea where it comes from." "$LINENO" 5
+fi
+
+DISABLE_GUI=""
+if test "$enable_gui" = "no"; then
+ if test "$USING_X11" != TRUE; then
+ as_fn_error $? "$host_os operating system is not suitable to build LibreOffice with --disable-gui." "$LINENO" 5
+ fi
+ USING_X11=
+ DISABLE_GUI=TRUE
+ $as_echo "#define HAVE_FEATURE_UI 0" >>confdefs.h
+
+ test_cairo=yes
+fi
+
+
+WORKDIR="${BUILDDIR}/workdir"
+INSTDIR="${BUILDDIR}/instdir"
+INSTROOTBASE=${INSTDIR}${INSTROOTBASESUFFIX}
+INSTROOT=${INSTROOTBASE}${INSTROOTCONTENTSUFFIX}
+SOLARINC="-I$SRC_ROOT/include $SOLARINC"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define WORKDIR "$WORKDIR"
+_ACEOF
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which package format to use" >&5
+$as_echo_n "checking which package format to use... " >&6; }
+if test -n "$with_package_format" -a "$with_package_format" != no; then
+ for i in $with_package_format; do
+ case "$i" in
+ aix | bsd | deb | pkg | rpm | archive | dmg | installed | msi)
+ ;;
+ *)
+ as_fn_error $? "unsupported format $i. Supported by EPM are:
+aix - AIX software distribution
+bsd - FreeBSD, NetBSD, or OpenBSD software distribution
+deb - Debian software distribution
+pkg - Solaris software distribution
+rpm - RedHat software distribution
+
+LibreOffice additionally supports:
+archive - .tar.gz or .zip
+dmg - macOS .dmg
+installed - installation tree
+msi - Windows .msi
+ " "$LINENO" 5
+ ;;
+ esac
+ done
+ # fakeroot is needed to ensure correct file ownerships/permissions
+ # inside deb packages and tar archives created on Linux and Solaris.
+ if test "$OS" = "LINUX" || test "$OS" = "SOLARIS"; then
+ # Extract the first word of "fakeroot", so it can be a program name with args.
+set dummy fakeroot; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_FAKEROOT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $FAKEROOT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_FAKEROOT="$FAKEROOT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_FAKEROOT="$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_FAKEROOT" && ac_cv_path_FAKEROOT="no"
+ ;;
+esac
+fi
+FAKEROOT=$ac_cv_path_FAKEROOT
+if test -n "$FAKEROOT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FAKEROOT" >&5
+$as_echo "$FAKEROOT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$FAKEROOT" = "no"; then
+ as_fn_error $? "--with-package-format='$with_package_format' requires fakeroot. Install fakeroot." "$LINENO" 5
+ fi
+ fi
+ PKGFORMAT="$with_package_format"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGFORMAT" >&5
+$as_echo "$PKGFORMAT" >&6; }
+else
+ PKGFORMAT=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+fi
+
+
+
+
+
+if test "$cross_compiling" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD platform configuration" >&5
+$as_echo_n "checking for BUILD platform configuration... " >&6; }
+ echo
+ rm -rf CONF-FOR-BUILD config_build.mk
+ mkdir CONF-FOR-BUILD
+ # Here must be listed all files needed when running the configure script. In particular, also
+ # those expanded by the AC_CONFIG_FILES() call near the end of this configure.ac. For clarity,
+ # keep them in the same order as there.
+ (cd $SRC_ROOT && tar cf - \
+ config.guess \
+ bin/get_config_variables \
+ solenv/bin/getcompver.awk \
+ solenv/inc/langlist.mk \
+ download.lst \
+ config_host.mk.in \
+ config_host_lang.mk.in \
+ Makefile.in \
+ bin/bffvalidator.sh.in \
+ bin/odfvalidator.sh.in \
+ bin/officeotron.sh.in \
+ hardened_runtime.xcent.in \
+ instsetoo_native/util/openoffice.lst.in \
+ config_host/*.in \
+ sysui/desktop/macosx/Info.plist.in) \
+ | (cd CONF-FOR-BUILD && tar xf -)
+ cp configure CONF-FOR-BUILD
+ test -d config_build && cp -p config_build/*.h CONF-FOR-BUILD/config_host 2>/dev/null
+ (
+ unset COM USING_X11 OS CPUNAME
+ unset CC CXX SYSBASE CFLAGS
+ unset AR NM OBJDUMP PKG_CONFIG RANLIB READELF STRIP
+ unset CPPUNIT_CFLAGS CPPUNIT_LIBS
+ unset LIBXML_CFLAGS LIBXML_LIBS LIBXSLT_CFLAGS LIBXSLT_LIBS XSLTPROC PKG_CONFIG_LIBDIR
+ if test -n "$CC_FOR_BUILD"; then
+ export CC="$CC_FOR_BUILD"
+ CC_BASE=`first_arg_basename "$CC"`
+ fi
+ if test -n "$CXX_FOR_BUILD"; then
+ export CXX="$CXX_FOR_BUILD"
+ CXX_BASE=`first_arg_basename "$CXX"`
+ fi
+ test -n "$PKG_CONFIG_FOR_BUILD" && export PKG_CONFIG="$PKG_CONFIG_FOR_BUILD"
+ cd CONF-FOR-BUILD
+ sub_conf_opts=""
+ test -n "$enable_ccache" && sub_conf_opts="$sub_conf_opts --enable-ccache=$enable_ccache"
+ test -n "$with_ant_home" && sub_conf_opts="$sub_conf_opts --with-ant-home=$with_ant_home"
+ test $with_junit = no && sub_conf_opts="$sub_conf_opts --without-junit"
+ test -n "$TARFILE_LOCATION" && sub_conf_opts="$sub_conf_opts --with-external-tar=$TARFILE_LOCATION"
+ test "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force" && sub_conf_opts="$sub_conf_opts --with-system-icu"
+ test "$build_for_ios" = "YES" && sub_conf_opts="$sub_conf_opts build_for_ios=YES"
+ sub_conf_opts="$sub_conf_opts $with_build_platform_configure_options"
+ # Don't bother having configure look for stuff not needed for the build platform anyway
+ ./configure \
+ --disable-cups \
+ --disable-gstreamer-1-0 \
+ --disable-gtk3 \
+ --disable-pdfimport \
+ --disable-postgresql-sdbc \
+ --enable-icecream="$enable_icecream" \
+ --with-parallelism="$with_parallelism" \
+ --without-doxygen \
+ --without-java \
+ $sub_conf_opts \
+ --srcdir=$srcdir \
+ 2>&1 | sed -e 's/^/ /'
+ test -f ./config_host.mk 2>/dev/null || exit
+ cp config_host.mk ../config_build.mk
+ cp config_host_lang.mk ../config_build_lang.mk
+ mv config.log ../config.Build.log
+ mkdir -p ../config_build
+ mv config_host/*.h ../config_build
+ . ./bin/get_config_variables CC CXX INSTDIR INSTROOT LIBO_BIN_FOLDER LIBO_LIB_FOLDER LIBO_URE_LIB_FOLDER LIBO_URE_MISC_FOLDER OS PATH SDKDIRNAME SYSTEM_LIBXML SYSTEM_LIBXSLT WORKDIR
+
+ for V in CC CXX LIBO_BIN_FOLDER LIBO_LIB_FOLDER LIBO_URE_LIB_FOLDER LIBO_URE_MISC_FOLDER OS SDKDIRNAME SYSTEM_LIBXML SYSTEM_LIBXSLT; do
+ VV='$'$V
+ VV=`eval "echo $VV"`
+ if test -n "$VV"; then
+ line=${V}_FOR_BUILD='${'${V}_FOR_BUILD:-$VV'}'
+ echo "$line" >>build-config
+ fi
+ done
+
+ for V in INSTDIR INSTROOT WORKDIR; do
+ VV='$'$V
+ VV=`eval "echo $VV"`
+ VV=`echo $VV | sed -e "s,/CONF-FOR-BUILD/\([a-z]*\),/\1_for_build,g"`
+ if test -n "$VV"; then
+ line="${V}_FOR_BUILD='$VV'"
+ echo "$line" >>build-config
+ fi
+ done
+
+ line=`echo "LO_PATH_FOR_BUILD=$PATH" | sed -e 's,/CONF-FOR-BUILD,,g'`
+ echo "$line" >>build-config
+
+ )
+ test -f CONF-FOR-BUILD/build-config || as_fn_error $? "Running configure script for BUILD system failed, see CONF-FOR-BUILD/config.log" "$LINENO" 5
+ test -f config_build.mk || as_fn_error $? "A file called config_build.mk was supposed to have been copied here, but it isn't found" "$LINENO" 5
+ perl -pi -e 's,/(workdir|instdir)(/|$),/\1_for_build\2,g;' \
+ -e 's,/CONF-FOR-BUILD,,g;' config_build.mk
+
+ eval `cat CONF-FOR-BUILD/build-config`
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for BUILD platform configuration... done" >&5
+$as_echo "checking for BUILD platform configuration... done" >&6; }
+
+ rm -rf CONF-FOR-BUILD
+else
+ OS_FOR_BUILD="$OS"
+ CC_FOR_BUILD="$CC"
+ CXX_FOR_BUILD="$CXX"
+ INSTDIR_FOR_BUILD="$INSTDIR"
+ INSTROOT_FOR_BUILD="$INSTROOT"
+ LIBO_BIN_FOLDER_FOR_BUILD="$LIBO_BIN_FOLDER"
+ LIBO_LIB_FOLDER_FOR_BUILD="$LIBO_LIB_FOLDER"
+ LIBO_URE_LIB_FOLDER_FOR_BUILD="$LIBO_URE_LIB_FOLDER"
+ LIBO_URE_MISC_FOLDER_FOR_BUILD="$LIBO_URE_MISC_FOLDER"
+ SDKDIRNAME_FOR_BUILD="$SDKDIRNAME"
+ WORKDIR_FOR_BUILD="$WORKDIR"
+fi
+
+
+
+
+
+
+
+
+
+
+ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
+if test "x$ac_cv_header_syslog_h" = xyes; then :
+ $as_echo "#define HAVE_SYSLOG_H 1" >>confdefs.h
+
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn warnings to errors" >&5
+$as_echo_n "checking whether to turn warnings to errors... " >&6; }
+if test -n "$enable_werror" -a "$enable_werror" != "no"; then
+ ENABLE_WERROR="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ if test -n "$LODE_HOME" -a -z "$enable_werror"; then
+ ENABLE_WERROR="TRUE"
+ { $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
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have assert() failures abort even without --enable-debug" >&5
+$as_echo_n "checking whether to have assert() failures abort even without --enable-debug... " >&6; }
+if test -z "$enable_assert_always_abort"; then
+ if test "$ENABLE_DEBUG" = TRUE; then
+ enable_assert_always_abort=yes
+ else
+ enable_assert_always_abort=no
+ fi
+fi
+if test "$enable_assert_always_abort" = "yes"; then
+ ASSERT_ALWAYS_ABORT="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ ASSERT_ALWAYS_ABORT="FALSE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+# Determine whether to use ooenv for the instdir installation
+# ===================================================================
+if test $_os != "WINNT" -a $_os != "Darwin"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ooenv for the instdir installation" >&5
+$as_echo_n "checking whether to use ooenv for the instdir installation... " >&6; }
+ if test "$enable_ooenv" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ else
+ ENABLE_OOENV="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+fi
+
+
+if test "$USING_X11" != TRUE; then
+ # be sure to do not mess with unneeded stuff
+ test_randr=no
+ test_xrender=no
+ test_cups=no
+ test_dbus=no
+ build_gstreamer_1_0=no
+ test_kf5=no
+ test_qt5=no
+ test_gtk3_kde5=no
+ enable_cairo_canvas=no
+fi
+
+if test "$OS" = "HAIKU"; then
+ enable_cairo_canvas=yes
+ test_kf5=yes
+fi
+
+if test "$test_kf5" = "yes" -a "$enable_kde5" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kde5 VCL plugin was renamed to kf5. Please update your configuration to use --enable-kf5, as --enable-kde5 will be removed after the next major release!" >&5
+$as_echo "$as_me: WARNING: The kde5 VCL plugin was renamed to kf5. Please update your configuration to use --enable-kf5, as --enable-kde5 will be removed after the next major release!" >&2;}
+ add_warning "The kde5 VCL plugin was renamed to kf5. Please update your configuration to use --enable-kf5, as --enable-kde5 will be removed after the next major release!"
+ enable_kf5=yes
+fi
+
+if test "$test_kf5" = "yes"; then
+ test_qt5=yes
+fi
+
+if test "$test_kf5" = "yes" -a "$enable_kf5" = "yes"; then
+ if test "$enable_qt5" = "no"; then
+ as_fn_error $? "KF5 support depends on QT5, so it conflicts with --disable-qt5" "$LINENO" 5
+ else
+ enable_qt5=yes
+ fi
+fi
+
+ENABLE_CUPS=""
+
+if test "$enable_cups" = "no"; then
+ test_cups=no
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable CUPS support" >&5
+$as_echo_n "checking whether to enable CUPS support... " >&6; }
+if test "$test_cups" = "yes"; then
+ ENABLE_CUPS="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cups support is present" >&5
+$as_echo_n "checking whether cups support is present... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsPrintFiles in -lcups" >&5
+$as_echo_n "checking for cupsPrintFiles in -lcups... " >&6; }
+if ${ac_cv_lib_cups_cupsPrintFiles+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcups $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 cupsPrintFiles ();
+int
+main ()
+{
+return cupsPrintFiles ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_cups_cupsPrintFiles=yes
+else
+ ac_cv_lib_cups_cupsPrintFiles=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_cups_cupsPrintFiles" >&5
+$as_echo "$ac_cv_lib_cups_cupsPrintFiles" >&6; }
+if test "x$ac_cv_lib_cups_cupsPrintFiles" = xyes; then :
+ :
+fi
+
+ ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
+if test "x$ac_cv_header_cups_cups_h" = xyes; then :
+ $as_echo "#define HAVE_CUPS_H 1" >>confdefs.h
+
+fi
+
+
+ if test "$ac_cv_lib_cups_cupsPrintFiles" != "yes" -o "$ac_cv_header_cups_cups_h" != "yes"; then
+ as_fn_error $? "Could not find CUPS. Install libcups2-dev or cups-devel." "$LINENO" 5
+ fi
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+# fontconfig checks
+if test "$test_fontconfig" = "yes"; 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 ${ac_cv_path_PKG_CONFIG+:} false; 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 $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$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 ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; 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 $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$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
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
+$as_echo_n "checking for FONTCONFIG... " >&6; }
+
+if test -n "$FONTCONFIG_CFLAGS"; then
+ pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.4.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.4.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$FONTCONFIG_LIBS"; then
+ pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.4.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.4.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.4.1" 2>&1`
+ else
+ FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.4.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$FONTCONFIG_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (fontconfig >= 2.4.1) were not met:
+
+$FONTCONFIG_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
+and FONTCONFIG_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables FONTCONFIG_CFLAGS
+and FONTCONFIG_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
+ FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ SYSTEM_FONTCONFIG=TRUE
+ FilterLibs "${FONTCONFIG_LIBS}"
+ FONTCONFIG_LIBS="${filteredlibs}"
+fi
+
+
+
+
+if test -z "$TARFILE_LOCATION" -a -n "$LODE_HOME" ; then
+ if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ TARFILE_LOCATION="`cygpath -m $LODE_HOME/ext_tar`"
+ else
+ TARFILE_LOCATION="$LODE_HOME/ext_tar"
+ fi
+fi
+if test -z "$TARFILE_LOCATION"; then
+ if test -d "$SRC_ROOT/src" ; then
+ mv "$SRC_ROOT/src" "$SRC_ROOT/external/tarballs"
+ ln -s "$SRC_ROOT/external/tarballs" "$SRC_ROOT/src"
+ fi
+ TARFILE_LOCATION="$SRC_ROOT/external/tarballs"
+else
+ AbsolutePath "$TARFILE_LOCATION"
+ PathFormat "${absolute_path}"
+ TARFILE_LOCATION="${formatted_path}"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we want to fetch tarballs" >&5
+$as_echo_n "checking whether we want to fetch tarballs... " >&6; }
+if test "$enable_fetch_external" != "no"; then
+ if test "$with_all_tarballs" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, all of them" >&5
+$as_echo "yes, all of them" >&6; }
+ DO_FETCH_TARBALLS="ALL"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if we use them" >&5
+$as_echo "yes, if we use them" >&6; }
+ DO_FETCH_TARBALLS="TRUE"
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ DO_FETCH_TARBALLS=
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build help" >&5
+$as_echo_n "checking whether to build help... " >&6; }
+if test -n "$with_help" -a "$with_help" != "no" -a $_os != iOS -a $_os != Android; then
+ BUILD_TYPE="$BUILD_TYPE HELP"
+ GIT_NEEDED_SUBMODULES="helpcontent2 $GIT_NEEDED_SUBMODULES"
+ case "$with_help" in
+ "html")
+ ENABLE_HTMLHELP=TRUE
+ SCPDEFS="$SCPDEFS -DWITH_HELP"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: HTML" >&5
+$as_echo "HTML" >&6; }
+ ;;
+ "online")
+ ENABLE_HTMLHELP=TRUE
+ HELP_ONLINE=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: HTML" >&5
+$as_echo "HTML" >&6; }
+ ;;
+ yes)
+ SCPDEFS="$SCPDEFS -DWITH_HELP"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ;;
+ *)
+ as_fn_error $? "Unknown --with-help=$with_help" "$LINENO" 5
+ ;;
+ esac
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable xapian-omega support for help" >&5
+$as_echo_n "checking whether to enable xapian-omega support for help... " >&6; }
+if test -n "$with_omindex" -a "$with_omindex" != "no" -a $_os != iOS -a $_os != Android; then
+ BUILD_TYPE="$BUILD_TYPE HELP"
+ GIT_NEEDED_SUBMODULES="helpcontent2 $GIT_NEEDED_SUBMODULES"
+ case "$with_omindex" in
+ "server")
+ ENABLE_HTMLHELP=TRUE
+ HELP_ONLINE=TRUE
+ HELP_OMINDEX_PAGE=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: SERVER" >&5
+$as_echo "SERVER" >&6; }
+ ;;
+ "noxap")
+ ENABLE_HTMLHELP=TRUE
+ HELP_ONLINE=TRUE
+ HELP_OMINDEX_PAGE=FALSE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOXAP" >&5
+$as_echo "NOXAP" >&6; }
+ ;;
+ *)
+ as_fn_error $? "Unknown --with-omindex=$with_omindex" "$LINENO" 5
+ ;;
+ esac
+else
+ HELP_OMINDEX_PAGE=FALSE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include MySpell dictionaries" >&5
+$as_echo_n "checking whether to include MySpell dictionaries... " >&6; }
+if test "$with_myspell_dicts" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ WITH_MYSPELL_DICTS=TRUE
+ BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
+ GIT_NEEDED_SUBMODULES="dictionaries $GIT_NEEDED_SUBMODULES"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ WITH_MYSPELL_DICTS=
+fi
+
+
+# There are no "system" myspell, hyphen or mythes dictionaries on macOS, Windows, Android or iOS.
+if test $_os = Darwin -o $_os = WINNT -o $_os = iOS -o $_os = Android; then
+ if test "$with_system_dicts" = yes; then
+ as_fn_error $? "There are no system dicts on this OS in the formats the 3rd-party libs we use expect" "$LINENO" 5;
+ fi
+ with_system_dicts=no
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dicts from external paths" >&5
+$as_echo_n "checking whether to use dicts from external paths... " >&6; }
+if test -z "$with_system_dicts" -o "$with_system_dicts" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SYSTEM_DICTS=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spelling dictionary directory" >&5
+$as_echo_n "checking for spelling dictionary directory... " >&6; }
+ if test -n "$with_external_dict_dir"; then
+ DICT_SYSTEM_DIR=file://$with_external_dict_dir
+ else
+ DICT_SYSTEM_DIR=file:///usr/share/hunspell
+ if test ! -d /usr/share/hunspell -a -d /usr/share/myspell; then
+ DICT_SYSTEM_DIR=file:///usr/share/myspell
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DICT_SYSTEM_DIR" >&5
+$as_echo "$DICT_SYSTEM_DIR" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyphenation patterns directory" >&5
+$as_echo_n "checking for hyphenation patterns directory... " >&6; }
+ if test -n "$with_external_hyph_dir"; then
+ HYPH_SYSTEM_DIR=file://$with_external_hyph_dir
+ else
+ HYPH_SYSTEM_DIR=file:///usr/share/hyphen
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HYPH_SYSTEM_DIR" >&5
+$as_echo "$HYPH_SYSTEM_DIR" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thesaurus directory" >&5
+$as_echo_n "checking for thesaurus directory... " >&6; }
+ if test -n "$with_external_thes_dir"; then
+ THES_SYSTEM_DIR=file://$with_external_thes_dir
+ else
+ THES_SYSTEM_DIR=file:///usr/share/mythes
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THES_SYSTEM_DIR" >&5
+$as_echo "$THES_SYSTEM_DIR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ SYSTEM_DICTS=
+fi
+
+
+
+
+
+ENABLE_PCH=""
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pch feature" >&5
+$as_echo_n "checking whether to enable pch feature... " >&6; }
+if test -z "$enable_pch"; then
+ if test "$_os" = "WINNT"; then
+ # Enabled by default on Windows.
+ enable_pch=yes
+ else
+ enable_pch=no
+ fi
+fi
+if test "$enable_pch" != "no" -a "$_os" != "WINNT" -a "$GCC" != "yes" ; then
+ as_fn_error $? "Precompiled header not yet supported for your platform/compiler" "$LINENO" 5
+fi
+if test "$enable_pch" = "system"; then
+ ENABLE_PCH="1"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (system headers)" >&5
+$as_echo "yes (system headers)" >&6; }
+elif test "$enable_pch" = "base"; then
+ ENABLE_PCH="2"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (system and base headers)" >&5
+$as_echo "yes (system and base headers)" >&6; }
+elif test "$enable_pch" = "normal"; then
+ ENABLE_PCH="3"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (normal)" >&5
+$as_echo "yes (normal)" >&6; }
+elif test "$enable_pch" = "full"; then
+ ENABLE_PCH="4"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (full)" >&5
+$as_echo "yes (full)" >&6; }
+elif test "$enable_pch" = "yes"; then
+ # Pick a suitable default.
+ if test "$GCC" = "yes"; then
+ # With Clang and GCC higher levels do not seem to make a noticeable improvement,
+ # while making the PCHs larger and rebuilds more likely.
+ ENABLE_PCH="2"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (system and base headers)" >&5
+$as_echo "yes (system and base headers)" >&6; }
+ else
+ # With MSVC the highest level makes a significant difference,
+ # and it was the default when there used to be no PCH levels.
+ ENABLE_PCH="4"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (full)" >&5
+$as_echo "yes (full)" >&6; }
+ fi
+elif test "$enable_pch" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ as_fn_error $? "Unknown value for --enable-pch" "$LINENO" 5
+fi
+
+# ccache 3.7.1 and older do not properly detect/handle -include .gch in CCACHE_DEPEND mode
+if test -n "$ENABLE_PCH" -a -n "$CCACHE_DEPEND_MODE" -a "$GCC" = "yes" -a "$COM_IS_CLANG" != "TRUE"; then
+ # Extract the first word of "ccache", so it can be a program name with args.
+set dummy ccache; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_CCACHE_BIN+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $CCACHE_BIN in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_CCACHE_BIN="$CCACHE_BIN" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_CCACHE_BIN="$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_CCACHE_BIN" && ac_cv_path_CCACHE_BIN="not found"
+ ;;
+esac
+fi
+CCACHE_BIN=$ac_cv_path_CCACHE_BIN
+if test -n "$CCACHE_BIN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE_BIN" >&5
+$as_echo "$CCACHE_BIN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$CCACHE_BIN" != "not found"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking ccache version" >&5
+$as_echo_n "checking ccache version... " >&6; }
+ CCACHE_VERSION=`"$CCACHE_BIN" -V | "$AWK" '/^ccache version/{print $3}'`
+ CCACHE_NUMVER=`echo $CCACHE_VERSION | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE_VERSION" >&5
+$as_echo "$CCACHE_VERSION" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache depend mode works properly with GCC PCH" >&5
+$as_echo_n "checking whether ccache depend mode works properly with GCC PCH... " >&6; }
+ if test "$CCACHE_NUMVER" -gt "030701"; 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 (not newer than 3.7.1)" >&5
+$as_echo "no (not newer than 3.7.1)" >&6; }
+ CCACHE_DEPEND_MODE=
+ fi
+ fi
+fi
+
+BUILDING_PCH_WITH_OBJ=
+if test -n "$ENABLE_PCH"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Xclang -building-pch-with-obj" >&5
+$as_echo_n "checking whether $CC supports -Xclang -building-pch-with-obj... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -Xclang -building-pch-with-obj"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ BUILDING_PCH_WITH_OBJ="-Xclang -building-pch-with-obj"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test -n "$BUILDING_PCH_WITH_OBJ"; 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
+
+
+PCH_MODULES_CODEGEN=
+if test -n "$BUILDING_PCH_WITH_OBJ"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Xclang -fmodules-codegen" >&5
+$as_echo_n "checking whether $CC supports -Xclang -fmodules-codegen... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -Xclang -fmodules-codegen"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ PCH_MODULES_CODEGEN="-Xclang -fmodules-codegen"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test -n "$PCH_MODULES_CODEGEN"; 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
+ CFLAGS=$save_CFLAGS
+fi
+
+PCH_MODULES_DEBUGINFO=
+if test -n "$BUILDING_PCH_WITH_OBJ"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Xclang -fmodules-debuginfo" >&5
+$as_echo_n "checking whether $CC supports -Xclang -fmodules-debuginfo... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -Xclang -fmodules-debuginfo"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ PCH_MODULES_DEBUGINFO="-Xclang -fmodules-debuginfo"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test -n "$PCH_MODULES_DEBUGINFO"; 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
+ CFLAGS=$save_CFLAGS
+fi
+
+
+TAB=`printf '\t'`
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the GNU Make version" >&5
+$as_echo_n "checking the GNU Make version... " >&6; }
+_make_version=`$GNUMAKE --version | grep GNU | $GREP -v GPL | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`
+_make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
+if test "$_make_longver" -ge "038200"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE $_make_version" >&5
+$as_echo "$GNUMAKE $_make_version" >&6; }
+
+elif test "$_make_longver" -ge "038100"; then
+ if test "$build_os" = "cygwin"; then
+ as_fn_error $? "failed ($GNUMAKE version >= 3.82 needed" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE $_make_version" >&5
+$as_echo "$GNUMAKE $_make_version" >&6; }
+
+ for ac_prog in sha1sum sha1 shasum openssl
+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 ${ac_cv_prog_SHA1SUM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$SHA1SUM"; then
+ ac_cv_prog_SHA1SUM="$SHA1SUM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_SHA1SUM="$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
+SHA1SUM=$ac_cv_prog_SHA1SUM
+if test -n "$SHA1SUM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
+$as_echo "$SHA1SUM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$SHA1SUM" && break
+done
+
+ if test -z "$SHA1SUM"; then
+ as_fn_error $? "install the appropriate SHA-1 checksumming program for this OS" "$LINENO" 5
+ elif test "$SHA1SUM" = "openssl"; then
+ SHA1SUM="openssl sha1"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Make bug 20033" >&5
+$as_echo_n "checking for GNU Make bug 20033... " >&6; }
+ TESTGMAKEBUG20033=`mktemp -d tmp.XXXXXX`
+ $SED -e "s/<TAB>/$TAB/g" > $TESTGMAKEBUG20033/Makefile << EOF
+A := \$(wildcard *.a)
+
+.PHONY: all
+all: \$(A:.a=.b)
+<TAB>@echo survived bug20033.
+
+.PHONY: setup
+setup:
+<TAB>@touch 1.a 2.a 3.a 4.a 5.a 6.a
+
+define d1
+@echo lala \$(1)
+@sleep 1
+endef
+
+define d2
+@echo tyty \$(1)
+@sleep 1
+endef
+
+%.b : %.a
+<TAB>\$(eval CHECKSUM := \$(word 1,\$(shell cat \$^ | $SHA1SUM))) \$(if \$(wildcard \$(CACHEDIR)/\$(CHECKSUM)),\
+<TAB>\$(call d1,\$(CHECKSUM)),\
+<TAB>\$(call d2,\$(CHECKSUM)))
+EOF
+ if test -z "`(cd $TESTGMAKEBUG20033 && $GNUMAKE setup && $GNUMAKE -j)|grep survived`"; then
+ no_parallelism_make="YES"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, disable parallelism" >&5
+$as_echo "yes, disable parallelism" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keep parallelism enabled" >&5
+$as_echo "no, keep parallelism enabled" >&6; }
+ fi
+ rm -rf $TESTGMAKEBUG20033
+else
+ as_fn_error $? "failed ($GNUMAKE version >= 3.81 needed" "$LINENO" 5
+fi
+
+# find if gnumake support file function
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Make supports the 'file' function" >&5
+$as_echo_n "checking whether GNU Make supports the 'file' function... " >&6; }
+TESTGMAKEFILEFUNC="`mktemp -d -t tst.XXXXXX`"
+if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ TESTGMAKEFILEFUNC=`cygpath -m $TESTGMAKEFILEFUNC`
+fi
+$SED -e "s/<TAB>/$TAB/" > $TESTGMAKEFILEFUNC/Makefile << EOF
+\$(file >test.txt,Success )
+
+.PHONY: all
+all:
+<TAB>@cat test.txt
+
+EOF
+$GNUMAKE -C $TESTGMAKEFILEFUNC 2>/dev/null 1>&2
+if test -f $TESTGMAKEFILEFUNC/test.txt; then
+ HAVE_GNUMAKE_FILE_FUNC=TRUE
+ { $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 -rf $TESTGMAKEFILEFUNC
+
+
+
+_make_ver_check=`$GNUMAKE --version | grep "Built for Windows"`
+STALE_MAKE=
+if test "$_make_ver_check" = ""; then
+ STALE_MAKE=TRUE
+fi
+
+HAVE_LD_HASH_STYLE=FALSE
+WITH_LINKER_HASH_STYLE=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style gcc linker support" >&5
+$as_echo_n "checking for --hash-style gcc linker support... " >&6; }
+if test "$GCC" = "yes"; then
+ if test -z "$with_linker_hash_style" -o "$with_linker_hash_style" = "yes"; then
+ hash_styles="gnu sysv"
+ elif test "$with_linker_hash_style" = "no"; then
+ hash_styles=
+ else
+ hash_styles="$with_linker_hash_style"
+ fi
+
+ for hash_style in $hash_styles; do
+ test "$HAVE_LD_HASH_STYLE" = "TRUE" && continue
+ hash_style_ldflags_save=$LDFLAGS
+ LDFLAGS="$LDFLAGS -Wl,--hash-style=$hash_style"
+
+ if test "$cross_compiling" = yes; then :
+ HAVE_LD_HASH_STYLE=FALSE
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+
+int
+main ()
+{
+
+printf ("");
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+ HAVE_LD_HASH_STYLE=TRUE
+ WITH_LINKER_HASH_STYLE=$hash_style
+
+else
+ HAVE_LD_HASH_STYLE=FALSE
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ LDFLAGS=$hash_style_ldflags_save
+ done
+
+ if test "$HAVE_LD_HASH_STYLE" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LINKER_HASH_STYLE " >&5
+$as_echo "$WITH_LINKER_HASH_STYLE " >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5
+$as_echo "no " >&6; }
+ fi
+ LDFLAGS=$hash_style_ldflags_save
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5
+$as_echo "no " >&6; }
+fi
+
+
+
+if test -z "$with_perl_home"; then
+ # 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 ${ac_cv_path_PERL+:} false; 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 as_fn_executable_p "$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
+
+
+else
+ test "$build_os" = "cygwin" && with_perl_home=`cygpath -u "$with_perl_home"`
+ _perl_path="$with_perl_home/bin/perl"
+ if test -x "$_perl_path"; then
+ PERL=$_perl_path
+ else
+ as_fn_error $? "$_perl_path not found" "$LINENO" 5
+ fi
+fi
+
+if test "$PERL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Perl version" >&5
+$as_echo_n "checking the Perl version... " >&6; }
+ ${PERL} -e "exit($]);"
+ _perl_version=$?
+ if test "$_perl_version" -lt 5; then
+ as_fn_error $? "found Perl $_perl_version, use Perl 5" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Perl $_perl_version" >&5
+$as_echo "Perl $_perl_version" >&6; }
+else
+ as_fn_error $? "Perl not found, install Perl 5" "$LINENO" 5
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for required Perl modules" >&5
+$as_echo_n "checking for required Perl modules... " >&6; }
+perl_use_string="use Cwd ; use Digest::MD5"
+if test "$_os" = "WINNT"; then
+ if test -n "$PKGFORMAT"; then
+ for i in $PKGFORMAT; do
+ case "$i" in
+ msi)
+ # for getting fonts versions to use in MSI
+ perl_use_string="$perl_use_string ; use Font::TTF::Font"
+ ;;
+ esac
+ done
+ fi
+fi
+if test "$with_system_hsqldb" = "yes"; then
+ perl_use_string="$perl_use_string ; use Archive::Zip"
+fi
+if $PERL -e "$perl_use_string">/dev/null 2>&1; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: all modules found" >&5
+$as_echo "all modules found" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed to find some modules" >&5
+$as_echo "failed to find some modules" >&6; }
+ # Find out which modules are missing.
+ for i in $perl_use_string; do
+ if test "$i" != "use" -a "$i" != ";"; then
+ if ! $PERL -e "use $i;">/dev/null 2>&1; then
+ missing_perl_modules="$missing_perl_modules $i"
+ fi
+ fi
+ done
+ as_fn_error $? "
+ The missing Perl modules are: $missing_perl_modules
+ Install them as superuser/administrator with \"cpan -i $missing_perl_modules\"" "$LINENO" 5
+fi
+
+if test "$_os" != "WINNT"; 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 ${ac_cv_path_PKG_CONFIG+:} false; 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 $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$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 ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; 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 $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$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
+fi
+
+if test "$_os" != "WINNT"; then
+
+ # If you use CC=/path/to/compiler/foo-gcc or even CC="ccache
+ # /path/to/compiler/foo-gcc" you need to set the AR etc env vars
+ # explicitly. Or put /path/to/compiler in PATH yourself.
+
+ # Use wrappers for LTO
+ if test "$ENABLE_LTO" = "TRUE" -a "$COM_IS_CLANG" != "TRUE"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc-ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc-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 ${ac_cv_prog_AR+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AR="${ac_tool_prefix}gcc-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 "gcc-ar", so it can be a program name with args.
+set dummy gcc-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 ${ac_cv_prog_ac_ct_AR+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AR="gcc-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=""
+ 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
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc-nm", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc-nm; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_NM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NM"; then
+ ac_cv_prog_NM="$NM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_NM="${ac_tool_prefix}gcc-nm"
+ $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
+NM=$ac_cv_prog_NM
+if test -n "$NM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
+$as_echo "$NM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NM"; then
+ ac_ct_NM=$NM
+ # Extract the first word of "gcc-nm", so it can be a program name with args.
+set dummy gcc-nm; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_NM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_NM"; then
+ ac_cv_prog_ac_ct_NM="$ac_ct_NM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_NM="gcc-nm"
+ $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_NM=$ac_cv_prog_ac_ct_NM
+if test -n "$ac_ct_NM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
+$as_echo "$ac_ct_NM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_NM" = x; then
+ NM=""
+ 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
+ NM=$ac_ct_NM
+ fi
+else
+ NM="$ac_cv_prog_NM"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc-ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc-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 ${ac_cv_prog_RANLIB+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}gcc-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 "gcc-ranlib", so it can be a program name with args.
+set dummy gcc-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 ${ac_cv_prog_ac_ct_RANLIB+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_RANLIB="gcc-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
+
+ else
+ 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 ${ac_cv_prog_AR+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_AR+:} false; 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 as_fn_executable_p "$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=""
+ 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
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nm; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_NM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NM"; then
+ ac_cv_prog_NM="$NM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_NM="${ac_tool_prefix}nm"
+ $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
+NM=$ac_cv_prog_NM
+if test -n "$NM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
+$as_echo "$NM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NM"; then
+ ac_ct_NM=$NM
+ # Extract the first word of "nm", so it can be a program name with args.
+set dummy nm; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_NM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_NM"; then
+ ac_cv_prog_ac_ct_NM="$ac_ct_NM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_NM="nm"
+ $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_NM=$ac_cv_prog_ac_ct_NM
+if test -n "$ac_ct_NM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
+$as_echo "$ac_ct_NM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_NM" = x; then
+ NM=""
+ 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
+ NM=$ac_ct_NM
+ fi
+else
+ NM="$ac_cv_prog_NM"
+fi
+
+ 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 ${ac_cv_prog_RANLIB+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_RANLIB+:} false; 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 as_fn_executable_p "$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
+
+ 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 ${ac_cv_prog_OBJDUMP+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_OBJDUMP+:} false; 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 as_fn_executable_p "$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=""
+ 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
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
+set dummy ${ac_tool_prefix}readelf; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_READELF+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$READELF"; then
+ ac_cv_prog_READELF="$READELF" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_READELF="${ac_tool_prefix}readelf"
+ $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
+READELF=$ac_cv_prog_READELF
+if test -n "$READELF"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
+$as_echo "$READELF" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_READELF"; then
+ ac_ct_READELF=$READELF
+ # Extract the first word of "readelf", so it can be a program name with args.
+set dummy readelf; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_READELF+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_READELF"; then
+ ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_READELF="readelf"
+ $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_READELF=$ac_cv_prog_ac_ct_READELF
+if test -n "$ac_ct_READELF"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
+$as_echo "$ac_ct_READELF" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_READELF" = x; then
+ READELF=""
+ 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
+ READELF=$ac_ct_READELF
+ fi
+else
+ READELF="$ac_cv_prog_READELF"
+fi
+
+ 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 ${ac_cv_prog_STRIP+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_STRIP+:} false; 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 as_fn_executable_p "$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
+
+ if test "$_os" = "WINNT"; then
+ 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 ${ac_cv_prog_DLLTOOL+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_DLLTOOL+:} false; 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 as_fn_executable_p "$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=""
+ 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}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 ${ac_cv_prog_WINDRES+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$WINDRES"; then
+ ac_cv_prog_WINDRES="$WINDRES" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
+ $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
+WINDRES=$ac_cv_prog_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_prog_WINDRES"; then
+ ac_ct_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 ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_WINDRES"; then
+ ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_WINDRES="windres"
+ $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_WINDRES=$ac_cv_prog_ac_ct_WINDRES
+if test -n "$ac_ct_WINDRES"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
+$as_echo "$ac_ct_WINDRES" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_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_ct_WINDRES
+ fi
+else
+ WINDRES="$ac_cv_prog_WINDRES"
+fi
+
+ fi
+fi
+
+
+
+
+
+
+
+
+
+
+
+if test $_os = Darwin; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bogus pkg-config" >&5
+$as_echo_n "checking for bogus pkg-config... " >&6; }
+ if test -n "$PKG_CONFIG"; then
+ if test "$PKG_CONFIG" = /usr/bin/pkg-config && ls -l /usr/bin/pkg-config | $GREP -q Mono.framework; then
+ as_fn_error $? "yes, from Mono. This *will* break the build. Please remove or hide $PKG_CONFIG" "$LINENO" 5
+ else
+ if test "$enable_bogus_pkg_config" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, user-approved from unknown origin." >&5
+$as_echo "yes, user-approved from unknown origin." >&6; }
+ else
+ as_fn_error $? "yes, from unknown origin. This *will* break the build. Please modify your PATH variable so that $PKG_CONFIG is no longer found by configure scripts." "$LINENO" 5
+ fi
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, good" >&5
+$as_echo "no, good" >&6; }
+ fi
+fi
+
+find_csc()
+{
+ # Return value: $csctest
+
+ unset csctest
+
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/NET Framework Setup/NDP/v4/Client/InstallPath"
+ if test -n "$regvalue"; then
+ csctest=$regvalue
+ return
+ fi
+}
+
+find_al()
+{
+ # Return value: $altest
+
+ unset altest
+
+ # We need this check to detect 4.6.1 or above.
+ for ver in 4.8 4.7.2 4.7.1 4.7 4.6.2 4.6.1; do
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/$ver/WinSDK-NetFx40Tools/InstallationFolder"
+ if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then
+ altest=$regvalue
+ return
+ fi
+ done
+
+ for x in `ls /proc/registry32/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft\ SDKs/Windows`; do
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/$x/WinSDK-NetFx40Tools/InstallationFolder"
+ if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then
+ altest=$regvalue
+ return
+ fi
+ done
+
+
+}
+
+find_dotnetsdk46()
+{
+ unset frametest
+
+ for ver in 4.8 4.7.2 4.7.1 4.7 4.6.2 4.6.1 4.6; do
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/$ver/KitsInstallationFolder"
+ if test -n "$regvalue"; then
+ frametest=$regvalue
+ return
+ fi
+ done
+}
+
+find_winsdk_version()
+{
+ # Args: $1 : SDK version as in "8.0", "8.1A" etc
+ # Return values: $winsdktest, $winsdkbinsubdir, $winsdklibsubdir
+
+ unset winsdktest winsdkbinsubdir winsdklibsubdir
+
+ case "$1" in
+ 8.0|8.0A)
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows Kits/Installed Roots/KitsRoot"
+ if test -n "$regvalue"; then
+ winsdktest=$regvalue
+ winsdklibsubdir=win8
+ return
+ fi
+ ;;
+ 8.1|8.1A)
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows Kits/Installed Roots/KitsRoot81"
+ if test -n "$regvalue"; then
+ winsdktest=$regvalue
+ winsdklibsubdir=winv6.3
+ return
+ fi
+ ;;
+ 10.0)
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v${1}/InstallationFolder"
+ if test -n "$regvalue"; then
+ winsdktest=$regvalue
+ reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v${1}/ProductVersion"
+ if test -n "$regvalue"; then
+ winsdkbinsubdir="$regvalue".0
+ winsdklibsubdir=$winsdkbinsubdir
+ tmppath="$winsdktest\\Include\\$winsdklibsubdir"
+ # test exist the SDK path
+ if test -d "$tmppath"; then
+ # when path is convertible to a short path then path is okay
+ cygpath -d "$tmppath" >/dev/null 2>&1
+ if test $? -ne 0; then
+ as_fn_error $? "Windows SDK doesn't have a 8.3 name, see NtfsDisable8dot3NameCreation" "$LINENO" 5
+ fi
+ else
+ as_fn_error $? "The Windows SDK not found, check the installation" "$LINENO" 5
+ fi
+ fi
+ return
+ fi
+ ;;
+ esac
+}
+
+find_winsdk()
+{
+ # Return value: From find_winsdk_version
+
+ unset winsdktest
+
+ for ver in $WINDOWS_SDK_ACCEPTABLE_VERSIONS; do
+ find_winsdk_version $ver
+ if test -n "$winsdktest"; then
+ return
+ fi
+ done
+}
+
+find_msms()
+{
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSVC merge modules directory" >&5
+$as_echo_n "checking for MSVC merge modules directory... " >&6; }
+ my_msm_files=Microsoft_VC${VCVER}_CRT_x86.msm
+ case "$VCVER" in
+ 160)
+ my_msm_files="Microsoft_VC141_CRT_x86.msm Microsoft_VC142_CRT_x86.msm ${my_msm_files}"
+ ;;
+ esac
+ for f in $my_msm_files; do
+ echo "$as_me:$LINENO: searching for $f" >&5
+ done
+
+ msmdir=
+ for ver in 14.0 15.0; do
+ reg_get_value_32 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VisualStudio/$ver/Setup/VS/MSMDir
+ if test -n "$regvalue"; then
+ for f in ${my_msm_files}; do
+ if test -e "$regvalue/${f}"; then
+ msmdir=$regvalue
+ break
+ fi
+ done
+ fi
+ done
+ if test -z "$msmdir"; then
+ my_msm_dir="${COMMONPROGRAMFILES}/Merge Modules/"
+ for f in ${my_msm_files}; do
+ if test -e "$my_msm_dir/${f}"; then
+ msmdir=$my_msm_dir
+ fi
+ done
+ fi
+
+ case "$VCVER" in
+ 160)
+ for l in `ls -1 $VC_PRODUCT_DIR/redist/MSVC/`; do
+ echo "$as_me:$LINENO: looking in $VC_PRODUCT_DIR/redist/MSVC/$l/MergeModules])" >&5
+ my_msm_dir="$VC_PRODUCT_DIR/redist/MSVC/$l/MergeModules/"
+ for f in ${my_msm_files}; do
+ if test -e "$my_msm_dir/${f}"; then
+ msmdir=$my_msm_dir
+ break
+ fi
+ done
+ done
+ ;;
+ esac
+
+ if test -n "$msmdir"; then
+ msmdir=`cygpath -m "$msmdir"`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msmdir" >&5
+$as_echo "$msmdir" >&6; }
+ else
+ if test "$ENABLE_RELEASE_BUILD" = "TRUE" ; 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 $? "not found
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found (check config.log)" >&5
+$as_echo "$as_me: WARNING: not found (check config.log)" >&2;}
+ add_warning "MSM none of ${my_msm_files} found"
+ fi
+ fi
+}
+
+find_msvc_x64_dlls()
+{
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSVC x64 DLL path" >&5
+$as_echo_n "checking for MSVC x64 DLL path... " >&6; }
+ msvcdllpath="$VC_PRODUCT_DIR/redist/x64/Microsoft.VC${VCVER}.CRT"
+ case "$VCVER" in
+ 160)
+ for l in `ls -1 $VC_PRODUCT_DIR/redist/MSVC/`; do
+ echo "$as_me:$LINENO: testing $VC_PRODUCT_DIR/redist/MSVC/$l/x64/Microsoft.VC141.CRT" >&5
+ if test -d "$VC_PRODUCT_DIR/redist/MSVC/$l/x64/Microsoft.VC141.CRT"; then
+ msvcdllpath="$VC_PRODUCT_DIR/redist/MSVC/$l/x64/Microsoft.VC141.CRT"
+ break
+ fi
+ echo "$as_me:$LINENO: testing $VC_PRODUCT_DIR/redist/MSVC/$l/x64/Microsoft.VC142.CRT" >&5
+ if test -d "$VC_PRODUCT_DIR/redist/MSVC/$l/x64/Microsoft.VC142.CRT"; then
+ msvcdllpath="$VC_PRODUCT_DIR/redist/MSVC/$l/x64/Microsoft.VC142.CRT"
+ break
+ fi
+ done
+ ;;
+ esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msvcdllpath" >&5
+$as_echo "$msvcdllpath" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSVC x64 DLLs" >&5
+$as_echo_n "checking for MSVC x64 DLLs... " >&6; }
+ msvcdlls="msvcp140.dll vcruntime140.dll"
+ for dll in $msvcdlls; do
+ if ! test -f "$msvcdllpath/$dll"; 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 $? "missing $dll
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+ done
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found all ($msvcdlls)" >&5
+$as_echo "found all ($msvcdlls)" >&6; }
+}
+
+if test "$_os" = "WINNT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows SDK" >&5
+$as_echo_n "checking for Windows SDK... " >&6; }
+ if test "$build_os" = "cygwin"; then
+ find_winsdk
+ WINDOWS_SDK_HOME=$winsdktest
+
+ # normalize if found
+ if test -n "$WINDOWS_SDK_HOME"; then
+ WINDOWS_SDK_HOME=`cygpath -d "$WINDOWS_SDK_HOME"`
+ WINDOWS_SDK_HOME=`cygpath -u "$WINDOWS_SDK_HOME"`
+ fi
+
+ WINDOWS_SDK_LIB_SUBDIR=$winsdklibsubdir
+ fi
+
+ if test -n "$WINDOWS_SDK_HOME"; then
+ # Remove a possible trailing backslash
+ WINDOWS_SDK_HOME=`echo $WINDOWS_SDK_HOME | $SED 's/\/$//'`
+
+ if test -f "$WINDOWS_SDK_HOME/Include/adoint.h" \
+ -a -f "$WINDOWS_SDK_HOME/Include/SqlUcode.h" \
+ -a -f "$WINDOWS_SDK_HOME/Include/usp10.h"; then
+ have_windows_sdk_headers=yes
+ elif test -f "$WINDOWS_SDK_HOME/Include/um/adoint.h" \
+ -a -f "$WINDOWS_SDK_HOME/Include/um/SqlUcode.h" \
+ -a -f "$WINDOWS_SDK_HOME/Include/um/usp10.h"; then
+ have_windows_sdk_headers=yes
+ elif test -f "$WINDOWS_SDK_HOME/Include/$winsdklibsubdir/um/adoint.h" \
+ -a -f "$WINDOWS_SDK_HOME/Include/$winsdklibsubdir/um/SqlUcode.h" \
+ -a -f "$WINDOWS_SDK_HOME/Include/$winsdklibsubdir/um/usp10.h"; then
+ have_windows_sdk_headers=yes
+ else
+ have_windows_sdk_headers=no
+ fi
+
+ if test -f "$WINDOWS_SDK_HOME/lib/user32.lib"; then
+ have_windows_sdk_libs=yes
+ elif test -f "$WINDOWS_SDK_HOME/lib/$winsdklibsubdir/um/$WINDOWS_SDK_ARCH/user32.lib"; then
+ have_windows_sdk_libs=yes
+ else
+ have_windows_sdk_libs=no
+ fi
+
+ if test $have_windows_sdk_headers = no -o $have_windows_sdk_libs = no; then
+ as_fn_error $? "Some (all?) Windows SDK files not found, please check if all needed parts of
+the Windows SDK are installed." "$LINENO" 5
+ fi
+ fi
+
+ if test -z "$WINDOWS_SDK_HOME"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, hoping the necessary headers and libraries will be found anyway!?" >&5
+$as_echo "no, hoping the necessary headers and libraries will be found anyway!?" >&6; }
+ elif echo $WINDOWS_SDK_HOME | grep "8.0" >/dev/null 2>/dev/null; then
+ WINDOWS_SDK_VERSION=80
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Windows SDK 8.0 ($WINDOWS_SDK_HOME)" >&5
+$as_echo "found Windows SDK 8.0 ($WINDOWS_SDK_HOME)" >&6; }
+ elif echo $WINDOWS_SDK_HOME | grep "8.1" >/dev/null 2>/dev/null; then
+ WINDOWS_SDK_VERSION=81
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Windows SDK 8.1 ($WINDOWS_SDK_HOME)" >&5
+$as_echo "found Windows SDK 8.1 ($WINDOWS_SDK_HOME)" >&6; }
+ elif echo $WINDOWS_SDK_HOME | grep "/10" >/dev/null 2>/dev/null; then
+ WINDOWS_SDK_VERSION=10
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Windows SDK 10.0 ($WINDOWS_SDK_HOME)" >&5
+$as_echo "found Windows SDK 10.0 ($WINDOWS_SDK_HOME)" >&6; }
+ else
+ as_fn_error $? "Found legacy Windows Platform SDK ($WINDOWS_SDK_HOME)" "$LINENO" 5
+ fi
+ PathFormat "$WINDOWS_SDK_HOME"
+ WINDOWS_SDK_HOME="$formatted_path"
+ if test "$build_os" = "cygwin"; then
+ SOLARINC="$SOLARINC -I$WINDOWS_SDK_HOME/include -I$COMPATH/Include"
+ if test -d "$WINDOWS_SDK_HOME/include/um"; then
+ SOLARINC="$SOLARINC -I$WINDOWS_SDK_HOME/include/um -I$WINDOWS_SDK_HOME/include/shared"
+ elif test -d "$WINDOWS_SDK_HOME/Include/$winsdklibsubdir/um"; then
+ SOLARINC="$SOLARINC -I$WINDOWS_SDK_HOME/Include/$winsdklibsubdir/um -I$WINDOWS_SDK_HOME/Include/$winsdklibsubdir/shared"
+ fi
+ fi
+
+ if test -z "$WINDOWS_SDK_WILANGID" -a -n "$WINDOWS_SDK_HOME"; then
+ WINDOWS_SDK_WILANGID=$WINDOWS_SDK_HOME/Samples/sysmgmt/msi/scripts/WiLangId.vbs
+ if ! test -e "$WINDOWS_SDK_WILANGID" ; then
+ WINDOWS_SDK_WILANGID="${WINDOWS_SDK_HOME}/bin/${WINDOWS_SDK_LIB_SUBDIR}/${WINDOWS_SDK_ARCH}/WiLangId.vbs"
+ fi
+ if ! test -e "$WINDOWS_SDK_WILANGID" ; then
+ WINDOWS_SDK_WILANGID=$WINDOWS_SDK_HOME/bin/$WINDOWS_SDK_ARCH/WiLangId.vbs
+ fi
+ if ! test -e "$WINDOWS_SDK_WILANGID" ; then
+ WINDOWS_SDK_WILANGID=$(cygpath -sm "C:/Program Files (x86)/Windows Kits/8.1/bin/$WINDOWS_SDK_ARCH/WiLangId.vbs")
+ fi
+ fi
+ if test -n "$with_lang" -a "$with_lang" != "en-US"; then
+ if test -n "$with_package_format" -a "$with_package_format" != no; then
+ for i in "$with_package_format"; do
+ if test "$i" = "msi"; then
+ if ! test -e "$WINDOWS_SDK_WILANGID" ; then
+ as_fn_error $? "WiLangId.vbs not found - building translated packages will fail" "$LINENO" 5
+ fi
+ fi
+ done
+ fi
+ fi
+fi
+
+
+
+
+
+if test "$build_os" = "cygwin"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for midl.exe" >&5
+$as_echo_n "checking for midl.exe... " >&6; }
+
+ find_winsdk
+ if test -n "$winsdkbinsubdir" \
+ -a -f "$winsdktest/Bin/$winsdkbinsubdir/$WINDOWS_SDK_ARCH/midl.exe"
+ then
+ MIDL_PATH=$winsdktest/Bin/$winsdkbinsubdir/$WINDOWS_SDK_ARCH
+ WINDOWS_SDK_BINDIR_NO_ARCH=$WINDOWS_SDK_HOME/Bin/$winsdkbinsubdir
+ elif test -f "$winsdktest/Bin/$WINDOWS_SDK_ARCH/midl.exe"; then
+ MIDL_PATH=$winsdktest/Bin/$WINDOWS_SDK_ARCH
+ WINDOWS_SDK_BINDIR_NO_ARCH=$WINDOWS_SDK_HOME/Bin
+ elif test -f "$winsdktest/Bin/midl.exe"; then
+ MIDL_PATH=$winsdktest/Bin
+ WINDOWS_SDK_BINDIR_NO_ARCH=$WINDOWS_SDK_HOME/Bin
+ fi
+ if test ! -f "$MIDL_PATH/midl.exe"; then
+ as_fn_error $? "midl.exe not found in $winsdktest/Bin/$WINDOWS_SDK_ARCH, Windows SDK installation broken?" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL_PATH/midl.exe" >&5
+$as_echo "$MIDL_PATH/midl.exe" >&6; }
+ fi
+
+ # Convert to posix path with 8.3 filename restrictions ( No spaces )
+ MIDL_PATH=`win_short_path_for_make "$MIDL_PATH"`
+
+ if test -f "$WINDOWS_SDK_BINDIR_NO_ARCH/msiinfo.exe" \
+ -a -f "$WINDOWS_SDK_BINDIR_NO_ARCH/msidb.exe" \
+ -a -f "$WINDOWS_SDK_BINDIR_NO_ARCH/uuidgen.exe" \
+ -a -f "$WINDOWS_SDK_BINDIR_NO_ARCH/msitran.exe"; then :
+ elif test -f "$WINDOWS_SDK_BINDIR_NO_ARCH/x86/msiinfo.exe" \
+ -a -f "$WINDOWS_SDK_BINDIR_NO_ARCH/x86/msidb.exe" \
+ -a -f "$WINDOWS_SDK_BINDIR_NO_ARCH/x86/uuidgen.exe" \
+ -a -f "$WINDOWS_SDK_BINDIR_NO_ARCH/x86/msitran.exe"; then :
+ elif test -f "$WINDOWS_SDK_HOME/bin/x86/msiinfo.exe" \
+ -a -f "$WINDOWS_SDK_HOME/bin/x86/msidb.exe" \
+ -a -f "$WINDOWS_SDK_BINDIR_NO_ARCH/x86/uuidgen.exe" \
+ -a -f "$WINDOWS_SDK_HOME/bin/x86/msitran.exe"; then :
+ else
+ as_fn_error $? "Some (all?) Windows Installer tools in the Windows SDK are missing, please install." "$LINENO" 5
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csc.exe" >&5
+$as_echo_n "checking for csc.exe... " >&6; }
+ find_csc
+ if test -f "$csctest/csc.exe"; then
+ CSC_PATH="$csctest"
+ fi
+ if test ! -f "$CSC_PATH/csc.exe"; then
+ as_fn_error $? "csc.exe not found as $CSC_PATH/csc.exe" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC_PATH/csc.exe" >&5
+$as_echo "$CSC_PATH/csc.exe" >&6; }
+ fi
+
+ CSC_PATH=`win_short_path_for_make "$CSC_PATH"`
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for al.exe" >&5
+$as_echo_n "checking for al.exe... " >&6; }
+ find_winsdk
+ if test -n "$winsdkbinsubdir" \
+ -a -f "$winsdktest/Bin/$winsdkbinsubdir/$WINDOWS_SDK_ARCH/al.exe"
+ then
+ AL_PATH="$winsdktest/Bin/$winsdkbinsubdir/$WINDOWS_SDK_ARCH"
+ elif test -f "$winsdktest/Bin/$WINDOWS_SDK_ARCH/al.exe"; then
+ AL_PATH="$winsdktest/Bin/$WINDOWS_SDK_ARCH"
+ elif test -f "$winsdktest/Bin/al.exe"; then
+ AL_PATH="$winsdktest/Bin"
+ fi
+
+ if test -z "$AL_PATH"; then
+ find_al
+ if test -f "$altest/bin/al.exe"; then
+ AL_PATH="$altest/bin"
+ elif test -f "$altest/al.exe"; then
+ AL_PATH="$altest"
+ fi
+ fi
+ if test ! -f "$AL_PATH/al.exe"; then
+ as_fn_error $? "al.exe not found as $AL_PATH/al.exe" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AL_PATH/al.exe" >&5
+$as_echo "$AL_PATH/al.exe" >&6; }
+ fi
+
+ AL_PATH=`win_short_path_for_make "$AL_PATH"`
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking .NET Framework" >&5
+$as_echo_n "checking .NET Framework... " >&6; }
+ find_dotnetsdk46
+ PathFormat "$frametest"
+ frametest="$formatted_path"
+ if test -f "$frametest/Lib/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then
+ DOTNET_FRAMEWORK_HOME="$frametest"
+ else
+ find_winsdk
+ if test -f "$winsdktest/lib/mscoree.lib" -o -f "$winsdktest/lib/$winsdklibsubdir/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then
+ DOTNET_FRAMEWORK_HOME="$winsdktest"
+ fi
+ fi
+ if test ! -f "$DOTNET_FRAMEWORK_HOME/lib/mscoree.lib" -a ! -f "$DOTNET_FRAMEWORK_HOME/lib/$winsdklibsubdir/um/$WINDOWS_SDK_ARCH/mscoree.lib" -a ! -f "$DOTNET_FRAMEWORK_HOME/Lib/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then
+ as_fn_error $? "mscoree.lib not found" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found: $DOTNET_FRAMEWORK_HOME" >&5
+$as_echo "found: $DOTNET_FRAMEWORK_HOME" >&6; }
+
+ PathFormat "$MIDL_PATH"
+ MIDL_PATH="$formatted_path"
+
+ PathFormat "$AL_PATH"
+ AL_PATH="$formatted_path"
+
+ PathFormat "$DOTNET_FRAMEWORK_HOME"
+ DOTNET_FRAMEWORK_HOME="$formatted_path"
+
+ PathFormat "$CSC_PATH"
+ CSC_PATH="$formatted_path"
+fi
+
+if test "$_os" != "WINNT"; then
+ { $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 ${ac_cv_header_stdc+:} false; 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
+
+fi
+
+
+if test "$_os" != "WINNT"; then
+ # AC_PROG_CXX sets CXXFLAGS to -g -O2 if not set, avoid that
+ save_CXXFLAGS=$CXXFLAGS
+ 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 ${ac_cv_prog_CXX+:} false; 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 as_fn_executable_p "$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 ${ac_cv_prog_ac_ct_CXX+:} false; 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 as_fn_executable_p "$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
+ fi
+ rm -f conftest.er1 conftest.err
+ $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 ${ac_cv_cxx_compiler_gnu+:} false; 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 ${ac_cv_prog_cxx_g+:} false; 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ if test -z "$CXX_BASE"; then
+ CXX_BASE=`first_arg_basename "$CXX"`
+ fi
+fi
+
+if test "$GXX" = "yes" -a -z "$COM_IS_CLANG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GNU C++ compiler version" >&5
+$as_echo_n "checking the GNU C++ compiler version... " >&6; }
+
+ _gpp_version=`$CXX -dumpversion`
+ _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`
+
+ if test "$_gpp_majmin" -lt "700"; then
+ as_fn_error $? "You need to use GNU C++ compiler version >= 7.0 to build LibreOffice, you have $_gpp_version." "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (g++ $_gpp_version)" >&5
+$as_echo "ok (g++ $_gpp_version)" >&6; }
+ fi
+
+ glibcxx_threads=no
+ 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
+
+
+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 ${ac_cv_prog_CXXCPP+:} false; 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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 \"$CXXCPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
+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_BASE is broken with boost.thread" >&5
+$as_echo_n "checking whether $CXX_BASE is broken with boost.thread... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <bits/c++config.h>
+int
+main ()
+{
+
+ #if !defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
+ && !defined(_GLIBCXX__PTHREADS) \
+ && !defined(_GLIBCXX_HAS_GTHREADS)
+ choke me
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ glibcxx_threads=yes
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f conftest.err conftest.i 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
+
+ if test $glibcxx_threads = yes; then
+ BOOST_CXXFLAGS="-D_GLIBCXX_HAS_GTHREADS"
+ fi
+fi
+
+
+#
+# prefx CXX with ccache if needed
+#
+if test "$CCACHE" != ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE is already ccached" >&5
+$as_echo_n "checking whether $CXX_BASE is already ccached... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS --ccache-skip -O2"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ use_ccache=yes
+else
+ use_ccache=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ if test $use_ccache = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ CXX="$CCACHE $CXX"
+ CXX_BASE="ccache $CXX_BASE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ 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 "$_os" != "WINNT"; 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 ${ac_cv_prog_CXXCPP+:} false; 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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 \"$CXXCPP\" 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
+
+
+ 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 ${ac_cv_prog_CPP+:} false; 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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.i 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.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i 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
+
+fi
+
+
+
+if test "$_os" != "WINNT"; then
+
+if test "$_os" = "iOS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking iOS setting sizes long, short, int, long long, double, voidp" >&5
+$as_echo_n "checking iOS setting sizes long, short, int, long long, double, voidp... " >&6; }
+ ac_cv_sizeof_long=8
+ ac_cv_sizeof_short=2
+ ac_cv_sizeof_int=4
+ ac_cv_sizeof_long_long=8
+ ac_cv_sizeof_double=8
+ ac_cv_sizeof_voidp=8
+else
+ # The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
+$as_echo_n "checking size of long... " >&6; }
+if ${ac_cv_sizeof_long+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_long" = yes; 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 77 "cannot compute sizeof (long)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_long=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
+$as_echo "$ac_cv_sizeof_long" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_LONG $ac_cv_sizeof_long
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
+$as_echo_n "checking size of short... " >&6; }
+if ${ac_cv_sizeof_short+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_short" = yes; 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 77 "cannot compute sizeof (short)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_short=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
+$as_echo "$ac_cv_sizeof_short" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_SHORT $ac_cv_sizeof_short
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
+$as_echo_n "checking size of int... " >&6; }
+if ${ac_cv_sizeof_int+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_int" = yes; 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 77 "cannot compute sizeof (int)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_int=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
+$as_echo "$ac_cv_sizeof_int" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_INT $ac_cv_sizeof_int
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
+$as_echo_n "checking size of long long... " >&6; }
+if ${ac_cv_sizeof_long_long+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_long_long" = yes; 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 77 "cannot compute sizeof (long long)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_long_long=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
+$as_echo "$ac_cv_sizeof_long_long" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
+$as_echo_n "checking size of double... " >&6; }
+if ${ac_cv_sizeof_double+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_double" = yes; 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 77 "cannot compute sizeof (double)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_double=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
+$as_echo "$ac_cv_sizeof_double" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_DOUBLE $ac_cv_sizeof_double
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
+$as_echo_n "checking size of void*... " >&6; }
+if ${ac_cv_sizeof_voidp+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_voidp" = yes; 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 77 "cannot compute sizeof (void*)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_voidp=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
+$as_echo "$ac_cv_sizeof_voidp" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
+_ACEOF
+
+
+fi
+
+ SAL_TYPES_SIZEOFSHORT=$ac_cv_sizeof_short
+ SAL_TYPES_SIZEOFINT=$ac_cv_sizeof_int
+ SAL_TYPES_SIZEOFLONG=$ac_cv_sizeof_long
+ SAL_TYPES_SIZEOFLONGLONG=$ac_cv_sizeof_long_long
+ SAL_TYPES_SIZEOFPOINTER=$ac_cv_sizeof_voidp
+
+
+
+ # The cast to long int works around a bug in the HP C Compiler,
+# see AC_CHECK_SIZEOF for more information.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
+$as_echo_n "checking alignment of short... " >&6; }
+if ${ac_cv_alignof_short+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "#include <stddef.h>
+
+#ifndef offsetof
+# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
+#endif
+typedef struct { char x; short y; } ac__type_alignof_;"; then :
+
+else
+ if test "$ac_cv_type_short" = yes; 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 77 "cannot compute alignment of short
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_alignof_short=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
+$as_echo "$ac_cv_alignof_short" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define ALIGNOF_SHORT $ac_cv_alignof_short
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler,
+# see AC_CHECK_SIZEOF for more information.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
+$as_echo_n "checking alignment of int... " >&6; }
+if ${ac_cv_alignof_int+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "#include <stddef.h>
+
+#ifndef offsetof
+# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
+#endif
+typedef struct { char x; int y; } ac__type_alignof_;"; then :
+
+else
+ if test "$ac_cv_type_int" = yes; 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 77 "cannot compute alignment of int
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_alignof_int=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
+$as_echo "$ac_cv_alignof_int" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define ALIGNOF_INT $ac_cv_alignof_int
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler,
+# see AC_CHECK_SIZEOF for more information.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
+$as_echo_n "checking alignment of long... " >&6; }
+if ${ac_cv_alignof_long+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "#include <stddef.h>
+
+#ifndef offsetof
+# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
+#endif
+typedef struct { char x; long y; } ac__type_alignof_;"; then :
+
+else
+ if test "$ac_cv_type_long" = yes; 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 77 "cannot compute alignment of long
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_alignof_long=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
+$as_echo "$ac_cv_alignof_long" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define ALIGNOF_LONG $ac_cv_alignof_long
+_ACEOF
+
+
+ # The cast to long int works around a bug in the HP C Compiler,
+# see AC_CHECK_SIZEOF for more information.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
+$as_echo_n "checking alignment of double... " >&6; }
+if ${ac_cv_alignof_double+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "#include <stddef.h>
+
+#ifndef offsetof
+# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
+#endif
+typedef struct { char x; double y; } ac__type_alignof_;"; then :
+
+else
+ if test "$ac_cv_type_double" = yes; 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 77 "cannot compute alignment of double
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_alignof_double=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
+$as_echo "$ac_cv_alignof_double" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define ALIGNOF_DOUBLE $ac_cv_alignof_double
+_ACEOF
+
+
+
+
+ SAL_TYPES_ALIGNMENT2=$ac_cv_alignof_short
+ SAL_TYPES_ALIGNMENT4=$ac_cv_alignof_int
+ if test $ac_cv_sizeof_long -eq 8; then
+ SAL_TYPES_ALIGNMENT8=$ac_cv_alignof_long
+ elif test $ac_cv_sizeof_double -eq 8; then
+ SAL_TYPES_ALIGNMENT8=$ac_cv_alignof_double
+ else
+ as_fn_error $? "Cannot find alignment of 8 byte types." "$LINENO" 5
+ fi
+
+ # Check whether --enable-largefile was given.
+if test "${enable_largefile+set}" = set; then :
+ enableval=$enable_largefile;
+fi
+
+if test "$enable_largefile" != no; then
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
+$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
+if ${ac_cv_sys_largefile_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_sys_largefile_CC=no
+ if test "$GCC" != yes; then
+ ac_save_CC=$CC
+ while :; do
+ # IRIX 6.2 and later do not support large files by default,
+ # so use the C compiler's -n32 option if that helps.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+ break
+fi
+rm -f core conftest.err conftest.$ac_objext
+ CC="$CC -n32"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_largefile_CC=' -n32'; break
+fi
+rm -f core conftest.err conftest.$ac_objext
+ break
+ done
+ CC=$ac_save_CC
+ rm -f conftest.$ac_ext
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
+$as_echo "$ac_cv_sys_largefile_CC" >&6; }
+ if test "$ac_cv_sys_largefile_CC" != no; then
+ CC=$CC$ac_cv_sys_largefile_CC
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
+$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
+if ${ac_cv_sys_file_offset_bits+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_file_offset_bits=no; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#define _FILE_OFFSET_BITS 64
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_file_offset_bits=64; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cv_sys_file_offset_bits=unknown
+ break
+done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
+$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
+case $ac_cv_sys_file_offset_bits in #(
+ no | unknown) ;;
+ *)
+cat >>confdefs.h <<_ACEOF
+#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
+_ACEOF
+;;
+esac
+rm -rf conftest*
+ if test $ac_cv_sys_file_offset_bits = unknown; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
+$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
+if ${ac_cv_sys_large_files+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_large_files=no; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#define _LARGE_FILES 1
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_large_files=1; break
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cv_sys_large_files=unknown
+ break
+done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
+$as_echo "$ac_cv_sys_large_files" >&6; }
+case $ac_cv_sys_large_files in #(
+ no | unknown) ;;
+ *)
+cat >>confdefs.h <<_ACEOF
+#define _LARGE_FILES $ac_cv_sys_large_files
+_ACEOF
+;;
+esac
+rm -rf conftest*
+ fi
+
+
+fi
+
+ if test -n "$ac_cv_sys_file_offset_bits" -a "$ac_cv_sys_file_offset_bits" != "no"; then
+ LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
+ fi
+ if test -n "$ac_cv_sys_large_files" -a "$ac_cv_sys_large_files" != "no"; then
+ LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
+ fi
+else
+ # Hardcode for MSVC
+ SAL_TYPES_SIZEOFSHORT=2
+ SAL_TYPES_SIZEOFINT=4
+ SAL_TYPES_SIZEOFLONG=4
+ SAL_TYPES_SIZEOFLONGLONG=8
+ if test "$BITNESS_OVERRIDE" = ""; then
+ SAL_TYPES_SIZEOFPOINTER=4
+ else
+ SAL_TYPES_SIZEOFPOINTER=8
+ fi
+ SAL_TYPES_ALIGNMENT2=2
+ SAL_TYPES_ALIGNMENT4=4
+ SAL_TYPES_ALIGNMENT8=8
+ LFS_CFLAGS=''
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_SIZEOFSHORT $SAL_TYPES_SIZEOFSHORT
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_SIZEOFINT $SAL_TYPES_SIZEOFINT
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_SIZEOFLONG $SAL_TYPES_SIZEOFLONG
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_SIZEOFLONGLONG $SAL_TYPES_SIZEOFLONGLONG
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_SIZEOFPOINTER $SAL_TYPES_SIZEOFPOINTER
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_ALIGNMENT2 $SAL_TYPES_ALIGNMENT2
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_ALIGNMENT4 $SAL_TYPES_ALIGNMENT4
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define SAL_TYPES_ALIGNMENT8 $SAL_TYPES_ALIGNMENT8
+_ACEOF
+
+
+ENABLE_RUNTIME_OPTIMIZATIONS=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runtime optimizations" >&5
+$as_echo_n "checking whether to enable runtime optimizations... " >&6; }
+if test -z "$enable_runtime_optimizations"; then
+ for i in $CC; do
+ case $i in
+ -fsanitize=*)
+ enable_runtime_optimizations=no
+ break
+ ;;
+ esac
+ done
+fi
+if test "$enable_runtime_optimizations" != no; then
+ ENABLE_RUNTIME_OPTIMIZATIONS=TRUE
+ $as_echo "#define ENABLE_RUNTIME_OPTIMIZATIONS 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
+
+
+ENABLE_VALGRIND=
+if test "$cross_compiling" != yes -a "$with_valgrind" != no; then
+ prev_cppflags=$CPPFLAGS
+ # Is VALGRIND_CFLAGS something one is supposed to have in the environment,
+ # or where does it come from?
+ CPPFLAGS="$CPPFLAGS $VALGRIND_CFLAGS"
+ ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
+if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
+ ENABLE_VALGRIND=TRUE
+fi
+
+
+ CPPFLAGS=$prev_cppflags
+fi
+
+if test -z "$ENABLE_VALGRIND"; then
+ if test "$with_valgrind" = yes; then
+ as_fn_error $? "--with-valgrind specified but no Valgrind headers found" "$LINENO" 5
+ fi
+ VALGRIND_CFLAGS=
+fi
+
+
+
+
+# We need at least the sys/sdt.h include header.
+ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
+ SDT_H_FOUND='TRUE'
+else
+ SDT_H_FOUND='FALSE'
+fi
+
+
+if test "$SDT_H_FOUND" = "TRUE"; then
+ # Found sys/sdt.h header, now make sure the c++ compiler works.
+ # Old g++ versions had problems with probes in constructors/destructors.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking working sys/sdt.h and c++ support" >&5
+$as_echo_n "checking working sys/sdt.h and c++ support... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <sys/sdt.h>
+ class ProbeClass
+ {
+ private:
+ int& ref;
+ const char *name;
+
+ public:
+ ProbeClass(int& v, const char *n) : ref(v), name(n)
+ {
+ DTRACE_PROBE2(_test_, cons, name, ref);
+ }
+
+ void method(int min)
+ {
+ DTRACE_PROBE3(_test_, meth, name, ref, min);
+ ref -= min;
+ }
+
+ ~ProbeClass()
+ {
+ DTRACE_PROBE2(_test_, dest, name, ref);
+ }
+ };
+
+int
+main ()
+{
+
+ int i = 64;
+ DTRACE_PROBE1(_test_, call, i);
+ ProbeClass inst = ProbeClass(i, "call");
+ inst.method(24);
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }; $as_echo "#define USE_SDT_PROBES 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, sdt.h or c++ compiler too old" >&5
+$as_echo "no, sdt.h or c++ compiler too old" >&6; }
+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
+ac_config_headers="$ac_config_headers config_host/config_probes.h"
+
+
+HAVE_GCC_STACK_CLASH_PROTECTION=
+if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -fstack-clash-protection" >&5
+$as_echo_n "checking whether $CC_BASE supports -fstack-clash-protection... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -fstack-clash-protection"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }; HAVE_GCC_STACK_CLASH_PROTECTION=TRUE
+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_exeext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports -mno-avx" >&5
+$as_echo_n "checking whether $CC_BASE supports -mno-avx... " >&6; }
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -mno-avx"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_GCC_AVX=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ CFLAGS=$save_CFLAGS
+ if test "$HAVE_GCC_AVX" = "TRUE"; 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
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_BASE supports atomic functions" >&5
+$as_echo_n "checking whether $CC_BASE supports atomic functions... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ int v = 0;
+ if (__sync_add_and_fetch(&v, 1) != 1 ||
+ __sync_sub_and_fetch(&v, 1) != 0)
+ return 1;
+ __sync_synchronize();
+ if (__sync_val_compare_and_swap(&v, 0, 1) != 0 ||
+ v != 1)
+ return 1;
+ return 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ HAVE_GCC_BUILTIN_ATOMIC=TRUE
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$HAVE_GCC_BUILTIN_ATOMIC" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ $as_echo "#define HAVE_GCC_BUILTIN_ATOMIC 1" >>confdefs.h
+
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE defines __base_class_type_info in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE defines __base_class_type_info in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cstddef>
+ #include <cxxabi.h>
+ std::size_t f() { return sizeof(__cxxabiv1::__base_class_type_info); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_BASE_CLASS_TYPE_INFO 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
+ 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 whether $CXX_BASE defines __class_type_info in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE defines __class_type_info in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cstddef>
+ #include <cxxabi.h>
+ std::size_t f() { return sizeof(__cxxabiv1::__class_type_info); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_CLASS_TYPE_INFO 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
+ 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 whether $CXX_BASE declares __cxa_allocate_exception in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE declares __cxa_allocate_exception in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cxxabi.h>
+ void * f() { return __cxxabiv1::__cxa_allocate_exception(0); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_CXA_ALLOCATE_EXCEPTION 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
+ 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 whether $CXX_BASE defines __cxa_eh_globals in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE defines __cxa_eh_globals in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cstddef>
+ #include <cxxabi.h>
+ std::size_t f() { return sizeof(__cxxabiv1::__cxa_eh_globals); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_CXA_EH_GLOBALS 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
+ 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 whether $CXX_BASE defines __cxa_exception in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE defines __cxa_exception in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cstddef>
+ #include <cxxabi.h>
+ std::size_t f() { return sizeof(__cxxabiv1::__cxa_exception); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_CXA_EXCEPTION 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
+ 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 whether $CXX_BASE declares __cxa_get_globals in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE declares __cxa_get_globals in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cxxabi.h>
+ void * f() { return __cxxabiv1::__cxa_get_globals(); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_CXA_GET_GLOBALS 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
+ 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 whether $CXX_BASE declares __cxa_current_exception_type in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE declares __cxa_current_exception_type in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cxxabi.h>
+ void * f() { return __cxxabiv1::__cxa_current_exception_type(); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_CXA_CURRENT_EXCEPTION_TYPE 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
+ 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 whether $CXX_BASE declares __cxa_throw in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE declares __cxa_throw in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cxxabi.h>
+ void f() { __cxxabiv1::__cxa_throw(0, 0, 0); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_CXA_THROW 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
+ 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 whether $CXX_BASE defines __si_class_type_info in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE defines __si_class_type_info in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cstddef>
+ #include <cxxabi.h>
+ std::size_t f() { return sizeof(__cxxabiv1::__si_class_type_info); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_SI_CLASS_TYPE_INFO 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
+ 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 whether $CXX_BASE defines __vmi_class_type_info in cxxabi.h" >&5
+$as_echo_n "checking whether $CXX_BASE defines __vmi_class_type_info in cxxabi.h... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <cstddef>
+ #include <cxxabi.h>
+ std::size_t f() { return sizeof(__cxxabiv1::__vmi_class_type_info); }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CXXABI_H_VMI_CLASS_TYPE_INFO 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
+ 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 that $CXX_BASE supports __attribute__((warn_unused))" >&5
+$as_echo_n "checking that $CXX_BASE supports __attribute__((warn_unused))... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS -Werror"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ struct __attribute__((warn_unused)) dummy {};
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+else
+ as_fn_error $? "no" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what the C++ library is" >&5
+$as_echo_n "checking what the C++ library is... " >&6; }
+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
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <utility>
+#ifndef __GLIBCXX__
+foo bar
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ CPP_LIBRARY=GLIBCXX
+ cpp_library_name="GNU libstdc++"
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <utility>
+#ifndef _LIBCPP_VERSION
+foo bar
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ CPP_LIBRARY=LIBCPP
+ cpp_library_name="LLVM libc++"
+ $as_echo "#define HAVE_LIBCXX 1" >>confdefs.h
+
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <utility>
+#ifndef _MSC_VER
+foo bar
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ CPP_LIBRARY=MSVCRT
+ cpp_library_name="Microsoft"
+
+else
+ as_fn_error $? "Could not figure out what C++ library this is" "$LINENO" 5
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_library_name" >&5
+$as_echo "$cpp_library_name" >&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
+
+
+# Extract the first word of "gperf", so it can be a program name with args.
+set dummy gperf; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GPERF+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GPERF in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GPERF="$GPERF" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GPERF="$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
+GPERF=$ac_cv_path_GPERF
+if test -n "$GPERF"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
+$as_echo "$GPERF" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test -z "$GPERF"; then
+ as_fn_error $? "gperf not found but needed. Install it." "$LINENO" 5
+fi
+if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ GPERF=`cygpath -m $GPERF`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gperf is new enough" >&5
+$as_echo_n "checking whether gperf is new enough... " >&6; }
+my_gperf_ver1=$($GPERF --version | head -n 1)
+my_gperf_ver2=${my_gperf_ver1#GNU gperf }
+my_gperf_ver3=$(printf %s "$my_gperf_ver2" | $AWK -F. '{ print $1*100+($2<100?$2:99) }')
+if test "$my_gperf_ver3" -ge 301; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($my_gperf_ver2)" >&5
+$as_echo "yes ($my_gperf_ver2)" >&6; }
+else
+ as_fn_error $? "\"$my_gperf_ver1\" is too old or unrecognized, must be at least gperf 3.1" "$LINENO" 5
+fi
+
+
+# libcmis requires curl and we can't build curl for iOS
+if test $_os != iOS; then
+
+
+# Check whether --with-system-libcmis was given.
+if test "${with_system_libcmis+set}" = set; then :
+ withval=$with_system_libcmis;
+else
+ with_system_libcmis="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libcmis to use" >&5
+$as_echo_n "checking which libcmis to use... " >&6; }
+if test "$with_system_libcmis" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBCMIS=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCMIS" >&5
+$as_echo_n "checking for LIBCMIS... " >&6; }
+
+if test -n "$LIBCMIS_CFLAGS"; then
+ pkg_cv_LIBCMIS_CFLAGS="$LIBCMIS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmis-0.5 >= 0.5.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libcmis-0.5 >= 0.5.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBCMIS_CFLAGS=`$PKG_CONFIG --cflags "libcmis-0.5 >= 0.5.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBCMIS_LIBS"; then
+ pkg_cv_LIBCMIS_LIBS="$LIBCMIS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmis-0.5 >= 0.5.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libcmis-0.5 >= 0.5.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBCMIS_LIBS=`$PKG_CONFIG --libs "libcmis-0.5 >= 0.5.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBCMIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcmis-0.5 >= 0.5.2" 2>&1`
+ else
+ LIBCMIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcmis-0.5 >= 0.5.2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBCMIS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libcmis-0.5 >= 0.5.2) were not met:
+
+$LIBCMIS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBCMIS_CFLAGS
+and LIBCMIS_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBCMIS_CFLAGS
+and LIBCMIS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBCMIS_CFLAGS=$pkg_cv_LIBCMIS_CFLAGS
+ LIBCMIS_LIBS=$pkg_cv_LIBCMIS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBCMIS_CFLAGS=$(printf '%s' "${LIBCMIS_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBCMIS_LIBS}"
+ LIBCMIS_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LIBCMIS=
+ LIBCMIS_CFLAGS=
+ LIBCMIS_LIBS=
+ BUILD_TYPE="$BUILD_TYPE LIBCMIS"
+fi
+
+
+
+
+ ENABLE_LIBCMIS=TRUE
+else
+ ENABLE_LIBCMIS=
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE supports C++17" >&5
+$as_echo_n "checking whether $CXX_BASE supports C++17... " >&6; }
+CXXFLAGS_CXX11=
+if test "$COM" = MSC -a "$COM_IS_CLANG" != TRUE; then
+ if test "$with_latest_c__" = yes; then
+ CXXFLAGS_CXX11=-std:c++latest
+ else
+ CXXFLAGS_CXX11=-std:c++17
+ fi
+ CXXFLAGS_CXX11="$CXXFLAGS_CXX11 -Zc:__cplusplus"
+elif test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then
+ my_flags='-std=c++17 -std=c++1z'
+ if test "$with_latest_c__" = yes; then
+ my_flags="-std=c++20 -std=c++2a $my_flags"
+ fi
+ for flag in $my_flags; do
+ if test "$COM" = MSC; then
+ flag="-Xclang $flag"
+ fi
+ save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS $flag -Werror"
+ if test "$SYSTEM_LIBCMIS" = TRUE; then
+ CXXFLAGS="$CXXFLAGS -DSYSTEM_LIBCMIS $LIBCMIS_CFLAGS"
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <algorithm>
+ #include <functional>
+ #include <vector>
+
+ #if defined SYSTEM_LIBCMIS
+ // See ucb/source/ucp/cmis/auth_provider.hxx:
+ #if !defined __clang__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wdeprecated"
+ #pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
+ #endif
+ #include <libcmis/libcmis.hxx>
+ #if !defined __clang__
+ #pragma GCC diagnostic pop
+ #endif
+ #endif
+
+ void f(std::vector<int> & v, std::function<bool(int, int)> fn) {
+ std::sort(v.begin(), v.end(), fn);
+ }
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ CXXFLAGS_CXX11=$flag
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ if test -n "$CXXFLAGS_CXX11"; then
+ break
+ fi
+ done
+fi
+if test -n "$CXXFLAGS_CXX11"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($CXXFLAGS_CXX11)" >&5
+$as_echo "yes ($CXXFLAGS_CXX11)" >&6; }
+else
+ as_fn_error $? "no" "$LINENO" 5
+fi
+
+
+if test "$GCC" = "yes"; then
+ save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
+
+
+ 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 std::atomic can be used without link library" >&5
+$as_echo_n "checking whether std::atomic can be used without link library... " >&6; }
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <atomic>
+ #include <cstdint>
+
+ int main() {
+ std::atomic<int64_t> a{};
+
+ int64_t v = 5;
+ int64_t r = a.fetch_add(v);
+ return static_cast<int>(r);
+ }
+
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; 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; }
+ LIBS="$LIBS -latomic"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::atomic needs -latomic" >&5
+$as_echo_n "checking whether std::atomic needs -latomic... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <atomic>
+ #include <cstdint>
+
+ int main() {
+ std::atomic<int64_t> a{};
+
+ int64_t v = 5;
+ int64_t r = a.fetch_add(v);
+ return static_cast<int>(r);
+ }
+
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ATOMIC_LIB=-latomic
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 figure our how to use std::atomic
+See \`config.log' for more details" "$LINENO" 5; }
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+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
+
+
+ CXXFLAGS=$save_CXXFLAGS
+
+fi
+
+if test $CPP_LIBRARY = GLIBCXX; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using C++11 causes libstdc++ 4.7.0/4.7.1 ABI breakage" >&5
+$as_echo_n "checking whether using C++11 causes libstdc++ 4.7.0/4.7.1 ABI breakage... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <list>
+#if !defined __GLIBCXX__ || (__GLIBCXX__ != 20120322 && __GLIBCXX__ != 20120614)
+ // according to <https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html>:
+ // GCC 4.7.0: 20120322
+ // GCC 4.7.1: 20120614
+ // and using a range check is not possible as the mapping between
+ // __GLIBCXX__ values and GCC versions is not monotonic
+/* ok */
+#else
+abi broken
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ as_fn_error $? "yes" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext 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}: checking whether $CXX_BASE supports C++11 without Language Defect 757" >&5
+$as_echo_n "checking whether $CXX_BASE supports C++11 without Language Defect 757... " >&6; }
+save_CXXFLAGS=$CXXFLAGS
+CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
+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
+
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stddef.h>
+
+template <typename T, size_t S> char (&sal_n_array_size( T(&)[S] ))[S];
+
+namespace
+{
+ struct b
+ {
+ int i;
+ int j;
+ };
+}
+
+int
+main ()
+{
+
+struct a
+{
+ int i;
+ int j;
+};
+a thinga[]={{0,0}, {1,1}};
+b thingb[]={{0,0}, {1,1}};
+size_t i = sizeof(sal_n_array_size(thinga));
+size_t j = sizeof(sal_n_array_size(thingb));
+return !(i != 0 && j != 0);
+
+ ;
+ return 0;
+}
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ as_fn_error $? "no" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+
+HAVE_GCC_FNO_SIZED_DEALLOCATION=
+if test "$GCC" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE supports -fno-sized-deallocation" >&5
+$as_echo_n "checking whether $CXX_BASE supports -fno-sized-deallocation... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS -fno-sized-deallocation"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ HAVE_GCC_FNO_SIZED_DEALLOCATION=TRUE
+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
+
+ if test "$HAVE_GCC_FNO_SIZED_DEALLOCATION" = TRUE; 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
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CXX_BASE supports guaranteed copy elision" >&5
+$as_echo_n "checking that $CXX_BASE supports guaranteed copy elision... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ // At least VS 2017 15.8.1 defines __cpp_guaranteed_copy_elision as 201606L without actually
+ // supporting it:
+ #if !defined __cpp_guaranteed_copy_elision || (defined _MSC_VER && !defined __clang__)
+ struct S {
+ private:
+ S(S const &);
+ public:
+ S();
+ ~S();
+ };
+ S copy();
+ void f() { S c(copy()); }
+ #endif
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+else
+ as_fn_error $? "no" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE supports C++2a constinit sorted vectors" >&5
+$as_echo_n "checking whether $CXX_BASE supports C++2a constinit sorted vectors... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <algorithm>
+ #include <initializer_list>
+ #include <vector>
+ template<typename T> class S {
+ private:
+ std::vector<T> v_;
+ public:
+ constexpr S(std::initializer_list<T> i): v_(i) { std::sort(v_.begin(), v_.end()); }
+ };
+ constinit S<int> s{3, 2, 1};
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CPP_CONSTINIT_SORTED_VECTOR 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
+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
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE supports C++2a <span> with unsigned size_type" >&5
+$as_echo_n "checking whether $CXX_BASE supports C++2a <span> with unsigned size_type... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <span>
+ #include <type_traits>
+ // Don't check size_type directly, as it was called index_type before P1872R0:
+ void f(std::span<int> s) { static_assert(std::is_unsigned_v<decltype(s.size())>); };
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_CPP_SPAN 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
+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
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE implements C++ DR P1155R3" >&5
+$as_echo_n "checking whether $CXX_BASE implements C++ DR P1155R3... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ struct S1 { S1(S1 &&); };
+ struct S2: S1 {};
+ S1 f(S2 s) { return s; }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ $as_echo "#define HAVE_P1155R3 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
+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
+
+
+HAVE_WDEPRECATED_COPY_DTOR=
+if test "$GCC" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE supports -Wdeprecated-copy-dtor" >&5
+$as_echo_n "checking whether $CXX_BASE supports -Wdeprecated-copy-dtor... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS -Werror -Wdeprecated-copy-dtor"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ HAVE_WDEPRECATED_COPY_DTOR=TRUE
+ { $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
+ 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
+
+
+HAVE_BROKEN_GCC_WMAYBE_UNINITIALIZED=
+if test "$GCC" = yes && test "$COM_IS_CLANG" != TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE might report false -Werror=maybe-uninitialized" >&5
+$as_echo_n "checking whether $CXX_BASE might report false -Werror=maybe-uninitialized... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11 -Werror -Wmaybe-uninitialized"
+ if test "$ENABLE_OPTIMIZED" = TRUE; then
+ CXXFLAGS="$CXXFLAGS -O2"
+ else
+ CXXFLAGS="$CXXFLAGS -O0"
+ fi
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <new>
+ void f1(int);
+ struct S1 {
+ ~S1() { f1(n); }
+ int n = 0;
+ };
+ struct S2 {
+ S2() {}
+ S2(S2 const & s) { if (s.init) set(*reinterpret_cast<S1 const *>(s.stg)); }
+ ~S2() { if (init) reinterpret_cast<S1 *>(stg)->S1::~S1(); }
+ void set(S1 s) {
+ new (stg) S1(s);
+ init = true;
+ }
+ bool init = false;
+ char stg[sizeof (S1)];
+ } ;
+ S1 f2();
+ S2 * f3(bool b) {
+ S2 o;
+ if (b) o.set(f2());
+ return new S2(o);
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+
+ HAVE_BROKEN_GCC_WMAYBE_UNINITIALIZED=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+
+
+CXXFLAGS_INTRINSICS_SSE2=
+CXXFLAGS_INTRINSICS_SSSE3=
+CXXFLAGS_INTRINSICS_SSE41=
+CXXFLAGS_INTRINSICS_SSE42=
+CXXFLAGS_INTRINSICS_AVX=
+CXXFLAGS_INTRINSICS_AVX2=
+CXXFLAGS_INTRINSICS_AVX512=
+CXXFLAGS_INTRINSICS_F16C=
+CXXFLAGS_INTRINSICS_FMA=
+
+if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then
+ # GCC, Clang or Clang-cl (clang-cl + MSVC's -arch options don't work well together)
+ flag_sse2=-msse2
+ flag_ssse3=-mssse3
+ flag_sse41=-msse4.1
+ flag_sse42=-msse4.2
+ flag_avx=-mavx
+ flag_avx2=-mavx2
+ flag_avx512="-mavx512f -mavx512vl -mavx512bw -mavx512dq -mavx512cd"
+ flag_f16c=-mf16c
+ flag_fma=-mfma
+else
+ # https://docs.microsoft.com/en-us/cpp/build/reference/arch-x86
+ # MSVC seems to differentiate only between SSE and SSE2, where in fact
+ # SSE2 seems to be SSE2+.
+ # Even if -arch:SSE2 is the default, set it explicitly, so that the variable
+ # is not empty (and can be tested in gbuild).
+ flag_sse2=-arch:SSE2
+ flag_ssse3=-arch:SSE2
+ flag_sse41=-arch:SSE2
+ flag_sse42=-arch:SSE2
+ flag_avx=-arch:AVX
+ flag_avx2=-arch:AVX2
+ flag_avx512=-arch:AVX512
+ # These are part of -arch:AVX2
+ flag_f16c=-arch:AVX2
+ flag_fma=-arch:AVX2
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSE2 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSE2 intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_sse2"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <emmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_xor_si128 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_sse2=yes
+else
+ can_compile_sse2=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_sse2}" >&5
+$as_echo "${can_compile_sse2}" >&6; }
+if test "${can_compile_sse2}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_SSE2="$flag_sse2"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSSE3 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSSE3 intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_ssse3"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <tmmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_maddubs_epi16 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_ssse3=yes
+else
+ can_compile_ssse3=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_ssse3}" >&5
+$as_echo "${can_compile_ssse3}" >&6; }
+if test "${can_compile_ssse3}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_SSSE3="$flag_ssse3"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSE4.1 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSE4.1 intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_sse41"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <smmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_cmpeq_epi64 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_sse41=yes
+else
+ can_compile_sse41=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_sse41}" >&5
+$as_echo "${can_compile_sse41}" >&6; }
+if test "${can_compile_sse41}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_SSE41="$flag_sse41"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSE4.2 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSE4.2 intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_sse42"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <nmmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_cmpgt_epi64 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_sse42=yes
+else
+ can_compile_sse42=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_sse42}" >&5
+$as_echo "${can_compile_sse42}" >&6; }
+if test "${can_compile_sse42}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_SSE42="$flag_sse42"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile AVX intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile AVX intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_avx"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m256 a = _mm256_set1_ps (0.0f), b = _mm256_set1_ps (0.0f), c;
+ c = _mm256_xor_ps(a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_avx=yes
+else
+ can_compile_avx=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_avx}" >&5
+$as_echo "${can_compile_avx}" >&6; }
+if test "${can_compile_avx}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_AVX="$flag_avx"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile AVX2 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile AVX2 intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_avx2"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m256i a = _mm256_set1_epi32 (0), b = _mm256_set1_epi32 (0), c;
+ c = _mm256_maddubs_epi16(a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_avx2=yes
+else
+ can_compile_avx2=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_avx2}" >&5
+$as_echo "${can_compile_avx2}" >&6; }
+if test "${can_compile_avx2}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_AVX2="$flag_avx2"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile AVX512 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile AVX512 intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_avx512"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m512i a = _mm512_loadu_si512(0);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_avx512=yes
+else
+ can_compile_avx512=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_avx512}" >&5
+$as_echo "${can_compile_avx512}" >&6; }
+if test "${can_compile_avx512}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_AVX512="$flag_avx512"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile F16C intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile F16C intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_f16c"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0);
+ __m128 c;
+ c = _mm_cvtph_ps(a);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_f16c=yes
+else
+ can_compile_f16c=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_f16c}" >&5
+$as_echo "${can_compile_f16c}" >&6; }
+if test "${can_compile_f16c}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_F16C="$flag_f16c"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile FMA intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile FMA intrinsics... " >&6; }
+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
+CXXFLAGS="$CXXFLAGS $flag_fma"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m256 a = _mm256_set1_ps (0.0f), b = _mm256_set1_ps (0.0f), c = _mm256_set1_ps (0.0f), d;
+ d = _mm256_fmadd_ps(a, b, c);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_fma=yes
+else
+ can_compile_fma=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+CXXFLAGS=$save_CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_fma}" >&5
+$as_echo "${can_compile_fma}" >&6; }
+if test "${can_compile_fma}" = "yes" ; then
+ CXXFLAGS_INTRINSICS_FMA="$flag_fma"
+fi
+
+
+
+
+
+
+
+
+
+
+
+if test "$_os" != "WINNT"; 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
+
+
+ save_CPPFLAGS="$CPPFLAGS"
+ if test -n "$MACOSX_SDK_PATH"; then
+ CPPFLAGS="-isysroot $MACOSX_SDK_PATH $CPPFLAGS"
+ fi
+
+ # Assume visibility is not broken with libc++. The below test is very much designed for libstdc++
+ # only.
+ if test "$CPP_LIBRARY" = GLIBCXX; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if STL headers are visibility safe (GCC bug 22482)" >&5
+$as_echo_n "checking if STL headers are visibility safe (GCC bug 22482)... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <string>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "visibility push" >/dev/null 2>&1; then :
+ stlvisok=yes
+else
+ stlvisok=no
+fi
+rm -f conftest*
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stlvisok" >&5
+$as_echo "$stlvisok" >&6; }
+ if test "$stlvisok" = "no"; then
+ as_fn_error $? "Your libstdc++ headers are not visibility safe. This is no longer supported." "$LINENO" 5
+ fi
+ fi
+
+ # As the below test checks things when linking self-compiled dynamic libraries, it presumably is irrelevant
+ # when we don't make any dynamic libraries?
+ if test "$DISABLE_DYNLOADING" = ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX_BASE is -fvisibility-inlines-hidden safe (Clang bug 11250)" >&5
+$as_echo_n "checking if $CXX_BASE is -fvisibility-inlines-hidden safe (Clang bug 11250)... " >&6; }
+ cat > conftestlib1.cc <<_ACEOF
+template<typename T> struct S1 { virtual ~S1() {} virtual void f() {} };
+struct S2: S1<int> { virtual ~S2(); };
+S2::~S2() {}
+_ACEOF
+ cat > conftestlib2.cc <<_ACEOF
+template<typename T> struct S1 { virtual ~S1() {} virtual void f() {} };
+struct S2: S1<int> { virtual ~S2(); };
+struct S3: S2 { virtual ~S3(); }; S3::~S3() {}
+_ACEOF
+ gccvisinlineshiddenok=yes
+ if ! $CXX $CXXFLAGS $CPPFLAGS $LINKFLAGSSHL -fPIC -fvisibility-inlines-hidden conftestlib1.cc -o libconftest1$DLLPOST >/dev/null 2>&5; then
+ gccvisinlineshiddenok=no
+ else
+ my_linkflagsnoundefs=$LINKFLAGSNOUNDEFS
+ if test "$COM_IS_CLANG" = TRUE; then
+ for i in $CXX $CXXFLAGS; do
+ case $i in
+ -fsanitize=*)
+ my_linkflagsnoundefs=
+ break
+ ;;
+ esac
+ done
+ fi
+ if ! $CXX $CXXFLAGS $CPPFLAGS $LINKFLAGSSHL -fPIC -fvisibility-inlines-hidden conftestlib2.cc -L. -lconftest1 $my_linkflagsnoundefs -o libconftest2$DLLPOST >/dev/null 2>&5; then
+ gccvisinlineshiddenok=no
+ fi
+ fi
+
+ rm -fr libconftest*
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisinlineshiddenok" >&5
+$as_echo "$gccvisinlineshiddenok" >&6; }
+ if test "$gccvisinlineshiddenok" = "no"; then
+ as_fn_error $? "Your gcc/clang is not -fvisibility-inlines-hidden safe. This is no longer supported." "$LINENO" 5
+ fi
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX_BASE has a visibility bug with class-level attributes (GCC bug 26905)" >&5
+$as_echo_n "checking if $CXX_BASE has a visibility bug with class-level attributes (GCC bug 26905)... " >&6; }
+ cat >visibility.cxx <<_ACEOF
+#pragma GCC visibility push(hidden)
+struct __attribute__ ((visibility ("default"))) TestStruct {
+ static void Init();
+};
+__attribute__ ((visibility ("default"))) void TestFunc() {
+ TestStruct::Init();
+}
+_ACEOF
+ if ! $CXX $CXXFLAGS $CPPFLAGS -fpic -S visibility.cxx; then
+ gccvisbroken=yes
+ else
+ case "$host_cpu" in
+ i?86|x86_64)
+ if test "$_os" = "Darwin" -o "$_os" = "iOS"; then
+ gccvisbroken=no
+ else
+ if $EGREP -q '@PLT|@GOT' visibility.s || test "$ENABLE_LTO" = "TRUE"; then
+ gccvisbroken=no
+ else
+ gccvisbroken=yes
+ fi
+ fi
+ ;;
+ *)
+ gccvisbroken=no
+ ;;
+ esac
+ fi
+ rm -f visibility.s visibility.cxx
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisbroken" >&5
+$as_echo "$gccvisbroken" >&6; }
+ if test "$gccvisbroken" = "yes"; then
+ as_fn_error $? "Your gcc is not -fvisibility=hidden safe. This is no longer supported." "$LINENO" 5
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+
+ 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
+
+
+HAVE_GCC_FNO_ENFORCE_EH_SPECS=
+if test "$GCC" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_BASE supports -fno-enforce-eh-specs" >&5
+$as_echo_n "checking whether $CXX_BASE supports -fno-enforce-eh-specs... " >&6; }
+ 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
+ CXXFLAGS="$CFLAGS -Werror -fno-enforce-eh-specs"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ HAVE_GCC_FNO_ENFORCE_EH_SPECS=TRUE
+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
+
+ if test "$HAVE_GCC_FNO_ENFORCE_EH_SPECS" = "TRUE"; 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
+
+
+
+COMPILER_PLUGINS=
+# currently only Clang
+
+if test "$COM_IS_CLANG" != "TRUE"; then
+ if test "$libo_fuzzed_enable_compiler_plugins" = yes -a "$enable_compiler_plugins" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Resetting --enable-compiler-plugins=no" >&5
+$as_echo "$as_me: Resetting --enable-compiler-plugins=no" >&6;}
+ enable_compiler_plugins=no
+ fi
+fi
+
+COMPILER_PLUGINS_COM_IS_CLANG=
+if test "$COM_IS_CLANG" = "TRUE"; then
+ if test -n "$enable_compiler_plugins"; then
+ compiler_plugins="$enable_compiler_plugins"
+ elif test -n "$ENABLE_DBGUTIL"; then
+ compiler_plugins=test
+ else
+ compiler_plugins=no
+ fi
+ if test "$compiler_plugins" != no -a "$my_apple_clang" != yes; then
+ if test "$CLANGVER" -lt 50002; then
+ if test "$compiler_plugins" = yes; then
+ as_fn_error $? "Clang $CLANGVER is too old to build compiler plugins; need >= 5.0.2." "$LINENO" 5
+ else
+ compiler_plugins=no
+ fi
+ fi
+ fi
+ if test "$compiler_plugins" != "no"; then
+ if test -z "$CLANGDIR"; then
+ CLANGDIR=$(dirname $(dirname $($CXX -print-prog-name=$(basename $(printf '%s\n' $CXX | head -n 1)))))
+ fi
+ # Assume Clang is self-built, but allow overriding COMPILER_PLUGINS_CXX to the compiler Clang was built with.
+ if test -z "$COMPILER_PLUGINS_CXX"; then
+ COMPILER_PLUGINS_CXX=$(echo $CXX | sed -e 's/-fsanitize=[^ ]*//g')
+ fi
+ clangbindir=$CLANGDIR/bin
+ if test "$build_os" = "cygwin"; then
+ clangbindir=$(cygpath -u "$clangbindir")
+ fi
+ # Extract the first word of "llvm-config", so it can be a program name with args.
+set dummy llvm-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 ${ac_cv_path_LLVM_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $LLVM_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in "$clangbindir" $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_LLVM_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
+LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
+if test -n "$LLVM_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
+$as_echo "$LLVM_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -n "$LLVM_CONFIG"; then
+ COMPILER_PLUGINS_CXXFLAGS=$($LLVM_CONFIG --cxxflags)
+ COMPILER_PLUGINS_LINKFLAGS=$($LLVM_CONFIG --ldflags --libs --system-libs | tr '\n' ' ')
+ if test -z "$CLANGLIBDIR"; then
+ CLANGLIBDIR=$($LLVM_CONFIG --libdir)
+ fi
+ # Try if clang is built from source (in which case its includes are not together with llvm includes).
+ # src-root is [llvm-toplevel-src-dir]/llvm, clang is [llvm-toplevel-src-dir]/clang
+ clangsrcdir=$(dirname $($LLVM_CONFIG --src-root))
+ if test -n "$clangsrcdir" -a -d "$clangsrcdir" -a -d "$clangsrcdir/clang/include"; then
+ COMPILER_PLUGINS_CXXFLAGS="$COMPILER_PLUGINS_CXXFLAGS -I$clangsrcdir/clang/include"
+ fi
+ # obj-root is [llvm-toplevel-obj-dir]/, clang is [llvm-toplevel-obj-dir]/tools/clang
+ clangobjdir=$($LLVM_CONFIG --obj-root)
+ if test -n "$clangobjdir" -a -d "$clangobjdir" -a -d "$clangobjdir/tools/clang/include"; then
+ COMPILER_PLUGINS_CXXFLAGS="$COMPILER_PLUGINS_CXXFLAGS -I$clangobjdir/tools/clang/include"
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: compiler plugins compile flags: $COMPILER_PLUGINS_CXXFLAGS" >&5
+$as_echo "$as_me: compiler plugins compile flags: $COMPILER_PLUGINS_CXXFLAGS" >&6;}
+ 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_CXX=$CXX
+ save_CXXCPP=$CXXCPP
+ save_CPPFLAGS=$CPPFLAGS
+ save_CXXFLAGS=$CXXFLAGS
+ save_LDFLAGS=$LDFLAGS
+ save_LIBS=$LIBS
+ CXX=$COMPILER_PLUGINS_CXX
+ CXXCPP="$COMPILER_PLUGINS_CXX -E"
+ CPPFLAGS="$COMPILER_PLUGINS_CXXFLAGS"
+ CXXFLAGS="$COMPILER_PLUGINS_CXXFLAGS"
+ ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default"
+if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes; then :
+ COMPILER_PLUGINS=TRUE
+else
+
+ if test "$compiler_plugins" = "yes"; then
+ as_fn_error $? "Cannot find Clang headers to build compiler plugins." "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Clang headers to build compiler plugins, plugins disabled" >&5
+$as_echo "$as_me: WARNING: Cannot find Clang headers to build compiler plugins, plugins disabled" >&2;}
+ add_warning "Cannot find Clang headers to build compiler plugins, plugins disabled."
+ fi
+
+fi
+
+
+ if test -n "$COMPILER_PLUGINS" && test "$_os" != "WINNT"; then
+ LDFLAGS=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang libraries to use" >&5
+$as_echo_n "checking for clang libraries to use... " >&6; }
+ if test -z "$CLANGTOOLLIBS"; then
+ LIBS="-lclangTooling -lclangFrontend -lclangDriver -lclangParse -lclangSema -lclangEdit \
+ -lclangAnalysis -lclangAST -lclangLex -lclangSerialization -lclangBasic $COMPILER_PLUGINS_LINKFLAGS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include "clang/Basic/SourceLocation.h"
+int
+main ()
+{
+ clang::FullSourceLoc().dump();
+ ;
+ return 0;
+}
+
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ CLANGTOOLLIBS="$LIBS"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ fi
+ if test -z "$CLANGTOOLLIBS"; then
+ LIBS="-lclang-cpp $COMPILER_PLUGINS_LINKFLAGS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include "clang/Basic/SourceLocation.h"
+int
+main ()
+{
+ clang::FullSourceLoc().dump();
+ ;
+ return 0;
+}
+
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ CLANGTOOLLIBS="$LIBS"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANGTOOLLIBS" >&5
+$as_echo "$CLANGTOOLLIBS" >&6; }
+ if test -z "$CLANGTOOLLIBS"; then
+ if test "$compiler_plugins" = "yes"; then
+ as_fn_error $? "Cannot find Clang libraries to build compiler plugins." "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Clang libraries to build compiler plugins, plugins disabled" >&5
+$as_echo "$as_me: WARNING: Cannot find Clang libraries to build compiler plugins, plugins disabled" >&2;}
+ add_warning "Cannot find Clang libraries to build compiler plugins, plugins disabled."
+ fi
+ COMPILER_PLUGINS=
+ fi
+ if test -n "$COMPILER_PLUGINS"; then
+ if test -z "$CLANGSYSINCLUDE"; then
+ if test -n "$LLVM_CONFIG"; then
+ # Path to the clang system headers (no idea if there's a better way to get it).
+ CLANGSYSINCLUDE=$($LLVM_CONFIG --libdir)/clang/$($LLVM_CONFIG --version | sed 's/git\|svn//')/include
+ fi
+ fi
+ fi
+ fi
+ CXX=$save_CXX
+ CXXCPP=$save_CXXCPP
+ CPPFLAGS=$save_CPPFLAGS
+ CXXFLAGS=$save_CXXFLAGS
+ LDFLAGS=$save_LDFLAGS
+ LIBS="$save_LIBS"
+ 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 whether the compiler for building compilerplugins is actually Clang" >&5
+$as_echo_n "checking whether the compiler for building compilerplugins is actually Clang... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #ifndef __clang__
+ you lose
+ #endif
+ int foo=42;
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ COMPILER_PLUGINS_COM_IS_CLANG=TRUE
+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
+
+ fi
+else
+ if test "$enable_compiler_plugins" = "yes"; then
+ as_fn_error $? "Compiler plugins are currently supported only with the Clang compiler." "$LINENO" 5
+ fi
+fi
+COMPILER_PLUGINS_ANALYZER_PCH=
+if test "$enable_compiler_plugins_analyzer_pch" != no; then
+ COMPILER_PLUGINS_ANALYZER_PCH=TRUE
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Plugin to help linker.
+# Add something like LD_PLUGIN=/usr/lib64/LLVMgold.so to your autogen.input.
+# This makes --enable-lto build with clang work.
+
+
+for ac_func in posix_fallocate
+do :
+ ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
+if test "x$ac_cv_func_posix_fallocate" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_POSIX_FALLOCATE 1
+_ACEOF
+ HAVE_POSIX_FALLOCATE=YES
+else
+ HAVE_POSIX_FALLOCATE=NO
+fi
+done
+
+
+
+JITC_PROCESSOR_TYPE=""
+if test "$_os" = "Linux" -a "$host_cpu" = "powerpc"; then
+ # IBMs JDK needs this...
+ JITC_PROCESSOR_TYPE=6
+ export JITC_PROCESSOR_TYPE
+fi
+
+
+# Misc Windows Stuff
+
+# Check whether --with-ucrt-dir was given.
+if test "${with_ucrt_dir+set}" = set; then :
+ withval=$with_ucrt_dir;
+fi
+
+UCRT_REDISTDIR="$with_ucrt_dir"
+if test $_os = "WINNT"; then
+ find_msvc_x64_dlls
+ find_msms
+ MSVC_DLL_PATH=`win_short_path_for_make "$msvcdllpath"`
+ MSVC_DLLS="$msvcdlls"
+ MSM_PATH=`win_short_path_for_make "$msmdir"`
+ # MSVC 15.3 changed it to VC141
+ if echo "$msvcdllpath" | grep -q "VC142.CRT$"; then
+ SCPDEFS="$SCPDEFS -DWITH_VC142_REDIST"
+ elif echo "$msvcdllpath" | grep -q "VC141.CRT$"; then
+ SCPDEFS="$SCPDEFS -DWITH_VC141_REDIST"
+ else
+ SCPDEFS="$SCPDEFS -DWITH_VC${VCVER}_REDIST"
+ fi
+
+ if test "$UCRT_REDISTDIR" = "no"; then
+ UCRT_REDISTDIR=""
+ else
+ if ! test -f "$UCRT_REDISTDIR/Windows6.1-KB2999226-x64.msu" -a \
+ -f "$UCRT_REDISTDIR/Windows6.1-KB2999226-x86.msu" -a \
+ -f "$UCRT_REDISTDIR/Windows8.1-KB2999226-x64.msu" -a \
+ -f "$UCRT_REDISTDIR/Windows8.1-KB2999226-x86.msu" -a \
+ -f "$UCRT_REDISTDIR/Windows8-RT-KB2999226-x64.msu" -a \
+ -f "$UCRT_REDISTDIR/Windows8-RT-KB2999226-x86.msu"; then
+ UCRT_REDISTDIR=""
+ if test -n "$PKGFORMAT"; then
+ for i in $PKGFORMAT; do
+ case "$i" in
+ msi)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ucrt-dir not specified or MSUs not found - installer will have runtime dependency" >&5
+$as_echo "$as_me: WARNING: --without-ucrt-dir not specified or MSUs not found - installer will have runtime dependency" >&2;}
+ add_warning "--without-ucrt-dir not specified or MSUs not found - installer will have runtime dependency"
+ ;;
+ esac
+ done
+ fi
+ fi
+ fi
+fi
+
+
+
+
+
+
+if test "$ENABLE_JAVA" != ""; then
+
+ # Windows-specific tests
+ if test "$build_os" = "cygwin"; then
+ if test "$BITNESS_OVERRIDE" = 64; then
+ bitness=64
+ else
+ bitness=32
+ fi
+
+ if test -z "$with_jdk_home"; then
+ reg_get_value "$bitness" "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/JDK/CurrentVersion"
+ if test -n "$regvalue"; then
+ ver=$regvalue
+ reg_get_value "$bitness" "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/JDK/$ver/JavaHome"
+ _jdk_home=$regvalue
+ fi
+
+ if test -f "$_jdk_home/lib/jvm.lib" -a -f "$_jdk_home/bin/java.exe"; then
+ with_jdk_home="$_jdk_home"
+ howfound="found automatically"
+ else
+ as_fn_error $? "No JDK found, pass the --with-jdk-home option pointing to a $bitness-bit JDK >= 9" "$LINENO" 5
+ fi
+ else
+ test "$build_os" = "cygwin" && with_jdk_home=`win_short_path_for_make "$with_jdk_home"`
+ howfound="you passed"
+ fi
+ fi
+
+ # macOS: /usr/libexec/java_home helps to set the current JDK_HOME. Actually JDK_HOME should NOT be set where java (/usr/bin/java) is located.
+ # /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java, but /usr does not contain the JDK libraries
+ if test -z "$with_jdk_home" -a "$_os" = "Darwin" -a -x /usr/libexec/java_home; then
+ with_jdk_home=`/usr/libexec/java_home`
+ fi
+
+ JAVA_HOME=; export JAVA_HOME
+ if test -z "$with_jdk_home"; then
+ # Extract the first word of "$with_java", so it can be a program name with args.
+set dummy $with_java; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_JAVAINTERPRETER+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $JAVAINTERPRETER in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_JAVAINTERPRETER="$JAVAINTERPRETER" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_JAVAINTERPRETER="$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
+JAVAINTERPRETER=$ac_cv_path_JAVAINTERPRETER
+if test -n "$JAVAINTERPRETER"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAINTERPRETER" >&5
+$as_echo "$JAVAINTERPRETER" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ else
+ _java_path="$with_jdk_home/bin/$with_java"
+ if test -x "$_java_path"; then
+ JAVAINTERPRETER=$_java_path
+ else
+ as_fn_error $? "$_java_path not found, pass --with-jdk-home" "$LINENO" 5
+ fi
+ fi
+
+ if test "$build_os" = "cygwin"; then
+ shortjdkhome=`cygpath -d "$with_jdk_home"`
+ if test "$BITNESS_OVERRIDE" = 64 -a -f "$with_jdk_home/bin/java.exe" -a "`$shortjdkhome/bin/java.exe -version 2>&1 | $GREP -i 64-bit`" = "" >/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are building 64-bit binaries but the JDK $howfound is 32-bit" >&5
+$as_echo "$as_me: WARNING: You are building 64-bit binaries but the JDK $howfound is 32-bit" >&2;}
+ as_fn_error $? "You should pass the --with-jdk-home option pointing to a 64-bit JDK" "$LINENO" 5
+ elif test "$BITNESS_OVERRIDE" = "" -a -f "$_jdk_home/bin/java.exe" -a "`$shortjdkhome/bin/java.exe -version 2>&1 | $GREP -i 64-bit`" != "" >/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&5
+$as_echo "$as_me: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&2;}
+ as_fn_error $? "You should pass the --with-jdk-home option pointing to a (32-bit) JDK" "$LINENO" 5
+ fi
+
+ if test x`echo "$JAVAINTERPRETER" | $GREP -i '\.exe$'` = x; then
+ JAVAINTERPRETER="${JAVAINTERPRETER}.exe"
+ fi
+ JAVAINTERPRETER=`win_short_path_for_make "$JAVAINTERPRETER"`
+ elif test "$cross_compiling" != "yes"; then
+ case $CPUNAME in
+ AARCH64|AXP|X86_64|HPPA|IA64|POWERPC64|S390X|SPARC64|GODSON64)
+ if test -f "$JAVAINTERPRETER" -a "`$JAVAINTERPRETER -version 2>&1 | $GREP -i 64-bit`" = "" >/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are building 64-bit binaries but the JDK $JAVAINTERPRETER is 32-bit" >&5
+$as_echo "$as_me: WARNING: You are building 64-bit binaries but the JDK $JAVAINTERPRETER is 32-bit" >&2;}
+ as_fn_error $? "You should pass the --with-jdk-home option pointing to a 64-bit JDK" "$LINENO" 5
+ fi
+ ;;
+ *) # assumption: everything else 32-bit
+ if test -f "$JAVAINTERPRETER" -a "`$JAVAINTERPRETER -version 2>&1 | $GREP -i 64-bit`" != "" >/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&5
+$as_echo "$as_me: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&2;}
+ as_fn_error $? "You should pass the --with-jdk-home option pointing to a (32-bit) JDK" "$LINENO" 5
+ fi
+ ;;
+ esac
+ fi
+fi
+
+
+# Note that JAVA_HOME as for now always means the *build* platform's
+# JAVA_HOME. Whether all the complexity here actually is needed any
+# more or not, no idea.
+
+if test "$ENABLE_JAVA" != ""; then
+ _gij_longver=0
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the installed JDK" >&5
+$as_echo_n "checking the installed JDK... " >&6; }
+ if test -n "$JAVAINTERPRETER"; then
+ if test `$JAVAINTERPRETER -version 2>&1 | $GREP -c "Kaffe"` -gt 0; then
+ as_fn_error $? "No valid check available. Please check the block for your desired java in configure.ac" "$LINENO" 5
+ elif test `$JAVAINTERPRETER --version 2>&1 | $GREP -c "GNU libgcj"` -gt 0; then
+ as_fn_error $? "No valid check available. Please check the block for your desired java in configure.ac" "$LINENO" 5
+ elif test `$JAVAINTERPRETER -version 2>&1 | $AWK '{ print }' | $GREP -c "BEA"` -gt 0; then
+ as_fn_error $? "No valid check available. Please check the block for your desired java in configure.ac" "$LINENO" 5
+ elif test `$JAVAINTERPRETER -version 2>&1 | $AWK '{ print }' | $GREP -c "IBM"` -gt 0; then
+ as_fn_error $? "No valid check available. Please check the block for your desired java in configure.ac" "$LINENO" 5
+ else
+ JDK=sun
+
+ _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED '/^$/d' | $SED s/[-A-Za-z]*//`
+ _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
+
+ if test "$_jdk_ver" -lt 10900; then
+ as_fn_error $? "JDK is too old, you need at least 9" "$LINENO" 5
+ fi
+ if test "$_jdk_ver" -gt 10900; then
+ JAVA_CLASSPATH_NOT_SET=TRUE
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found (JDK $_jdk)" >&5
+$as_echo "found (JDK $_jdk)" >&6; }
+ JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
+ if test "$_os" = "WINNT"; then
+ JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[eE][xX][eE]$,,"`
+ fi
+
+ # set to limit VM usage for JunitTests
+ JAVAIFLAGS=-Xmx64M
+ # set to limit VM usage for javac
+ JAVAFLAGS=-J-Xmx128M
+ fi
+ else
+ as_fn_error $? "Java not found. You need at least JDK 9" "$LINENO" 5
+ fi
+else
+ JAVA_HOME=
+ export JAVA_HOME
+fi
+
+if test "$ENABLE_JAVA" != ""; then
+ javacompiler="javac"
+ : ${JAVA_SOURCE_VER=8}
+ : ${JAVA_TARGET_VER=8}
+ if test -z "$with_jdk_home"; then
+ # Extract the first word of "$javacompiler", so it can be a program name with args.
+set dummy $javacompiler; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_JAVACOMPILER+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $JAVACOMPILER in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_JAVACOMPILER="$JAVACOMPILER" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_JAVACOMPILER="$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
+JAVACOMPILER=$ac_cv_path_JAVACOMPILER
+if test -n "$JAVACOMPILER"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVACOMPILER" >&5
+$as_echo "$JAVACOMPILER" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ else
+ _javac_path="$with_jdk_home/bin/$javacompiler"
+ if test -x "$_javac_path"; then
+ JAVACOMPILER=$_javac_path
+ fi
+ fi
+ if test -z "$JAVACOMPILER"; then
+ as_fn_error $? "$javacompiler not found set with_jdk_home" "$LINENO" 5
+ fi
+ if test "$build_os" = "cygwin"; then
+ if test x`echo "$JAVACOMPILER" | $GREP -i '\.exe$'` = x; then
+ JAVACOMPILER="${JAVACOMPILER}.exe"
+ fi
+ JAVACOMPILER=`win_short_path_for_make "$JAVACOMPILER"`
+ fi
+fi
+
+if test "$ENABLE_JAVA" != ""; then
+ if test -z "$with_jdk_home"; then
+ # Extract the first word of "javadoc", so it can be a program name with args.
+set dummy javadoc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_JAVADOC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $JAVADOC in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_JAVADOC="$JAVADOC" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_JAVADOC="$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
+JAVADOC=$ac_cv_path_JAVADOC
+if test -n "$JAVADOC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
+$as_echo "$JAVADOC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ else
+ _javadoc_path="$with_jdk_home/bin/javadoc"
+ if test -x "$_javadoc_path"; then
+ JAVADOC=$_javadoc_path
+ else
+ # Extract the first word of "javadoc", so it can be a program name with args.
+set dummy javadoc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_JAVADOC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $JAVADOC in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_JAVADOC="$JAVADOC" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_JAVADOC="$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
+JAVADOC=$ac_cv_path_JAVADOC
+if test -n "$JAVADOC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
+$as_echo "$JAVADOC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+ fi
+ if test -z "$JAVADOC"; then
+ as_fn_error $? "$_javadoc_path not found set with_jdk_home" "$LINENO" 5
+ fi
+ if test "$build_os" = "cygwin"; then
+ if test x`echo "$JAVADOC" | $GREP -i '\.exe$'` = x; then
+ JAVADOC="${JAVADOC}.exe"
+ fi
+ JAVADOC=`win_short_path_for_make "$JAVADOC"`
+ fi
+
+ if test `$JAVADOC --version 2>&1 | $GREP -c "gjdoc"` -gt 0; then
+ JAVADOCISGJDOC="yes"
+ fi
+fi
+
+
+if test "$ENABLE_JAVA" != ""; then
+ # check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr
+ if test "$JAVA_HOME" = "/usr" -a "x$with_jdk_home" = "x"; then
+ if basename $(readlink $(readlink $JAVACOMPILER)) >/dev/null 2>/dev/null; then
+ # try to recover first by looking whether we have an alternative
+ # system as in Debian or newer SuSEs where following /usr/bin/javac
+ # over /etc/alternatives/javac leads to the right bindir where we
+ # just need to strip a bit away to get a valid JAVA_HOME
+ JAVA_HOME=$(readlink $(readlink $JAVACOMPILER))
+ elif readlink $JAVACOMPILER >/dev/null 2>/dev/null; then
+ # maybe only one level of symlink (e.g. on Mac)
+ JAVA_HOME=$(readlink $JAVACOMPILER)
+ if test "$(dirname $JAVA_HOME)" = "."; then
+ # we've got no path to trim back
+ JAVA_HOME=""
+ fi
+ else
+ # else warn
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&5
+$as_echo "$as_me: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&5
+$as_echo "$as_me: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&2;}
+ add_warning "JAVA_HOME is set to /usr - this is very likely to be incorrect"
+ add_warning "if this is the case, please inform the correct JAVA_HOME with --with-jdk-home"
+ fi
+ if test "$JAVA_HOME" != "/usr"; then
+ if test "$_os" = "Darwin" -o "$OS_FOR_BUILD" = MACOSX; then
+ JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/Current/Commands/javac$,/CurrentJDK/Home,)
+ JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/CurrentJDK/Commands/javac$,/CurrentJDK/Home,)
+ else
+ JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/bin/javac$,,)
+ if test -f "$JAVA_HOME"; then
+ JAVA_HOME=""; # set JAVA_HOME to null if it's a file
+ fi
+ fi
+ fi
+ fi
+ # as we drop out of this, JAVA_HOME may have been set to the empty string by readlink
+
+ if test -z "$JAVA_HOME"; then
+ if test "x$with_jdk_home" = "x"; then
+ cat > findhome.java <<_ACEOF
+import java.io.File;
+
+class findhome
+{
+ public static void main(String args[])
+ {
+ String jrelocation = System.getProperty("java.home");
+ File jre = new File(jrelocation);
+ System.out.println(jre.getParent());
+ }
+}
+_ACEOF
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if javac works" >&5
+$as_echo_n "checking if javac works... " >&6; }
+ javac_cmd="$JAVACOMPILER findhome.java 1>&2"
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$javac_cmd\""; } >&5
+ (eval $javac_cmd) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if test $? = 0 -a -f ./findhome.class; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: javac works" >&5
+$as_echo "javac works" >&6; }
+ else
+ echo "configure: javac test failed" >&5
+ cat findhome.java >&5
+ as_fn_error $? "javac does not work - java projects will not build!" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gij knows its java.home" >&5
+$as_echo_n "checking if gij knows its java.home... " >&6; }
+ JAVA_HOME=`$JAVAINTERPRETER findhome`
+ if test $? = 0 -a "$JAVA_HOME" != ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_HOME" >&5
+$as_echo "$JAVA_HOME" >&6; }
+ else
+ echo "configure: java test failed" >&5
+ cat findhome.java >&5
+ as_fn_error $? "gij does not know its java.home - use --with-jdk-home" "$LINENO" 5
+ fi
+ # clean-up after ourselves
+ rm -f ./findhome.java ./findhome.class
+ else
+ JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*$with_java,,p"`
+ fi
+ fi
+
+ # now check if $JAVA_HOME is really valid
+ if test "$_os" = "Darwin" -o "$OS_FOR_BUILD" = MACOSX; then
+ case "${JAVA_HOME}" in
+ /Library/Java/JavaVirtualMachines/*)
+ ;;
+ *)
+ as_fn_error $? "JDK in $JAVA_HOME cannot be used in CppUnit tests - install Oracle JDK" "$LINENO" 5
+ ;;
+ esac
+ if test ! -f "$JAVA_HOME/lib/jvm.cfg" -a "x$with_jdk_home" = "x"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&5
+$as_echo "$as_me: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&5
+$as_echo "$as_me: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in case JAVA_HOME is incorrectly set, some projects will not be built correctly" >&5
+$as_echo "$as_me: WARNING: in case JAVA_HOME is incorrectly set, some projects will not be built correctly" >&2;}
+ add_warning "JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script"
+ add_warning "attempted to find JAVA_HOME automatically, but apparently it failed"
+ add_warning "in case JAVA_HOME is incorrectly set, some projects will not be built correctly"
+ fi
+ fi
+ PathFormat "$JAVA_HOME"
+ JAVA_HOME="$formatted_path"
+fi
+
+if test -z "$JAWTLIB" -a -n "$ENABLE_JAVA" -a "$_os" != Android -a \
+ "$_os" != Darwin
+then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT lib" >&5
+$as_echo_n "checking for JAWT lib... " >&6; }
+ if test "$_os" = WINNT; then
+ # The path to $JAVA_HOME/lib/$JAWTLIB is part of $ILIB:
+ JAWTLIB=jawt.lib
+ else
+ case "$host_cpu" in
+ arm*)
+ if test -e "$JAVA_HOME/jre/lib/aarch32/libjawt.so"; then :
+ my_java_arch=aarch32
+else
+ my_java_arch=arm
+fi
+ JAVA_ARCH=$my_java_arch
+ ;;
+ i*86)
+ my_java_arch=i386
+ ;;
+ m68k)
+ my_java_arch=m68k
+ ;;
+ powerpc)
+ my_java_arch=ppc
+ ;;
+ powerpc64)
+ my_java_arch=ppc64
+ ;;
+ powerpc64le)
+ if test -e "$JAVA_HOME/jre/lib/ppc64le/libjawt.so"; then :
+ my_java_arch=ppc64le
+else
+ my_java_arch=ppc64
+fi
+ JAVA_ARCH=$my_java_arch
+ ;;
+ sparc64)
+ my_java_arch=sparcv9
+ ;;
+ x86_64)
+ my_java_arch=amd64
+ ;;
+ *)
+ my_java_arch=$host_cpu
+ ;;
+ esac
+ # This is where JDK9 puts the library
+ if test -e "$JAVA_HOME/lib/libjawt.so"; then
+ JAWTLIB="-L$JAVA_HOME/lib/ -ljawt"
+ else
+ JAWTLIB="-L$JAVA_HOME/jre/lib/$my_java_arch -ljawt"
+ fi
+ if test "$JAVA_ARCH" != ""; then :
+ cat >>confdefs.h <<_ACEOF
+#define JAVA_ARCH "$JAVA_ARCH"
+_ACEOF
+
+fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAWTLIB" >&5
+$as_echo "$JAWTLIB" >&6; }
+fi
+
+
+if test -n "$ENABLE_JAVA" -a -z "$JAVAINC"; then
+ case "$host_os" in
+
+ aix*)
+ JAVAINC="-I$JAVA_HOME/include"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/aix"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+
+ cygwin*)
+ JAVAINC="-I$JAVA_HOME/include/win32"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include"
+ ;;
+
+ darwin*)
+ if test -d "$JAVA_HOME/include/darwin"; then
+ JAVAINC="-I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"
+ else
+ JAVAINC=${ISYSTEM}$FRAMEWORKSHOME/JavaVM.framework/Versions/Current/Headers
+ fi
+ ;;
+
+ dragonfly*)
+ JAVAINC="-I$JAVA_HOME/include"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+
+ freebsd*)
+ JAVAINC="-I$JAVA_HOME/include"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/freebsd"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/bsd"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+
+ k*bsd*-gnu*)
+ JAVAINC="-I$JAVA_HOME/include"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+
+ linux-gnu*)
+ JAVAINC="-I$JAVA_HOME/include"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+
+ *netbsd*)
+ JAVAINC="-I$JAVA_HOME/include"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/netbsd"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+
+ openbsd*)
+ JAVAINC="-I$JAVA_HOME/include"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/openbsd"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+
+ solaris*)
+ JAVAINC="-I$JAVA_HOME/include"
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/solaris"
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread"
+ ;;
+ esac
+fi
+SOLARINC="$SOLARINC $JAVAINC"
+
+
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable export file validation" >&5
+$as_echo_n "checking whether to enable export file validation... " >&6; }
+if test "$with_export_validation" != "no"; then
+ if test -z "$ENABLE_JAVA"; then
+ if test "$with_export_validation" = "yes"; then
+ as_fn_error $? "requested, but Java is disabled" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, as Java is disabled" >&5
+$as_echo "no, as Java is disabled" >&6; }
+ fi
+ elif ! test -d "${SRC_ROOT}/schema"; then
+ if test "$with_export_validation" = "yes"; then
+ as_fn_error $? "requested, but schema directory is missing (it is excluded from tarballs)" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, schema directory is missing (it is excluded from tarballs)" >&5
+$as_echo "no, schema directory is missing (it is excluded from tarballs)" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ $as_echo "#define HAVE_EXPORT_VALIDATION 1" >>confdefs.h
+
+
+ for ac_prog in odfvalidator
+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 ${ac_cv_path_ODFVALIDATOR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ODFVALIDATOR in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ODFVALIDATOR="$ODFVALIDATOR" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_ODFVALIDATOR="$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
+ODFVALIDATOR=$ac_cv_path_ODFVALIDATOR
+if test -n "$ODFVALIDATOR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODFVALIDATOR" >&5
+$as_echo "$ODFVALIDATOR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ODFVALIDATOR" && break
+done
+
+ if test -z "$ODFVALIDATOR"; then
+ # remember to download the ODF toolkit with validator later
+ { $as_echo "$as_me:${as_lineno-$LINENO}: no odfvalidator found, will download it" >&5
+$as_echo "$as_me: no odfvalidator found, will download it" >&6;}
+ BUILD_TYPE="$BUILD_TYPE ODFVALIDATOR"
+ ODFVALIDATOR="$BUILDDIR/bin/odfvalidator.sh"
+
+ # and fetch name of odfvalidator jar name from download.lst
+ ODFVALIDATOR_JAR=`$SED -n -e "s/export *ODFVALIDATOR_JAR *:= *\(.*\) */\1/p" $SRC_ROOT/download.lst`
+
+
+ if test -z "$ODFVALIDATOR_JAR"; then
+ as_fn_error $? "cannot determine odfvalidator jar location (--with-export-validation)" "$LINENO" 5
+ fi
+ fi
+ if test "$build_os" = "cygwin"; then
+ # In case of Cygwin it will be executed from Windows,
+ # so we need to run bash and absolute path to validator
+ # so instead of "odfvalidator" it will be
+ # something like "bash.exe C:\cygwin\opt\lo\bin\odfvalidator"
+ ODFVALIDATOR="bash.exe `cygpath -m "$ODFVALIDATOR"`"
+ else
+ ODFVALIDATOR="sh $ODFVALIDATOR"
+ fi
+
+
+
+ for ac_prog in officeotron
+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 ${ac_cv_path_OFFICEOTRON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $OFFICEOTRON in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_OFFICEOTRON="$OFFICEOTRON" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_OFFICEOTRON="$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
+OFFICEOTRON=$ac_cv_path_OFFICEOTRON
+if test -n "$OFFICEOTRON"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OFFICEOTRON" >&5
+$as_echo "$OFFICEOTRON" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$OFFICEOTRON" && break
+done
+
+ if test -z "$OFFICEOTRON"; then
+ # remember to download the officeotron with validator later
+ { $as_echo "$as_me:${as_lineno-$LINENO}: no officeotron found, will download it" >&5
+$as_echo "$as_me: no officeotron found, will download it" >&6;}
+ BUILD_TYPE="$BUILD_TYPE OFFICEOTRON"
+ OFFICEOTRON="$BUILDDIR/bin/officeotron.sh"
+
+ # and fetch name of officeotron jar name from download.lst
+ OFFICEOTRON_JAR=`$SED -n -e "s/export *OFFICEOTRON_JAR *:= *\(.*\) */\1/p" $SRC_ROOT/download.lst`
+
+
+ if test -z "$OFFICEOTRON_JAR"; then
+ as_fn_error $? "cannot determine officeotron jar location (--with-export-validation)" "$LINENO" 5
+ fi
+ else
+ # check version of existing officeotron
+ OFFICEOTRON_VER=`$OFFICEOTRON --version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
+ if test 0"$OFFICEOTRON_VER" -lt 704; then
+ as_fn_error $? "officeotron too old" "$LINENO" 5
+ fi
+ fi
+ if test "$build_os" = "cygwin"; then
+ # In case of Cygwin it will be executed from Windows,
+ # so we need to run bash and absolute path to validator
+ # so instead of "odfvalidator" it will be
+ # something like "bash.exe C:\cygwin\opt\lo\bin\odfvalidator"
+ OFFICEOTRON="bash.exe `cygpath -m "$OFFICEOTRON"`"
+ else
+ OFFICEOTRON="sh $OFFICEOTRON"
+ fi
+ fi
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Microsoft Binary File Format Validator" >&5
+$as_echo_n "checking for Microsoft Binary File Format Validator... " >&6; }
+if test "$with_bffvalidator" != "no"; then
+ $as_echo "#define HAVE_BFFVALIDATOR 1" >>confdefs.h
+
+
+ if test "$with_export_validation" = "no"; then
+ as_fn_error $? "Please enable export validation (-with-export-validation)!" "$LINENO" 5
+ fi
+
+ if test "$with_bffvalidator" = "yes"; then
+ BFFVALIDATOR=`win_short_path_for_make "$PROGRAMFILES/Microsoft Office/BFFValidator/BFFValidator.exe"`
+ else
+ BFFVALIDATOR="$with_bffvalidator"
+ fi
+
+ if test "$build_os" = "cygwin"; then
+ if test -n "$BFFVALIDATOR" -a -e "`cygpath $BFFVALIDATOR`"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BFFVALIDATOR" >&5
+$as_echo "$BFFVALIDATOR" >&6; }
+ else
+ as_fn_error $? "bffvalidator not found, but required by --with-bffvalidator" "$LINENO" 5
+ fi
+ elif test -n "$BFFVALIDATOR"; then
+ # We are not in Cygwin but need to run Windows binary with wine
+ for ac_prog in wine
+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 ${ac_cv_path_WINE+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $WINE in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_WINE="$WINE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_WINE="$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
+WINE=$ac_cv_path_WINE
+if test -n "$WINE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINE" >&5
+$as_echo "$WINE" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$WINE" && break
+done
+
+
+ # so swap in a shell wrapper that converts paths transparently
+ BFFVALIDATOR_EXE="$BFFVALIDATOR"
+ BFFVALIDATOR="sh $BUILDDIR/bin/bffvalidator.sh"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BFFVALIDATOR" >&5
+$as_echo "$BFFVALIDATOR" >&6; }
+ else
+ as_fn_error $? "bffvalidator not found, but required by --with-bffvalidator" "$LINENO" 5
+ fi
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which C preprocessor to use in idlc" >&5
+$as_echo_n "checking which C preprocessor to use in idlc... " >&6; }
+if test -n "$with_idlc_cpp"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_idlc_cpp" >&5
+$as_echo "$with_idlc_cpp" >&6; }
+ # Extract the first word of "$with_idlc_cpp", so it can be a program name with args.
+set dummy $with_idlc_cpp; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_SYSTEM_UCPP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $SYSTEM_UCPP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SYSTEM_UCPP="$SYSTEM_UCPP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SYSTEM_UCPP="$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
+SYSTEM_UCPP=$ac_cv_path_SYSTEM_UCPP
+if test -n "$SYSTEM_UCPP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_UCPP" >&5
+$as_echo "$SYSTEM_UCPP" >&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: ucpp" >&5
+$as_echo "ucpp" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which ucpp tp use" >&5
+$as_echo_n "checking which ucpp tp use... " >&6; }
+ if test -n "$with_system_ucpp" -a "$with_system_ucpp" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ # Extract the first word of "ucpp", so it can be a program name with args.
+set dummy ucpp; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_SYSTEM_UCPP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $SYSTEM_UCPP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SYSTEM_UCPP="$SYSTEM_UCPP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SYSTEM_UCPP="$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
+SYSTEM_UCPP=$ac_cv_path_SYSTEM_UCPP
+if test -n "$SYSTEM_UCPP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_UCPP" >&5
+$as_echo "$SYSTEM_UCPP" >&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: internal" >&5
+$as_echo "internal" >&6; }
+ BUILD_TYPE="$BUILD_TYPE UCPP"
+ fi
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EPM for packing" >&5
+$as_echo_n "checking whether to enable EPM for packing... " >&6; }
+if test "$enable_epm" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ if test "$_os" != "WINNT"; then
+ if test $_os = Darwin; then
+ EPM=internal
+ elif test -n "$with_epm"; then
+ EPM=$with_epm
+ else
+ # Extract the first word of "epm", so it can be a program name with args.
+set dummy epm; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_EPM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $EPM in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_EPM="$EPM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_EPM="$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_EPM" && ac_cv_path_EPM="no"
+ ;;
+esac
+fi
+EPM=$ac_cv_path_EPM
+if test -n "$EPM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EPM" >&5
+$as_echo "$EPM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+ if test "$EPM" = "no" -o "$EPM" = "internal"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: EPM will be built." >&5
+$as_echo "$as_me: EPM will be built." >&6;}
+ BUILD_TYPE="$BUILD_TYPE EPM"
+ EPM=${WORKDIR}/UnpackedTarball/epm/epm
+ else
+ # Gentoo has some epm which is something different...
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the found epm is the right epm" >&5
+$as_echo_n "checking whether the found epm is the right epm... " >&6; }
+ if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ as_fn_error $? "no. Install ESP Package Manager (http://www.msweet.org/projects.php?Z2) and/or specify the path to the right epm" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking epm version" >&5
+$as_echo_n "checking epm version... " >&6; }
+ EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
+ if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \
+ test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 3.7" >&5
+$as_echo "OK, >= 3.7" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old. epm >= 3.7 is required." >&5
+$as_echo "too old. epm >= 3.7 is required." >&6; }
+ as_fn_error $? "Install ESP Package Manager (http://www.msweet.org/projects.php?Z2) and/or specify the path to the right epm" "$LINENO" 5
+ fi
+ fi
+ fi
+
+ if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpm" >&5
+$as_echo_n "checking for rpm... " >&6; }
+ for a in "$RPM" rpmbuild rpm; do
+ $a --usage >/dev/null 2> /dev/null
+ if test $? -eq 0; then
+ RPM=$a
+ break
+ else
+ $a --version >/dev/null 2> /dev/null
+ if test $? -eq 0; then
+ RPM=$a
+ break
+ fi
+ fi
+ done
+ if test -z "$RPM"; then
+ as_fn_error $? "not found" "$LINENO" 5
+ elif "$RPM" --help 2>&1 | $EGREP buildroot >/dev/null; then
+ RPM_PATH=`which $RPM`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM_PATH" >&5
+$as_echo "$RPM_PATH" >&6; }
+ SCPDEFS="$SCPDEFS -DWITH_RPM"
+ else
+ as_fn_error $? "cannot build packages. Try installing rpmbuild." "$LINENO" 5
+ fi
+ fi
+ if echo "$PKGFORMAT" | $EGREP deb 2>&1 >/dev/null; then
+ # Extract the first word of "dpkg", so it can be a program name with args.
+set dummy dpkg; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_DPKG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $DPKG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_DPKG="$DPKG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_DPKG="$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_DPKG" && ac_cv_path_DPKG="no"
+ ;;
+esac
+fi
+DPKG=$ac_cv_path_DPKG
+if test -n "$DPKG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
+$as_echo "$DPKG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$DPKG" = "no"; then
+ as_fn_error $? "dpkg needed for deb creation. Install dpkg." "$LINENO" 5
+ fi
+ fi
+ if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
+ echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
+ if test "$with_epm" = "no" -a "$_os" != "Darwin"; then
+ if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether epm is patched for LibreOffice's needs" >&5
+$as_echo_n "checking whether epm is patched for LibreOffice's needs... " >&6; }
+ if grep "Patched for .*Office" $EPM >/dev/null 2>/dev/null; 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; }
+ if echo "$PKGFORMAT" | $GREP -q rpm; then
+ _pt="rpm"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the rpms will need to be installed with --nodeps" >&5
+$as_echo "$as_me: WARNING: the rpms will need to be installed with --nodeps" >&2;}
+ add_warning "the rpms will need to be installed with --nodeps"
+ else
+ _pt="pkg"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ${_pt}s will not be relocatable" >&5
+$as_echo "$as_me: WARNING: the ${_pt}s will not be relocatable" >&2;}
+ add_warning "the ${_pt}s will not be relocatable"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if you want to make sure installation without --nodeps and
+ relocation will work, you need to patch your epm with the
+ patch in epm/epm-3.7.patch or build with
+ --with-epm=internal which will build a suitable epm" >&5
+$as_echo "$as_me: WARNING: if you want to make sure installation without --nodeps and
+ relocation will work, you need to patch your epm with the
+ patch in epm/epm-3.7.patch or build with
+ --with-epm=internal which will build a suitable epm" >&2;}
+ fi
+ fi
+ fi
+ fi
+ if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
+ # Extract the first word of "pkgmk", so it can be a program name with args.
+set dummy pkgmk; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PKGMK+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PKGMK in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKGMK="$PKGMK" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKGMK="$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_PKGMK" && ac_cv_path_PKGMK="no"
+ ;;
+esac
+fi
+PKGMK=$ac_cv_path_PKGMK
+if test -n "$PKGMK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
+$as_echo "$PKGMK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$PKGMK" = "no"; then
+ as_fn_error $? "pkgmk needed for Solaris pkg creation. Install it." "$LINENO" 5
+ fi
+ fi
+
+
+
+else
+ for i in $PKGFORMAT; do
+ case "$i" in
+ aix | bsd | deb | pkg | rpm | native | portable)
+ as_fn_error $? "--with-package-format='$PKGFORMAT' requires --enable-epm" "$LINENO" 5
+ ;;
+ esac
+ done
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ EPM=NO
+fi
+
+
+ENABLE_LWP=
+if test "$enable_lotuswordpro" = "yes"; then
+ ENABLE_LWP="TRUE"
+fi
+
+
+if test "$enable_odk" = no; then
+ unset DOXYGEN
+else
+ if test "$with_doxygen" = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doxygen" >&5
+$as_echo_n "checking for doxygen... " >&6; }
+ unset DOXYGEN
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ else
+ if test "$with_doxygen" = yes; then
+ # 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 ${ac_cv_path_DOXYGEN+:} false; 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 as_fn_executable_p "$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 -z "$DOXYGEN"; then
+ as_fn_error $? "doxygen not found in \$PATH; specify its pathname via --with-doxygen=..., or disable its use via --without-doxygen" "$LINENO" 5
+ fi
+ if $DOXYGEN -g - | grep -q "HAVE_DOT *= *YES"; then
+ if ! dot -V 2>/dev/null; then
+ as_fn_error $? "dot not found in \$PATH but doxygen defaults to HAVE_DOT=YES; install graphviz or disable its use via --without-doxygen" "$LINENO" 5
+ fi
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doxygen" >&5
+$as_echo_n "checking for doxygen... " >&6; }
+ DOXYGEN=$with_doxygen
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
+$as_echo "$DOXYGEN" >&6; }
+ fi
+ if test -n "$DOXYGEN"; then
+ DOXYGEN_VERSION=`$DOXYGEN --version 2>/dev/null`
+ DOXYGEN_NUMVERSION=`echo $DOXYGEN_VERSION | $AWK -F. '{ print \$1*10000 + \$2*100 + \$3 }'`
+ if ! test "$DOXYGEN_NUMVERSION" -ge "10804" ; then
+ as_fn_error $? "found doxygen is too old; need at least version 1.8.4 or specify --without-doxygen" "$LINENO" 5
+ fi
+ fi
+ fi
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ODK" >&5
+$as_echo_n "checking whether to build the ODK... " >&6; }
+if test "$enable_odk" = "" -o "$enable_odk" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+ if test "$with_java" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unowinreg.dll" >&5
+$as_echo_n "checking whether to build unowinreg.dll... " >&6; }
+ if test "$_os" = "WINNT" -a "$enable_build_unowinreg" = ""; then
+ # build on Win by default
+ enable_build_unowinreg=yes
+ fi
+ if test "$enable_build_unowinreg" = "" -o "$enable_build_unowinreg" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ BUILD_UNOWINREG=
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ BUILD_UNOWINREG=TRUE
+ fi
+ if test "$_os" != "WINNT" -a "$BUILD_UNOWINREG" = "TRUE"; then
+ if test -z "$with_mingw_cross_compiler"; then
+ for ac_prog in i386-mingw32msvc-g++ i586-pc-mingw32-g++ i686-pc-mingw32-g++ i686-w64-mingw32-g++
+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 ${ac_cv_prog_MINGWCXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$MINGWCXX"; then
+ ac_cv_prog_MINGWCXX="$MINGWCXX" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MINGWCXX="$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
+MINGWCXX=$ac_cv_prog_MINGWCXX
+if test -n "$MINGWCXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWCXX" >&5
+$as_echo "$MINGWCXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$MINGWCXX" && break
+done
+test -n "$MINGWCXX" || MINGWCXX="false"
+
+ elif test -x "$with_mingw_cross_compiler"; then
+ MINGWCXX="$with_mingw_cross_compiler"
+ else
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}"$with_mingw_cross_compiler"", so it can be a program name with args.
+set dummy ${ac_tool_prefix}"$with_mingw_cross_compiler"; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_MINGWCXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$MINGWCXX"; then
+ ac_cv_prog_MINGWCXX="$MINGWCXX" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MINGWCXX="${ac_tool_prefix}"$with_mingw_cross_compiler""
+ $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
+MINGWCXX=$ac_cv_prog_MINGWCXX
+if test -n "$MINGWCXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWCXX" >&5
+$as_echo "$MINGWCXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_MINGWCXX"; then
+ ac_ct_MINGWCXX=$MINGWCXX
+ # Extract the first word of ""$with_mingw_cross_compiler"", so it can be a program name with args.
+set dummy "$with_mingw_cross_compiler"; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_MINGWCXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_MINGWCXX"; then
+ ac_cv_prog_ac_ct_MINGWCXX="$ac_ct_MINGWCXX" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_MINGWCXX=""$with_mingw_cross_compiler""
+ $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_MINGWCXX=$ac_cv_prog_ac_ct_MINGWCXX
+if test -n "$ac_ct_MINGWCXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MINGWCXX" >&5
+$as_echo "$ac_ct_MINGWCXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_MINGWCXX" = x; then
+ MINGWCXX="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
+ MINGWCXX=$ac_ct_MINGWCXX
+ fi
+else
+ MINGWCXX="$ac_cv_prog_MINGWCXX"
+fi
+
+ fi
+
+ if test "$MINGWCXX" = "false"; then
+ as_fn_error $? "MinGW32 C++ cross-compiler not found." "$LINENO" 5
+ fi
+
+ mingwstrip_test="`echo $MINGWCXX | $SED -e s/g++/strip/`"
+ if test -x "$mingwstrip_test"; then
+ MINGWSTRIP="$mingwstrip_test"
+ else
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}"$mingwstrip_test"", so it can be a program name with args.
+set dummy ${ac_tool_prefix}"$mingwstrip_test"; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_MINGWSTRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$MINGWSTRIP"; then
+ ac_cv_prog_MINGWSTRIP="$MINGWSTRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MINGWSTRIP="${ac_tool_prefix}"$mingwstrip_test""
+ $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
+MINGWSTRIP=$ac_cv_prog_MINGWSTRIP
+if test -n "$MINGWSTRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWSTRIP" >&5
+$as_echo "$MINGWSTRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_MINGWSTRIP"; then
+ ac_ct_MINGWSTRIP=$MINGWSTRIP
+ # Extract the first word of ""$mingwstrip_test"", so it can be a program name with args.
+set dummy "$mingwstrip_test"; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_MINGWSTRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_MINGWSTRIP"; then
+ ac_cv_prog_ac_ct_MINGWSTRIP="$ac_ct_MINGWSTRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_MINGWSTRIP=""$mingwstrip_test""
+ $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_MINGWSTRIP=$ac_cv_prog_ac_ct_MINGWSTRIP
+if test -n "$ac_ct_MINGWSTRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MINGWSTRIP" >&5
+$as_echo "$ac_ct_MINGWSTRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_MINGWSTRIP" = x; then
+ MINGWSTRIP="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
+ MINGWSTRIP=$ac_ct_MINGWSTRIP
+ fi
+else
+ MINGWSTRIP="$ac_cv_prog_MINGWSTRIP"
+fi
+
+ fi
+
+ if test "$MINGWSTRIP" = "false"; then
+ as_fn_error $? "MinGW32 binutils not found." "$LINENO" 5
+ fi
+ fi
+ fi
+ BUILD_TYPE="$BUILD_TYPE ODK"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ BUILD_UNOWINREG=
+fi
+
+
+
+
+if test "$with_system_zlib" = "auto"; then
+ case "$_os" in
+ WINNT)
+ with_system_zlib="$with_system_libs"
+ ;;
+ *)
+ if test "$enable_fuzzers" != "yes"; then
+ with_system_zlib=yes
+ else
+ with_system_zlib=no
+ fi
+ ;;
+ esac
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which zlib to use" >&5
+$as_echo_n "checking which zlib to use... " >&6; }
+if test "$with_system_zlib" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ZLIB=TRUE
+ 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" = xyes; then :
+
+else
+ as_fn_error $? "zlib.h not found. install zlib" "$LINENO" 5
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
+$as_echo_n "checking for deflate in -lz... " >&6; }
+if ${ac_cv_lib_z_deflate+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lz $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 deflate ();
+int
+main ()
+{
+return deflate ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_z_deflate=yes
+else
+ ac_cv_lib_z_deflate=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_z_deflate" >&5
+$as_echo "$ac_cv_lib_z_deflate" >&6; }
+if test "x$ac_cv_lib_z_deflate" = xyes; then :
+ ZLIB_LIBS=-lz
+else
+ as_fn_error $? "zlib not found or functional" "$LINENO" 5
+fi
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ZLIB=
+ BUILD_TYPE="$BUILD_TYPE ZLIB"
+ ZLIB_CFLAGS="-I${WORKDIR}/UnpackedTarball/zlib"
+ ZLIB_LIBS="-L${WORKDIR}/LinkTarget/StaticLibrary -lzlib"
+fi
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libjpeg to use" >&5
+$as_echo_n "checking which libjpeg to use... " >&6; }
+if test "$with_system_jpeg" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBJPEG=TRUE
+ 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" = xyes; then :
+ LIBJPEG_CFLAGS=
+else
+ as_fn_error $? "jpeg.h not found. install libjpeg" "$LINENO" 5
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_resync_to_restart in -ljpeg" >&5
+$as_echo_n "checking for jpeg_resync_to_restart in -ljpeg... " >&6; }
+if ${ac_cv_lib_jpeg_jpeg_resync_to_restart+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ljpeg $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_resync_to_restart ();
+int
+main ()
+{
+return jpeg_resync_to_restart ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_jpeg_jpeg_resync_to_restart=yes
+else
+ ac_cv_lib_jpeg_jpeg_resync_to_restart=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_jpeg_jpeg_resync_to_restart" >&5
+$as_echo "$ac_cv_lib_jpeg_jpeg_resync_to_restart" >&6; }
+if test "x$ac_cv_lib_jpeg_jpeg_resync_to_restart" = xyes; then :
+ LIBJPEG_LIBS="-ljpeg"
+else
+ as_fn_error $? "jpeg library not found or functional" "$LINENO" 5
+fi
+
+else
+ SYSTEM_LIBJPEG=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal, libjpeg-turbo" >&5
+$as_echo "internal, libjpeg-turbo" >&6; }
+ BUILD_TYPE="$BUILD_TYPE LIBJPEG_TURBO"
+ LIBJPEG_CFLAGS="-I${WORKDIR}/UnpackedTarball/libjpeg-turbo"
+ if test "$COM" = "MSC"; then
+ LIBJPEG_LIBS="${WORKDIR}/UnpackedTarball/libjpeg-turbo/.libs/libjpeg.lib"
+ else
+ LIBJPEG_LIBS="-L${WORKDIR}/UnpackedTarball/libjpeg-turbo/.libs -ljpeg"
+ fi
+
+ case "$host_cpu" in
+ x86_64 | amd64 | i*86 | x86 | ia32)
+ for ac_prog in nasm nasmw yasm
+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 ${ac_cv_prog_NASM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NASM"; then
+ ac_cv_prog_NASM="$NASM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_NASM="$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
+NASM=$ac_cv_prog_NASM
+if test -n "$NASM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
+$as_echo "$NASM" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$NASM" && break
+done
+
+ if test -z "$NASM" -a "$build_os" = "cygwin"; then
+ if test -n "$LODE_HOME" -a -x "$LODE_HOME/opt/bin/nasm"; then
+ NASM="$LODE_HOME/opt/bin/nasm"
+ elif test -x "/opt/lo/bin/nasm"; then
+ NASM="/opt/lo/bin/nasm"
+ fi
+ fi
+
+ if test -n "$NASM"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format of host system" >&5
+$as_echo_n "checking for object file format of host system... " >&6; }
+ case "$host_os" in
+ cygwin* | mingw* | pw32* | interix*)
+ case "$host_cpu" in
+ x86_64)
+ objfmt='Win64-COFF'
+ ;;
+ *)
+ objfmt='Win32-COFF'
+ ;;
+ esac
+ ;;
+ msdosdjgpp* | go32*)
+ objfmt='COFF'
+ ;;
+ os2-emx*) # not tested
+ objfmt='MSOMF' # obj
+ ;;
+ linux*coff* | linux*oldld*)
+ objfmt='COFF' # ???
+ ;;
+ linux*aout*)
+ objfmt='a.out'
+ ;;
+ linux*)
+ case "$host_cpu" in
+ x86_64)
+ objfmt='ELF64'
+ ;;
+ *)
+ objfmt='ELF'
+ ;;
+ esac
+ ;;
+ kfreebsd* | freebsd* | netbsd* | openbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ objfmt='BSD-a.out'
+ else
+ case "$host_cpu" in
+ x86_64 | amd64)
+ objfmt='ELF64'
+ ;;
+ *)
+ objfmt='ELF'
+ ;;
+ esac
+ fi
+ ;;
+ solaris* | sunos* | sysv* | sco*)
+ case "$host_cpu" in
+ x86_64)
+ objfmt='ELF64'
+ ;;
+ *)
+ objfmt='ELF'
+ ;;
+ esac
+ ;;
+ darwin* | rhapsody* | nextstep* | openstep* | macos*)
+ case "$host_cpu" in
+ x86_64)
+ objfmt='Mach-O64'
+ ;;
+ *)
+ objfmt='Mach-O'
+ ;;
+ esac
+ ;;
+ *)
+ objfmt='ELF ?'
+ ;;
+ esac
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objfmt" >&5
+$as_echo "$objfmt" >&6; }
+ if test "$objfmt" = 'ELF ?'; then
+ objfmt='ELF'
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
+$as_echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format specifier (NAFLAGS) " >&5
+$as_echo_n "checking for object file format specifier (NAFLAGS) ... " >&6; }
+ case "$objfmt" in
+ MSOMF) NAFLAGS='-fobj -DOBJ32';;
+ Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
+ Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
+ COFF) NAFLAGS='-fcoff -DCOFF';;
+ a.out) NAFLAGS='-faout -DAOUT';;
+ BSD-a.out) NAFLAGS='-faoutb -DAOUT';;
+ ELF) NAFLAGS='-felf -DELF';;
+ ELF64) NAFLAGS='-felf64 -DELF -D__x86_64__';;
+ RDF) NAFLAGS='-frdf -DRDF';;
+ Mach-O) NAFLAGS='-fmacho -DMACHO';;
+ Mach-O64) NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
+ esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAFLAGS" >&5
+$as_echo "$NAFLAGS" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler ($NASM $NAFLAGS) works" >&5
+$as_echo_n "checking whether the assembler ($NASM $NAFLAGS) works... " >&6; }
+ cat > conftest.asm << EOF
+ %line 21955 "configure"
+ section .text
+ global _main,main
+ _main:
+ main: xor eax,eax
+ ret
+
+EOF
+ try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
+ (eval $try_nasm) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest.o; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ echo "configure: failed program was:" >&5
+ cat conftest.asm >&5
+ rm -rf conftest*
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installation or configuration problem: assembler cannot create object files." >&5
+$as_echo "$as_me: WARNING: installation or configuration problem: assembler cannot create object files." >&2;}
+ NASM=""
+ fi
+
+ fi
+
+ if test -z "$NASM"; then
+cat << _EOS
+****************************************************************************
+You need yasm or nasm (Netwide Assembler) to build the internal jpeg library optimally.
+To get one please:
+
+_EOS
+ if test "$build_os" = "cygwin"; then
+cat << _EOS
+install a pre-compiled binary for Win32
+
+mkdir -p /opt/lo/bin
+cd /opt/lo/bin
+wget https://dev-www.libreoffice.org/bin/cygwin/nasm.exe
+chmod +x nasm
+
+or get and install one from http://www.nasm.us/
+
+Then re-run autogen.sh
+
+Note: autogen.sh will try to use /opt/lo/bin/nasm if the environment variable NASM is not already defined.
+Alternatively, you can install the 'new' nasm where ever you want and make sure that \`which nasm\` finds it.
+
+_EOS
+ else
+cat << _EOS
+consult https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/BUILDING.md
+
+_EOS
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable nasm (Netwide Assembler) found" >&5
+$as_echo "$as_me: WARNING: no suitable nasm (Netwide Assembler) found" >&2;}
+ add_warning "no suitable nasm (Netwide Assembler) found for internal libjpeg-turbo"
+ fi
+ ;;
+ esac
+fi
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which clucene to use" >&5
+$as_echo_n "checking which clucene to use... " >&6; }
+if test "$with_system_clucene" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_CLUCENE=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLUCENE" >&5
+$as_echo_n "checking for CLUCENE... " >&6; }
+
+if test -n "$CLUCENE_CFLAGS"; then
+ pkg_cv_CLUCENE_CFLAGS="$CLUCENE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CLUCENE_CFLAGS=`$PKG_CONFIG --cflags "libclucene-core" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$CLUCENE_LIBS"; then
+ pkg_cv_CLUCENE_LIBS="$CLUCENE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CLUCENE_LIBS=`$PKG_CONFIG --libs "libclucene-core" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ CLUCENE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclucene-core" 2>&1`
+ else
+ CLUCENE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclucene-core" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$CLUCENE_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libclucene-core) were not met:
+
+$CLUCENE_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables CLUCENE_CFLAGS
+and CLUCENE_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables CLUCENE_CFLAGS
+and CLUCENE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ CLUCENE_CFLAGS=$pkg_cv_CLUCENE_CFLAGS
+ CLUCENE_LIBS=$pkg_cv_CLUCENE_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ CLUCENE_CFLAGS=$(printf '%s' "$CLUCENE_CFLAGS" | sed -e 's@-I[^ ]*/CLucene/ext@@' -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${CLUCENE_LIBS}"
+ CLUCENE_LIBS="${filteredlibs}"
+ 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_CPPFLAGS=$CPPFLAGS
+ CXXFLAGS="$CXXFLAGS $CLUCENE_CFLAGS"
+ CPPFLAGS="$CPPFLAGS $CLUCENE_CFLAGS"
+ ac_fn_cxx_check_header_compile "$LINENO" "CLucene/analysis/cjk/CJKAnalyzer.h" "ac_cv_header_CLucene_analysis_cjk_CJKAnalyzer_h" "#include <CLucene.h>
+"
+if test "x$ac_cv_header_CLucene_analysis_cjk_CJKAnalyzer_h" = xyes; then :
+
+else
+ as_fn_error $? "Your version of libclucene has contribs-lib missing." "$LINENO" 5
+fi
+
+
+ CXXFLAGS=$save_CXXFLAGS
+ CPPFLAGS=$save_CPPFLAGS
+ 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
+
+
+ CLUCENE_LIBS="$CLUCENE_LIBS -lclucene-contribs-lib"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_CLUCENE=
+ BUILD_TYPE="$BUILD_TYPE CLUCENE"
+fi
+
+
+
+
+
+
+# Check whether --with-system-expat was given.
+if test "${with_system_expat+set}" = set; then :
+ withval=$with_system_expat;
+else
+ with_system_expat="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which expat to use" >&5
+$as_echo_n "checking which expat to use... " >&6; }
+if test "$with_system_expat" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_EXPAT=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
+$as_echo_n "checking for EXPAT... " >&6; }
+
+if test -n "$EXPAT_CFLAGS"; then
+ pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "expat") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$EXPAT_LIBS"; then
+ pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "expat") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
+ else
+ EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$EXPAT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (expat) were not met:
+
+$EXPAT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables EXPAT_CFLAGS
+and EXPAT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables EXPAT_CFLAGS
+and EXPAT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
+ EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ EXPAT_CFLAGS=$(printf '%s' "${EXPAT_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${EXPAT_LIBS}"
+ EXPAT_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_EXPAT=
+ EXPAT_CFLAGS=
+ EXPAT_LIBS=
+ BUILD_TYPE="$BUILD_TYPE EXPAT"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-xmlsec was given.
+if test "${with_system_xmlsec+set}" = set; then :
+ withval=$with_system_xmlsec;
+else
+ with_system_xmlsec="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which xmlsec to use" >&5
+$as_echo_n "checking which xmlsec to use... " >&6; }
+if test "$with_system_xmlsec" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_XMLSEC=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLSEC" >&5
+$as_echo_n "checking for XMLSEC... " >&6; }
+
+if test -n "$XMLSEC_CFLAGS"; then
+ pkg_cv_XMLSEC_CFLAGS="$XMLSEC_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmlsec1-nss >= 1.2.28\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xmlsec1-nss >= 1.2.28") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XMLSEC_CFLAGS=`$PKG_CONFIG --cflags "xmlsec1-nss >= 1.2.28" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$XMLSEC_LIBS"; then
+ pkg_cv_XMLSEC_LIBS="$XMLSEC_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmlsec1-nss >= 1.2.28\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xmlsec1-nss >= 1.2.28") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XMLSEC_LIBS=`$PKG_CONFIG --libs "xmlsec1-nss >= 1.2.28" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ XMLSEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmlsec1-nss >= 1.2.28" 2>&1`
+ else
+ XMLSEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmlsec1-nss >= 1.2.28" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$XMLSEC_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (xmlsec1-nss >= 1.2.28) were not met:
+
+$XMLSEC_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables XMLSEC_CFLAGS
+and XMLSEC_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables XMLSEC_CFLAGS
+and XMLSEC_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ XMLSEC_CFLAGS=$pkg_cv_XMLSEC_CFLAGS
+ XMLSEC_LIBS=$pkg_cv_XMLSEC_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ XMLSEC_CFLAGS=$(printf '%s' "${XMLSEC_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${XMLSEC_LIBS}"
+ XMLSEC_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_XMLSEC=
+ XMLSEC_CFLAGS=
+ XMLSEC_LIBS=
+ BUILD_TYPE="$BUILD_TYPE XMLSEC"
+fi
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Embedded OpenType support" >&5
+$as_echo_n "checking whether to enable Embedded OpenType support... " >&6; }
+if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_eot" = "yes"; then
+ ENABLE_EOT="TRUE"
+ $as_echo "#define ENABLE_EOT 1" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+
+
+# Check whether --with-system-libeot was given.
+if test "${with_system_libeot+set}" = set; then :
+ withval=$with_system_libeot;
+else
+ with_system_libeot="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libeot to use" >&5
+$as_echo_n "checking which libeot to use... " >&6; }
+if test "$with_system_libeot" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBEOT=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEOT" >&5
+$as_echo_n "checking for LIBEOT... " >&6; }
+
+if test -n "$LIBEOT_CFLAGS"; then
+ pkg_cv_LIBEOT_CFLAGS="$LIBEOT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeot >= 0.01\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libeot >= 0.01") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBEOT_CFLAGS=`$PKG_CONFIG --cflags "libeot >= 0.01" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBEOT_LIBS"; then
+ pkg_cv_LIBEOT_LIBS="$LIBEOT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeot >= 0.01\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libeot >= 0.01") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBEOT_LIBS=`$PKG_CONFIG --libs "libeot >= 0.01" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBEOT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeot >= 0.01" 2>&1`
+ else
+ LIBEOT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeot >= 0.01" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBEOT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libeot >= 0.01) were not met:
+
+$LIBEOT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBEOT_CFLAGS
+and LIBEOT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBEOT_CFLAGS
+and LIBEOT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBEOT_CFLAGS=$pkg_cv_LIBEOT_CFLAGS
+ LIBEOT_LIBS=$pkg_cv_LIBEOT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBEOT_CFLAGS=$(printf '%s' "${LIBEOT_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBEOT_LIBS}"
+ LIBEOT_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LIBEOT=
+ LIBEOT_CFLAGS=
+ LIBEOT_LIBS=
+ BUILD_TYPE="$BUILD_TYPE LIBEOT"
+fi
+
+
+
+
+else
+ ENABLE_EOT=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test "$COM" = "MSC"; then :
+ librevenge_libdir="${WORKDIR}/LinkTarget/Library"
+else
+ librevenge_libdir="${WORKDIR}/UnpackedTarball/librevenge/src/lib/.libs"
+
+fi
+
+
+# Check whether --with-system-librevenge was given.
+if test "${with_system_librevenge+set}" = set; then :
+ withval=$with_system_librevenge;
+else
+ with_system_librevenge="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which librevenge to use" >&5
+$as_echo_n "checking which librevenge to use... " >&6; }
+if test "$with_system_librevenge" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_REVENGE=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for REVENGE" >&5
+$as_echo_n "checking for REVENGE... " >&6; }
+
+if test -n "$REVENGE_CFLAGS"; then
+ pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0 >= 0.0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "librevenge-0.0 >= 0.0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "librevenge-0.0 >= 0.0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$REVENGE_LIBS"; then
+ pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0 >= 0.0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "librevenge-0.0 >= 0.0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "librevenge-0.0 >= 0.0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-0.0 >= 0.0.1" 2>&1`
+ else
+ REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-0.0 >= 0.0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$REVENGE_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (librevenge-0.0 >= 0.0.1) were not met:
+
+$REVENGE_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables REVENGE_CFLAGS
+and REVENGE_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables REVENGE_CFLAGS
+and REVENGE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
+ REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ REVENGE_CFLAGS=$(printf '%s' "${REVENGE_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${REVENGE_LIBS}"
+ REVENGE_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_REVENGE=
+ REVENGE_CFLAGS="-I${WORKDIR}/UnpackedTarball/librevenge/inc"
+ REVENGE_LIBS="-L${librevenge_libdir} -lrevenge-0.0"
+ BUILD_TYPE="$BUILD_TYPE REVENGE"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libodfgen was given.
+if test "${with_system_libodfgen+set}" = set; then :
+ withval=$with_system_libodfgen;
+else
+ with_system_libodfgen="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libodfgen to use" >&5
+$as_echo_n "checking which libodfgen to use... " >&6; }
+if test "$with_system_libodfgen" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ODFGEN=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODFGEN" >&5
+$as_echo_n "checking for ODFGEN... " >&6; }
+
+if test -n "$ODFGEN_CFLAGS"; then
+ pkg_cv_ODFGEN_CFLAGS="$ODFGEN_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libodfgen-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libodfgen-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ODFGEN_CFLAGS=`$PKG_CONFIG --cflags "libodfgen-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ODFGEN_LIBS"; then
+ pkg_cv_ODFGEN_LIBS="$ODFGEN_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libodfgen-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libodfgen-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ODFGEN_LIBS=`$PKG_CONFIG --libs "libodfgen-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ODFGEN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libodfgen-0.1" 2>&1`
+ else
+ ODFGEN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libodfgen-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ODFGEN_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libodfgen-0.1) were not met:
+
+$ODFGEN_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables ODFGEN_CFLAGS
+and ODFGEN_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables ODFGEN_CFLAGS
+and ODFGEN_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ ODFGEN_CFLAGS=$pkg_cv_ODFGEN_CFLAGS
+ ODFGEN_LIBS=$pkg_cv_ODFGEN_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ ODFGEN_CFLAGS=$(printf '%s' "${ODFGEN_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${ODFGEN_LIBS}"
+ ODFGEN_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ODFGEN=
+ ODFGEN_CFLAGS=
+ ODFGEN_LIBS=
+ BUILD_TYPE="$BUILD_TYPE ODFGEN"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libepubgen was given.
+if test "${with_system_libepubgen+set}" = set; then :
+ withval=$with_system_libepubgen;
+else
+ with_system_libepubgen="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libepubgen to use" >&5
+$as_echo_n "checking which libepubgen to use... " >&6; }
+if test "$with_system_libepubgen" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_EPUBGEN=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPUBGEN" >&5
+$as_echo_n "checking for EPUBGEN... " >&6; }
+
+if test -n "$EPUBGEN_CFLAGS"; then
+ pkg_cv_EPUBGEN_CFLAGS="$EPUBGEN_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libepubgen-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libepubgen-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EPUBGEN_CFLAGS=`$PKG_CONFIG --cflags "libepubgen-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$EPUBGEN_LIBS"; then
+ pkg_cv_EPUBGEN_LIBS="$EPUBGEN_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libepubgen-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libepubgen-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EPUBGEN_LIBS=`$PKG_CONFIG --libs "libepubgen-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ EPUBGEN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libepubgen-0.1" 2>&1`
+ else
+ EPUBGEN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libepubgen-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$EPUBGEN_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libepubgen-0.1) were not met:
+
+$EPUBGEN_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables EPUBGEN_CFLAGS
+and EPUBGEN_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables EPUBGEN_CFLAGS
+and EPUBGEN_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ EPUBGEN_CFLAGS=$pkg_cv_EPUBGEN_CFLAGS
+ EPUBGEN_LIBS=$pkg_cv_EPUBGEN_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ EPUBGEN_CFLAGS=$(printf '%s' "${EPUBGEN_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${EPUBGEN_LIBS}"
+ EPUBGEN_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_EPUBGEN=
+ EPUBGEN_CFLAGS=
+ EPUBGEN_LIBS=
+ BUILD_TYPE="$BUILD_TYPE EPUBGEN"
+fi
+
+
+
+
+
+if test "$COM" = "MSC"; then :
+ libwpd_libdir="${WORKDIR}/LinkTarget/Library"
+else
+ libwpd_libdir="${WORKDIR}/UnpackedTarball/libwpd/src/lib/.libs"
+
+fi
+
+
+# Check whether --with-system-libwpd was given.
+if test "${with_system_libwpd+set}" = set; then :
+ withval=$with_system_libwpd;
+else
+ with_system_libwpd="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libwpd to use" >&5
+$as_echo_n "checking which libwpd to use... " >&6; }
+if test "$with_system_libwpd" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_WPD=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPD" >&5
+$as_echo_n "checking for WPD... " >&6; }
+
+if test -n "$WPD_CFLAGS"; then
+ pkg_cv_WPD_CFLAGS="$WPD_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpd-0.10\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libwpd-0.10") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_WPD_CFLAGS=`$PKG_CONFIG --cflags "libwpd-0.10" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$WPD_LIBS"; then
+ pkg_cv_WPD_LIBS="$WPD_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpd-0.10\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libwpd-0.10") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_WPD_LIBS=`$PKG_CONFIG --libs "libwpd-0.10" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ WPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwpd-0.10" 2>&1`
+ else
+ WPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwpd-0.10" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$WPD_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libwpd-0.10) were not met:
+
+$WPD_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables WPD_CFLAGS
+and WPD_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables WPD_CFLAGS
+and WPD_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ WPD_CFLAGS=$pkg_cv_WPD_CFLAGS
+ WPD_LIBS=$pkg_cv_WPD_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ WPD_CFLAGS=$(printf '%s' "${WPD_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${WPD_LIBS}"
+ WPD_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_WPD=
+ WPD_CFLAGS="-I${WORKDIR}/UnpackedTarball/libwpd/inc"
+ WPD_LIBS="-L${libwpd_libdir} -lwpd-0.10"
+ BUILD_TYPE="$BUILD_TYPE WPD"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libwpg was given.
+if test "${with_system_libwpg+set}" = set; then :
+ withval=$with_system_libwpg;
+else
+ with_system_libwpg="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libwpg to use" >&5
+$as_echo_n "checking which libwpg to use... " >&6; }
+if test "$with_system_libwpg" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_WPG=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPG" >&5
+$as_echo_n "checking for WPG... " >&6; }
+
+if test -n "$WPG_CFLAGS"; then
+ pkg_cv_WPG_CFLAGS="$WPG_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpg-0.3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libwpg-0.3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_WPG_CFLAGS=`$PKG_CONFIG --cflags "libwpg-0.3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$WPG_LIBS"; then
+ pkg_cv_WPG_LIBS="$WPG_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpg-0.3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libwpg-0.3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_WPG_LIBS=`$PKG_CONFIG --libs "libwpg-0.3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ WPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwpg-0.3" 2>&1`
+ else
+ WPG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwpg-0.3" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$WPG_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libwpg-0.3) were not met:
+
+$WPG_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables WPG_CFLAGS
+and WPG_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables WPG_CFLAGS
+and WPG_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ WPG_CFLAGS=$pkg_cv_WPG_CFLAGS
+ WPG_LIBS=$pkg_cv_WPG_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ WPG_CFLAGS=$(printf '%s' "${WPG_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${WPG_LIBS}"
+ WPG_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_WPG=
+ WPG_CFLAGS=
+ WPG_LIBS=
+ BUILD_TYPE="$BUILD_TYPE WPG"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libwps was given.
+if test "${with_system_libwps+set}" = set; then :
+ withval=$with_system_libwps;
+else
+ with_system_libwps="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libwps to use" >&5
+$as_echo_n "checking which libwps to use... " >&6; }
+if test "$with_system_libwps" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_WPS=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPS" >&5
+$as_echo_n "checking for WPS... " >&6; }
+
+if test -n "$WPS_CFLAGS"; then
+ pkg_cv_WPS_CFLAGS="$WPS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwps-0.4\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libwps-0.4") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_WPS_CFLAGS=`$PKG_CONFIG --cflags "libwps-0.4" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$WPS_LIBS"; then
+ pkg_cv_WPS_LIBS="$WPS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwps-0.4\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libwps-0.4") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_WPS_LIBS=`$PKG_CONFIG --libs "libwps-0.4" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ WPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwps-0.4" 2>&1`
+ else
+ WPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwps-0.4" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$WPS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libwps-0.4) were not met:
+
+$WPS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables WPS_CFLAGS
+and WPS_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables WPS_CFLAGS
+and WPS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ WPS_CFLAGS=$pkg_cv_WPS_CFLAGS
+ WPS_LIBS=$pkg_cv_WPS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ WPS_CFLAGS=$(printf '%s' "${WPS_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${WPS_LIBS}"
+ WPS_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_WPS=
+ WPS_CFLAGS=
+ WPS_LIBS=
+ BUILD_TYPE="$BUILD_TYPE WPS"
+fi
+
+
+
+
+
+ if test -n "$SYSTEM_WPS"; then :
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPS version" >&5
+$as_echo_n "checking for WPS version... " >&6; }
+ if test -n "$PKG_CONFIG"; then :
+
+ ver=`$PKG_CONFIG --modversion "libwps-0.4"`
+ if test -n "$ver"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ver" >&5
+$as_echo "$ver" >&6; }
+
+ save_IFS="$IFS"
+ IFS=.
+ echo "$ver" | while read major minor micro; do
+ cat >>confdefs.h <<_ACEOF
+#define WPS_VERSION_MAJOR $major
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define WPS_VERSION_MINOR $minor
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define WPS_VERSION_MICRO $micro
+_ACEOF
+
+ done
+ IFS="$save_IFS"
+
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+
+ $as_echo "#define WPS_VERSION_MAJOR 0" >>confdefs.h
+
+ $as_echo "#define WPS_VERSION_MINOR 4" >>confdefs.h
+
+ $as_echo "#define WPS_VERSION_MICRO 11" >>confdefs.h
+
+
+
+fi
+
+
+
+
+# Check whether --with-system-libvisio was given.
+if test "${with_system_libvisio+set}" = set; then :
+ withval=$with_system_libvisio;
+else
+ with_system_libvisio="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libvisio to use" >&5
+$as_echo_n "checking which libvisio to use... " >&6; }
+if test "$with_system_libvisio" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_VISIO=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VISIO" >&5
+$as_echo_n "checking for VISIO... " >&6; }
+
+if test -n "$VISIO_CFLAGS"; then
+ pkg_cv_VISIO_CFLAGS="$VISIO_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvisio-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libvisio-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_VISIO_CFLAGS=`$PKG_CONFIG --cflags "libvisio-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$VISIO_LIBS"; then
+ pkg_cv_VISIO_LIBS="$VISIO_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvisio-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libvisio-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_VISIO_LIBS=`$PKG_CONFIG --libs "libvisio-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ VISIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvisio-0.1" 2>&1`
+ else
+ VISIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvisio-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$VISIO_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libvisio-0.1) were not met:
+
+$VISIO_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables VISIO_CFLAGS
+and VISIO_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables VISIO_CFLAGS
+and VISIO_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ VISIO_CFLAGS=$pkg_cv_VISIO_CFLAGS
+ VISIO_LIBS=$pkg_cv_VISIO_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ VISIO_CFLAGS=$(printf '%s' "${VISIO_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${VISIO_LIBS}"
+ VISIO_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_VISIO=
+ VISIO_CFLAGS=
+ VISIO_LIBS=
+ BUILD_TYPE="$BUILD_TYPE VISIO"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libcdr was given.
+if test "${with_system_libcdr+set}" = set; then :
+ withval=$with_system_libcdr;
+else
+ with_system_libcdr="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libcdr to use" >&5
+$as_echo_n "checking which libcdr to use... " >&6; }
+if test "$with_system_libcdr" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_CDR=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CDR" >&5
+$as_echo_n "checking for CDR... " >&6; }
+
+if test -n "$CDR_CFLAGS"; then
+ pkg_cv_CDR_CFLAGS="$CDR_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdr-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libcdr-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CDR_CFLAGS=`$PKG_CONFIG --cflags "libcdr-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$CDR_LIBS"; then
+ pkg_cv_CDR_LIBS="$CDR_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdr-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libcdr-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CDR_LIBS=`$PKG_CONFIG --libs "libcdr-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ CDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcdr-0.1" 2>&1`
+ else
+ CDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcdr-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$CDR_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libcdr-0.1) were not met:
+
+$CDR_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables CDR_CFLAGS
+and CDR_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables CDR_CFLAGS
+and CDR_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ CDR_CFLAGS=$pkg_cv_CDR_CFLAGS
+ CDR_LIBS=$pkg_cv_CDR_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ CDR_CFLAGS=$(printf '%s' "${CDR_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${CDR_LIBS}"
+ CDR_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_CDR=
+ CDR_CFLAGS=
+ CDR_LIBS=
+ BUILD_TYPE="$BUILD_TYPE CDR"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libmspub was given.
+if test "${with_system_libmspub+set}" = set; then :
+ withval=$with_system_libmspub;
+else
+ with_system_libmspub="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libmspub to use" >&5
+$as_echo_n "checking which libmspub to use... " >&6; }
+if test "$with_system_libmspub" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_MSPUB=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSPUB" >&5
+$as_echo_n "checking for MSPUB... " >&6; }
+
+if test -n "$MSPUB_CFLAGS"; then
+ pkg_cv_MSPUB_CFLAGS="$MSPUB_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspub-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libmspub-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MSPUB_CFLAGS=`$PKG_CONFIG --cflags "libmspub-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$MSPUB_LIBS"; then
+ pkg_cv_MSPUB_LIBS="$MSPUB_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspub-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libmspub-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MSPUB_LIBS=`$PKG_CONFIG --libs "libmspub-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ MSPUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmspub-0.1" 2>&1`
+ else
+ MSPUB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmspub-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$MSPUB_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libmspub-0.1) were not met:
+
+$MSPUB_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables MSPUB_CFLAGS
+and MSPUB_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables MSPUB_CFLAGS
+and MSPUB_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ MSPUB_CFLAGS=$pkg_cv_MSPUB_CFLAGS
+ MSPUB_LIBS=$pkg_cv_MSPUB_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ MSPUB_CFLAGS=$(printf '%s' "${MSPUB_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${MSPUB_LIBS}"
+ MSPUB_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_MSPUB=
+ MSPUB_CFLAGS=
+ MSPUB_LIBS=
+ BUILD_TYPE="$BUILD_TYPE MSPUB"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libmwaw was given.
+if test "${with_system_libmwaw+set}" = set; then :
+ withval=$with_system_libmwaw;
+else
+ with_system_libmwaw="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libmwaw to use" >&5
+$as_echo_n "checking which libmwaw to use... " >&6; }
+if test "$with_system_libmwaw" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_MWAW=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MWAW" >&5
+$as_echo_n "checking for MWAW... " >&6; }
+
+if test -n "$MWAW_CFLAGS"; then
+ pkg_cv_MWAW_CFLAGS="$MWAW_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmwaw-0.3 >= 0.3.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libmwaw-0.3 >= 0.3.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MWAW_CFLAGS=`$PKG_CONFIG --cflags "libmwaw-0.3 >= 0.3.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$MWAW_LIBS"; then
+ pkg_cv_MWAW_LIBS="$MWAW_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmwaw-0.3 >= 0.3.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libmwaw-0.3 >= 0.3.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MWAW_LIBS=`$PKG_CONFIG --libs "libmwaw-0.3 >= 0.3.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ MWAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmwaw-0.3 >= 0.3.1" 2>&1`
+ else
+ MWAW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmwaw-0.3 >= 0.3.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$MWAW_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libmwaw-0.3 >= 0.3.1) were not met:
+
+$MWAW_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables MWAW_CFLAGS
+and MWAW_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables MWAW_CFLAGS
+and MWAW_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ MWAW_CFLAGS=$pkg_cv_MWAW_CFLAGS
+ MWAW_LIBS=$pkg_cv_MWAW_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ MWAW_CFLAGS=$(printf '%s' "${MWAW_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${MWAW_LIBS}"
+ MWAW_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_MWAW=
+ MWAW_CFLAGS=
+ MWAW_LIBS=
+ BUILD_TYPE="$BUILD_TYPE MWAW"
+fi
+
+
+
+
+
+ if test -n "$SYSTEM_MWAW"; then :
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MWAW version" >&5
+$as_echo_n "checking for MWAW version... " >&6; }
+ if test -n "$PKG_CONFIG"; then :
+
+ ver=`$PKG_CONFIG --modversion "libmwaw-0.3"`
+ if test -n "$ver"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ver" >&5
+$as_echo "$ver" >&6; }
+
+ save_IFS="$IFS"
+ IFS=.
+ echo "$ver" | while read major minor micro; do
+ cat >>confdefs.h <<_ACEOF
+#define MWAW_VERSION_MAJOR $major
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define MWAW_VERSION_MINOR $minor
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define MWAW_VERSION_MICRO $micro
+_ACEOF
+
+ done
+ IFS="$save_IFS"
+
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+
+ $as_echo "#define MWAW_VERSION_MAJOR 0" >>confdefs.h
+
+ $as_echo "#define MWAW_VERSION_MINOR 3" >>confdefs.h
+
+ $as_echo "#define MWAW_VERSION_MICRO 16" >>confdefs.h
+
+
+
+fi
+
+
+
+
+# Check whether --with-system-libetonyek was given.
+if test "${with_system_libetonyek+set}" = set; then :
+ withval=$with_system_libetonyek;
+else
+ with_system_libetonyek="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libetonyek to use" >&5
+$as_echo_n "checking which libetonyek to use... " >&6; }
+if test "$with_system_libetonyek" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ETONYEK=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETONYEK" >&5
+$as_echo_n "checking for ETONYEK... " >&6; }
+
+if test -n "$ETONYEK_CFLAGS"; then
+ pkg_cv_ETONYEK_CFLAGS="$ETONYEK_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libetonyek-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libetonyek-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ETONYEK_CFLAGS=`$PKG_CONFIG --cflags "libetonyek-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ETONYEK_LIBS"; then
+ pkg_cv_ETONYEK_LIBS="$ETONYEK_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libetonyek-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libetonyek-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ETONYEK_LIBS=`$PKG_CONFIG --libs "libetonyek-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ETONYEK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libetonyek-0.1" 2>&1`
+ else
+ ETONYEK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libetonyek-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ETONYEK_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libetonyek-0.1) were not met:
+
+$ETONYEK_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables ETONYEK_CFLAGS
+and ETONYEK_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables ETONYEK_CFLAGS
+and ETONYEK_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ ETONYEK_CFLAGS=$pkg_cv_ETONYEK_CFLAGS
+ ETONYEK_LIBS=$pkg_cv_ETONYEK_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ ETONYEK_CFLAGS=$(printf '%s' "${ETONYEK_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${ETONYEK_LIBS}"
+ ETONYEK_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ETONYEK=
+ ETONYEK_CFLAGS=
+ ETONYEK_LIBS=
+ BUILD_TYPE="$BUILD_TYPE ETONYEK"
+fi
+
+
+
+
+
+ if test -n "$SYSTEM_ETONYEK"; then :
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETONYEK version" >&5
+$as_echo_n "checking for ETONYEK version... " >&6; }
+ if test -n "$PKG_CONFIG"; then :
+
+ ver=`$PKG_CONFIG --modversion "libetonyek-0.1"`
+ if test -n "$ver"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ver" >&5
+$as_echo "$ver" >&6; }
+
+ save_IFS="$IFS"
+ IFS=.
+ echo "$ver" | while read major minor micro; do
+ cat >>confdefs.h <<_ACEOF
+#define ETONYEK_VERSION_MAJOR $major
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define ETONYEK_VERSION_MINOR $minor
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define ETONYEK_VERSION_MICRO $micro
+_ACEOF
+
+ done
+ IFS="$save_IFS"
+
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+
+ $as_echo "#define ETONYEK_VERSION_MAJOR 0" >>confdefs.h
+
+ $as_echo "#define ETONYEK_VERSION_MINOR 1" >>confdefs.h
+
+ $as_echo "#define ETONYEK_VERSION_MICRO 8" >>confdefs.h
+
+
+
+fi
+
+
+
+
+# Check whether --with-system-libfreehand was given.
+if test "${with_system_libfreehand+set}" = set; then :
+ withval=$with_system_libfreehand;
+else
+ with_system_libfreehand="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libfreehand to use" >&5
+$as_echo_n "checking which libfreehand to use... " >&6; }
+if test "$with_system_libfreehand" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_FREEHAND=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREEHAND" >&5
+$as_echo_n "checking for FREEHAND... " >&6; }
+
+if test -n "$FREEHAND_CFLAGS"; then
+ pkg_cv_FREEHAND_CFLAGS="$FREEHAND_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfreehand-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libfreehand-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FREEHAND_CFLAGS=`$PKG_CONFIG --cflags "libfreehand-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$FREEHAND_LIBS"; then
+ pkg_cv_FREEHAND_LIBS="$FREEHAND_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfreehand-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libfreehand-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FREEHAND_LIBS=`$PKG_CONFIG --libs "libfreehand-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ FREEHAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfreehand-0.1" 2>&1`
+ else
+ FREEHAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfreehand-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$FREEHAND_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libfreehand-0.1) were not met:
+
+$FREEHAND_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables FREEHAND_CFLAGS
+and FREEHAND_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables FREEHAND_CFLAGS
+and FREEHAND_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ FREEHAND_CFLAGS=$pkg_cv_FREEHAND_CFLAGS
+ FREEHAND_LIBS=$pkg_cv_FREEHAND_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ FREEHAND_CFLAGS=$(printf '%s' "${FREEHAND_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${FREEHAND_LIBS}"
+ FREEHAND_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_FREEHAND=
+ FREEHAND_CFLAGS=
+ FREEHAND_LIBS=
+ BUILD_TYPE="$BUILD_TYPE FREEHAND"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libebook was given.
+if test "${with_system_libebook+set}" = set; then :
+ withval=$with_system_libebook;
+else
+ with_system_libebook="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libebook to use" >&5
+$as_echo_n "checking which libebook to use... " >&6; }
+if test "$with_system_libebook" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_EBOOK=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK" >&5
+$as_echo_n "checking for EBOOK... " >&6; }
+
+if test -n "$EBOOK_CFLAGS"; then
+ pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libe-book-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libe-book-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "libe-book-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$EBOOK_LIBS"; then
+ pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libe-book-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libe-book-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "libe-book-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libe-book-0.1" 2>&1`
+ else
+ EBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libe-book-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$EBOOK_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libe-book-0.1) were not met:
+
+$EBOOK_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables EBOOK_CFLAGS
+and EBOOK_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables EBOOK_CFLAGS
+and EBOOK_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
+ EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ EBOOK_CFLAGS=$(printf '%s' "${EBOOK_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${EBOOK_LIBS}"
+ EBOOK_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_EBOOK=
+ EBOOK_CFLAGS=
+ EBOOK_LIBS=
+ BUILD_TYPE="$BUILD_TYPE EBOOK"
+fi
+
+
+
+
+
+ if test -n "$SYSTEM_EBOOK"; then :
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBOOK version" >&5
+$as_echo_n "checking for EBOOK version... " >&6; }
+ if test -n "$PKG_CONFIG"; then :
+
+ ver=`$PKG_CONFIG --modversion "libe-book-0.1"`
+ if test -n "$ver"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ver" >&5
+$as_echo "$ver" >&6; }
+
+ save_IFS="$IFS"
+ IFS=.
+ echo "$ver" | while read major minor micro; do
+ cat >>confdefs.h <<_ACEOF
+#define EBOOK_VERSION_MAJOR $major
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define EBOOK_VERSION_MINOR $minor
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define EBOOK_VERSION_MICRO $micro
+_ACEOF
+
+ done
+ IFS="$save_IFS"
+
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+
+ $as_echo "#define EBOOK_VERSION_MAJOR 0" >>confdefs.h
+
+ $as_echo "#define EBOOK_VERSION_MINOR 1" >>confdefs.h
+
+ $as_echo "#define EBOOK_VERSION_MICRO 2" >>confdefs.h
+
+
+
+fi
+
+
+
+
+# Check whether --with-system-libabw was given.
+if test "${with_system_libabw+set}" = set; then :
+ withval=$with_system_libabw;
+else
+ with_system_libabw="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libabw to use" >&5
+$as_echo_n "checking which libabw to use... " >&6; }
+if test "$with_system_libabw" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ABW=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABW" >&5
+$as_echo_n "checking for ABW... " >&6; }
+
+if test -n "$ABW_CFLAGS"; then
+ pkg_cv_ABW_CFLAGS="$ABW_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libabw-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libabw-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ABW_CFLAGS=`$PKG_CONFIG --cflags "libabw-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ABW_LIBS"; then
+ pkg_cv_ABW_LIBS="$ABW_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libabw-0.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libabw-0.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ABW_LIBS=`$PKG_CONFIG --libs "libabw-0.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ABW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libabw-0.1" 2>&1`
+ else
+ ABW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libabw-0.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ABW_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libabw-0.1) were not met:
+
+$ABW_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables ABW_CFLAGS
+and ABW_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables ABW_CFLAGS
+and ABW_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ ABW_CFLAGS=$pkg_cv_ABW_CFLAGS
+ ABW_LIBS=$pkg_cv_ABW_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ ABW_CFLAGS=$(printf '%s' "${ABW_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${ABW_LIBS}"
+ ABW_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ABW=
+ ABW_CFLAGS=
+ ABW_LIBS=
+ BUILD_TYPE="$BUILD_TYPE ABW"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libpagemaker was given.
+if test "${with_system_libpagemaker+set}" = set; then :
+ withval=$with_system_libpagemaker;
+else
+ with_system_libpagemaker="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libpagemaker to use" >&5
+$as_echo_n "checking which libpagemaker to use... " >&6; }
+if test "$with_system_libpagemaker" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_PAGEMAKER=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAGEMAKER" >&5
+$as_echo_n "checking for PAGEMAKER... " >&6; }
+
+if test -n "$PAGEMAKER_CFLAGS"; then
+ pkg_cv_PAGEMAKER_CFLAGS="$PAGEMAKER_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpagemaker-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libpagemaker-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_PAGEMAKER_CFLAGS=`$PKG_CONFIG --cflags "libpagemaker-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$PAGEMAKER_LIBS"; then
+ pkg_cv_PAGEMAKER_LIBS="$PAGEMAKER_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpagemaker-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libpagemaker-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_PAGEMAKER_LIBS=`$PKG_CONFIG --libs "libpagemaker-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ PAGEMAKER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpagemaker-0.0" 2>&1`
+ else
+ PAGEMAKER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpagemaker-0.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$PAGEMAKER_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libpagemaker-0.0) were not met:
+
+$PAGEMAKER_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables PAGEMAKER_CFLAGS
+and PAGEMAKER_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables PAGEMAKER_CFLAGS
+and PAGEMAKER_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ PAGEMAKER_CFLAGS=$pkg_cv_PAGEMAKER_CFLAGS
+ PAGEMAKER_LIBS=$pkg_cv_PAGEMAKER_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ PAGEMAKER_CFLAGS=$(printf '%s' "${PAGEMAKER_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${PAGEMAKER_LIBS}"
+ PAGEMAKER_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_PAGEMAKER=
+ PAGEMAKER_CFLAGS=
+ PAGEMAKER_LIBS=
+ BUILD_TYPE="$BUILD_TYPE PAGEMAKER"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libqxp was given.
+if test "${with_system_libqxp+set}" = set; then :
+ withval=$with_system_libqxp;
+else
+ with_system_libqxp="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libqxp to use" >&5
+$as_echo_n "checking which libqxp to use... " >&6; }
+if test "$with_system_libqxp" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_QXP=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QXP" >&5
+$as_echo_n "checking for QXP... " >&6; }
+
+if test -n "$QXP_CFLAGS"; then
+ pkg_cv_QXP_CFLAGS="$QXP_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqxp-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libqxp-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QXP_CFLAGS=`$PKG_CONFIG --cflags "libqxp-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$QXP_LIBS"; then
+ pkg_cv_QXP_LIBS="$QXP_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqxp-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libqxp-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QXP_LIBS=`$PKG_CONFIG --libs "libqxp-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ QXP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqxp-0.0" 2>&1`
+ else
+ QXP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqxp-0.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$QXP_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libqxp-0.0) were not met:
+
+$QXP_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables QXP_CFLAGS
+and QXP_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables QXP_CFLAGS
+and QXP_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ QXP_CFLAGS=$pkg_cv_QXP_CFLAGS
+ QXP_LIBS=$pkg_cv_QXP_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ QXP_CFLAGS=$(printf '%s' "${QXP_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${QXP_LIBS}"
+ QXP_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_QXP=
+ QXP_CFLAGS=
+ QXP_LIBS=
+ BUILD_TYPE="$BUILD_TYPE QXP"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libzmf was given.
+if test "${with_system_libzmf+set}" = set; then :
+ withval=$with_system_libzmf;
+else
+ with_system_libzmf="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libzmf to use" >&5
+$as_echo_n "checking which libzmf to use... " >&6; }
+if test "$with_system_libzmf" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ZMF=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZMF" >&5
+$as_echo_n "checking for ZMF... " >&6; }
+
+if test -n "$ZMF_CFLAGS"; then
+ pkg_cv_ZMF_CFLAGS="$ZMF_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmf-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libzmf-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ZMF_CFLAGS=`$PKG_CONFIG --cflags "libzmf-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ZMF_LIBS"; then
+ pkg_cv_ZMF_LIBS="$ZMF_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmf-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libzmf-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ZMF_LIBS=`$PKG_CONFIG --libs "libzmf-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ZMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzmf-0.0" 2>&1`
+ else
+ ZMF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzmf-0.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ZMF_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libzmf-0.0) were not met:
+
+$ZMF_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables ZMF_CFLAGS
+and ZMF_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables ZMF_CFLAGS
+and ZMF_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ ZMF_CFLAGS=$pkg_cv_ZMF_CFLAGS
+ ZMF_LIBS=$pkg_cv_ZMF_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ ZMF_CFLAGS=$(printf '%s' "${ZMF_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${ZMF_LIBS}"
+ ZMF_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ZMF=
+ ZMF_CFLAGS=
+ ZMF_LIBS=
+ BUILD_TYPE="$BUILD_TYPE ZMF"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libstaroffice was given.
+if test "${with_system_libstaroffice+set}" = set; then :
+ withval=$with_system_libstaroffice;
+else
+ with_system_libstaroffice="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libstaroffice to use" >&5
+$as_echo_n "checking which libstaroffice to use... " >&6; }
+if test "$with_system_libstaroffice" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_STAROFFICE=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAROFFICE" >&5
+$as_echo_n "checking for STAROFFICE... " >&6; }
+
+if test -n "$STAROFFICE_CFLAGS"; then
+ pkg_cv_STAROFFICE_CFLAGS="$STAROFFICE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstaroffice-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libstaroffice-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_STAROFFICE_CFLAGS=`$PKG_CONFIG --cflags "libstaroffice-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$STAROFFICE_LIBS"; then
+ pkg_cv_STAROFFICE_LIBS="$STAROFFICE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstaroffice-0.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libstaroffice-0.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_STAROFFICE_LIBS=`$PKG_CONFIG --libs "libstaroffice-0.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ STAROFFICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libstaroffice-0.0" 2>&1`
+ else
+ STAROFFICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libstaroffice-0.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$STAROFFICE_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libstaroffice-0.0) were not met:
+
+$STAROFFICE_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables STAROFFICE_CFLAGS
+and STAROFFICE_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables STAROFFICE_CFLAGS
+and STAROFFICE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ STAROFFICE_CFLAGS=$pkg_cv_STAROFFICE_CFLAGS
+ STAROFFICE_LIBS=$pkg_cv_STAROFFICE_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ STAROFFICE_CFLAGS=$(printf '%s' "${STAROFFICE_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${STAROFFICE_LIBS}"
+ STAROFFICE_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_STAROFFICE=
+ STAROFFICE_CFLAGS=
+ STAROFFICE_LIBS=
+ BUILD_TYPE="$BUILD_TYPE STAROFFICE"
+fi
+
+
+
+
+
+ if test -n "$SYSTEM_STAROFFICE"; then :
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAROFFICE version" >&5
+$as_echo_n "checking for STAROFFICE version... " >&6; }
+ if test -n "$PKG_CONFIG"; then :
+
+ ver=`$PKG_CONFIG --modversion "libstaroffice-0.0"`
+ if test -n "$ver"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ver" >&5
+$as_echo "$ver" >&6; }
+
+ save_IFS="$IFS"
+ IFS=.
+ echo "$ver" | while read major minor micro; do
+ cat >>confdefs.h <<_ACEOF
+#define STAROFFICE_VERSION_MAJOR $major
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define STAROFFICE_VERSION_MINOR $minor
+_ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+#define STAROFFICE_VERSION_MICRO $micro
+_ACEOF
+
+ done
+ IFS="$save_IFS"
+
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+ as_fn_error $? "not found" "$LINENO" 5
+
+fi
+
+else
+
+
+ $as_echo "#define STAROFFICE_VERSION_MAJOR 0" >>confdefs.h
+
+ $as_echo "#define STAROFFICE_VERSION_MINOR 0" >>confdefs.h
+
+ $as_echo "#define STAROFFICE_VERSION_MICRO 7" >>confdefs.h
+
+
+
+fi
+
+
+if test "$with_system_lcms2" != "yes"; then
+ SYSTEM_LCMS2=
+fi
+
+
+# Check whether --with-system-lcms2 was given.
+if test "${with_system_lcms2+set}" = set; then :
+ withval=$with_system_lcms2;
+else
+ with_system_lcms2="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which lcms2 to use" >&5
+$as_echo_n "checking which lcms2 to use... " >&6; }
+if test "$with_system_lcms2" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LCMS2=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
+$as_echo_n "checking for LCMS2... " >&6; }
+
+if test -n "$LCMS2_CFLAGS"; then
+ pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LCMS2_LIBS"; then
+ pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2" 2>&1`
+ else
+ LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LCMS2_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (lcms2) were not met:
+
+$LCMS2_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LCMS2_CFLAGS
+and LCMS2_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LCMS2_CFLAGS
+and LCMS2_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
+ LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LCMS2_CFLAGS=$(printf '%s' "${LCMS2_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LCMS2_LIBS}"
+ LCMS2_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LCMS2=
+ LCMS2_CFLAGS="-I${WORKDIR}/UnpackedTarball/lcms2/include"
+ LCMS2_LIBS="-L${WORKDIR}/UnpackedTarball/lcms2/src/.libs -llcms2"
+ BUILD_TYPE="$BUILD_TYPE LCMS2"
+fi
+
+
+
+
+if test "$GCC" = "yes"; then
+ LCMS2_CFLAGS="${LCMS2_CFLAGS} -Wno-long-long"
+fi
+if test "$COM" = "MSC"; then # override the above
+ LCMS2_LIBS=${WORKDIR}/UnpackedTarball/lcms2/bin/lcms2.lib
+fi
+
+if test "$_os" != "Android" ; then
+
+
+# Check whether --with-system-cppunit was given.
+if test "${with_system_cppunit+set}" = set; then :
+ withval=$with_system_cppunit;
+else
+ with_system_cppunit="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which cppunit to use" >&5
+$as_echo_n "checking which cppunit to use... " >&6; }
+if test "$with_system_cppunit" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_CPPUNIT=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
+$as_echo_n "checking for CPPUNIT... " >&6; }
+
+if test -n "$CPPUNIT_CFLAGS"; then
+ pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.14.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "cppunit >= 1.14.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.14.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$CPPUNIT_LIBS"; then
+ pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.14.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "cppunit >= 1.14.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= 1.14.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit >= 1.14.0" 2>&1`
+ else
+ CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit >= 1.14.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$CPPUNIT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (cppunit >= 1.14.0) were not met:
+
+$CPPUNIT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables CPPUNIT_CFLAGS
+and CPPUNIT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables CPPUNIT_CFLAGS
+and CPPUNIT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
+ CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ CPPUNIT_CFLAGS=$(printf '%s' "${CPPUNIT_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${CPPUNIT_LIBS}"
+ CPPUNIT_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_CPPUNIT=
+ CPPUNIT_CFLAGS=
+ CPPUNIT_LIBS=
+ BUILD_TYPE="$BUILD_TYPE CPPUNIT"
+fi
+
+
+
+
+fi
+
+if test "$test_freetype" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether freetype is available" >&5
+$as_echo_n "checking whether freetype is available... " >&6; }
+ # FreeType has 3 different kinds of versions
+ # * release, like 2.4.10
+ # * libtool, like 13.0.7 (this what pkg-config returns)
+ # * soname
+ # FreeType's docs/VERSION.DLL provides a table mapping between the three
+ #
+ # 9.9.3 is 2.2.0
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
+$as_echo_n "checking for FREETYPE... " >&6; }
+
+if test -n "$FREETYPE_CFLAGS"; then
+ pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.9.3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.9.3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.9.3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$FREETYPE_LIBS"; then
+ pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.9.3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.9.3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.9.3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 9.9.3" 2>&1`
+ else
+ FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 9.9.3" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$FREETYPE_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (freetype2 >= 9.9.3) were not met:
+
+$FREETYPE_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables FREETYPE_CFLAGS
+and FREETYPE_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables FREETYPE_CFLAGS
+and FREETYPE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
+ FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ FREETYPE_CFLAGS=$(printf '%s' "$FREETYPE_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${FREETYPE_LIBS}"
+ FREETYPE_LIBS="${filteredlibs}"
+ SYSTEM_FREETYPE=TRUE
+else
+ FREETYPE_CFLAGS="${ISYSTEM}${WORKDIR}/UnpackedTarball/freetype/include"
+ if test "x$ac_config_site_64bit_host" = xYES; then
+ FREETYPE_LIBS="-L${WORKDIR}/UnpackedTarball/freetype/instdir/lib64 -lfreetype"
+ else
+ FREETYPE_LIBS="-L${WORKDIR}/UnpackedTarball/freetype/instdir/lib -lfreetype"
+ fi
+fi
+
+
+
+
+# ===================================================================
+# Check for system libxslt
+# to prevent incompatibilities between internal libxml2 and external libxslt,
+# or vice versa, use with_system_libxml here
+# ===================================================================
+if test "$with_system_libxml" = "auto"; then
+ case "$_os" in
+ WINNT|iOS|Android)
+ with_system_libxml="$with_system_libs"
+ ;;
+ *)
+ if test "$enable_fuzzers" != "yes"; then
+ with_system_libxml=yes
+ else
+ with_system_libxml=no
+ fi
+ ;;
+ esac
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libxslt to use" >&5
+$as_echo_n "checking which libxslt to use... " >&6; }
+if test "$with_system_libxml" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBXSLT=TRUE
+ if test "$_os" = "Darwin"; then
+ LIBXSLT_CFLAGS="-I$MACOSX_SDK_PATH/usr/include/libxml2"
+ LIBEXSLT_CFLAGS="$LIBXSLT_CFLAGS"
+ LIBXSLT_LIBS="-lxslt -lxml2 -lz -lpthread -liconv -lm"
+ LIBEXSLT_LIBS="-lexslt $LIBXSLT_LIBS"
+ else
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXSLT" >&5
+$as_echo_n "checking for LIBXSLT... " >&6; }
+
+if test -n "$LIBXSLT_CFLAGS"; then
+ pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBXSLT_LIBS"; then
+ pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxslt" 2>&1`
+ else
+ LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxslt" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBXSLT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libxslt) were not met:
+
+$LIBXSLT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBXSLT_CFLAGS
+and LIBXSLT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBXSLT_CFLAGS
+and LIBXSLT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
+ LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBXSLT_CFLAGS=$(printf '%s' "$LIBXSLT_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBXSLT_LIBS}"
+ LIBXSLT_LIBS="${filteredlibs}"
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXSLT" >&5
+$as_echo_n "checking for LIBEXSLT... " >&6; }
+
+if test -n "$LIBEXSLT_CFLAGS"; then
+ pkg_cv_LIBEXSLT_CFLAGS="$LIBEXSLT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBEXSLT_CFLAGS=`$PKG_CONFIG --cflags "libexslt" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBEXSLT_LIBS"; then
+ pkg_cv_LIBEXSLT_LIBS="$LIBEXSLT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBEXSLT_LIBS=`$PKG_CONFIG --libs "libexslt" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBEXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexslt" 2>&1`
+ else
+ LIBEXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexslt" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBEXSLT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libexslt) were not met:
+
+$LIBEXSLT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBEXSLT_CFLAGS
+and LIBEXSLT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBEXSLT_CFLAGS
+and LIBEXSLT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBEXSLT_CFLAGS=$pkg_cv_LIBEXSLT_CFLAGS
+ LIBEXSLT_LIBS=$pkg_cv_LIBEXSLT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBEXSLT_CFLAGS=$(printf '%s' "$LIBEXSLT_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBEXSLT_LIBS}"
+ LIBEXSLT_LIBS=$(printf '%s' "${filteredlibs}" | sed -e "s/-lgpg-error//" -e "s/-lgcrypt//")
+ 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 ${ac_cv_path_XSLTPROC+:} false; 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
+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 as_fn_executable_p "$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
+
+ test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
+ ;;
+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
+
+
+ if test "$XSLTPROC" = "no"; then
+ as_fn_error $? "xsltproc is required" "$LINENO" 5
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LIBXSLT=
+ BUILD_TYPE="$BUILD_TYPE LIBXSLT"
+
+ if test "$cross_compiling" = "yes"; then
+ # 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 ${ac_cv_path_XSLTPROC+:} false; 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
+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 as_fn_executable_p "$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
+
+ test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
+ ;;
+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
+
+
+ if test "$XSLTPROC" = "no"; then
+ as_fn_error $? "xsltproc is required" "$LINENO" 5
+ fi
+ fi
+fi
+
+if test -z "$SYSTEM_LIBXSLT_FOR_BUILD"; then
+ SYSTEM_LIBXSLT_FOR_BUILD="$SYSTEM_LIBXSLT"
+fi
+
+
+
+
+
+
+
+
+# ===================================================================
+# Check for system libxml
+# ===================================================================
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libxml to use" >&5
+$as_echo_n "checking which libxml to use... " >&6; }
+if test "$with_system_libxml" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBXML=TRUE
+ if test "$_os" = "Darwin"; then
+ LIBXML_CFLAGS="-I$MACOSX_SDK_PATH/usr/include/libxml2"
+ LIBXML_LIBS="-lxml2 -lz -lpthread -liconv -lm"
+ elif test $_os = iOS; then
+ usr=`echo '#include <stdlib.h>' | $CC -E -MD - | grep usr/include/stdlib.h | head -1 | sed -e 's,# 1 ",,' -e 's,/usr/include/.*,/usr,'`
+ LIBXML_CFLAGS="-I$usr/include/libxml2"
+ LIBXML_LIBS="-L$usr/lib -lxml2 -liconv"
+ else
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
+$as_echo_n "checking for LIBXML... " >&6; }
+
+if test -n "$LIBXML_CFLAGS"; then
+ pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBXML_LIBS"; then
+ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0" 2>&1`
+ else
+ LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBXML_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libxml-2.0 >= 2.0) were not met:
+
+$LIBXML_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBXML_CFLAGS
+and LIBXML_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBXML_CFLAGS
+and LIBXML_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
+ LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBXML_CFLAGS=$(printf '%s' "$LIBXML_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBXML_LIBS}"
+ LIBXML_LIBS="${filteredlibs}"
+ fi
+
+ # Extract the first word of "xmllint", so it can be a program name with args.
+set dummy xmllint; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_XMLLINT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $XMLLINT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_XMLLINT="$XMLLINT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_XMLLINT="$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_XMLLINT" && ac_cv_path_XMLLINT="no"
+ ;;
+esac
+fi
+XMLLINT=$ac_cv_path_XMLLINT
+if test -n "$XMLLINT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
+$as_echo "$XMLLINT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$XMLLINT" = "no"; then
+ as_fn_error $? "xmllint is required" "$LINENO" 5
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LIBXML=
+ LIBXML_CFLAGS="-I${WORKDIR}/UnpackedTarball/libxml2/include"
+ if test "$COM" = "MSC"; then
+ LIBXML_CFLAGS="${LIBXML_CFLAGS} -I${WORKDIR}/UnpackedTarball/icu/source/i18n -I${WORKDIR}/UnpackedTarball/icu/source/common"
+ fi
+ if test "$COM" = "MSC"; then
+ LIBXML_LIBS="${WORKDIR}/UnpackedTarball/libxml2/win32/bin.msvc/libxml2.lib"
+ else
+ LIBXML_LIBS="-L${WORKDIR}/UnpackedTarball/libxml2/.libs -lxml2"
+ fi
+ BUILD_TYPE="$BUILD_TYPE LIBXML2"
+fi
+
+if test -z "$SYSTEM_LIBXML_FOR_BUILD"; then
+ SYSTEM_LIBXML_FOR_BUILD="$SYSTEM_LIBXML"
+fi
+
+
+
+
+
+# =====================================================================
+# Checking for a Python interpreter with version >= 3.3.
+# Optionally user can pass an option to configure, i. e.
+# ./configure PYTHON=/usr/bin/python
+# =====================================================================
+if test $_os = Darwin -a "$enable_python" != fully-internal -a "$enable_python" != internal; then
+ # Only allowed choices for macOS are 'internal' (default) and 'fully-internal'
+ enable_python=internal
+fi
+if test "$build_os" != "cygwin" -a "$enable_python" != fully-internal; then
+ if test -n "$PYTHON"; then
+ PYTHON_FOR_BUILD=$PYTHON
+ else
+ # This allows a lack of system python with no error, we use internal one in that case.
+
+
+
+
+
+
+ if test -n "$PYTHON"; then
+ # If the user set $PYTHON, use it and don't search something else.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.3" >&5
+$as_echo_n "checking whether $PYTHON version is >= 3.3... " >&6; }
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '3.3'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
+ ($PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; 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; }
+ as_fn_error $? "Python interpreter is too old" "$LINENO" 5
+fi
+ am_display_PYTHON=$PYTHON
+ else
+ # Otherwise, try each interpreter until we find one that satisfies
+ # VERSION.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.3" >&5
+$as_echo_n "checking for a Python interpreter with version >= 3.3... " >&6; }
+if ${am_cv_pathless_PYTHON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
+ test "$am_cv_pathless_PYTHON" = none && break
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '3.3'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
+ ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then :
+ break
+fi
+ done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
+$as_echo "$am_cv_pathless_PYTHON" >&6; }
+ # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
+ if test "$am_cv_pathless_PYTHON" = none; then
+ PYTHON=:
+ else
+ # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
+set dummy $am_cv_pathless_PYTHON; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PYTHON+:} false; 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 as_fn_executable_p "$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
+
+
+ fi
+ am_display_PYTHON=$am_cv_pathless_PYTHON
+ fi
+
+
+ if test "$PYTHON" = :; then
+ :
+ 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 ${am_cv_python_version+:} false; 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 ${am_cv_python_platform+:} false; 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
+
+
+ # Just factor out some code duplication.
+ am_python_setup_sysconfig="\
+import sys
+# Prefer sysconfig over distutils.sysconfig, for better compatibility
+# with python 3.x. See automake bug#10227.
+try:
+ import sysconfig
+except ImportError:
+ can_use_sysconfig = 0
+else:
+ can_use_sysconfig = 1
+# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
+# <https://github.com/pypa/virtualenv/issues/118>
+try:
+ from platform import python_implementation
+ if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
+ can_use_sysconfig = 0
+except ImportError:
+ pass"
+
+
+ { $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 ${am_cv_python_pythondir+:} false; 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 "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+ sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
+else:
+ from distutils import sysconfig
+ sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+ 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 ${am_cv_python_pyexecdir+:} false; 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 "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+ sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
+else:
+ from distutils import sysconfig
+ sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+ 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
+
+
+ # Clean PYTHON_VERSION checked below if cross-compiling
+ PYTHON_VERSION=""
+ if test "$PYTHON" != ":"; then
+ PYTHON_FOR_BUILD=$PYTHON
+ fi
+ fi
+fi
+
+
+# Checks for Python to use for Pyuno
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which Python to use for Pyuno" >&5
+$as_echo_n "checking which Python to use for Pyuno... " >&6; }
+case "$enable_python" in
+no|disable)
+ if test -z $PYTHON_FOR_BUILD; then
+ # Python is required to build LibreOffice. In theory we could separate the build-time Python
+ # requirement from the choice whether to include Python stuff in the installer, but why
+ # bother?
+ as_fn_error $? "Python is required at build time." "$LINENO" 5
+ fi
+ enable_python=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+ ;;
+""|yes|auto)
+ if test "$DISABLE_SCRIPTING" = TRUE -a -n "$PYTHON_FOR_BUILD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, overridden by --disable-scripting" >&5
+$as_echo "no, overridden by --disable-scripting" >&6; }
+ enable_python=no
+ elif test $build_os = cygwin; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: fully internal" >&5
+$as_echo "fully internal" >&6; }
+ enable_python=internal
+ elif test "$cross_compiling" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
+$as_echo "system" >&6; }
+ enable_python=system
+ else
+ # Unset variables set by the above AM_PATH_PYTHON so that
+ # we actually do check anew.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
+$as_echo "" >&6; }
+ unset PYTHON am_cv_pathless_PYTHON ac_cv_path_PYTHON am_cv_python_version am_cv_python_platform am_cv_python_pythondir am_cv_python_pyexecdir
+
+
+
+
+
+
+ if test -n "$PYTHON"; then
+ # If the user set $PYTHON, use it and don't search something else.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.3" >&5
+$as_echo_n "checking whether $PYTHON version is >= 3.3... " >&6; }
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '3.3'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
+ ($PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; 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; }
+ as_fn_error $? "Python interpreter is too old" "$LINENO" 5
+fi
+ am_display_PYTHON=$PYTHON
+ else
+ # Otherwise, try each interpreter until we find one that satisfies
+ # VERSION.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.3" >&5
+$as_echo_n "checking for a Python interpreter with version >= 3.3... " >&6; }
+if ${am_cv_pathless_PYTHON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
+ test "$am_cv_pathless_PYTHON" = none && break
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '3.3'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
+ ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then :
+ break
+fi
+ done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
+$as_echo "$am_cv_pathless_PYTHON" >&6; }
+ # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
+ if test "$am_cv_pathless_PYTHON" = none; then
+ PYTHON=:
+ else
+ # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
+set dummy $am_cv_pathless_PYTHON; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PYTHON+:} false; 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 as_fn_executable_p "$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
+
+
+ fi
+ am_display_PYTHON=$am_cv_pathless_PYTHON
+ fi
+
+
+ if test "$PYTHON" = :; then
+ :
+ 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 ${am_cv_python_version+:} false; 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 ${am_cv_python_platform+:} false; 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
+
+
+ # Just factor out some code duplication.
+ am_python_setup_sysconfig="\
+import sys
+# Prefer sysconfig over distutils.sysconfig, for better compatibility
+# with python 3.x. See automake bug#10227.
+try:
+ import sysconfig
+except ImportError:
+ can_use_sysconfig = 0
+else:
+ can_use_sysconfig = 1
+# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
+# <https://github.com/pypa/virtualenv/issues/118>
+try:
+ from platform import python_implementation
+ if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
+ can_use_sysconfig = 0
+except ImportError:
+ pass"
+
+
+ { $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 ${am_cv_python_pythondir+:} false; 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 "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+ sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
+else:
+ from distutils import sysconfig
+ sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+ 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 ${am_cv_python_pyexecdir+:} false; 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 "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+ sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
+else:
+ from distutils import sysconfig
+ sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+ 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
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Python to use for Pyuno" >&5
+$as_echo_n "checking which Python to use for Pyuno... " >&6; }
+ if test "$PYTHON" = ":"; then
+ if test -z "$PYTHON_FOR_BUILD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: fully internal" >&5
+$as_echo "fully internal" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ fi
+ enable_python=internal
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
+$as_echo "system" >&6; }
+ enable_python=system
+ fi
+ fi
+ ;;
+internal)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ ;;
+fully-internal)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: fully internal" >&5
+$as_echo "fully internal" >&6; }
+ enable_python=internal
+ ;;
+system)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
+$as_echo "system" >&6; }
+ if test "$_os" = Darwin; then
+ as_fn_error $? "--enable-python=system doesn't work on macOS because the version provided is obsolete" "$LINENO" 5
+ fi
+ ;;
+*)
+ as_fn_error $? "Incorrect --enable-python option" "$LINENO" 5
+ ;;
+esac
+
+if test $enable_python != no; then
+ BUILD_TYPE="$BUILD_TYPE PYUNO"
+fi
+
+if test $enable_python = system; then
+ if test -n "$PYTHON_CFLAGS" -a -n "$PYTHON_LIBS"; then
+ # Fallback: Accept these in the environment, or as set above
+ # for MacOSX.
+ :
+ elif test "$cross_compiling" != yes; then
+ # Unset variables set by the above AM_PATH_PYTHON so that
+ # we actually do check anew.
+ unset PYTHON am_cv_pathless_PYTHON ac_cv_path_PYTHON am_cv_python_version am_cv_python_platform am_cv_python_pythondir am_cv_python_pyexecdir
+ # This causes an error if no python command is found
+
+
+
+
+
+
+ if test -n "$PYTHON"; then
+ # If the user set $PYTHON, use it and don't search something else.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.3" >&5
+$as_echo_n "checking whether $PYTHON version is >= 3.3... " >&6; }
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '3.3'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
+ ($PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; 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; }
+ as_fn_error $? "Python interpreter is too old" "$LINENO" 5
+fi
+ am_display_PYTHON=$PYTHON
+ else
+ # Otherwise, try each interpreter until we find one that satisfies
+ # VERSION.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.3" >&5
+$as_echo_n "checking for a Python interpreter with version >= 3.3... " >&6; }
+if ${am_cv_pathless_PYTHON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
+ test "$am_cv_pathless_PYTHON" = none && break
+ prog="import sys
+# split strings by '.' and convert to numeric. Append some zeros
+# because we need at least 4 digits for the hex conversion.
+# map returns an iterator in Python 3.0 and a list in 2.x
+minver = list(map(int, '3.3'.split('.'))) + [0, 0, 0]
+minverhex = 0
+# xrange is not present in Python 3.0 and range returns an iterator
+for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
+sys.exit(sys.hexversion < minverhex)"
+ if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
+ ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then :
+ break
+fi
+ done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
+$as_echo "$am_cv_pathless_PYTHON" >&6; }
+ # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
+ if test "$am_cv_pathless_PYTHON" = none; then
+ PYTHON=:
+ else
+ # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
+set dummy $am_cv_pathless_PYTHON; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PYTHON+:} false; 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 as_fn_executable_p "$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
+
+
+ fi
+ am_display_PYTHON=$am_cv_pathless_PYTHON
+ fi
+
+
+ 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 ${am_cv_python_version+:} false; 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 ${am_cv_python_platform+:} false; 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
+
+
+ # Just factor out some code duplication.
+ am_python_setup_sysconfig="\
+import sys
+# Prefer sysconfig over distutils.sysconfig, for better compatibility
+# with python 3.x. See automake bug#10227.
+try:
+ import sysconfig
+except ImportError:
+ can_use_sysconfig = 0
+else:
+ can_use_sysconfig = 1
+# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
+# <https://github.com/pypa/virtualenv/issues/118>
+try:
+ from platform import python_implementation
+ if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
+ can_use_sysconfig = 0
+except ImportError:
+ pass"
+
+
+ { $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 ${am_cv_python_pythondir+:} false; 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 "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+ sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
+else:
+ from distutils import sysconfig
+ sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+ 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 ${am_cv_python_pyexecdir+:} false; 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 "
+$am_python_setup_sysconfig
+if can_use_sysconfig:
+ sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
+else:
+ from distutils import sysconfig
+ sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
+sys.stdout.write(sitedir)"`
+ 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
+
+
+ python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
+ python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
+ python_libs=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBS'));"`
+ python_libdir=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'));"`
+ if test -z "$PKG_CONFIG"; then
+ PYTHON_CFLAGS="-I$python_include"
+ PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs"
+ elif $PKG_CONFIG --exists python-$python_version-embed; then
+ PYTHON_CFLAGS="`$PKG_CONFIG --cflags python-$python_version-embed`"
+ PYTHON_LIBS="`$PKG_CONFIG --libs python-$python_version-embed` $python_libs"
+ elif $PKG_CONFIG --exists python-$python_version; then
+ PYTHON_CFLAGS="`$PKG_CONFIG --cflags python-$python_version`"
+ PYTHON_LIBS="`$PKG_CONFIG --libs python-$python_version` $python_libs"
+ else
+ PYTHON_CFLAGS="-I$python_include"
+ PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs"
+ fi
+ FilterLibs "${PYTHON_LIBS}"
+ PYTHON_LIBS="${filteredlibs}"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python version" >&5
+$as_echo_n "checking for python version... " >&6; }
+ if test -n "$PYTHON_VERSION"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
+$as_echo "$PYTHON_VERSION" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
+$as_echo "not found" >&6; }
+ as_fn_error $? "no usable python found" "$LINENO" 5
+fi
+ test -n "$PYTHON_CFLAGS" && break
+ fi
+
+ save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
+ ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
+if test "x$ac_cv_header_Python_h" = xyes; then :
+
+fi
+
+
+ CPPFLAGS="$save_CPPFLAGS"
+
+ # let the PYTHON_FOR_BUILD match the same python installation that
+ # provides PYTHON_CFLAGS/PYTHON_LDFLAGS for pyuno, which should be
+ # better for PythonTests.
+ PYTHON_FOR_BUILD=$PYTHON
+fi
+
+if test "$with_lxml" != no; then
+ if test -z "$PYTHON_FOR_BUILD"; then
+ case $build_os in
+ cygwin)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No system-provided python lxml, gla11y will only report widget classes and ids" >&5
+$as_echo "$as_me: WARNING: No system-provided python lxml, gla11y will only report widget classes and ids" >&2;}
+ ;;
+ *)
+ if test "$cross_compiling" != yes ; then
+ BUILD_TYPE="$BUILD_TYPE LXML"
+ fi
+ ;;
+ esac
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python lxml" >&5
+$as_echo_n "checking for python lxml... " >&6; }
+ if $PYTHON_FOR_BUILD -c "import lxml.etree as ET" 2> /dev/null ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ case $build_os in
+ cygwin)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, gla11y will only report widget classes and ids" >&5
+$as_echo "no, gla11y will only report widget classes and ids" >&6; }
+ ;;
+ *)
+ if test "$cross_compiling" != yes -a "x$ac_cv_header_Python_h" = "xyes"; then
+ if test -n ${SYSTEM_LIBXSLT} -o -n ${SYSTEM_LIBXML}; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and no system libxml/libxslt, gla11y will only report widget classes and ids" >&5
+$as_echo "no, and no system libxml/libxslt, gla11y will only report widget classes and ids" >&6; }
+ else
+ BUILD_TYPE="$BUILD_TYPE LXML"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using internal lxml" >&5
+$as_echo "no, using internal lxml" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and system does not provide python development headers, gla11y will only report widget classes and ids" >&5
+$as_echo "no, and system does not provide python development headers, gla11y will only report widget classes and ids" >&6; }
+ fi
+ ;;
+ esac
+ fi
+ fi
+fi
+
+case $enable_python in
+system)
+ SYSTEM_PYTHON=TRUE
+
+ if test "x$ac_cv_header_Python_h" != "xyes"; then
+ as_fn_error $? "Python headers not found. You probably want to set both the PYTHON_CFLAGS and PYTHON_LIBS environment variables." "$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
+
+ CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct python library version" >&5
+$as_echo_n "checking for correct python library version... " >&6; }
+ if test "$cross_compiling" = yes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped; cross-compiling" >&5
+$as_echo "skipped; cross-compiling" >&6; }
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <Python.h>
+
+int main(int argc, char **argv) {
+ if ((PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 3)) return 0;
+ else return 1;
+}
+
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+$as_echo "ok" >&6; }
+else
+ as_fn_error $? "Python >= 3.3 is needed when building with Python 3" "$LINENO" 5
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ CFLAGS=$save_CFLAGS
+ 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
+
+
+ ;;
+
+internal)
+ SYSTEM_PYTHON=
+ PYTHON_VERSION_MAJOR=3
+ PYTHON_VERSION_MINOR=7
+ PYTHON_VERSION=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.7
+ if ! grep -q -i python.*${PYTHON_VERSION} ${SRC_ROOT}/download.lst; then
+ as_fn_error $? "PYTHON_VERSION ${PYTHON_VERSION} but no matching file in download.lst" "$LINENO" 5
+ fi
+ cat >>confdefs.h <<_ACEOF
+#define PYTHON_VERSION_STRING L"${PYTHON_VERSION}"
+_ACEOF
+
+ BUILD_TYPE="$BUILD_TYPE PYTHON"
+ if test "$OS" = LINUX; then
+ BUILD_TYPE="$BUILD_TYPE LIBFFI"
+ fi
+ # Embedded Python dies without Home set
+ if test "$HOME" = ""; then
+ export HOME=""
+ fi
+ ;;
+no)
+ DISABLE_PYTHON=TRUE
+ SYSTEM_PYTHON=
+ ;;
+*)
+ as_fn_error $? "Internal configure script error, invalid enable_python value \"$enable_python\"" "$LINENO" 5
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+ENABLE_MARIADBC=TRUE
+if test "$_os" = "Android" -o "$_os" = "iOS" -o "$enable_mpl_subset" = "yes"; then
+ ENABLE_MARIADBC=
+fi
+MARIADBC_MAJOR=1
+MARIADBC_MINOR=0
+MARIADBC_MICRO=2
+if test "$ENABLE_MARIADBC" = "TRUE"; then
+ BUILD_TYPE="$BUILD_TYPE MARIADBC"
+fi
+
+
+
+
+
+
+if test "$ENABLE_MARIADBC" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MariaDB to use" >&5
+$as_echo_n "checking which MariaDB to use... " >&6; }
+ if test "$with_system_mariadb" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_MARIADB_CONNECTOR_C=TRUE
+ #AC_PATH_PROG(MARIADBCONFIG, [mariadb_config])
+ if test -z "$MARIADBCONFIG"; 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 ${ac_cv_path_MARIADBCONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MARIADBCONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MARIADBCONFIG="$MARIADBCONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_MARIADBCONFIG="$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
+MARIADBCONFIG=$ac_cv_path_MARIADBCONFIG
+if test -n "$MARIADBCONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MARIADBCONFIG" >&5
+$as_echo "$MARIADBCONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$MARIADBCONFIG"; then
+ as_fn_error $? "mysql_config is missing. Install MySQL client library development package." "$LINENO" 5
+ #AC_MSG_ERROR([mariadb_config and mysql_config are missing. Install MariaDB or MySQL client library development package.])
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking MariaDB version" >&5
+$as_echo_n "checking MariaDB version... " >&6; }
+ MARIADB_VERSION=`$MARIADBCONFIG --version`
+ MARIADB_MAJOR=`$MARIADBCONFIG --version | cut -d"." -f1`
+ if test "$MARIADB_MAJOR" -ge "5"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
+$as_echo "OK" >&6; }
+ else
+ as_fn_error $? "too old, use 5.0.x or later" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MariaDB Client library" >&5
+$as_echo_n "checking for MariaDB Client library... " >&6; }
+ MARIADB_CFLAGS=`$MARIADBCONFIG --cflags`
+ if test "$COM_IS_CLANG" = TRUE; then
+ MARIADB_CFLAGS=$(printf '%s' "$MARIADB_CFLAGS" | sed -e s/-fstack-protector-strong//)
+ fi
+ MARIADB_LIBS=`$MARIADBCONFIG --libs_r`
+ if test "$OS" = LINUX -a "$CPUNAME" = INTEL; then
+ MARIADB_CFLAGS=$(printf '%s' "$MARIADB_CFLAGS" | sed -e s/-m64//)
+ MARIADB_LIBS=$(printf '%s' "$MARIADB_LIBS" \
+ | sed -e 's|/lib64/|/lib/|')
+ fi
+ FilterLibs "${MARIADB_LIBS}"
+ MARIADB_LIBS="${filteredlibs}"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: includes '$MARIADB_CFLAGS', libraries '$MARIADB_LIBS'" >&5
+$as_echo "includes '$MARIADB_CFLAGS', libraries '$MARIADB_LIBS'" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to bundle the MySQL/MariaDB client library" >&5
+$as_echo_n "checking whether to bundle the MySQL/MariaDB client library... " >&6; }
+ if test "$enable_bundle_mariadb" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ BUNDLE_MARIADB_CONNECTOR_C=TRUE
+ LIBMARIADB=lib$(echo "${MARIADB_LIBS}" | sed -e 's/[[:space:]]\{1,\}-l\([^[:space:]]\{1,\}\)/\
+\1\
+/g' -e 's/^-l\([^[:space:]]\{1,\}\)[[:space:]]*/\
+\1\
+/g' | grep -E '(mysqlclient|mariadb)')
+ if test "$_os" = "Darwin"; then
+ LIBMARIADB=${LIBMARIADB}.dylib
+ elif test "$_os" = "WINNT"; then
+ LIBMARIADB=${LIBMARIADB}.dll
+ else
+ LIBMARIADB=${LIBMARIADB}.so
+ fi
+ LIBMARIADB_PATH=$($MARIADBCONFIG --variable=pkglibdir)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBMARIADB in $LIBMARIADB_PATH" >&5
+$as_echo_n "checking for $LIBMARIADB in $LIBMARIADB_PATH... " >&6; }
+ if test -e "$LIBMARIADB_PATH/$LIBMARIADB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
+$as_echo "found." >&6; }
+ PathFormat "$LIBMARIADB_PATH"
+ LIBMARIADB_PATH="$formatted_path"
+ else
+ as_fn_error $? "not found." "$LINENO" 5
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ BUNDLE_MARIADB_CONNECTOR_C=
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_MARIADB_CONNECTOR_C=
+ MARIADB_CFLAGS="-I${WORKDIR}/UnpackedTarball/mariadb-connector-c/include"
+ MARIADB_LIBS="-L${WORKDIR}/LinkTarget/StaticLibrary -lmariadb-connector-c"
+ BUILD_TYPE="$BUILD_TYPE MARIADB_CONNECTOR_C"
+ fi
+
+
+
+
+
+
+
+fi
+
+if test "$with_java" != "no"; then
+ HSQLDB_USE_JDBC_4_1=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which hsqldb to use" >&5
+$as_echo_n "checking which hsqldb to use... " >&6; }
+ if test "$with_system_hsqldb" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_HSQLDB=TRUE
+ if test -z $HSQLDB_JAR; then
+ HSQLDB_JAR=/usr/share/java/hsqldb.jar
+ fi
+ if ! test -f $HSQLDB_JAR; then
+ as_fn_error $? "hsqldb.jar not found." "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hsqldb is 1.8.0.x" >&5
+$as_echo_n "checking whether hsqldb is 1.8.0.x... " >&6; }
+ export HSQLDB_JAR
+ if $PERL -e \
+ 'use Archive::Zip;
+ my $file = "$ENV{'HSQLDB_JAR'}";
+ my $zip = Archive::Zip->new( $file );
+ my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
+ if ( $mf =~ m/Specification-Version: 1.8.*/ )
+ {
+ push @l, split(/\n/, $mf);
+ foreach my $line (@l)
+ {
+ if ($line =~ m/Specification-Version:/)
+ {
+ ($t, $version) = split (/:/,$line);
+ $version =~ s/^\s//;
+ ($a, $b, $c, $d) = split (/\./,$version);
+ if ($c == "0" && $d > "8")
+ {
+ exit 0;
+ }
+ else
+ {
+ exit 1;
+ }
+ }
+ }
+ }
+ else
+ {
+ exit 1;
+ }'; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ as_fn_error $? "no, you need hsqldb >= 1.8.0.9 but < 1.8.1" "$LINENO" 5
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_HSQLDB=
+ BUILD_TYPE="$BUILD_TYPE HSQLDB"
+ NEED_ANT=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hsqldb should be built with JDBC 4.1" >&5
+$as_echo_n "checking whether hsqldb should be built with JDBC 4.1... " >&6; }
+ javanumver=`$JAVAINTERPRETER -version 2>&1 | $AWK -v num=true -f $SRC_ROOT/solenv/bin/getcompver.awk`
+ if expr "$javanumver" '>=' 000100060000 > /dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ HSQLDB_USE_JDBC_4_1=TRUE
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ fi
+
+
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the PostgreSQL SDBC driver" >&5
+$as_echo_n "checking whether to build the PostgreSQL SDBC driver... " >&6; }
+if test "x$enable_postgresql_sdbc" != "xno"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SCPDEFS="$SCPDEFS -DWITH_POSTGRESQL_SDBC"
+
+ if test "$with_krb5" = "yes" -a "$enable_openssl" = "no"; then
+ as_fn_error $? "krb5 needs OpenSSL, but --disable-openssl was given." "$LINENO" 5
+ fi
+ if test "$with_gssapi" = "yes" -a "$enable_openssl" = "no"; then
+ as_fn_error $? "GSSAPI needs OpenSSL, but --disable-openssl was given." "$LINENO" 5
+ fi
+
+ postgres_interface=""
+ if test "$with_system_postgresql" = "yes"; then
+ postgres_interface="external PostgreSQL"
+ SYSTEM_POSTGRESQL=TRUE
+ if test "$_os" = Darwin; then
+ supp_path=''
+ for d in /Library/PostgreSQL/9.*/bin /sw/opt/postgresql/9.*/bin /opt/local/lib/postgresql9*/bin; do
+ pg_supp_path="$P_SEP$d$pg_supp_path"
+ done
+ fi
+ # Extract the first word of "pg_config", so it can be a program name with args.
+set dummy pg_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 ${ac_cv_path_PGCONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PGCONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PGCONFIG="$PGCONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$pg_supp_path
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PGCONFIG="$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
+PGCONFIG=$ac_cv_path_PGCONFIG
+if test -n "$PGCONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5
+$as_echo "$PGCONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -n "$PGCONFIG"; then
+ POSTGRESQL_INC=-I$(${PGCONFIG} --includedir)
+ POSTGRESQL_LIB="-L$(${PGCONFIG} --libdir)"
+ else
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSTGRESQL" >&5
+$as_echo_n "checking for POSTGRESQL... " >&6; }
+
+if test -n "$POSTGRESQL_CFLAGS"; then
+ pkg_cv_POSTGRESQL_CFLAGS="$POSTGRESQL_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libpq") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_POSTGRESQL_CFLAGS=`$PKG_CONFIG --cflags "libpq" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$POSTGRESQL_LIBS"; then
+ pkg_cv_POSTGRESQL_LIBS="$POSTGRESQL_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libpq") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_POSTGRESQL_LIBS=`$PKG_CONFIG --libs "libpq" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ POSTGRESQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpq" 2>&1`
+ else
+ POSTGRESQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpq" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$POSTGRESQL_PKG_ERRORS" >&5
+
+
+ as_fn_error $? "pg_config or 'pkg-config libpq' needed; set PGCONFIG if not in PATH" "$LINENO" 5
+
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+ as_fn_error $? "pg_config or 'pkg-config libpq' needed; set PGCONFIG if not in PATH" "$LINENO" 5
+
+else
+ POSTGRESQL_CFLAGS=$pkg_cv_POSTGRESQL_CFLAGS
+ POSTGRESQL_LIBS=$pkg_cv_POSTGRESQL_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+ POSTGRESQL_INC=$POSTGRESQL_CFLAGS
+ POSTGRESQL_LIB=$POSTGRESQL_LIBS
+
+fi
+ fi
+ FilterLibs "${POSTGRESQL_LIB}"
+ POSTGRESQL_LIB="${filteredlibs}"
+ else
+ # if/when anything else than PostgreSQL uses Kerberos,
+ # move this out of `test "x$enable_postgresql_sdbc" != "xno"'
+ WITH_KRB5=
+ WITH_GSSAPI=
+ case "$_os" in
+ Darwin)
+ # macOS has system MIT Kerberos 5 since 10.4
+ if test "$with_krb5" != "no"; then
+ WITH_KRB5=TRUE
+ save_LIBS=$LIBS
+ # Not sure whether it makes any sense here to search multiple potential libraries; it is not likely
+ # that the libraries where these functions are located on macOS will change, is it?
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5
+$as_echo_n "checking for library containing com_err... " >&6; }
+if ${ac_cv_search_com_err+:} false; 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 com_err ();
+int
+main ()
+{
+return com_err ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' com_err 'com_err -lssl -lcrypto' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; 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_com_err=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_com_err+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_com_err+:} false; then :
+
+else
+ ac_cv_search_com_err=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5
+$as_echo "$ac_cv_search_com_err" >&6; }
+ac_res=$ac_cv_search_com_err
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'com_err' required for Kerberos 5" "$LINENO" 5
+fi
+
+ KRB5_LIBS=$LIBS
+ LIBS=$save_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
+$as_echo_n "checking for library containing krb5_sendauth... " >&6; }
+if ${ac_cv_search_krb5_sendauth+:} false; 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 krb5_sendauth ();
+int
+main ()
+{
+return krb5_sendauth ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; 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_krb5_sendauth=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_krb5_sendauth+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_krb5_sendauth+:} false; then :
+
+else
+ ac_cv_search_krb5_sendauth=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
+$as_echo "$ac_cv_search_krb5_sendauth" >&6; }
+ac_res=$ac_cv_search_krb5_sendauth
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'krb5_sendauth' required for Kerberos 5" "$LINENO" 5
+fi
+
+ KRB5_LIBS="$KRB5_LIBS $LIBS"
+ LIBS=$save_LIBS
+ fi
+ if test "$with_gssapi" != "no"; then
+ WITH_GSSAPI=TRUE
+ save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
+$as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
+if ${ac_cv_search_gss_init_sec_context+:} false; 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 gss_init_sec_context ();
+int
+main ()
+{
+return gss_init_sec_context ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; 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_gss_init_sec_context=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_gss_init_sec_context+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_gss_init_sec_context+:} false; then :
+
+else
+ ac_cv_search_gss_init_sec_context=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
+$as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
+ac_res=$ac_cv_search_gss_init_sec_context
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
+fi
+
+ GSSAPI_LIBS=$LIBS
+ LIBS=$save_LIBS
+ fi
+ ;;
+ WINNT)
+ if test "$with_krb5" = "yes" -o "$with_gssapi" = "yes"; then
+ as_fn_error $? "Refusing to enable MIT Kerberos 5 or GSSAPI on Windows." "$LINENO" 5
+ fi
+ ;;
+ Linux|GNU|*BSD|DragonFly)
+ if test "$with_krb5" != "no"; then
+ WITH_KRB5=TRUE
+ save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5
+$as_echo_n "checking for library containing com_err... " >&6; }
+if ${ac_cv_search_com_err+:} false; 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 com_err ();
+int
+main ()
+{
+return com_err ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' com_err 'com_err -lssl -lcrypto' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; 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_com_err=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_com_err+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_com_err+:} false; then :
+
+else
+ ac_cv_search_com_err=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5
+$as_echo "$ac_cv_search_com_err" >&6; }
+ac_res=$ac_cv_search_com_err
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'com_err' required for Kerberos 5" "$LINENO" 5
+fi
+
+ KRB5_LIBS=$LIBS
+ LIBS=$save_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
+$as_echo_n "checking for library containing krb5_sendauth... " >&6; }
+if ${ac_cv_search_krb5_sendauth+:} false; 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 krb5_sendauth ();
+int
+main ()
+{
+return krb5_sendauth ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; 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_krb5_sendauth=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_krb5_sendauth+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_krb5_sendauth+:} false; then :
+
+else
+ ac_cv_search_krb5_sendauth=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
+$as_echo "$ac_cv_search_krb5_sendauth" >&6; }
+ac_res=$ac_cv_search_krb5_sendauth
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'krb5_sendauth' required for Kerberos 5" "$LINENO" 5
+fi
+
+ KRB5_LIBS="$KRB5_LIBS $LIBS"
+ LIBS=$save_LIBS
+ fi
+ if test "$with_gssapi" != "no"; then
+ WITH_GSSAPI=TRUE
+ save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
+$as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
+if ${ac_cv_search_gss_init_sec_context+:} false; 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 gss_init_sec_context ();
+int
+main ()
+{
+return gss_init_sec_context ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; 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_gss_init_sec_context=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_gss_init_sec_context+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_gss_init_sec_context+:} false; then :
+
+else
+ ac_cv_search_gss_init_sec_context=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
+$as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
+ac_res=$ac_cv_search_gss_init_sec_context
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
+fi
+
+ GSSAPI_LIBS=$LIBS
+ LIBS=$save_LIBS
+ fi
+ ;;
+ *)
+ if test "$with_krb5" = "yes"; then
+ WITH_KRB5=TRUE
+ save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5
+$as_echo_n "checking for library containing com_err... " >&6; }
+if ${ac_cv_search_com_err+:} false; 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 com_err ();
+int
+main ()
+{
+return com_err ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' com_err 'com_err -lssl -lcrypto' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; 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_com_err=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_com_err+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_com_err+:} false; then :
+
+else
+ ac_cv_search_com_err=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5
+$as_echo "$ac_cv_search_com_err" >&6; }
+ac_res=$ac_cv_search_com_err
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'com_err' required for Kerberos 5" "$LINENO" 5
+fi
+
+ KRB5_LIBS=$LIBS
+ LIBS=$save_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
+$as_echo_n "checking for library containing krb5_sendauth... " >&6; }
+if ${ac_cv_search_krb5_sendauth+:} false; 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 krb5_sendauth ();
+int
+main ()
+{
+return krb5_sendauth ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; 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_krb5_sendauth=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_krb5_sendauth+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_krb5_sendauth+:} false; then :
+
+else
+ ac_cv_search_krb5_sendauth=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
+$as_echo "$ac_cv_search_krb5_sendauth" >&6; }
+ac_res=$ac_cv_search_krb5_sendauth
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'krb5_sendauth' required for Kerberos 5" "$LINENO" 5
+fi
+
+ KRB5_LIBS="$KRB5_LIBS $LIBS"
+ LIBS=$save_LIBS
+ fi
+ if test "$with_gssapi" = "yes"; then
+ WITH_GSSAPI=TRUE
+ save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
+$as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
+if ${ac_cv_search_gss_init_sec_context+:} false; 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 gss_init_sec_context ();
+int
+main ()
+{
+return gss_init_sec_context ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; 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_gss_init_sec_context=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_gss_init_sec_context+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_gss_init_sec_context+:} false; then :
+
+else
+ ac_cv_search_gss_init_sec_context=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
+$as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
+ac_res=$ac_cv_search_gss_init_sec_context
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+else
+ as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
+fi
+
+ LIBS=$save_LIBS
+ GSSAPI_LIBS=$LIBS
+ fi
+ esac
+
+ if test -n "$with_libpq_path"; then
+ SYSTEM_POSTGRESQL=TRUE
+ postgres_interface="external libpq"
+ POSTGRESQL_LIB="-L${with_libpq_path}/lib/"
+ POSTGRESQL_INC=-I"${with_libpq_path}/include/"
+ else
+ SYSTEM_POSTGRESQL=
+ postgres_interface="internal"
+ POSTGRESQL_LIB=""
+ POSTGRESQL_INC="%OVERRIDE_ME%"
+ BUILD_TYPE="$BUILD_TYPE POSTGRESQL"
+ fi
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgreSQL C interface" >&5
+$as_echo_n "checking PostgreSQL C interface... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $postgres_interface" >&5
+$as_echo "$postgres_interface" >&6; }
+
+ if test "${SYSTEM_POSTGRESQL}" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking system PostgreSQL prerequisites" >&5
+$as_echo "$as_me: checking system PostgreSQL prerequisites" >&6;}
+ save_CFLAGS=$CFLAGS
+ save_CPPFLAGS=$CPPFLAGS
+ save_LIBS=$LIBS
+ CPPFLAGS="${CPPFLAGS} ${POSTGRESQL_INC}"
+ LIBS="${LIBS} ${POSTGRESQL_LIB}"
+ ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
+if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
+
+else
+ as_fn_error $? "libpq-fe.h is needed" "$LINENO" 5
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdbParams in -lpq" >&5
+$as_echo_n "checking for PQconnectdbParams in -lpq... " >&6; }
+if ${ac_cv_lib_pq_PQconnectdbParams+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpq $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 PQconnectdbParams ();
+int
+main ()
+{
+return PQconnectdbParams ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_pq_PQconnectdbParams=yes
+else
+ ac_cv_lib_pq_PQconnectdbParams=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_pq_PQconnectdbParams" >&5
+$as_echo "$ac_cv_lib_pq_PQconnectdbParams" >&6; }
+if test "x$ac_cv_lib_pq_PQconnectdbParams" = xyes; then :
+ :
+else
+ as_fn_error $? "libpq not found or too old. Need >= 9.0" "$LINENO" 5
+fi
+
+ CFLAGS=$save_CFLAGS
+ CPPFLAGS=$save_CPPFLAGS
+ LIBS=$save_LIBS
+ fi
+ BUILD_POSTGRESQL_SDBC=TRUE
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+
+
+
+
+ENABLE_FIREBIRD_SDBC=
+if test "$enable_firebird_sdbc" = "yes" ; then
+ SCPDEFS="$SCPDEFS -DWITH_FIREBIRD_SDBC"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Firebird to use" >&5
+$as_echo_n "checking which Firebird to use... " >&6; }
+ if test "$with_system_firebird" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_FIREBIRD=TRUE
+ # Extract the first word of "fb_config", so it can be a program name with args.
+set dummy fb_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 ${ac_cv_path_FIREBIRDCONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $FIREBIRDCONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_FIREBIRDCONFIG="$FIREBIRDCONFIG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_FIREBIRDCONFIG="$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
+FIREBIRDCONFIG=$ac_cv_path_FIREBIRDCONFIG
+if test -n "$FIREBIRDCONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIREBIRDCONFIG" >&5
+$as_echo "$FIREBIRDCONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$FIREBIRDCONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: No fb_config -- using pkg-config" >&5
+$as_echo "$as_me: No fb_config -- using pkg-config" >&6;}
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIREBIRD" >&5
+$as_echo_n "checking for FIREBIRD... " >&6; }
+
+if test -n "$FIREBIRD_CFLAGS"; then
+ pkg_cv_FIREBIRD_CFLAGS="$FIREBIRD_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fbclient >= 3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fbclient >= 3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FIREBIRD_CFLAGS=`$PKG_CONFIG --cflags "fbclient >= 3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$FIREBIRD_LIBS"; then
+ pkg_cv_FIREBIRD_LIBS="$FIREBIRD_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fbclient >= 3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fbclient >= 3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FIREBIRD_LIBS=`$PKG_CONFIG --libs "fbclient >= 3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ FIREBIRD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fbclient >= 3" 2>&1`
+ else
+ FIREBIRD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fbclient >= 3" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$FIREBIRD_PKG_ERRORS" >&5
+
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIREBIRD" >&5
+$as_echo_n "checking for FIREBIRD... " >&6; }
+
+if test -n "$FIREBIRD_CFLAGS"; then
+ pkg_cv_FIREBIRD_CFLAGS="$FIREBIRD_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fbembed\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fbembed") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FIREBIRD_CFLAGS=`$PKG_CONFIG --cflags "fbembed" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$FIREBIRD_LIBS"; then
+ pkg_cv_FIREBIRD_LIBS="$FIREBIRD_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fbembed\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fbembed") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FIREBIRD_LIBS=`$PKG_CONFIG --libs "fbembed" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ FIREBIRD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fbembed" 2>&1`
+ else
+ FIREBIRD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fbembed" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$FIREBIRD_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (fbembed) were not met:
+
+$FIREBIRD_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables FIREBIRD_CFLAGS
+and FIREBIRD_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables FIREBIRD_CFLAGS
+and FIREBIRD_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ FIREBIRD_CFLAGS=$pkg_cv_FIREBIRD_CFLAGS
+ FIREBIRD_LIBS=$pkg_cv_FIREBIRD_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ FIREBIRD_PKGNAME=fbembed
+fi
+
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIREBIRD" >&5
+$as_echo_n "checking for FIREBIRD... " >&6; }
+
+if test -n "$FIREBIRD_CFLAGS"; then
+ pkg_cv_FIREBIRD_CFLAGS="$FIREBIRD_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fbembed\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fbembed") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FIREBIRD_CFLAGS=`$PKG_CONFIG --cflags "fbembed" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$FIREBIRD_LIBS"; then
+ pkg_cv_FIREBIRD_LIBS="$FIREBIRD_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fbembed\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "fbembed") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_FIREBIRD_LIBS=`$PKG_CONFIG --libs "fbembed" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ FIREBIRD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fbembed" 2>&1`
+ else
+ FIREBIRD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fbembed" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$FIREBIRD_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (fbembed) were not met:
+
+$FIREBIRD_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables FIREBIRD_CFLAGS
+and FIREBIRD_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables FIREBIRD_CFLAGS
+and FIREBIRD_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ FIREBIRD_CFLAGS=$pkg_cv_FIREBIRD_CFLAGS
+ FIREBIRD_LIBS=$pkg_cv_FIREBIRD_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ FIREBIRD_PKGNAME=fbembed
+fi
+
+else
+ FIREBIRD_CFLAGS=$pkg_cv_FIREBIRD_CFLAGS
+ FIREBIRD_LIBS=$pkg_cv_FIREBIRD_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ FIREBIRD_PKGNAME=fbclient
+fi
+ FIREBIRD_VERSION=`pkg-config --modversion "$FIREBIRD_PKGNAME"`
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: fb_config found" >&5
+$as_echo "$as_me: fb_config found" >&6;}
+ FIREBIRD_VERSION=`$FIREBIRDCONFIG --version`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird Client library" >&5
+$as_echo_n "checking for Firebird Client library... " >&6; }
+ FIREBIRD_CFLAGS=`$FIREBIRDCONFIG --cflags`
+ FIREBIRD_LIBS=`$FIREBIRDCONFIG --embedlibs`
+ FilterLibs "${FIREBIRD_LIBS}"
+ FIREBIRD_LIBS="${filteredlibs}"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: includes \`$FIREBIRD_CFLAGS', libraries \`$FIREBIRD_LIBS'" >&5
+$as_echo "includes \`$FIREBIRD_CFLAGS', libraries \`$FIREBIRD_LIBS'" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Firebird version" >&5
+$as_echo_n "checking Firebird version... " >&6; }
+ if test -n "${FIREBIRD_VERSION}"; then
+ FIREBIRD_MAJOR=`echo $FIREBIRD_VERSION | cut -d"." -f1`
+ FIREBIRD_MINOR=`echo $FIREBIRD_VERSION | cut -d"." -f2`
+ if test "$FIREBIRD_MAJOR" -eq "3" -a "$FIREBIRD_MINOR" -eq "0"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
+$as_echo "OK" >&6; }
+ else
+ as_fn_error $? "Ensure firebird 3.0.x is installed" "$LINENO" 5
+ fi
+ else
+ __save_CFLAGS="${CFLAGS}"
+ CFLAGS="${CFLAGS} ${FIREBIRD_CFLAGS}"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ibase.h>
+#if defined(FB_API_VER) && FB_API_VER == 30
+int fb_api_is_30(void) { return 0; }
+#else
+#error "Wrong Firebird API version"
+#endif
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
+$as_echo "OK" >&6; }
+else
+ as_fn_error $? "Ensure firebird 3.0.x is installed" "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="${__save_CFLAGS}"
+ fi
+ ENABLE_FIREBIRD_SDBC=TRUE
+ $as_echo "#define ENABLE_FIREBIRD_SDBC 1" >>confdefs.h
+
+ elif test "$enable_database_connectivity" != yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+ elif test "$cross_compiling" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+ else
+ $as_echo "#define HAVE_FIREBIRD_30 1" >>confdefs.h
+
+ if test "${CPUNAME}" != INTEL -a "${CPUNAME}" != X86_64; then
+
+
+# Check whether --with-system-libatomic_ops was given.
+if test "${with_system_libatomic_ops+set}" = set; then :
+ withval=$with_system_libatomic_ops;
+else
+ with_system_libatomic_ops="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libatomic_ops to use" >&5
+$as_echo_n "checking which libatomic_ops to use... " >&6; }
+if test "$with_system_libatomic_ops" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ATOMIC_OPS=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATOMIC_OPS" >&5
+$as_echo_n "checking for ATOMIC_OPS... " >&6; }
+
+if test -n "$ATOMIC_OPS_CFLAGS"; then
+ pkg_cv_ATOMIC_OPS_CFLAGS="$ATOMIC_OPS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atomic_ops >= 0.7.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "atomic_ops >= 0.7.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ATOMIC_OPS_CFLAGS=`$PKG_CONFIG --cflags "atomic_ops >= 0.7.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ATOMIC_OPS_LIBS"; then
+ pkg_cv_ATOMIC_OPS_LIBS="$ATOMIC_OPS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atomic_ops >= 0.7.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "atomic_ops >= 0.7.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ATOMIC_OPS_LIBS=`$PKG_CONFIG --libs "atomic_ops >= 0.7.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ATOMIC_OPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "atomic_ops >= 0.7.2" 2>&1`
+ else
+ ATOMIC_OPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "atomic_ops >= 0.7.2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ATOMIC_OPS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (atomic_ops >= 0.7.2) were not met:
+
+$ATOMIC_OPS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables ATOMIC_OPS_CFLAGS
+and ATOMIC_OPS_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables ATOMIC_OPS_CFLAGS
+and ATOMIC_OPS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ ATOMIC_OPS_CFLAGS=$pkg_cv_ATOMIC_OPS_CFLAGS
+ ATOMIC_OPS_LIBS=$pkg_cv_ATOMIC_OPS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ ATOMIC_OPS_CFLAGS=$(printf '%s' "${ATOMIC_OPS_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${ATOMIC_OPS_LIBS}"
+ ATOMIC_OPS_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ATOMIC_OPS=
+ ATOMIC_OPS_CFLAGS=
+ ATOMIC_OPS_LIBS=
+ BUILD_TYPE="$BUILD_TYPE ATOMIC_OPS"
+fi
+
+
+
+
+ if test "$with_system_libatomic_ops" = "yes"; then
+ SYSTEM_LIBATOMIC_OPS=TRUE
+ for ac_header in atomic_ops.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
+if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_ATOMIC_OPS_H 1
+_ACEOF
+
+else
+ as_fn_error $? "atomic_ops.h not found. install libatomic_ops" "$LINENO" 5
+fi
+
+done
+
+ else
+ SYSTEM_LIBATOMIC_OPS=
+ LIBATOMIC_OPS_CFLAGS="-I${WORKDIR}/UnpackedTarball/libatomic_ops/include"
+ LIBATOMIC_OPS_LIBS="-latomic_ops"
+ BUILD_TYPE="$BUILD_TYPE LIBATOMIC_OPS"
+ fi
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_FIREBIRD=
+ FIREBIRD_CFLAGS="-I${WORKDIR}/UnpackedTarball/firebird/gen/Release/firebird/include"
+ FIREBIRD_LIBS="-lfbclient"
+
+ if test "$with_system_libtommath" = "yes"; then
+ SYSTEM_LIBTOMMATH=TRUE
+ save_LIBS=$LIBS
+ ac_fn_c_check_header_mongrel "$LINENO" "tommath.h" "ac_cv_header_tommath_h" "$ac_includes_default"
+if test "x$ac_cv_header_tommath_h" = xyes; then :
+
+else
+ as_fn_error $? "Include file for tommath not found - please install development tommath package" "$LINENO" 5
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_init in -ltommath" >&5
+$as_echo_n "checking for mp_init in -ltommath... " >&6; }
+if ${ac_cv_lib_tommath_mp_init+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ltommath $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 mp_init ();
+int
+main ()
+{
+return mp_init ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_tommath_mp_init=yes
+else
+ ac_cv_lib_tommath_mp_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_tommath_mp_init" >&5
+$as_echo "$ac_cv_lib_tommath_mp_init" >&6; }
+if test "x$ac_cv_lib_tommath_mp_init" = xyes; then :
+ TOMMATH_LIBS=-ltommath
+else
+ as_fn_error $? "Library tommath not found - please install development tommath package" "$LINENO" 5
+fi
+
+ LIBS=$save_LIBS
+ else
+ SYSTEM_LIBTOMMATH=
+ LIBTOMMATH_CFLAGS="-I${WORKDIR}/UnpackedTarball/libtommath"
+ LIBTOMMATH_LIBS="-ltommath"
+ BUILD_TYPE="$BUILD_TYPE LIBTOMMATH"
+ fi
+
+ BUILD_TYPE="$BUILD_TYPE FIREBIRD"
+ ENABLE_FIREBIRD_SDBC=TRUE
+ $as_echo "#define ENABLE_FIREBIRD_SDBC 1" >>confdefs.h
+
+ fi
+fi
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libcurl to use" >&5
+$as_echo_n "checking which libcurl to use... " >&6; }
+if test "$with_system_curl" = "auto"; then
+ with_system_curl="$with_system_libs"
+fi
+
+if test "$with_system_curl" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_CURL=TRUE
+
+ # First try PKGCONFIG and then fall back
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
+$as_echo_n "checking for CURL... " >&6; }
+
+if test -n "$CURL_CFLAGS"; then
+ pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.4\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.4") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.19.4" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$CURL_LIBS"; then
+ pkg_cv_CURL_LIBS="$CURL_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.4\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.4") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.19.4" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.19.4" 2>&1`
+ else
+ CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.19.4" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$CURL_PKG_ERRORS" >&5
+
+ :
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ :
+else
+ CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
+ CURL_LIBS=$pkg_cv_CURL_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+
+ if test -n "$CURL_PKG_ERRORS"; then
+ # 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 ${ac_cv_path_CURLCONFIG+:} false; 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 $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$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 -z "$CURLCONFIG"; then
+ as_fn_error $? "curl development files not found" "$LINENO" 5
+ fi
+ CURL_LIBS=`$CURLCONFIG --libs`
+ FilterLibs "${CURL_LIBS}"
+ CURL_LIBS="${filteredlibs}"
+ CURL_CFLAGS=$("$CURLCONFIG" --cflags | sed -e "s/-I/${ISYSTEM?}/g")
+ curl_version=`$CURLCONFIG --version | $SED -e 's/^libcurl //'`
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is >= 7.19.4" >&5
+$as_echo_n "checking whether libcurl is >= 7.19.4... " >&6; }
+ case $curl_version in
+ 7.19.4|7.19.[5-9]|7.[2-9]?.*|7.???.*|[8-9].*|[1-9][0-9].*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ;;
+ *)
+ as_fn_error $? "no, you have $curl_version" "$LINENO" 5
+ ;;
+ esac
+ fi
+
+ ENABLE_CURL=TRUE
+elif test $_os = iOS; then
+ # Let's see if we need curl, I think not?
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+ ENABLE_CURL=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_CURL=
+ BUILD_TYPE="$BUILD_TYPE CURL"
+ ENABLE_CURL=TRUE
+fi
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which boost to use" >&5
+$as_echo_n "checking which boost to use... " >&6; }
+if test "$with_system_boost" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_BOOST=TRUE
+
+
+# Check whether --with-boost was given.
+if test "${with_boost+set}" = set; then :
+ withval=$with_boost;
+ if test "$withval" = "no"; then
+ want_boost="no"
+ elif test "$withval" = "yes"; then
+ want_boost="yes"
+ ac_boost_path=""
+ else
+ want_boost="yes"
+ ac_boost_path="$withval"
+ fi
+
+else
+ want_boost="yes"
+fi
+
+
+
+
+# Check whether --with-boost-libdir was given.
+if test "${with_boost_libdir+set}" = set; then :
+ withval=$with_boost_libdir;
+ if test -d "$withval"
+ then
+ ac_boost_lib_path="$withval"
+ else
+ as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
+ fi
+
+else
+ ac_boost_lib_path=""
+
+fi
+
+
+if test "x$want_boost" = "xyes"; then
+ boost_lib_version_req=1.66
+ boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
+ boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
+ boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
+ boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
+ if test "x$boost_lib_version_req_sub_minor" = "x" ; then
+ boost_lib_version_req_sub_minor="0"
+ fi
+ WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
+$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
+ succeeded=no
+
+ libsubdirs="lib"
+ ax_arch=`uname -m`
+ if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = ppc64le -o $ax_arch = s390x -o $ax_arch = sparc64 -o $ax_arch = aarch64; then
+ libsubdirs="lib64 lib lib64"
+ fi
+
+ if test "$ac_boost_path" != ""; then
+ BOOST_CPPFLAGS="-I$ac_boost_path/include"
+ for ac_boost_path_tmp in $libsubdirs; do
+ if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
+ BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
+ break
+ fi
+ done
+ else
+ if test "$cross_compiling" != yes; then
+ ac_boost_paths='/usr /usr/local /opt /opt/local'
+ else
+ ac_boost_paths="/usr/$host/sys-root/mingw"
+ fi
+ for ac_boost_path_tmp in $ac_boost_paths ; do
+ if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
+ for libsubdir in $libsubdirs ; do
+ if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
+ done
+ BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
+ BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
+ break;
+ fi
+ done
+ fi
+
+ if test "$ac_boost_lib_path" != ""; then
+ BOOST_LDFLAGS="-L$ac_boost_lib_path"
+ fi
+
+ CPPFLAGS_SAVED="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ export CPPFLAGS
+
+ LDFLAGS_SAVED="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
+ export LDFLAGS
+
+
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <boost/version.hpp>
+
+int
+main ()
+{
+
+ #if BOOST_VERSION >= $WANT_BOOST_VERSION
+ // Everything is okay
+ #else
+ # error Boost version is too old
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ succeeded=yes
+ found_system=yes
+
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+
+
+
+ if test "x$succeeded" != "xyes"; then
+ _version=0
+ if test "$ac_boost_path" != ""; then
+ if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
+ for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
+ _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
+ V_CHECK=`expr $_version_tmp \> $_version`
+ if test "$V_CHECK" = "1" ; then
+ _version=$_version_tmp
+ fi
+ VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
+ BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
+ done
+ fi
+ else
+ if test "$cross_compiling" != yes; then
+ ac_boost_paths='/usr /usr/local /opt /opt/local'
+ else
+ ac_boost_paths="/usr/$host/sys-root/mingw"
+ fi
+ for ac_boost_path in $ac_boost_paths ; do
+ if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
+ for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
+ _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
+ V_CHECK=`expr $_version_tmp \> $_version`
+ if test "$V_CHECK" = "1" ; then
+ _version=$_version_tmp
+ best_path=$ac_boost_path
+ fi
+ done
+ fi
+ done
+
+ VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
+ BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
+ if test "$ac_boost_lib_path" = ""; then
+ for libsubdir in $libsubdirs ; do
+ if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
+ done
+ BOOST_LDFLAGS="-L$best_path/$libsubdir"
+ fi
+
+ if test "x$BOOST_ROOT" != "x"; then
+ for libsubdir in $libsubdirs ; do
+ if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
+ done
+ if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
+ version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
+ stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
+ stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
+ V_CHECK=`expr $stage_version_shorten \>\= $_version`
+ if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
+$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
+ BOOST_CPPFLAGS="-I$BOOST_ROOT"
+ BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
+ fi
+ fi
+ fi
+ fi
+
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ export CPPFLAGS
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
+ export LDFLAGS
+
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <boost/version.hpp>
+
+int
+main ()
+{
+
+ #if BOOST_VERSION >= $WANT_BOOST_VERSION
+ // Everything is okay
+ #else
+ # error Boost version is too old
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ succeeded=yes
+ found_system=yes
+
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ if test "$succeeded" != "yes" ; then
+ if test "$_version" = "0" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
+$as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
+$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
+ fi
+ # execute ACTION-IF-NOT-FOUND (if present):
+ as_fn_error $? "no suitable Boost found" "$LINENO" 5
+ else
+
+
+
+$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
+
+ # execute ACTION-IF-FOUND (if present):
+ :
+ fi
+
+ CPPFLAGS="$CPPFLAGS_SAVED"
+ LDFLAGS="$LDFLAGS_SAVED"
+fi
+
+
+
+
+# Check whether --with-boost-date-time was given.
+if test "${with_boost_date_time+set}" = set; then :
+ withval=$with_boost_date_time;
+ if test "$withval" = "no"; then
+ want_boost="no"
+ elif test "$withval" = "yes"; then
+ want_boost="yes"
+ ax_boost_user_date_time_lib=""
+ else
+ want_boost="yes"
+ ax_boost_user_date_time_lib="$withval"
+ fi
+
+else
+ want_boost="yes"
+
+fi
+
+
+ if test "x$want_boost" = "xyes"; then
+
+ CPPFLAGS_SAVED="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ export CPPFLAGS
+
+ LDFLAGS_SAVED="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
+ export LDFLAGS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Date_Time library is available" >&5
+$as_echo_n "checking whether the Boost::Date_Time library is available... " >&6; }
+if ${ax_cv_boost_date_time+:} false; 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <boost/date_time/gregorian/gregorian_types.hpp>
+int
+main ()
+{
+using namespace boost::gregorian; date d(2002,Jan,10);
+ return 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ax_cv_boost_date_time=yes
+else
+ ax_cv_boost_date_time=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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: $ax_cv_boost_date_time" >&5
+$as_echo "$ax_cv_boost_date_time" >&6; }
+ if test "x$ax_cv_boost_date_time" = "xyes"; then
+
+$as_echo "#define HAVE_BOOST_DATE_TIME /**/" >>confdefs.h
+
+ BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
+ if test "x$ax_boost_user_date_time_lib" = "x"; then
+ for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.dylib* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break
+else
+ link_date_time="no"
+fi
+
+ done
+ if test "x$link_date_time" != "xyes"; then
+ for libextension in `ls $BOOSTLIBDIR/boost_date_time*.dll* $BOOSTLIBDIR/boost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a.*$;\1;'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break
+else
+ link_date_time="no"
+fi
+
+ done
+ fi
+
+ else
+ for ax_lib in $ax_boost_user_date_time_lib boost_date_time-$ax_boost_user_date_time_lib; do
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
+$as_echo_n "checking for main in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_DATE_TIME_LIB="-l$ax_lib"; link_date_time="yes"; break
+else
+ link_date_time="no"
+fi
+
+ done
+
+ fi
+ if test "x$ax_lib" = "x"; then
+ as_fn_error $? "Could not find a version of the boost date_time library!" "$LINENO" 5
+ fi
+ if test "x$link_date_time" != "xyes"; then
+ as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
+ fi
+ fi
+
+ CPPFLAGS="$CPPFLAGS_SAVED"
+ LDFLAGS="$LDFLAGS_SAVED"
+ fi
+
+
+
+# Check whether --with-boost-filesystem was given.
+if test "${with_boost_filesystem+set}" = set; then :
+ withval=$with_boost_filesystem;
+ if test "$withval" = "no"; then
+ want_boost="no"
+ elif test "$withval" = "yes"; then
+ want_boost="yes"
+ ax_boost_user_filesystem_lib=""
+ else
+ want_boost="yes"
+ ax_boost_user_filesystem_lib="$withval"
+ fi
+
+else
+ want_boost="yes"
+
+fi
+
+
+ if test "x$want_boost" = "xyes"; then
+
+ CPPFLAGS_SAVED="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ export CPPFLAGS
+
+ LDFLAGS_SAVED="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
+ export LDFLAGS
+
+ LIBS_SAVED=$LIBS
+ LIBS="$LIBS $BOOST_SYSTEM_LIB"
+ export LIBS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
+$as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
+if ${ax_cv_boost_filesystem+:} false; 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <boost/filesystem/path.hpp>
+int
+main ()
+{
+using namespace boost::filesystem;
+ path my_path( "foo/bar/data.txt" );
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ax_cv_boost_filesystem=yes
+else
+ ax_cv_boost_filesystem=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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: $ax_cv_boost_filesystem" >&5
+$as_echo "$ax_cv_boost_filesystem" >&6; }
+ if test "x$ax_cv_boost_filesystem" = "xyes"; then
+
+$as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
+
+ BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
+ if test "x$ax_boost_user_filesystem_lib" = "x"; then
+ for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
+else
+ link_filesystem="no"
+fi
+
+ done
+ if test "x$link_filesystem" != "xyes"; then
+ for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
+else
+ link_filesystem="no"
+fi
+
+ done
+ fi
+ else
+ for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
+else
+ link_filesystem="no"
+fi
+
+ done
+
+ fi
+ if test "x$ax_lib" = "x"; then
+ as_fn_error $? "Could not find a version of the boost filesystem library!" "$LINENO" 5
+ fi
+ if test "x$link_filesystem" != "xyes"; then
+ as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
+ fi
+ fi
+
+ CPPFLAGS="$CPPFLAGS_SAVED"
+ LDFLAGS="$LDFLAGS_SAVED"
+ LIBS="$LIBS_SAVED"
+ fi
+
+
+
+# Check whether --with-boost-iostreams was given.
+if test "${with_boost_iostreams+set}" = set; then :
+ withval=$with_boost_iostreams;
+ if test "$withval" = "no"; then
+ want_boost="no"
+ elif test "$withval" = "yes"; then
+ want_boost="yes"
+ ax_boost_user_iostreams_lib=""
+ else
+ want_boost="yes"
+ ax_boost_user_iostreams_lib="$withval"
+ fi
+
+else
+ want_boost="yes"
+
+fi
+
+
+ if test "x$want_boost" = "xyes"; then
+
+ CPPFLAGS_SAVED="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ export CPPFLAGS
+
+ LDFLAGS_SAVED="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
+ export LDFLAGS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
+$as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
+if ${ax_cv_boost_iostreams+:} false; 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <boost/iostreams/filtering_stream.hpp>
+ #include <boost/range/iterator_range.hpp>
+
+int
+main ()
+{
+std::string input = "Hello World!";
+ namespace io = boost::iostreams;
+ io::filtering_istream in(boost::make_iterator_range(input));
+ return 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ax_cv_boost_iostreams=yes
+else
+ ax_cv_boost_iostreams=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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: $ax_cv_boost_iostreams" >&5
+$as_echo "$ax_cv_boost_iostreams" >&6; }
+ if test "x$ax_cv_boost_iostreams" = "xyes"; then
+
+$as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
+
+ BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
+ if test "x$ax_boost_user_iostreams_lib" = "x"; then
+ for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.so* $BOOSTLIBDIR/libboost_iostream*.dylib* $BOOSTLIBDIR/libboost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostream.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a.*$;\1;'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
+else
+ link_iostreams="no"
+fi
+
+ done
+ if test "x$link_iostreams" != "xyes"; then
+ for libextension in `ls $BOOSTLIBDIR/boost_iostreams*.dll* $BOOSTLIBDIR/boost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_iostreams.*\)\.dll.*$;\1;' -e 's;^\(boost_iostreams.*\)\.a.*$;\1;'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
+else
+ link_iostreams="no"
+fi
+
+ done
+ fi
+
+ else
+ for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
+$as_echo_n "checking for main in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
+else
+ link_iostreams="no"
+fi
+
+ done
+
+ fi
+ if test "x$ax_lib" = "x"; then
+ as_fn_error $? "Could not find a version of the boost iostreams library!" "$LINENO" 5
+ fi
+ if test "x$link_iostreams" != "xyes"; then
+ as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
+ fi
+ fi
+
+ CPPFLAGS="$CPPFLAGS_SAVED"
+ LDFLAGS="$LDFLAGS_SAVED"
+ fi
+
+
+
+# Check whether --with-boost-locale was given.
+if test "${with_boost_locale+set}" = set; then :
+ withval=$with_boost_locale;
+ if test "$withval" = "no"; then
+ want_boost="no"
+ elif test "$withval" = "yes"; then
+ want_boost="yes"
+ ax_boost_user_locale_lib=""
+ else
+ want_boost="yes"
+ ax_boost_user_locale_lib="$withval"
+ fi
+
+else
+ want_boost="yes"
+
+fi
+
+
+ if test "x$want_boost" = "xyes"; then
+
+
+ CPPFLAGS_SAVED="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ export CPPFLAGS
+
+ LDFLAGS_SAVED="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
+ export LDFLAGS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Locale library is available" >&5
+$as_echo_n "checking whether the Boost::Locale library is available... " >&6; }
+if ${ax_cv_boost_locale+:} false; 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
+
+ CXXFLAGS_SAVE=$CXXFLAGS
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <boost/locale.hpp>
+int
+main ()
+{
+boost::locale::generator gen;
+ std::locale::global(gen(""));
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ax_cv_boost_locale=yes
+else
+ ax_cv_boost_locale=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CXXFLAGS=$CXXFLAGS_SAVE
+ 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: $ax_cv_boost_locale" >&5
+$as_echo "$ax_cv_boost_locale" >&6; }
+ if test "x$ax_cv_boost_locale" = "xyes"; then
+
+
+
+$as_echo "#define HAVE_BOOST_LOCALE /**/" >>confdefs.h
+
+ BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
+
+ LDFLAGS_SAVE=$LDFLAGS
+ if test "x$ax_boost_user_locale_lib" = "x"; then
+ for libextension in `ls $BOOSTLIBDIR/libboost_locale*.so* $BOOSTLIBDIR/libboost_locale*.dylib* $BOOSTLIBDIR/libboost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_locale.*\)\.so.*$;\1;' -e 's;^lib\(boost_locale.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_locale.*\)\.a.*$;\1;'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_LOCALE_LIB="-l$ax_lib"; link_locale="yes"; break
+else
+ link_locale="no"
+fi
+
+ done
+ if test "x$link_locale" != "xyes"; then
+ for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_LOCALE_LIB="-l$ax_lib"; link_locale="yes"; break
+else
+ link_locale="no"
+fi
+
+ done
+ fi
+
+ else
+ for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ 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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_LOCALE_LIB="-l$ax_lib"; link_locale="yes"; break
+else
+ link_locale="no"
+fi
+
+ done
+
+ fi
+ if test "x$ax_lib" = "x"; then
+ as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
+ fi
+ if test "x$link_locale" = "xno"; then
+ as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
+ fi
+ fi
+
+ CPPFLAGS="$CPPFLAGS_SAVED"
+ LDFLAGS="$LDFLAGS_SAVED"
+ 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
+
+ save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS $BOOST_CPPFLAGS $CXXFLAGS_CXX11"
+ ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
+if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then :
+
+else
+ as_fn_error $? "boost/shared_ptr.hpp not found. install boost" "$LINENO" 5
+fi
+
+
+ ac_fn_cxx_check_header_mongrel "$LINENO" "boost/spirit/include/classic_core.hpp" "ac_cv_header_boost_spirit_include_classic_core_hpp" "$ac_includes_default"
+if test "x$ac_cv_header_boost_spirit_include_classic_core_hpp" = xyes; then :
+
+else
+ as_fn_error $? "boost/spirit/include/classic_core.hpp not found. install boost >= 1.36" "$LINENO" 5
+fi
+
+
+ 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
+
+ # this is in m4/ax_boost_base.m4
+ FilterLibs "${BOOST_LDFLAGS}"
+ BOOST_LDFLAGS="${filteredlibs}"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ BUILD_TYPE="$BUILD_TYPE BOOST"
+ SYSTEM_BOOST=
+ if test "${COM}" = "GCC" -o "${COM_IS_CLANG}" = "TRUE"; then
+ # use warning-suppressing wrapper headers
+ BOOST_CPPFLAGS="-I${SRC_ROOT}/external/boost/include -I${WORKDIR}/UnpackedTarball/boost"
+ else
+ BOOST_CPPFLAGS="-I${WORKDIR}/UnpackedTarball/boost"
+ fi
+fi
+
+
+
+
+# Check whether --with-system-mdds was given.
+if test "${with_system_mdds+set}" = set; then :
+ withval=$with_system_mdds;
+else
+ with_system_mdds="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which mdds to use" >&5
+$as_echo_n "checking which mdds to use... " >&6; }
+if test "$with_system_mdds" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_MDDS=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MDDS" >&5
+$as_echo_n "checking for MDDS... " >&6; }
+
+if test -n "$MDDS_CFLAGS"; then
+ pkg_cv_MDDS_CFLAGS="$MDDS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds-1.5 >= 1.5.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "mdds-1.5 >= 1.5.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MDDS_CFLAGS=`$PKG_CONFIG --cflags "mdds-1.5 >= 1.5.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$MDDS_LIBS"; then
+ pkg_cv_MDDS_LIBS="$MDDS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds-1.5 >= 1.5.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "mdds-1.5 >= 1.5.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MDDS_LIBS=`$PKG_CONFIG --libs "mdds-1.5 >= 1.5.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ MDDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mdds-1.5 >= 1.5.0" 2>&1`
+ else
+ MDDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mdds-1.5 >= 1.5.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$MDDS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (mdds-1.5 >= 1.5.0) were not met:
+
+$MDDS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables MDDS_CFLAGS
+and MDDS_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables MDDS_CFLAGS
+and MDDS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ MDDS_CFLAGS=$pkg_cv_MDDS_CFLAGS
+ MDDS_LIBS=$pkg_cv_MDDS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ MDDS_CFLAGS=$(printf '%s' "${MDDS_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${MDDS_LIBS}"
+ MDDS_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_MDDS=
+ MDDS_CFLAGS="-I${WORKDIR}/UnpackedTarball/mdds/include"
+ MDDS_LIBS=
+ BUILD_TYPE="$BUILD_TYPE MDDS"
+fi
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which glm to use" >&5
+$as_echo_n "checking which glm to use... " >&6; }
+if test "$with_system_glm" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_GLM=TRUE
+ 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
+
+ ac_fn_cxx_check_header_mongrel "$LINENO" "glm/glm.hpp" "ac_cv_header_glm_glm_hpp" "$ac_includes_default"
+if test "x$ac_cv_header_glm_glm_hpp" = xyes; then :
+
+else
+ as_fn_error $? "glm/glm.hpp not found. install glm" "$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
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ BUILD_TYPE="$BUILD_TYPE GLM"
+ SYSTEM_GLM=
+ GLM_CFLAGS="${ISYSTEM}${WORKDIR}/UnpackedTarball/glm"
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which odbc headers to use" >&5
+$as_echo_n "checking which odbc headers to use... " >&6; }
+if test "$with_system_odbc" = "yes" -o '(' "$with_system_headers" = "yes" -a "$with_system_odbc" = "auto" ')' -o '(' "$_os" = "WINNT" -a "$with_system_odbc" != "no" ')'; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ODBC_HEADERS=TRUE
+
+ if test "$build_os" = "cygwin"; then
+ save_CPPFLAGS=$CPPFLAGS
+ find_winsdk
+ PathFormat "$winsdktest"
+ CPPFLAGS="$CPPFLAGS -I$formatted_path/include/um -I$formatted_path/Include/$winsdklibsubdir/um -I$formatted_path/include -I$formatted_path/include/shared -I$formatted_path/include/$winsdklibsubdir/shared"
+ ac_fn_c_check_header_compile "$LINENO" "sqlext.h" "ac_cv_header_sqlext_h" "#include <windows.h>
+"
+if test "x$ac_cv_header_sqlext_h" = xyes; then :
+
+else
+ as_fn_error $? "odbc not found. install odbc" "$LINENO" 5
+fi
+
+
+ CPPFLAGS=$save_CPPFLAGS
+ else
+ ac_fn_c_check_header_mongrel "$LINENO" "sqlext.h" "ac_cv_header_sqlext_h" "$ac_includes_default"
+if test "x$ac_cv_header_sqlext_h" = xyes; then :
+
+else
+ as_fn_error $? "odbc not found. install odbc" "$LINENO" 5
+fi
+
+
+ fi
+elif test "$enable_database_connectivity" != yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ODBC_HEADERS=
+fi
+
+
+
+if test "$_os" != "WINNT" -a "$_os" != "iOS" -a "$_os" != "Android"; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LDAP support" >&5
+$as_echo_n "checking whether to enable LDAP support... " >&6; }
+ if test "$enable_ldap" != "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_LDAP=""
+ enable_ldap=no
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_LDAP="TRUE"
+ fi
+fi
+
+
+
+if test "$_os" != "WINNT" -a "$_os" != "iOS" -a "$_os" != "Android" -a "$ENABLE_LDAP" != ""; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which openldap library to use" >&5
+$as_echo_n "checking which openldap library to use... " >&6; }
+if test "$with_system_openldap" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_OPENLDAP=TRUE
+ for ac_header in ldap.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
+if test "x$ac_cv_header_ldap_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LDAP_H 1
+_ACEOF
+
+else
+ as_fn_error $? "ldap.h not found. install openldap libs" "$LINENO" 5
+fi
+
+done
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind_s in -lldap" >&5
+$as_echo_n "checking for ldap_simple_bind_s in -lldap... " >&6; }
+if ${ac_cv_lib_ldap_ldap_simple_bind_s+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lldap $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 ldap_simple_bind_s ();
+int
+main ()
+{
+return ldap_simple_bind_s ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_ldap_ldap_simple_bind_s=yes
+else
+ ac_cv_lib_ldap_ldap_simple_bind_s=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_ldap_ldap_simple_bind_s" >&5
+$as_echo "$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
+if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = xyes; then :
+ :
+else
+ as_fn_error $? "openldap lib not found or functional" "$LINENO" 5
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_option in -lldap" >&5
+$as_echo_n "checking for ldap_set_option in -lldap... " >&6; }
+if ${ac_cv_lib_ldap_ldap_set_option+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lldap $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 ldap_set_option ();
+int
+main ()
+{
+return ldap_set_option ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_ldap_ldap_set_option=yes
+else
+ ac_cv_lib_ldap_ldap_set_option=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_ldap_ldap_set_option" >&5
+$as_echo "$ac_cv_lib_ldap_ldap_set_option" >&6; }
+if test "x$ac_cv_lib_ldap_ldap_set_option" = xyes; then :
+ :
+else
+ as_fn_error $? "openldap lib not found or functional" "$LINENO" 5
+fi
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_OPENLDAP=
+ BUILD_TYPE="$BUILD_TYPE OPENLDAP"
+fi
+fi
+
+
+if test $_os != iOS -a "$enable_fuzzers" != "yes"; then
+
+
+# Check whether --with-system-nss was given.
+if test "${with_system_nss+set}" = set; then :
+ withval=$with_system_nss;
+else
+ with_system_nss="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which nss to use" >&5
+$as_echo_n "checking which nss to use... " >&6; }
+if test "$with_system_nss" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_NSS=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
+$as_echo_n "checking for NSS... " >&6; }
+
+if test -n "$NSS_CFLAGS"; then
+ pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3.9.3 nspr >= 4.8\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "nss >= 3.9.3 nspr >= 4.8") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3.9.3 nspr >= 4.8" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$NSS_LIBS"; then
+ pkg_cv_NSS_LIBS="$NSS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3.9.3 nspr >= 4.8\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "nss >= 3.9.3 nspr >= 4.8") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss >= 3.9.3 nspr >= 4.8" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3.9.3 nspr >= 4.8" 2>&1`
+ else
+ NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3.9.3 nspr >= 4.8" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$NSS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (nss >= 3.9.3 nspr >= 4.8) were not met:
+
+$NSS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables NSS_CFLAGS
+and NSS_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables NSS_CFLAGS
+and NSS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
+ NSS_LIBS=$pkg_cv_NSS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ NSS_CFLAGS=$(printf '%s' "${NSS_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${NSS_LIBS}"
+ NSS_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_NSS=
+ NSS_CFLAGS=
+ NSS_LIBS=
+ BUILD_TYPE="$BUILD_TYPE NSS"
+fi
+
+
+
+
+ $as_echo "#define HAVE_FEATURE_NSS 1" >>confdefs.h
+
+ ENABLE_NSS="TRUE"
+ $as_echo "#define ENABLE_NSS 1" >>confdefs.h
+
+elif test $_os != iOS ; then
+ with_tls=openssl
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which TLS/SSL and cryptographic implementation to use" >&5
+$as_echo_n "checking which TLS/SSL and cryptographic implementation to use... " >&6; }
+if test -n "$with_tls"; then
+ case $with_tls in
+ openssl)
+ $as_echo "#define USE_TLS_OPENSSL 1" >>confdefs.h
+
+ TLS=OPENSSL
+
+ if test "$enable_openssl" != "yes"; then
+ as_fn_error $? "\"Disabling OpenSSL was requested, but the requested TLS to use is actually OpenSSL.\"" "$LINENO" 5
+ fi
+
+ # warn that OpenSSL has been selected but not all TLS code has this option
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS/SSL implementation to use is OpenSSL but some code may still depend on NSS or GNUTLS" >&5
+$as_echo "$as_me: WARNING: TLS/SSL implementation to use is OpenSSL but some code may still depend on NSS or GNUTLS" >&2;}
+ add_warning "TLS/SSL implementation to use is OpenSSL but some code may still depend on NSS or GNUTLS"
+ ;;
+ nss)
+ $as_echo "#define USE_TLS_NSS 1" >>confdefs.h
+
+ TLS=NSS
+ ;;
+ no)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping TLS/SSL" >&5
+$as_echo "$as_me: WARNING: Skipping TLS/SSL" >&2;}
+ ;;
+ *)
+ as_fn_error $? "unsupported implementation $with_tls. Supported are:
+openssl - OpenSSL
+nss - Mozilla's Network Security Services (NSS)
+ " "$LINENO" 5
+ ;;
+ esac
+else
+ # default to using NSS, it results in smaller oox lib
+ $as_echo "#define USE_TLS_NSS 1" >>confdefs.h
+
+ TLS=NSS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TLS" >&5
+$as_echo "$TLS" >&6; }
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which sane header to use" >&5
+$as_echo_n "checking which sane header to use... " >&6; }
+if test "$with_system_sane" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
+if test "x$ac_cv_header_sane_sane_h" = xyes; then :
+
+else
+ as_fn_error $? "sane not found. install sane" "$LINENO" 5
+fi
+
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ BUILD_TYPE="$BUILD_TYPE SANE"
+fi
+
+SYSTEM_GENBRK=
+SYSTEM_GENCCODE=
+SYSTEM_GENCMN=
+
+ICU_MAJOR=67
+ICU_MINOR=1
+ICU_RECLASSIFIED_PREPEND_SET_EMPTY="TRUE"
+ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER="TRUE"
+ICU_RECLASSIFIED_HEBREW_LETTER="TRUE"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which icu to use" >&5
+$as_echo_n "checking which icu to use... " >&6; }
+if test "$with_system_icu" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ICU=TRUE
+ 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 unicode/rbbi.h" >&5
+$as_echo_n "checking for unicode/rbbi.h... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+unicode/rbbi.h
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ as_fn_error $? "icu headers not found" "$LINENO" 5
+fi
+rm -f conftest.err conftest.i 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
+
+
+ if test "$cross_compiling" != "yes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
+$as_echo_n "checking for ICU... " >&6; }
+
+if test -n "$ICU_CFLAGS"; then
+ pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 4.6\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "icu-i18n >= 4.6") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n >= 4.6" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ICU_LIBS"; then
+ pkg_cv_ICU_LIBS="$ICU_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 4.6\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "icu-i18n >= 4.6") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n >= 4.6" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n >= 4.6" 2>&1`
+ else
+ ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n >= 4.6" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ICU_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (icu-i18n >= 4.6) were not met:
+
+$ICU_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables ICU_CFLAGS
+and ICU_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables ICU_CFLAGS
+and ICU_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
+ ICU_LIBS=$pkg_cv_ICU_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ ICU_VERSION=`$PKG_CONFIG --modversion icu-i18n 2>/dev/null`
+ ICU_MAJOR=`echo $ICU_VERSION | cut -d"." -f1`
+ ICU_MINOR=`echo $ICU_VERSION | cut -d"." -f2`
+ fi
+
+ if test "$cross_compiling" = "yes" -a \( "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force" \); then
+ ICU_VERSION_FOR_BUILD=`$PKG_CONFIG --modversion icu-i18n 2>/dev/null`
+ ICU_MAJOR_FOR_BUILD=`echo $ICU_VERSION_FOR_BUILD | cut -d"." -f1`
+ ICU_MINOR_FOR_BUILD=`echo $ICU_VERSION_FOR_BUILD | cut -d"." -f2`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MinGW and system versions of ICU are compatible" >&5
+$as_echo_n "checking if MinGW and system versions of ICU are compatible... " >&6; }
+ if test "$ICU_MAJOR" -eq "$ICU_MAJOR_FOR_BUILD" -a "$ICU_MINOR" -eq "$ICU_MINOR_FOR_BUILD"; 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; }
+ if test "$with_system_icu_for_build" != "force"; then
+ as_fn_error $? "System ICU is not version-compatible with MinGW ICU.
+You can use --with-system-icu-for-build=force to use it anyway." "$LINENO" 5
+ fi
+ fi
+ fi
+
+ if test "$cross_compiling" != "yes" -o "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force"; then
+ # using the system icu tools can lead to version confusion, use the
+ # ones from the build environment when cross-compiling
+ # Extract the first word of "genbrk", so it can be a program name with args.
+set dummy genbrk; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_SYSTEM_GENBRK+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $SYSTEM_GENBRK in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SYSTEM_GENBRK="$SYSTEM_GENBRK" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$PATH:/usr/sbin:/sbin"
+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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SYSTEM_GENBRK="$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
+SYSTEM_GENBRK=$ac_cv_path_SYSTEM_GENBRK
+if test -n "$SYSTEM_GENBRK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENBRK" >&5
+$as_echo "$SYSTEM_GENBRK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$SYSTEM_GENBRK"; then
+ as_fn_error $? "\'genbrk\' not found in \$PATH, install the icu development tool \'genbrk\'" "$LINENO" 5
+ fi
+ # Extract the first word of "genccode", so it can be a program name with args.
+set dummy genccode; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_SYSTEM_GENCCODE+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $SYSTEM_GENCCODE in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SYSTEM_GENCCODE="$SYSTEM_GENCCODE" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
+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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SYSTEM_GENCCODE="$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
+SYSTEM_GENCCODE=$ac_cv_path_SYSTEM_GENCCODE
+if test -n "$SYSTEM_GENCCODE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENCCODE" >&5
+$as_echo "$SYSTEM_GENCCODE" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$SYSTEM_GENCCODE"; then
+ as_fn_error $? "\'genccode\' not found in \$PATH, install the icu development tool \'genccode\'" "$LINENO" 5
+ fi
+ # Extract the first word of "gencmn", so it can be a program name with args.
+set dummy gencmn; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_SYSTEM_GENCMN+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $SYSTEM_GENCMN in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_SYSTEM_GENCMN="$SYSTEM_GENCMN" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
+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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SYSTEM_GENCMN="$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
+SYSTEM_GENCMN=$ac_cv_path_SYSTEM_GENCMN
+if test -n "$SYSTEM_GENCMN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENCMN" >&5
+$as_echo "$SYSTEM_GENCMN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$SYSTEM_GENCMN"; then
+ as_fn_error $? "\'gencmn\' not found in \$PATH, install the icu development tool \'gencmn\'" "$LINENO" 5
+ fi
+ if test "$ICU_MAJOR" -ge "49"; then
+ ICU_RECLASSIFIED_PREPEND_SET_EMPTY="TRUE"
+ ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER="TRUE"
+ ICU_RECLASSIFIED_HEBREW_LETTER="TRUE"
+ else
+ ICU_RECLASSIFIED_PREPEND_SET_EMPTY=
+ ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER=
+ ICU_RECLASSIFIED_HEBREW_LETTER=
+ fi
+ fi
+
+ if test "$cross_compiling" = "yes"; then
+ if test "$ICU_MAJOR" -ge "50"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ignore ICU_MINOR as obviously the libraries don't include the minor version in their names any more" >&5
+$as_echo "Ignore ICU_MINOR as obviously the libraries don't include the minor version in their names any more" >&6; }
+ ICU_MINOR=""
+ fi
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ICU=
+ BUILD_TYPE="$BUILD_TYPE ICU"
+ # surprisingly set these only for "internal" (to be used by various other
+ # external libs): the system icu-config is quite unhelpful and spits out
+ # dozens of weird flags and also default path -I/usr/include
+ ICU_CFLAGS="-I${WORKDIR}/UnpackedTarball/icu/source/i18n -I${WORKDIR}/UnpackedTarball/icu/source/common"
+ ICU_LIBS="-L${WORKDIR}/UnpackedTarball/icu/source/lib"
+fi
+if test "$ICU_MAJOR" -ge "59"; then
+ # As of ICU 59 it defaults to typedef char16_t UChar; which is available
+ # with -std=c++11 but not all external libraries can be built with that,
+ # for those use a bit-compatible typedef uint16_t UChar; see
+ # icu/source/common/unicode/umachine.h
+ ICU_UCHAR_TYPE="-DUCHAR_TYPE=uint16_t"
+else
+ ICU_UCHAR_TYPE=""
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+DEFAULT_CRASHDUMP_VALUE="true"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable breakpad" >&5
+$as_echo_n "checking whether to enable breakpad... " >&6; }
+if test "$enable_breakpad" != yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_BREAKPAD="TRUE"
+ $as_echo "#define ENABLE_BREAKPAD 1" >>confdefs.h
+
+ $as_echo "#define HAVE_FEATURE_BREAKPAD 1" >>confdefs.h
+
+ BUILD_TYPE="$BUILD_TYPE BREAKPAD"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for disable crash dump" >&5
+$as_echo_n "checking for disable crash dump... " >&6; }
+ if test "$enable_crashdump" = no; then
+ DEFAULT_CRASHDUMP_VALUE="false"
+ { $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}: checking for crashreport config" >&5
+$as_echo_n "checking for crashreport config... " >&6; }
+ if test "$with_symbol_config" = "no"; then
+ BREAKPAD_SYMBOL_CONFIG="invalid"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ else
+ BREAKPAD_SYMBOL_CONFIG="$with_symbol_config"
+ $as_echo "#define BREAKPAD_SYMBOL_CONFIG 1" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzers" >&5
+$as_echo_n "checking whether to enable fuzzers... " >&6; }
+if test "$enable_fuzzers" != yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_FUZZERS="TRUE"
+ $as_echo "#define ENABLE_FUZZERS 1" >>confdefs.h
+
+ BUILD_TYPE="$BUILD_TYPE FUZZERS"
+fi
+
+
+
+
+# Check whether --with-system-orcus was given.
+if test "${with_system_orcus+set}" = set; then :
+ withval=$with_system_orcus;
+else
+ with_system_orcus="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which orcus to use" >&5
+$as_echo_n "checking which orcus to use... " >&6; }
+if test "$with_system_orcus" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_ORCUS=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORCUS" >&5
+$as_echo_n "checking for ORCUS... " >&6; }
+
+if test -n "$ORCUS_CFLAGS"; then
+ pkg_cv_ORCUS_CFLAGS="$ORCUS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liborcus-0.15 >= 0.15.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "liborcus-0.15 >= 0.15.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ORCUS_CFLAGS=`$PKG_CONFIG --cflags "liborcus-0.15 >= 0.15.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ORCUS_LIBS"; then
+ pkg_cv_ORCUS_LIBS="$ORCUS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liborcus-0.15 >= 0.15.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "liborcus-0.15 >= 0.15.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ORCUS_LIBS=`$PKG_CONFIG --libs "liborcus-0.15 >= 0.15.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ORCUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liborcus-0.15 >= 0.15.0" 2>&1`
+ else
+ ORCUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liborcus-0.15 >= 0.15.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ORCUS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (liborcus-0.15 >= 0.15.0) were not met:
+
+$ORCUS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables ORCUS_CFLAGS
+and ORCUS_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables ORCUS_CFLAGS
+and ORCUS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ ORCUS_CFLAGS=$pkg_cv_ORCUS_CFLAGS
+ ORCUS_LIBS=$pkg_cv_ORCUS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ ORCUS_CFLAGS=$(printf '%s' "${ORCUS_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${ORCUS_LIBS}"
+ ORCUS_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_ORCUS=
+ ORCUS_CFLAGS=
+ ORCUS_LIBS=
+ BUILD_TYPE="$BUILD_TYPE ORCUS"
+fi
+
+
+
+
+if test "$with_system_orcus" != "yes"; then
+ if test "$SYSTEM_BOOST" = "TRUE"; then
+ # ===========================================================
+ # Determine if we are going to need to link with Boost.System
+ # ===========================================================
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to link with Boost.System" >&5
+$as_echo_n "checking if we need to link with Boost.System... " >&6; }
+ 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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <boost/version.hpp>
+
+int
+main ()
+{
+
+ #if BOOST_VERSION >= 105000
+ # error yes, we need to link with Boost.System
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+
+# Check whether --with-boost-system was given.
+if test "${with_boost_system+set}" = set; then :
+ withval=$with_boost_system;
+ if test "$withval" = "no"; then
+ want_boost="no"
+ elif test "$withval" = "yes"; then
+ want_boost="yes"
+ ax_boost_user_system_lib=""
+ else
+ want_boost="yes"
+ ax_boost_user_system_lib="$withval"
+ fi
+
+else
+ want_boost="yes"
+
+fi
+
+
+ if test "x$want_boost" = "xyes"; then
+
+
+ CPPFLAGS_SAVED="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ export CPPFLAGS
+
+ LDFLAGS_SAVED="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
+ export LDFLAGS
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
+$as_echo_n "checking whether the Boost::System library is available... " >&6; }
+if ${ax_cv_boost_system+:} false; 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
+
+ CXXFLAGS_SAVE=$CXXFLAGS
+ CXXFLAGS=
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <boost/system/error_code.hpp>
+int
+main ()
+{
+boost::system::error_category *a = 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ ax_cv_boost_system=yes
+else
+ ax_cv_boost_system=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CXXFLAGS=$CXXFLAGS_SAVE
+ 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
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
+$as_echo "$ax_cv_boost_system" >&6; }
+ if test "x$ax_cv_boost_system" = "xyes"; then
+
+
+
+$as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
+
+ BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
+
+ LDFLAGS_SAVE=$LDFLAGS
+ if test "x$ax_boost_user_system_lib" = "x"; then
+ for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
+else
+ link_system="no"
+fi
+
+ done
+ if test "x$link_system" != "xyes"; then
+ for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
+else
+ link_system="no"
+fi
+
+ done
+ fi
+
+ else
+ for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
+if eval \${$as_ac_Lib+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$ax_lib $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 exit ();
+int
+main ()
+{
+return exit ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_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; }
+if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
+ BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
+else
+ link_system="no"
+fi
+
+ done
+
+ fi
+ if test "x$ax_lib" = "x"; then
+ as_fn_error $? "Could not find a version of the boost system library!" "$LINENO" 5
+ fi
+ if test "x$link_system" = "xno"; then
+ as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
+ fi
+ fi
+
+ CPPFLAGS="$CPPFLAGS_SAVED"
+ LDFLAGS="$LDFLAGS_SAVED"
+ fi
+
+
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+fi
+SYSTEM_LIBORCUS=$SYSTEM_ORCUS
+
+
+
+
+
+# Check whether --with-system-graphite was given.
+if test "${with_system_graphite+set}" = set; then :
+ withval=$with_system_graphite;
+else
+ with_system_graphite="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which graphite to use" >&5
+$as_echo_n "checking which graphite to use... " >&6; }
+if test "$with_system_graphite" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_GRAPHITE=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE" >&5
+$as_echo_n "checking for GRAPHITE... " >&6; }
+
+if test -n "$GRAPHITE_CFLAGS"; then
+ pkg_cv_GRAPHITE_CFLAGS="$GRAPHITE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2 >= 0.9.3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "graphite2 >= 0.9.3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GRAPHITE_CFLAGS=`$PKG_CONFIG --cflags "graphite2 >= 0.9.3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$GRAPHITE_LIBS"; then
+ pkg_cv_GRAPHITE_LIBS="$GRAPHITE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2 >= 0.9.3\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "graphite2 >= 0.9.3") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GRAPHITE_LIBS=`$PKG_CONFIG --libs "graphite2 >= 0.9.3" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ GRAPHITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "graphite2 >= 0.9.3" 2>&1`
+ else
+ GRAPHITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "graphite2 >= 0.9.3" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GRAPHITE_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (graphite2 >= 0.9.3) were not met:
+
+$GRAPHITE_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables GRAPHITE_CFLAGS
+and GRAPHITE_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables GRAPHITE_CFLAGS
+and GRAPHITE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ GRAPHITE_CFLAGS=$pkg_cv_GRAPHITE_CFLAGS
+ GRAPHITE_LIBS=$pkg_cv_GRAPHITE_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ GRAPHITE_CFLAGS=$(printf '%s' "${GRAPHITE_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${GRAPHITE_LIBS}"
+ GRAPHITE_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_GRAPHITE=
+ GRAPHITE_CFLAGS="-I${WORKDIR}/UnpackedTarball/graphite/include -DGRAPHITE2_STATIC"
+ GRAPHITE_LIBS="-L${WORKDIR}/LinkTarget/StaticLibrary -lgraphite"
+ BUILD_TYPE="$BUILD_TYPE GRAPHITE"
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-harfbuzz was given.
+if test "${with_system_harfbuzz+set}" = set; then :
+ withval=$with_system_harfbuzz;
+else
+ with_system_harfbuzz="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which harfbuzz to use" >&5
+$as_echo_n "checking which harfbuzz to use... " >&6; }
+if test "$with_system_harfbuzz" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_HARFBUZZ=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
+$as_echo_n "checking for HARFBUZZ... " >&6; }
+
+if test -n "$HARFBUZZ_CFLAGS"; then
+ pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz-icu >= 0.9.42\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "harfbuzz-icu >= 0.9.42") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "harfbuzz-icu >= 0.9.42" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$HARFBUZZ_LIBS"; then
+ pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz-icu >= 0.9.42\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "harfbuzz-icu >= 0.9.42") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "harfbuzz-icu >= 0.9.42" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "harfbuzz-icu >= 0.9.42" 2>&1`
+ else
+ HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "harfbuzz-icu >= 0.9.42" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$HARFBUZZ_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (harfbuzz-icu >= 0.9.42) were not met:
+
+$HARFBUZZ_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables HARFBUZZ_CFLAGS
+and HARFBUZZ_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables HARFBUZZ_CFLAGS
+and HARFBUZZ_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
+ HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ HARFBUZZ_CFLAGS=$(printf '%s' "${HARFBUZZ_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${HARFBUZZ_LIBS}"
+ HARFBUZZ_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_HARFBUZZ=
+ HARFBUZZ_CFLAGS="-I${WORKDIR}/UnpackedTarball/harfbuzz/src"
+ HARFBUZZ_LIBS="-L${WORKDIR}/UnpackedTarball/harfbuzz/src/.libs -lharfbuzz"
+ BUILD_TYPE="$BUILD_TYPE HARFBUZZ"
+fi
+
+
+
+
+
+if test "$COM" = "MSC"; then # override the above
+ GRAPHITE_LIBS="${WORKDIR}/LinkTarget/StaticLibrary/graphite.lib"
+ HARFBUZZ_LIBS="${WORKDIR}/UnpackedTarball/harfbuzz/src/.libs/libharfbuzz.lib"
+fi
+
+if test "$with_system_harfbuzz" = "yes"; then
+ if test "$with_system_graphite" = "no"; then
+ as_fn_error $? "--with-system-graphite must be used when --with-system-harfbuzz is used" "$LINENO" 5
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system Harfbuzz is built with Graphite support" >&5
+$as_echo_n "checking whether system Harfbuzz is built with Graphite support... " >&6; }
+ _save_libs="$LIBS"
+ _save_cflags="$CFLAGS"
+ LIBS="$LIBS $HARFBUZZ_LIBS"
+ CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
+ ac_fn_c_check_func "$LINENO" "hb_graphite2_face_get_gr_face" "ac_cv_func_hb_graphite2_face_get_gr_face"
+if test "x$ac_cv_func_hb_graphite2_face_get_gr_face" = xyes; then :
+
+else
+ as_fn_error $? "Harfbuzz needs to be built with Graphite support." "$LINENO" 5
+fi
+
+ LIBS="$_save_libs"
+ CFLAGS="$_save_cflags"
+else
+ if test "$with_system_graphite" = "yes"; then
+ as_fn_error $? "--without-system-graphite must be used when --without-system-harfbuzz is used" "$LINENO" 5
+ fi
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use X11" >&5
+$as_echo_n "checking whether to use X11... " >&6; }
+if test "$USING_X11" = TRUE; then
+ $as_echo "#define HAVE_FEATURE_X11 1" >>confdefs.h
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USING_X11" >&5
+$as_echo "$USING_X11" >&6; }
+
+if test "$USING_X11" = TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
+$as_echo_n "checking for X... " >&6; }
+
+
+# Check whether --with-x was given.
+if test "${with_x+set}" = set; then :
+ withval=$with_x;
+fi
+
+# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
+if test "x$with_x" = xno; then
+ # The user explicitly disabled X.
+ have_x=disabled
+else
+ case $x_includes,$x_libraries in #(
+ *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
+ *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ # One or both of the vars are not set, and there is no cached value.
+ac_x_includes=no ac_x_libraries=no
+rm -f -r conftest.dir
+if mkdir conftest.dir; then
+ cd conftest.dir
+ cat >Imakefile <<'_ACEOF'
+incroot:
+ @echo incroot='${INCROOT}'
+usrlibdir:
+ @echo usrlibdir='${USRLIBDIR}'
+libdir:
+ @echo libdir='${LIBDIR}'
+_ACEOF
+ if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
+ # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+ for ac_var in incroot usrlibdir libdir; do
+ eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
+ done
+ # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
+ for ac_extension in a so sl dylib la dll; do
+ if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
+ test -f "$ac_im_libdir/libX11.$ac_extension"; then
+ ac_im_usrlibdir=$ac_im_libdir; break
+ fi
+ done
+ # Screen out bogus values from the imake configuration. They are
+ # bogus both because they are the default anyway, and because
+ # using them would break gcc on systems where it needs fixed includes.
+ case $ac_im_incroot in
+ /usr/include) ac_x_includes= ;;
+ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
+ esac
+ case $ac_im_usrlibdir in
+ /usr/lib | /usr/lib64 | /lib | /lib64) ;;
+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
+ esac
+ fi
+ cd ..
+ rm -f -r conftest.dir
+fi
+
+# Standard set of common directories for X headers.
+# Check X11 before X11Rn because it is often a symlink to the current release.
+ac_x_header_dirs='
+/usr/X11/include
+/usr/X11R7/include
+/usr/X11R6/include
+/usr/X11R5/include
+/usr/X11R4/include
+
+/usr/include/X11
+/usr/include/X11R7
+/usr/include/X11R6
+/usr/include/X11R5
+/usr/include/X11R4
+
+/usr/local/X11/include
+/usr/local/X11R7/include
+/usr/local/X11R6/include
+/usr/local/X11R5/include
+/usr/local/X11R4/include
+
+/usr/local/include/X11
+/usr/local/include/X11R7
+/usr/local/include/X11R6
+/usr/local/include/X11R5
+/usr/local/include/X11R4
+
+/usr/X386/include
+/usr/x386/include
+/usr/XFree86/include/X11
+
+/usr/include
+/usr/local/include
+/usr/unsupported/include
+/usr/athena/include
+/usr/local/x11r5/include
+/usr/lpp/Xamples/include
+
+/usr/openwin/include
+/usr/openwin/share/include'
+
+if test "$ac_x_includes" = no; then
+ # Guess where to find include files, by looking for Xlib.h.
+ # First, try using that file with no special directory specified.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # We can compile using X headers with no special include directory.
+ac_x_includes=
+else
+ for ac_dir in $ac_x_header_dirs; do
+ if test -r "$ac_dir/X11/Xlib.h"; then
+ ac_x_includes=$ac_dir
+ break
+ fi
+done
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+fi # $ac_x_includes = no
+
+if test "$ac_x_libraries" = no; then
+ # Check for the libraries.
+ # See if we find them without any special options.
+ # Don't add to $LIBS permanently.
+ ac_save_LIBS=$LIBS
+ LIBS="-lX11 $LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+int
+main ()
+{
+XrmInitialize ()
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ LIBS=$ac_save_LIBS
+# We can link X programs with no special library path.
+ac_x_libraries=
+else
+ LIBS=$ac_save_LIBS
+for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
+do
+ # Don't even attempt the hair of trying to link an X program!
+ for ac_extension in a so sl dylib la dll; do
+ if test -r "$ac_dir/libX11.$ac_extension"; then
+ ac_x_libraries=$ac_dir
+ break 2
+ fi
+ done
+done
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi # $ac_x_libraries = no
+
+case $ac_x_includes,$ac_x_libraries in #(
+ no,* | *,no | *\'*)
+ # Didn't find X, or a directory has "'" in its name.
+ ac_cv_have_x="have_x=no";; #(
+ *)
+ # Record where we found X for the cache.
+ ac_cv_have_x="have_x=yes\
+ ac_x_includes='$ac_x_includes'\
+ ac_x_libraries='$ac_x_libraries'"
+esac
+fi
+;; #(
+ *) have_x=yes;;
+ esac
+ eval "$ac_cv_have_x"
+fi # $with_x != no
+
+if test "$have_x" != yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
+$as_echo "$have_x" >&6; }
+ no_x=yes
+else
+ # If each of the values was on the command line, it overrides each guess.
+ test "x$x_includes" = xNONE && x_includes=$ac_x_includes
+ test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
+ # Update the cache value to reflect the command line values.
+ ac_cv_have_x="have_x=yes\
+ ac_x_includes='$x_includes'\
+ ac_x_libraries='$x_libraries'"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
+$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
+fi
+
+ if test "$no_x" = yes; then
+ # Not all programs may use this symbol, but it does not hurt to define it.
+
+$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
+
+ X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+else
+ if test -n "$x_includes"; then
+ X_CFLAGS="$X_CFLAGS -I$x_includes"
+ fi
+
+ # It would also be nice to do this for all -L options, not just this one.
+ if test -n "$x_libraries"; then
+ X_LIBS="$X_LIBS -L$x_libraries"
+ # For Solaris; some versions of Sun CC require a space after -R and
+ # others require no space. Words are not sufficient . . . .
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
+$as_echo_n "checking whether -R must be followed by a space... " >&6; }
+ ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
+ ac_xsave_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ X_LIBS="$X_LIBS -R$x_libraries"
+else
+ LIBS="$ac_xsave_LIBS -R $x_libraries"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ X_LIBS="$X_LIBS -R $x_libraries"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
+$as_echo "neither works" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_c_werror_flag=$ac_xsave_c_werror_flag
+ LIBS=$ac_xsave_LIBS
+ fi
+
+ # Check for system-dependent libraries X programs must link with.
+ # Do this before checking for the system-independent R6 libraries
+ # (-lICE), since we may need -lsocket or whatever for X linking.
+
+ if test "$ISC" = yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
+ else
+ # Martyn Johnson says this is needed for Ultrix, if the X
+ # libraries were built with DECnet support. And Karl Berry says
+ # the Alpha needs dnet_stub (dnet does not exist).
+ ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
+ 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 XOpenDisplay ();
+int
+main ()
+{
+return XOpenDisplay ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
+$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
+if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet $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 dnet_ntoa ();
+int
+main ()
+{
+return dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dnet_dnet_ntoa=yes
+else
+ ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5
+$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
+if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
+fi
+
+ if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
+$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
+if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet_stub $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 dnet_ntoa ();
+int
+main ()
+{
+return dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dnet_stub_dnet_ntoa=yes
+else
+ ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5
+$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
+if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
+fi
+
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$ac_xsave_LIBS"
+
+ # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
+ # to get the SysV transport functions.
+ # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
+ # needs -lnsl.
+ # The nsl library prevents programs from opening the X display
+ # on Irix 5.2, according to T.E. Dickey.
+ # The functions gethostbyname, getservbyname, and inet_addr are
+ # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
+ ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
+if test "x$ac_cv_func_gethostbyname" = xyes; then :
+
+fi
+
+ if test $ac_cv_func_gethostbyname = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
+$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
+if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lnsl $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 gethostbyname ();
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_nsl_gethostbyname=yes
+else
+ ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
+$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
+if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
+fi
+
+ if test $ac_cv_lib_nsl_gethostbyname = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
+$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
+if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lbsd $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 gethostbyname ();
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_bsd_gethostbyname=yes
+else
+ ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
+$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
+if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
+fi
+
+ fi
+ fi
+
+ # lieder@skyler.mavd.honeywell.com says without -lsocket,
+ # socket/setsockopt and other routines are undefined under SCO ODT
+ # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
+ # on later versions), says Simon Leinen: it contains gethostby*
+ # variants that don't use the name server (or something). -lsocket
+ # must be given before -lnsl if both are needed. We assume that
+ # if connect needs -lnsl, so does gethostbyname.
+ ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
+if test "x$ac_cv_func_connect" = xyes; then :
+
+fi
+
+ if test $ac_cv_func_connect = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
+$as_echo_n "checking for connect in -lsocket... " >&6; }
+if ${ac_cv_lib_socket_connect+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsocket $X_EXTRA_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 connect ();
+int
+main ()
+{
+return connect ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_socket_connect=yes
+else
+ ac_cv_lib_socket_connect=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_socket_connect" >&5
+$as_echo "$ac_cv_lib_socket_connect" >&6; }
+if test "x$ac_cv_lib_socket_connect" = xyes; then :
+ X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
+fi
+
+ fi
+
+ # Guillermo Gomez says -lposix is necessary on A/UX.
+ ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
+if test "x$ac_cv_func_remove" = xyes; then :
+
+fi
+
+ if test $ac_cv_func_remove = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
+$as_echo_n "checking for remove in -lposix... " >&6; }
+if ${ac_cv_lib_posix_remove+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lposix $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 remove ();
+int
+main ()
+{
+return remove ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_posix_remove=yes
+else
+ ac_cv_lib_posix_remove=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_posix_remove" >&5
+$as_echo "$ac_cv_lib_posix_remove" >&6; }
+if test "x$ac_cv_lib_posix_remove" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+fi
+
+ fi
+
+ # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
+ ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
+if test "x$ac_cv_func_shmat" = xyes; then :
+
+fi
+
+ if test $ac_cv_func_shmat = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
+$as_echo_n "checking for shmat in -lipc... " >&6; }
+if ${ac_cv_lib_ipc_shmat+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lipc $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 shmat ();
+int
+main ()
+{
+return shmat ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_ipc_shmat=yes
+else
+ ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
+$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
+if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+fi
+
+ fi
+ fi
+
+ # Check for libraries that X11R6 Xt/Xaw programs need.
+ ac_save_LDFLAGS=$LDFLAGS
+ test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
+ # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
+ # check for ICE first), but we must link in the order -lSM -lICE or
+ # we get undefined symbols. So assume we have SM if we have ICE.
+ # These have to be linked with before -lX11, unlike the other
+ # libraries we check for below, so use a different variable.
+ # John Interrante, Karl Berry
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
+$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
+if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lICE $X_EXTRA_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 IceConnectionNumber ();
+int
+main ()
+{
+return IceConnectionNumber ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_ICE_IceConnectionNumber=yes
+else
+ ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5
+$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
+if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
+ X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+fi
+
+ LDFLAGS=$ac_save_LDFLAGS
+
+fi
+
+ CPPFLAGS="$CPPFLAGS $X_CFLAGS"
+
+ if test -z "$x_includes"; then
+ x_includes="default_x_includes"
+ fi
+ if test -z "$x_libraries"; then
+ x_libraries="default_x_libraries"
+ fi
+ CFLAGS="$CFLAGS $X_CFLAGS"
+ LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
+$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
+if ${ac_cv_lib_X11_XOpenDisplay+:} false; 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 XOpenDisplay ();
+int
+main ()
+{
+return XOpenDisplay ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_X11_XOpenDisplay=yes
+else
+ ac_cv_lib_X11_XOpenDisplay=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_XOpenDisplay" >&5
+$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
+if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
+ x_libs="-lX11 $X_EXTRA_LIBS"
+else
+ as_fn_error $? "X Development libraries not found" "$LINENO" 5
+fi
+
+else
+ x_includes="no_x_includes"
+ x_libraries="no_x_libraries"
+fi
+
+if test "$USING_X11" = TRUE; then
+ for ac_header in X11/extensions/shape.h
+do :
+ ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/extensions/shape.h>
+"
+if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_X11_EXTENSIONS_SHAPE_H 1
+_ACEOF
+
+else
+ as_fn_error $? "libXext headers not found" "$LINENO" 5
+fi
+
+done
+
+
+ # vcl needs ICE and SM
+ for ac_header in X11/ICE/ICElib.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "X11/ICE/ICElib.h" "ac_cv_header_X11_ICE_ICElib_h" "$ac_includes_default"
+if test "x$ac_cv_header_X11_ICE_ICElib_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_X11_ICE_ICELIB_H 1
+_ACEOF
+
+else
+ as_fn_error $? "libICE headers not found" "$LINENO" 5
+fi
+
+done
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
+$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
+if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lICE $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 IceConnectionNumber ();
+int
+main ()
+{
+return IceConnectionNumber ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_ICE_IceConnectionNumber=yes
+else
+ ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5
+$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
+if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
+ :
+else
+ as_fn_error $? "ICE library not found" "$LINENO" 5
+fi
+
+ for ac_header in X11/SM/SMlib.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
+if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_X11_SM_SMLIB_H 1
+_ACEOF
+
+else
+ as_fn_error $? "libSM headers not found" "$LINENO" 5
+fi
+
+done
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
+$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
+if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lSM $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 SmcOpenConnection ();
+int
+main ()
+{
+return SmcOpenConnection ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_SM_SmcOpenConnection=yes
+else
+ ac_cv_lib_SM_SmcOpenConnection=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_SM_SmcOpenConnection" >&5
+$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
+if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
+ :
+else
+ as_fn_error $? "SM library not found" "$LINENO" 5
+fi
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Xrender" >&5
+$as_echo_n "checking whether to use Xrender... " >&6; }
+if test "$USING_X11" = TRUE -a "$test_xrender" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
+$as_echo_n "checking for XRENDER... " >&6; }
+
+if test -n "$XRENDER_CFLAGS"; then
+ pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$XRENDER_LIBS"; then
+ pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
+ else
+ XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$XRENDER_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (xrender) were not met:
+
+$XRENDER_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables XRENDER_CFLAGS
+and XRENDER_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables XRENDER_CFLAGS
+and XRENDER_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
+ XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ XRENDER_CFLAGS=$(printf '%s' "$XRENDER_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${XRENDER_LIBS}"
+ XRENDER_LIBS="${filteredlibs}"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryVersion in -lXrender" >&5
+$as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
+if ${ac_cv_lib_Xrender_XRenderQueryVersion+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXrender $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 XRenderQueryVersion ();
+int
+main ()
+{
+return XRenderQueryVersion ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_Xrender_XRenderQueryVersion=yes
+else
+ ac_cv_lib_Xrender_XRenderQueryVersion=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_Xrender_XRenderQueryVersion" >&5
+$as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
+if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = xyes; then :
+ :
+else
+ as_fn_error $? "libXrender not found or functional" "$LINENO" 5
+fi
+
+ ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
+if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
+
+else
+ as_fn_error $? "Xrender not found. install X" "$LINENO" 5
+fi
+
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RandR support" >&5
+$as_echo_n "checking whether to enable RandR support... " >&6; }
+if test "$USING_X11" = TRUE -a "$test_randr" = "yes" -a \( "$enable_randr" = "yes" -o "$enable_randr" = "TRUE" \); then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
+$as_echo_n "checking for XRANDR... " >&6; }
+
+if test -n "$XRANDR_CFLAGS"; then
+ pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$XRANDR_LIBS"; then
+ pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2" 2>&1`
+ else
+ XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$XRANDR_PKG_ERRORS" >&5
+
+ ENABLE_RANDR=""
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_RANDR=""
+else
+ XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
+ XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_RANDR="TRUE"
+fi
+ if test "$ENABLE_RANDR" != "TRUE"; then
+ ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
+if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
+
+else
+ as_fn_error $? "X11/extensions/Xrandr.h could not be found. X11 dev missing?" "$LINENO" 5
+fi
+
+
+ XRANDR_CFLAGS=" "
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
+$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
+if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXrandr $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 XRRQueryExtension ();
+int
+main ()
+{
+return XRRQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_Xrandr_XRRQueryExtension=yes
+else
+ ac_cv_lib_Xrandr_XRRQueryExtension=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_Xrandr_XRRQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
+ :
+else
+ as_fn_error $? "libXrandr not found or functional" "$LINENO" 5
+fi
+
+ XRANDR_LIBS="-lXrandr "
+ ENABLE_RANDR="TRUE"
+ fi
+ XRANDR_CFLAGS=$(printf '%s' "$XRANDR_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${XRANDR_LIBS}"
+ XRANDR_LIBS="${filteredlibs}"
+else
+ ENABLE_RANDR=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+if test "$enable_neon" = "no" -o "$enable_mpl_subset" = "yes"; then
+ if test -z "$WITH_WEBDAV"; then
+ WITH_WEBDAV="serf"
+ fi
+fi
+if test $_os = iOS -o $_os = Android; then
+ WITH_WEBDAV="no"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for webdav library" >&5
+$as_echo_n "checking for webdav library... " >&6; }
+case "$WITH_WEBDAV" in
+serf)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: serf" >&5
+$as_echo "serf" >&6; }
+ # Check for system apr-util
+
+
+# Check whether --with-system-apr was given.
+if test "${with_system_apr+set}" = set; then :
+ withval=$with_system_apr;
+else
+ with_system_apr="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which apr to use" >&5
+$as_echo_n "checking which apr to use... " >&6; }
+if test "$with_system_apr" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_APR=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
+$as_echo_n "checking for APR... " >&6; }
+
+if test -n "$APR_CFLAGS"; then
+ pkg_cv_APR_CFLAGS="$APR_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-util-1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "apr-util-1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_APR_CFLAGS=`$PKG_CONFIG --cflags "apr-util-1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$APR_LIBS"; then
+ pkg_cv_APR_LIBS="$APR_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"apr-util-1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "apr-util-1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_APR_LIBS=`$PKG_CONFIG --libs "apr-util-1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ APR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "apr-util-1" 2>&1`
+ else
+ APR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "apr-util-1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$APR_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (apr-util-1) were not met:
+
+$APR_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables APR_CFLAGS
+and APR_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables APR_CFLAGS
+and APR_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ APR_CFLAGS=$pkg_cv_APR_CFLAGS
+ APR_LIBS=$pkg_cv_APR_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ APR_CFLAGS=$(printf '%s' "${APR_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${APR_LIBS}"
+ APR_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_APR=
+ APR_CFLAGS="-I${WORKDIR}/UnpackedTarball/apr/include -I${WORKDIR}/UnpackedTarball/apr_util/include"
+ APR_LIBS="-L${WORKDIR}/UnpackedTarball/apr/.libs -lapr-1 -L${WORKDIR}/UnpackedTarball/apr_util/.libs -laprutil-1"
+ BUILD_TYPE="$BUILD_TYPE APR"
+fi
+
+
+
+
+ if test "$COM" = "MSC"; then
+ APR_LIB_DIR="LibR"
+ test -n "${MSVC_USE_DEBUG_RUNTIME}" && APR_LIB_DIR="LibD"
+ APR_LIBS="${WORKDIR}/UnpackedTarball/apr/${APR_LIB_DIR}/apr-1.lib ${WORKDIR}/UnpackedTarball/apr_util/${APR_LIB_DIR}/aprutil-1.lib"
+ fi
+
+ # Check for system serf
+
+
+# Check whether --with-system-serf was given.
+if test "${with_system_serf+set}" = set; then :
+ withval=$with_system_serf;
+else
+ with_system_serf="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which serf to use" >&5
+$as_echo_n "checking which serf to use... " >&6; }
+if test "$with_system_serf" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_SERF=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SERF" >&5
+$as_echo_n "checking for SERF... " >&6; }
+
+if test -n "$SERF_CFLAGS"; then
+ pkg_cv_SERF_CFLAGS="$SERF_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"serf-1 >= 1.1.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "serf-1 >= 1.1.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_SERF_CFLAGS=`$PKG_CONFIG --cflags "serf-1 >= 1.1.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$SERF_LIBS"; then
+ pkg_cv_SERF_LIBS="$SERF_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"serf-1 >= 1.1.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "serf-1 >= 1.1.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_SERF_LIBS=`$PKG_CONFIG --libs "serf-1 >= 1.1.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ SERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "serf-1 >= 1.1.0" 2>&1`
+ else
+ SERF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "serf-1 >= 1.1.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$SERF_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (serf-1 >= 1.1.0) were not met:
+
+$SERF_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables SERF_CFLAGS
+and SERF_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables SERF_CFLAGS
+and SERF_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ SERF_CFLAGS=$pkg_cv_SERF_CFLAGS
+ SERF_LIBS=$pkg_cv_SERF_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ SERF_CFLAGS=$(printf '%s' "${SERF_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${SERF_LIBS}"
+ SERF_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_SERF=
+ SERF_CFLAGS="-I${WORKDIR}/UnpackedTarball/serf"
+ SERF_LIBS="-L${WORKDIR}/UnpackedTarball/serf/.libs -lserf-1"
+ BUILD_TYPE="$BUILD_TYPE SERF"
+fi
+
+
+
+
+ if test "$COM" = "MSC"; then
+ SERF_LIB_DIR="Release"
+ test -n "${MSVC_USE_DEBUG_RUNTIME}" && SERF_LIB_DIR="Debug"
+ SERF_LIBS="${WORKDIR}/UnpackedTarball/serf/${SERF_LIB_DIR}/serf-1.lib"
+ fi
+ ;;
+neon)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: neon" >&5
+$as_echo "neon" >&6; }
+ # Check for system neon
+
+
+# Check whether --with-system-neon was given.
+if test "${with_system_neon+set}" = set; then :
+ withval=$with_system_neon;
+else
+ with_system_neon="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which neon to use" >&5
+$as_echo_n "checking which neon to use... " >&6; }
+if test "$with_system_neon" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_NEON=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
+$as_echo_n "checking for NEON... " >&6; }
+
+if test -n "$NEON_CFLAGS"; then
+ pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.26.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "neon >= 0.26.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.26.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$NEON_LIBS"; then
+ pkg_cv_NEON_LIBS="$NEON_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.26.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "neon >= 0.26.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.26.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.26.0" 2>&1`
+ else
+ NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.26.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$NEON_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (neon >= 0.26.0) were not met:
+
+$NEON_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables NEON_CFLAGS
+and NEON_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables NEON_CFLAGS
+and NEON_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
+ NEON_LIBS=$pkg_cv_NEON_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ NEON_CFLAGS=$(printf '%s' "${NEON_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${NEON_LIBS}"
+ NEON_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_NEON=
+ NEON_CFLAGS=
+ NEON_LIBS=
+ BUILD_TYPE="$BUILD_TYPE NEON"
+fi
+
+
+
+
+ if test "$with_system_neon" = "yes"; then
+ NEON_VERSION="`$PKG_CONFIG --modversion neon | $SED 's/\.//g'`"
+ else
+ NEON_VERSION=0295
+ fi
+
+ ;;
+*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none, disabled" >&5
+$as_echo "none, disabled" >&6; }
+ WITH_WEBDAV=""
+ ;;
+esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to execute CVE tests" >&5
+$as_echo_n "checking whether to execute CVE tests... " >&6; }
+# If not explicitly enabled or disabled, default
+if test -z "$enable_cve_tests"; then
+ case "$OS" in
+ WNT)
+ # Default cves off for Windows with its wild and wonderful
+ # variety of AV software kicking in and panicking
+ enable_cve_tests=no
+ ;;
+ *)
+ # otherwise yes
+ enable_cve_tests=yes
+ ;;
+ esac
+fi
+if test "$enable_cve_tests" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ DISABLE_CVE_TESTS=TRUE
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to execute chart XShape tests" >&5
+$as_echo_n "checking whether to execute chart XShape tests... " >&6; }
+if test "$enable_chart_tests" = "yes" -o '(' "$_os" = "WINNT" -a "$enable_chart_tests" != "no" ')'; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_CHART_TESTS=TRUE
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+DISABLE_OPENSSL=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenSSL usage" >&5
+$as_echo_n "checking whether to disable OpenSSL usage... " >&6; }
+if test "$enable_openssl" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ if test "$_os" = Darwin ; then
+ # OpenSSL is deprecated when building for 10.7 or later.
+ #
+ # http://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion
+ # http://stackoverflow.com/questions/7475914/libcrypto-deprecated-on-mac-os-x-10-7-lion
+
+ with_system_openssl=no
+
+
+# Check whether --with-system-openssl was given.
+if test "${with_system_openssl+set}" = set; then :
+ withval=$with_system_openssl;
+else
+ with_system_openssl="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which openssl to use" >&5
+$as_echo_n "checking which openssl to use... " >&6; }
+if test "$with_system_openssl" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_OPENSSL=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
+$as_echo_n "checking for OPENSSL... " >&6; }
+
+if test -n "$OPENSSL_CFLAGS"; then
+ pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$OPENSSL_LIBS"; then
+ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
+ else
+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$OPENSSL_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (openssl) were not met:
+
+$OPENSSL_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables OPENSSL_CFLAGS
+and OPENSSL_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables OPENSSL_CFLAGS
+and OPENSSL_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
+ OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ OPENSSL_CFLAGS=$(printf '%s' "${OPENSSL_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${OPENSSL_LIBS}"
+ OPENSSL_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_OPENSSL=
+ OPENSSL_CFLAGS=
+ OPENSSL_LIBS=
+ BUILD_TYPE="$BUILD_TYPE OPENSSL"
+fi
+
+
+
+
+ elif test "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o "$_os" = "DragonFly" \
+ && test "$with_system_openssl" != "no"; then
+ with_system_openssl=yes
+ SYSTEM_OPENSSL=TRUE
+ OPENSSL_CFLAGS=
+ OPENSSL_LIBS="-lssl -lcrypto"
+ else
+
+
+# Check whether --with-system-openssl was given.
+if test "${with_system_openssl+set}" = set; then :
+ withval=$with_system_openssl;
+else
+ with_system_openssl="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which openssl to use" >&5
+$as_echo_n "checking which openssl to use... " >&6; }
+if test "$with_system_openssl" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_OPENSSL=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
+$as_echo_n "checking for OPENSSL... " >&6; }
+
+if test -n "$OPENSSL_CFLAGS"; then
+ pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$OPENSSL_LIBS"; then
+ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
+ else
+ OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$OPENSSL_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (openssl) were not met:
+
+$OPENSSL_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables OPENSSL_CFLAGS
+and OPENSSL_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables OPENSSL_CFLAGS
+and OPENSSL_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
+ OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ OPENSSL_CFLAGS=$(printf '%s' "${OPENSSL_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${OPENSSL_LIBS}"
+ OPENSSL_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_OPENSSL=
+ OPENSSL_CFLAGS=
+ OPENSSL_LIBS=
+ BUILD_TYPE="$BUILD_TYPE OPENSSL"
+fi
+
+
+
+
+ fi
+ if test "$with_system_openssl" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether openssl supports SHA512" >&5
+$as_echo_n "checking whether openssl supports SHA512... " >&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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <openssl/sha.h>
+int
+main ()
+{
+
+ SHA512_CTX context;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ as_fn_error $? "no, openssl too old. Need >= 0.9.8." "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ DISABLE_OPENSSL=TRUE
+
+ # warn that although OpenSSL is disabled, system libraries may depend on it
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL has been disabled. No code compiled here will make use of it but system libraries may create indirect dependencies" >&5
+$as_echo "$as_me: WARNING: OpenSSL has been disabled. No code compiled here will make use of it but system libraries may create indirect dependencies" >&2;}
+ add_warning "OpenSSL has been disabled. No code compiled here will make use of it but system libraries may create indirect dependencies"
+fi
+
+
+
+if test "$enable_cipher_openssl_backend" = yes && test "$DISABLE_OPENSSL" = TRUE; then
+ if test "$libo_fuzzed_enable_cipher_openssl_backend" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Resetting --enable-cipher-openssl-backend=no" >&5
+$as_echo "$as_me: Resetting --enable-cipher-openssl-backend=no" >&6;}
+ enable_cipher_openssl_backend=no
+ else
+ as_fn_error $? "--enable-cipher-openssl-backend needs OpenSSL, but --disable-openssl was given." "$LINENO" 5
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the OpenSSL backend for rtl/cipher.h" >&5
+$as_echo_n "checking whether to enable the OpenSSL backend for rtl/cipher.h... " >&6; }
+ENABLE_CIPHER_OPENSSL_BACKEND=
+if test "$enable_cipher_openssl_backend" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_CIPHER_OPENSSL_BACKEND=TRUE
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gnutls" >&5
+$as_echo_n "checking whether to use gnutls... " >&6; }
+if test "$WITH_WEBDAV" = "neon" -a "$with_system_neon" = no -a "$enable_openssl" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+# Check whether --with-libgcrypt-prefix was given.
+if test "${with_libgcrypt_prefix+set}" = set; then :
+ withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
+else
+ libgcrypt_config_prefix=""
+fi
+
+ if test x$libgcrypt_config_prefix != x ; then
+ if test x${LIBGCRYPT_CONFIG+set} != xset ; then
+ LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
+ fi
+ fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}libgcrypt-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 ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $LIBGCRYPT_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_LIBGCRYPT_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
+LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
+if test -n "$LIBGCRYPT_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
+$as_echo "$LIBGCRYPT_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_LIBGCRYPT_CONFIG"; then
+ ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
+ # Extract the first word of "libgcrypt-config", so it can be a program name with args.
+set dummy libgcrypt-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 ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ac_pt_LIBGCRYPT_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_ac_pt_LIBGCRYPT_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_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
+if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
+$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
+ LIBGCRYPT_CONFIG="no"
+ 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
+ LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
+ fi
+else
+ LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
+fi
+
+ tmp=1:1.2.0
+ if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
+ req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
+ min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
+ else
+ req_libgcrypt_api=0
+ min_libgcrypt_version="$tmp"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
+$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
+ ok=no
+ if test "$LIBGCRYPT_CONFIG" != "no" ; then
+ req_major=`echo $min_libgcrypt_version | \
+ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
+ req_minor=`echo $min_libgcrypt_version | \
+ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
+ req_micro=`echo $min_libgcrypt_version | \
+ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
+ libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
+ major=`echo $libgcrypt_config_version | \
+ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
+ minor=`echo $libgcrypt_config_version | \
+ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
+ micro=`echo $libgcrypt_config_version | \
+ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
+ if test "$major" -gt "$req_major"; then
+ ok=yes
+ else
+ if test "$major" -eq "$req_major"; then
+ if test "$minor" -gt "$req_minor"; then
+ ok=yes
+ else
+ if test "$minor" -eq "$req_minor"; then
+ if test "$micro" -ge "$req_micro"; then
+ ok=yes
+ fi
+ fi
+ fi
+ fi
+ fi
+ fi
+ if test $ok = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
+$as_echo "yes ($libgcrypt_config_version)" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ if test $ok = yes; then
+ # If we have a recent libgcrypt, we should also check that the
+ # API is compatible
+ if test "$req_libgcrypt_api" -gt 0 ; then
+ tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
+ if test "$tmp" -gt 0 ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
+$as_echo_n "checking LIBGCRYPT API version... " >&6; }
+ if test "$req_libgcrypt_api" -eq "$tmp" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
+$as_echo "okay" >&6; }
+ else
+ ok=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
+$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
+ fi
+ fi
+ fi
+ fi
+ if test $ok = yes; then
+ LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
+ LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
+ :
+ if test x"$host" != x ; then
+ libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
+ if test x"$libgcrypt_config_host" != xnone ; then
+ if test x"$libgcrypt_config_host" != x"$host" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
+***
+*** The config script $LIBGCRYPT_CONFIG was
+*** built for $libgcrypt_config_host and thus may not match the
+*** used host $host.
+*** You may want to use the configure option --with-libgcrypt-prefix
+*** to specify a matching config script.
+***" >&5
+$as_echo "$as_me: WARNING:
+***
+*** The config script $LIBGCRYPT_CONFIG was
+*** built for $libgcrypt_config_host and thus may not match the
+*** used host $host.
+*** You may want to use the configure option --with-libgcrypt-prefix
+*** to specify a matching config script.
+***" >&2;}
+ fi
+ fi
+ fi
+ else
+ LIBGCRYPT_CFLAGS=""
+ LIBGCRYPT_LIBS=""
+ :
+ fi
+
+
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
+$as_echo_n "checking for GNUTLS... " >&6; }
+
+if test -n "$GNUTLS_CFLAGS"; then
+ pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$GNUTLS_LIBS"; then
+ pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
+ else
+ GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GNUTLS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Disabling OpenSSL was requested, but GNUTLS is not
+ available in the system to use as replacement." "$LINENO" 5
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "Disabling OpenSSL was requested, but GNUTLS is not
+ available in the system to use as replacement." "$LINENO" 5
+else
+ GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
+ GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ FilterLibs "${LIBGCRYPT_LIBS}"
+ LIBGCRYPT_LIBS="${filteredlibs}"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+
+# Check whether --with-system-redland was given.
+if test "${with_system_redland+set}" = set; then :
+ withval=$with_system_redland;
+else
+ with_system_redland="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which redland to use" >&5
+$as_echo_n "checking which redland to use... " >&6; }
+if test "$with_system_redland" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_REDLAND=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for REDLAND" >&5
+$as_echo_n "checking for REDLAND... " >&6; }
+
+if test -n "$REDLAND_CFLAGS"; then
+ pkg_cv_REDLAND_CFLAGS="$REDLAND_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"redland >= 1.0.8 raptor2 >= 2.0.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "redland >= 1.0.8 raptor2 >= 2.0.7") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_REDLAND_CFLAGS=`$PKG_CONFIG --cflags "redland >= 1.0.8 raptor2 >= 2.0.7" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$REDLAND_LIBS"; then
+ pkg_cv_REDLAND_LIBS="$REDLAND_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"redland >= 1.0.8 raptor2 >= 2.0.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "redland >= 1.0.8 raptor2 >= 2.0.7") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_REDLAND_LIBS=`$PKG_CONFIG --libs "redland >= 1.0.8 raptor2 >= 2.0.7" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ REDLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "redland >= 1.0.8 raptor2 >= 2.0.7" 2>&1`
+ else
+ REDLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "redland >= 1.0.8 raptor2 >= 2.0.7" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$REDLAND_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (redland >= 1.0.8 raptor2 >= 2.0.7) were not met:
+
+$REDLAND_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables REDLAND_CFLAGS
+and REDLAND_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables REDLAND_CFLAGS
+and REDLAND_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ REDLAND_CFLAGS=$pkg_cv_REDLAND_CFLAGS
+ REDLAND_LIBS=$pkg_cv_REDLAND_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ REDLAND_CFLAGS=$(printf '%s' "${REDLAND_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${REDLAND_LIBS}"
+ REDLAND_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_REDLAND=
+ REDLAND_CFLAGS=
+ REDLAND_LIBS=
+ BUILD_TYPE="$BUILD_TYPE REDLAND"
+fi
+
+
+
+
+if test "$with_system_redland" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librdf_world_set_raptor_init_handler in -lrdf" >&5
+$as_echo_n "checking for librdf_world_set_raptor_init_handler in -lrdf... " >&6; }
+if ${ac_cv_lib_rdf_librdf_world_set_raptor_init_handler+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lrdf $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 librdf_world_set_raptor_init_handler ();
+int
+main ()
+{
+return librdf_world_set_raptor_init_handler ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_rdf_librdf_world_set_raptor_init_handler=yes
+else
+ ac_cv_lib_rdf_librdf_world_set_raptor_init_handler=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_rdf_librdf_world_set_raptor_init_handler" >&5
+$as_echo "$ac_cv_lib_rdf_librdf_world_set_raptor_init_handler" >&6; }
+if test "x$ac_cv_lib_rdf_librdf_world_set_raptor_init_handler" = xyes; then :
+ :
+else
+ as_fn_error $? "librdf too old. Need >= 1.0.16" "$LINENO" 5
+fi
+
+else
+ RAPTOR_MAJOR="0"
+ RASQAL_MAJOR="3"
+ REDLAND_MAJOR="0"
+fi
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libhunspell to use" >&5
+$as_echo_n "checking which libhunspell to use... " >&6; }
+if test "$_os" = iOS; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+elif test "$with_system_hunspell" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_HUNSPELL=TRUE
+ 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
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUNSPELL" >&5
+$as_echo_n "checking for HUNSPELL... " >&6; }
+
+if test -n "$HUNSPELL_CFLAGS"; then
+ pkg_cv_HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$HUNSPELL_LIBS"; then
+ pkg_cv_HUNSPELL_LIBS="$HUNSPELL_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_HUNSPELL_LIBS=`$PKG_CONFIG --libs "hunspell" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hunspell" 2>&1`
+ else
+ HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hunspell" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$HUNSPELL_PKG_ERRORS" >&5
+
+ HUNSPELL_PC=""
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ HUNSPELL_PC=""
+else
+ HUNSPELL_CFLAGS=$pkg_cv_HUNSPELL_CFLAGS
+ HUNSPELL_LIBS=$pkg_cv_HUNSPELL_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ HUNSPELL_PC="TRUE"
+fi
+ if test "$HUNSPELL_PC" != "TRUE"; then
+ ac_fn_cxx_check_header_mongrel "$LINENO" "hunspell.hxx" "ac_cv_header_hunspell_hxx" "$ac_includes_default"
+if test "x$ac_cv_header_hunspell_hxx" = xyes; then :
+
+else
+
+ ac_fn_cxx_check_header_mongrel "$LINENO" "hunspell/hunspell.hxx" "ac_cv_header_hunspell_hunspell_hxx" "$ac_includes_default"
+if test "x$ac_cv_header_hunspell_hunspell_hxx" = xyes; then :
+ HUNSPELL_CFLAGS=-I/usr/include/hunspell
+else
+ as_fn_error $? "hunspell headers not found." "$LINENO" 5
+fi
+
+
+
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lhunspell" >&5
+$as_echo_n "checking for main in -lhunspell... " >&6; }
+if ${ac_cv_lib_hunspell_main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lhunspell $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_hunspell_main=yes
+else
+ ac_cv_lib_hunspell_main=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_hunspell_main" >&5
+$as_echo "$ac_cv_lib_hunspell_main" >&6; }
+if test "x$ac_cv_lib_hunspell_main" = xyes; then :
+ :
+else
+ as_fn_error $? "hunspell library not found." "$LINENO" 5
+fi
+
+ HUNSPELL_LIBS=-lhunspell
+ 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
+
+ HUNSPELL_CFLAGS=$(printf '%s' "$HUNSPELL_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${HUNSPELL_LIBS}"
+ HUNSPELL_LIBS="${filteredlibs}"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_HUNSPELL=
+ HUNSPELL_CFLAGS="-I${WORKDIR}/UnpackedTarball/hunspell/src/hunspell"
+ if test "$COM" = "MSC"; then
+ HUNSPELL_LIBS="${WORKDIR}/LinkTarget/StaticLibrary/hunspell.lib"
+ else
+ HUNSPELL_LIBS="-L${WORKDIR}/UnpackedTarball/hunspell/src/hunspell/.libs -lhunspell-1.7"
+ fi
+ BUILD_TYPE="$BUILD_TYPE HUNSPELL"
+fi
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libqrcodegen" >&5
+$as_echo_n "checking whether to use libqrcodegen... " >&6; }
+if test "$enable_qrcodegen" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_QRCODEGEN=
+ SYSTEM_QRCODEGEN=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_QRCODEGEN=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libqrcodegen to use" >&5
+$as_echo_n "checking which libqrcodegen to use... " >&6; }
+ if test "$with_system_qrcodegen" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_QRCODEGEN=TRUE
+ 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
+
+ ac_fn_cxx_check_header_compile "$LINENO" "qrcodegen/QrCode.hpp" "ac_cv_header_qrcodegen_QrCode_hpp" "#include <stdexcept>
+"
+if test "x$ac_cv_header_qrcodegen_QrCode_hpp" = xyes; then :
+
+else
+ as_fn_error $? "qrcodegen headers not found." "$LINENO" 5
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqrcodegencpp" >&5
+$as_echo_n "checking for main in -lqrcodegencpp... " >&6; }
+if ${ac_cv_lib_qrcodegencpp_main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lqrcodegencpp $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_qrcodegencpp_main=yes
+else
+ ac_cv_lib_qrcodegencpp_main=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_qrcodegencpp_main" >&5
+$as_echo "$ac_cv_lib_qrcodegencpp_main" >&6; }
+if test "x$ac_cv_lib_qrcodegencpp_main" = xyes; then :
+ :
+else
+ as_fn_error $? "qrcodegen C++ library not found." "$LINENO" 5
+fi
+
+ QRCODEGEN_LIBS=-lqrcodegencpp
+ 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
+
+ QRCODEGEN_CFLAGS=$(printf '%s' "$QRCODEGEN_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${QRCODEGEN_LIBS}"
+ QRCODEGEN_LIBS="${filteredlibs}"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_QRCODEGEN=
+ BUILD_TYPE="$BUILD_TYPE QRCODEGEN"
+ fi
+ if test "$ENABLE_QRCODEGEN" = TRUE; then
+ $as_echo "#define ENABLE_QRCODEGEN 1" >>confdefs.h
+
+ fi
+fi
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which altlinuxhyph to use" >&5
+$as_echo_n "checking which altlinuxhyph to use... " >&6; }
+if test "$with_system_altlinuxhyph" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_HYPH=TRUE
+ ac_fn_c_check_header_mongrel "$LINENO" "hyphen.h" "ac_cv_header_hyphen_h" "$ac_includes_default"
+if test "x$ac_cv_header_hyphen_h" = xyes; then :
+
+else
+ as_fn_error $? "altlinuxhyph headers not found." "$LINENO" 5
+fi
+
+
+ ac_fn_c_check_member "$LINENO" "struct _HyphenDict" "cset" "ac_cv_member_struct__HyphenDict_cset" "#include <hyphen.h>
+"
+if test "x$ac_cv_member_struct__HyphenDict_cset" = xyes; then :
+
+else
+ as_fn_error $? "no. You are sure you have altlinuyhyph headers?" "$LINENO" 5
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hnj_hyphen_hyphenate2 in -lhyphen" >&5
+$as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhyphen... " >&6; }
+if ${ac_cv_lib_hyphen_hnj_hyphen_hyphenate2+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lhyphen $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 hnj_hyphen_hyphenate2 ();
+int
+main ()
+{
+return hnj_hyphen_hyphenate2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=yes
+else
+ ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=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_hyphen_hnj_hyphen_hyphenate2" >&5
+$as_echo "$ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" >&6; }
+if test "x$ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" = xyes; then :
+ HYPHEN_LIB=-lhyphen
+else
+ as_fn_error $? "altlinuxhyph library not found or too old." "$LINENO" 5
+fi
+
+ if test -z "$HYPHEN_LIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hnj_hyphen_hyphenate2 in -lhyph" >&5
+$as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhyph... " >&6; }
+if ${ac_cv_lib_hyph_hnj_hyphen_hyphenate2+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lhyph $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 hnj_hyphen_hyphenate2 ();
+int
+main ()
+{
+return hnj_hyphen_hyphenate2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_hyph_hnj_hyphen_hyphenate2=yes
+else
+ ac_cv_lib_hyph_hnj_hyphen_hyphenate2=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_hyph_hnj_hyphen_hyphenate2" >&5
+$as_echo "$ac_cv_lib_hyph_hnj_hyphen_hyphenate2" >&6; }
+if test "x$ac_cv_lib_hyph_hnj_hyphen_hyphenate2" = xyes; then :
+ HYPHEN_LIB=-lhyph
+else
+ as_fn_error $? "altlinuxhyph library not found or too old." "$LINENO" 5
+fi
+
+ fi
+ if test -z "$HYPHEN_LIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hnj_hyphen_hyphenate2 in -lhnj" >&5
+$as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhnj... " >&6; }
+if ${ac_cv_lib_hnj_hnj_hyphen_hyphenate2+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lhnj $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 hnj_hyphen_hyphenate2 ();
+int
+main ()
+{
+return hnj_hyphen_hyphenate2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_hnj_hnj_hyphen_hyphenate2=yes
+else
+ ac_cv_lib_hnj_hnj_hyphen_hyphenate2=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_hnj_hnj_hyphen_hyphenate2" >&5
+$as_echo "$ac_cv_lib_hnj_hnj_hyphen_hyphenate2" >&6; }
+if test "x$ac_cv_lib_hnj_hnj_hyphen_hyphenate2" = xyes; then :
+ HYPHEN_LIB=-lhnj
+else
+ as_fn_error $? "altlinuxhyph library not found or too old." "$LINENO" 5
+fi
+
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_HYPH=
+ BUILD_TYPE="$BUILD_TYPE HYPHEN"
+ if test "$COM" = "MSC"; then
+ HYPHEN_LIB="${WORKDIR}/LinkTarget/StaticLibrary/hyphen.lib"
+ else
+ HYPHEN_LIB="-L${WORKDIR}/UnpackedTarball/hyphen/.libs -lhyphen"
+ fi
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which mythes to use" >&5
+$as_echo_n "checking which mythes to use... " >&6; }
+if test "$_os" = iOS; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+elif test "$with_system_mythes" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_MYTHES=TRUE
+ 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
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MYTHES" >&5
+$as_echo_n "checking for MYTHES... " >&6; }
+
+if test -n "$MYTHES_CFLAGS"; then
+ pkg_cv_MYTHES_CFLAGS="$MYTHES_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mythes\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "mythes") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MYTHES_CFLAGS=`$PKG_CONFIG --cflags "mythes" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$MYTHES_LIBS"; then
+ pkg_cv_MYTHES_LIBS="$MYTHES_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mythes\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "mythes") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_MYTHES_LIBS=`$PKG_CONFIG --libs "mythes" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ MYTHES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mythes" 2>&1`
+ else
+ MYTHES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mythes" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$MYTHES_PKG_ERRORS" >&5
+
+ MYTHES_PKGCONFIG=no
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ MYTHES_PKGCONFIG=no
+else
+ MYTHES_CFLAGS=$pkg_cv_MYTHES_CFLAGS
+ MYTHES_LIBS=$pkg_cv_MYTHES_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ MYTHES_PKGCONFIG=yes
+fi
+ if test "$MYTHES_PKGCONFIG" = "no"; then
+ ac_fn_cxx_check_header_mongrel "$LINENO" "mythes.hxx" "ac_cv_header_mythes_hxx" "$ac_includes_default"
+if test "x$ac_cv_header_mythes_hxx" = xyes; then :
+
+else
+ as_fn_error $? "mythes.hxx headers not found." "$LINENO" 5
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmythes-1.2" >&5
+$as_echo_n "checking for main in -lmythes-1.2... " >&6; }
+if ${ac_cv_lib_mythes_1_2_main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lmythes-1.2 $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_mythes_1_2_main=yes
+else
+ ac_cv_lib_mythes_1_2_main=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_mythes_1_2_main" >&5
+$as_echo "$ac_cv_lib_mythes_1_2_main" >&6; }
+if test "x$ac_cv_lib_mythes_1_2_main" = xyes; then :
+ :
+else
+ MYTHES_FOUND=no
+fi
+
+ if test "$MYTHES_FOUND" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmythes" >&5
+$as_echo_n "checking for main in -lmythes... " >&6; }
+if ${ac_cv_lib_mythes_main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lmythes $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_mythes_main=yes
+else
+ ac_cv_lib_mythes_main=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_mythes_main" >&5
+$as_echo "$ac_cv_lib_mythes_main" >&6; }
+if test "x$ac_cv_lib_mythes_main" = xyes; then :
+ MYTHES_FOUND=yes
+else
+ MYTHES_FOUND=no
+fi
+
+ fi
+ if test "$MYTHES_FOUND" = "no"; then
+ as_fn_error $? "mythes library not found!." "$LINENO" 5
+ 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
+
+ MYTHES_CFLAGS=$(printf '%s' "$MYTHES_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${MYTHES_LIBS}"
+ MYTHES_LIBS="${filteredlibs}"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_MYTHES=
+ BUILD_TYPE="$BUILD_TYPE MYTHES"
+ if test "$COM" = "MSC"; then
+ MYTHES_LIBS="${WORKDIR}/LinkTarget/StaticLibrary/mythes.lib"
+ else
+ MYTHES_LIBS="-L${WORKDIR}/UnpackedTarball/mythes/.libs -lmythes-1.2"
+ fi
+fi
+
+
+
+
+
+ENABLE_COINMP=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with CoinMP" >&5
+$as_echo_n "checking whether to build with CoinMP... " >&6; }
+if test "$enable_coinmp" != "no"; then
+ ENABLE_COINMP=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ if test "$with_system_coinmp" = "yes"; then
+ SYSTEM_COINMP=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COINMP" >&5
+$as_echo_n "checking for COINMP... " >&6; }
+
+if test -n "$COINMP_CFLAGS"; then
+ pkg_cv_COINMP_CFLAGS="$COINMP_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"coinmp coinutils\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "coinmp coinutils") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_COINMP_CFLAGS=`$PKG_CONFIG --cflags "coinmp coinutils" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$COINMP_LIBS"; then
+ pkg_cv_COINMP_LIBS="$COINMP_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"coinmp coinutils\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "coinmp coinutils") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_COINMP_LIBS=`$PKG_CONFIG --libs "coinmp coinutils" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ COINMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "coinmp coinutils" 2>&1`
+ else
+ COINMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "coinmp coinutils" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$COINMP_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (coinmp coinutils) were not met:
+
+$COINMP_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables COINMP_CFLAGS
+and COINMP_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables COINMP_CFLAGS
+and COINMP_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ COINMP_CFLAGS=$pkg_cv_COINMP_CFLAGS
+ COINMP_LIBS=$pkg_cv_COINMP_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ FilterLibs "${COINMP_LIBS}"
+ COINMP_LIBS="${filteredlibs}"
+ else
+ BUILD_TYPE="$BUILD_TYPE COINMP"
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+ENABLE_LPSOLVE=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with lpsolve" >&5
+$as_echo_n "checking whether to build with lpsolve... " >&6; }
+if test "$enable_lpsolve" != "no"; then
+ ENABLE_LPSOLVE=TRUE
+ { $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
+
+
+if test "$ENABLE_LPSOLVE" = TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which lpsolve to use" >&5
+$as_echo_n "checking which lpsolve to use... " >&6; }
+ if test "$with_system_lpsolve" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LPSOLVE=TRUE
+ ac_fn_c_check_header_mongrel "$LINENO" "lpsolve/lp_lib.h" "ac_cv_header_lpsolve_lp_lib_h" "$ac_includes_default"
+if test "x$ac_cv_header_lpsolve_lp_lib_h" = xyes; then :
+
+else
+ as_fn_error $? "lpsolve headers not found." "$LINENO" 5
+fi
+
+
+ save_LIBS=$LIBS
+ # some systems need this. Like Ubuntu...
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
+$as_echo_n "checking for floor in -lm... " >&6; }
+if ${ac_cv_lib_m_floor+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lm $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 floor ();
+int
+main ()
+{
+return floor ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_m_floor=yes
+else
+ ac_cv_lib_m_floor=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_m_floor" >&5
+$as_echo "$ac_cv_lib_m_floor" >&6; }
+if test "x$ac_cv_lib_m_floor" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBM 1
+_ACEOF
+
+ LIBS="-lm $LIBS"
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if ${ac_cv_lib_dl_dlopen+:} false; 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" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+
+ LIBS="-ldl $LIBS"
+
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for make_lp in -llpsolve55" >&5
+$as_echo_n "checking for make_lp in -llpsolve55... " >&6; }
+if ${ac_cv_lib_lpsolve55_make_lp+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-llpsolve55 $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 make_lp ();
+int
+main ()
+{
+return make_lp ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_lpsolve55_make_lp=yes
+else
+ ac_cv_lib_lpsolve55_make_lp=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_lpsolve55_make_lp" >&5
+$as_echo "$ac_cv_lib_lpsolve55_make_lp" >&6; }
+if test "x$ac_cv_lib_lpsolve55_make_lp" = xyes; then :
+ :
+else
+ as_fn_error $? "lpsolve library not found or too old." "$LINENO" 5
+fi
+
+ LIBS=$save_LIBS
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LPSOLVE=
+ BUILD_TYPE="$BUILD_TYPE LPSOLVE"
+ fi
+fi
+
+
+
+
+# Check whether --with-system-libexttextcat was given.
+if test "${with_system_libexttextcat+set}" = set; then :
+ withval=$with_system_libexttextcat;
+else
+ with_system_libexttextcat="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libexttextcat to use" >&5
+$as_echo_n "checking which libexttextcat to use... " >&6; }
+if test "$with_system_libexttextcat" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBEXTTEXTCAT=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXTTEXTCAT" >&5
+$as_echo_n "checking for LIBEXTTEXTCAT... " >&6; }
+
+if test -n "$LIBEXTTEXTCAT_CFLAGS"; then
+ pkg_cv_LIBEXTTEXTCAT_CFLAGS="$LIBEXTTEXTCAT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexttextcat >= 3.4.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libexttextcat >= 3.4.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBEXTTEXTCAT_CFLAGS=`$PKG_CONFIG --cflags "libexttextcat >= 3.4.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBEXTTEXTCAT_LIBS"; then
+ pkg_cv_LIBEXTTEXTCAT_LIBS="$LIBEXTTEXTCAT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexttextcat >= 3.4.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libexttextcat >= 3.4.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBEXTTEXTCAT_LIBS=`$PKG_CONFIG --libs "libexttextcat >= 3.4.1" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexttextcat >= 3.4.1" 2>&1`
+ else
+ LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexttextcat >= 3.4.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBEXTTEXTCAT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libexttextcat >= 3.4.1) were not met:
+
+$LIBEXTTEXTCAT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
+and LIBEXTTEXTCAT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBEXTTEXTCAT_CFLAGS
+and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBEXTTEXTCAT_CFLAGS=$pkg_cv_LIBEXTTEXTCAT_CFLAGS
+ LIBEXTTEXTCAT_LIBS=$pkg_cv_LIBEXTTEXTCAT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBEXTTEXTCAT_CFLAGS=$(printf '%s' "${LIBEXTTEXTCAT_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBEXTTEXTCAT_LIBS}"
+ LIBEXTTEXTCAT_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LIBEXTTEXTCAT=
+ LIBEXTTEXTCAT_CFLAGS=
+ LIBEXTTEXTCAT_LIBS=
+ BUILD_TYPE="$BUILD_TYPE LIBEXTTEXTCAT"
+fi
+
+
+
+
+if test "$with_system_libexttextcat" = "yes"; then
+ SYSTEM_LIBEXTTEXTCAT_DATA=file://`$PKG_CONFIG --variable=pkgdatadir libexttextcat`
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libnumbertext" >&5
+$as_echo_n "checking whether to use libnumbertext... " >&6; }
+if test "$enable_libnumbertext" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_LIBNUMBERTEXT=
+ SYSTEM_LIBNUMBERTEXT=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_LIBNUMBERTEXT=TRUE
+
+
+# Check whether --with-system-libnumbertext was given.
+if test "${with_system_libnumbertext+set}" = set; then :
+ withval=$with_system_libnumbertext;
+else
+ with_system_libnumbertext="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libnumbertext to use" >&5
+$as_echo_n "checking which libnumbertext to use... " >&6; }
+if test "$with_system_libnumbertext" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBNUMBERTEXT=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNUMBERTEXT" >&5
+$as_echo_n "checking for LIBNUMBERTEXT... " >&6; }
+
+if test -n "$LIBNUMBERTEXT_CFLAGS"; then
+ pkg_cv_LIBNUMBERTEXT_CFLAGS="$LIBNUMBERTEXT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnumbertext >= 1.0.6\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libnumbertext >= 1.0.6") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBNUMBERTEXT_CFLAGS=`$PKG_CONFIG --cflags "libnumbertext >= 1.0.6" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBNUMBERTEXT_LIBS"; then
+ pkg_cv_LIBNUMBERTEXT_LIBS="$LIBNUMBERTEXT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnumbertext >= 1.0.6\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libnumbertext >= 1.0.6") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBNUMBERTEXT_LIBS=`$PKG_CONFIG --libs "libnumbertext >= 1.0.6" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBNUMBERTEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnumbertext >= 1.0.6" 2>&1`
+ else
+ LIBNUMBERTEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnumbertext >= 1.0.6" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBNUMBERTEXT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libnumbertext >= 1.0.6) were not met:
+
+$LIBNUMBERTEXT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBNUMBERTEXT_CFLAGS
+and LIBNUMBERTEXT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBNUMBERTEXT_CFLAGS
+and LIBNUMBERTEXT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBNUMBERTEXT_CFLAGS=$pkg_cv_LIBNUMBERTEXT_CFLAGS
+ LIBNUMBERTEXT_LIBS=$pkg_cv_LIBNUMBERTEXT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBNUMBERTEXT_CFLAGS=$(printf '%s' "${LIBNUMBERTEXT_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBNUMBERTEXT_LIBS}"
+ LIBNUMBERTEXT_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LIBNUMBERTEXT=
+ LIBNUMBERTEXT_CFLAGS=
+ LIBNUMBERTEXT_LIBS=
+ BUILD_TYPE="$BUILD_TYPE LIBNUMBERTEXT"
+fi
+
+
+
+
+ if test "$with_system_libnumbertext" = "yes"; then
+ SYSTEM_LIBNUMBERTEXT_DATA=file://`$PKG_CONFIG --variable=pkgdatadir libnumbertext`
+ SYSTEM_LIBNUMBERTEXT=YES
+ else
+ SYSTEM_LIBNUMBERTEXT=
+ 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_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS $CXXFLAGS_CXX11"
+ for ac_header in codecvt regex
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+ if test "x$ac_cv_header_codecvt" != xyes -o "x$ac_cv_header_regex" != xyes; then :
+ ENABLE_LIBNUMBERTEXT=''
+ LIBNUMBERTEXT_CFLAGS=''
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No system-provided libnumbertext or codecvt/regex C++11 headers (min. libstdc++ 4.9).
+ Enable libnumbertext fallback (missing number to number name conversion)." >&5
+$as_echo "$as_me: WARNING: No system-provided libnumbertext or codecvt/regex C++11 headers (min. libstdc++ 4.9).
+ Enable libnumbertext fallback (missing number to number name conversion)." >&2;}
+
+fi
+ CPPFLAGS=$save_CPPFLAGS
+ 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 "$ENABLE_LIBNUMBERTEXT" = TRUE; then
+ $as_echo "#define ENABLE_LIBNUMBERTEXT 1" >>confdefs.h
+
+ fi
+fi
+
+
+
+
+
+if test "$_os" = "Linux"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libc is >= 2.1.1" >&5
+$as_echo_n "checking whether libc is >= 2.1.1... " >&6; }
+ exec 6>/dev/null # no output
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnu_get_libc_version in -lc" >&5
+$as_echo_n "checking for gnu_get_libc_version in -lc... " >&6; }
+if ${ac_cv_lib_c_gnu_get_libc_version+:} false; 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 gnu_get_libc_version ();
+int
+main ()
+{
+return gnu_get_libc_version ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_c_gnu_get_libc_version=yes
+else
+ ac_cv_lib_c_gnu_get_libc_version=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_gnu_get_libc_version" >&5
+$as_echo "$ac_cv_lib_c_gnu_get_libc_version" >&6; }
+if test "x$ac_cv_lib_c_gnu_get_libc_version" = xyes; then :
+ HAVE_LIBC=yes; export HAVE_LIBC
+fi
+
+ exec 6>&1 # output on again
+ if test "$HAVE_LIBC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ as_fn_error $? "no, upgrade libc" "$LINENO" 5
+ fi
+fi
+
+if test "$_os" = "WINNT" -a "$cross_compiling" != "yes"; then
+ # presence is already tested above in the WINDOWS_SDK_HOME check
+ UUIDGEN=uuidgen.exe
+
+else
+ # Extract the first word of "uuidgen", so it can be a program name with args.
+set dummy uuidgen; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_UUIDGEN+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $UUIDGEN in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_UUIDGEN="$UUIDGEN" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_UUIDGEN="$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
+UUIDGEN=$ac_cv_path_UUIDGEN
+if test -n "$UUIDGEN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UUIDGEN" >&5
+$as_echo "$UUIDGEN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$UUIDGEN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid is needed for building installation sets" >&5
+$as_echo "$as_me: WARNING: uuid is needed for building installation sets" >&2;}
+ fi
+fi
+
+# Extract the first word of "bison", so it can be a program name with args.
+set dummy bison; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_BISON+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $BISON in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_BISON="$BISON" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_BISON="$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
+BISON=$ac_cv_path_BISON
+if test -n "$BISON"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
+$as_echo "$BISON" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test -z "$BISON"; then
+ as_fn_error $? "no bison found in \$PATH, install it" "$LINENO" 5
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the bison version" >&5
+$as_echo_n "checking the bison version... " >&6; }
+ _bison_version=`$BISON --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`
+ _bison_longver=`echo $_bison_version | $AWK -F. '{ print \$1*1000+\$2}'`
+ if test "$COMPILER_PLUGINS" = TRUE; then
+ if test "$_bison_longver" -lt 2004; then
+ as_fn_error $? "failed ($BISON $_bison_version need 2.4+ for --enable-compiler-plugins)" "$LINENO" 5
+ fi
+ else
+ if test "$_bison_longver" -lt 2000; then
+ as_fn_error $? "failed ($BISON $_bison_version need 2.0+)" "$LINENO" 5
+ fi
+ fi
+fi
+
+
+# Extract the first word of "flex", so it can be a program name with args.
+set dummy flex; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_FLEX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $FLEX in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_FLEX="$FLEX" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_FLEX="$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
+FLEX=$ac_cv_path_FLEX
+if test -n "$FLEX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
+$as_echo "$FLEX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ FLEX=`cygpath -m $FLEX`
+fi
+if test -z "$FLEX"; then
+ as_fn_error $? "no flex found in \$PATH, install it" "$LINENO" 5
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking the flex version" >&5
+$as_echo_n "checking the flex version... " >&6; }
+ _flex_version=$($FLEX --version | $SED -e 's/^.*\([[:digit:]]\{1,\}\.[[:digit:]]\{1,\}\.[[:digit:]]\{1,\}\).*$/\1/')
+ if test $(echo $_flex_version | $AWK -F. '{printf("%d%03d%03d", $1, $2, $3)}') -lt 2006000; then
+ as_fn_error $? "failed ($FLEX $_flex_version found, but need at least 2.6.0)" "$LINENO" 5
+ fi
+fi
+
+# Extract the first word of "patch", so it can be a program name with args.
+set dummy patch; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PATCH+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PATCH in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PATCH="$PATCH" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PATCH="$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
+PATCH=$ac_cv_path_PATCH
+if test -n "$PATCH"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
+$as_echo "$PATCH" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test -z "$PATCH"; then
+ as_fn_error $? "\"patch\" not found in \$PATH, install it" "$LINENO" 5
+fi
+
+if test "$_os" = "SunOS" -o "$_os" = "FreeBSD" -o "$_os" = "Darwin"; then
+ if test -z "$with_gnu_patch"; then
+ GNUPATCH=$PATCH
+ else
+ if test -x "$with_gnu_patch"; then
+ GNUPATCH=$with_gnu_patch
+ else
+ as_fn_error $? "--with-gnu-patch did not point to an executable" "$LINENO" 5
+ fi
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GNUPATCH is GNU patch" >&5
+$as_echo_n "checking whether $GNUPATCH is GNU patch... " >&6; }
+ if $GNUPATCH --version | grep "Free Software Foundation" >/dev/null 2>/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ as_fn_error $? "no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it" "$LINENO" 5
+ fi
+else
+ GNUPATCH=$PATCH
+fi
+
+if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ GNUPATCH=`cygpath -m $GNUPATCH`
+fi
+
+
+if test -z "$with_gnu_cp"; then
+ # check the place where the good stuff is hidden on Solaris...
+ if test -x /usr/gnu/bin/cp; then
+ GNUCP=/usr/gnu/bin/cp
+ else
+ for ac_prog in gnucp cp
+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 ${ac_cv_path_GNUCP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GNUCP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GNUCP="$GNUCP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GNUCP="$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
+GNUCP=$ac_cv_path_GNUCP
+if test -n "$GNUCP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUCP" >&5
+$as_echo "$GNUCP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$GNUCP" && break
+done
+
+ fi
+ if test -z $GNUCP; then
+ as_fn_error $? "Neither gnucp nor cp found. Install GNU cp and/or specify --with-gnu-cp=/path/to/it" "$LINENO" 5
+ fi
+else
+ if test -x "$with_gnu_cp"; then
+ GNUCP=$with_gnu_cp
+ else
+ as_fn_error $? "--with-gnu-cp did not point to an executable" "$LINENO" 5
+ fi
+fi
+
+if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ GNUCP=`cygpath -m $GNUCP`
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GNUCP is GNU cp from coreutils with preserve= support" >&5
+$as_echo_n "checking whether $GNUCP is GNU cp from coreutils with preserve= support... " >&6; }
+if $GNUCP --version 2>/dev/null | grep "coreutils" >/dev/null 2>/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+elif $GNUCP --version 2>/dev/null | grep "GNU fileutils" >/dev/null 2>/dev/null; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ case "$build_os" in
+ darwin*|netbsd*|openbsd*|freebsd*|dragonfly*|aix*)
+ x_GNUCP=\#
+ GNUCP=''
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gnucp found - using the system's cp command" >&5
+$as_echo "no gnucp found - using the system's cp command" >&6; }
+ ;;
+ *)
+ as_fn_error $? "no, GNU cp needed. install or specify with --with-gnu-cp=/path/to/it" "$LINENO" 5
+ ;;
+ esac
+fi
+
+
+
+
+
+ML_EXE=""
+if test "$_os" = "WINNT"; then
+ if test "$BITNESS_OVERRIDE" = ""; then
+ assembler=ml.exe
+ else
+ assembler=ml64.exe
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MSVC assembler ($assembler)" >&5
+$as_echo_n "checking for the MSVC assembler ($assembler)... " >&6; }
+ if test -f "$CL_PATH/$assembler"; then
+ ML_EXE=`win_short_path_for_make "$CL_PATH/$assembler"`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ML_EXE" >&5
+$as_echo "$ML_EXE" >&6; }
+ else
+ as_fn_error $? "not found" "$LINENO" 5
+ 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 ${ac_cv_path_ZIP+:} false; 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 $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$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
+
+
+test -z "$ZIP" && as_fn_error $? "zip is required" "$LINENO" 5
+if ! "$ZIP" --filesync < /dev/null 2>/dev/null > /dev/null; then
+ as_fn_error $? "Zip version 3.0 or newer is required to build, please install it and make sure it is the one found first in PATH" "$LINENO" 5
+fi
+
+# Extract the first word of "unzip", so it can be a program name with args.
+set dummy unzip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_UNZIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $UNZIP in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_UNZIP="$UNZIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_UNZIP="$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
+UNZIP=$ac_cv_path_UNZIP
+if test -n "$UNZIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
+$as_echo "$UNZIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+test -z "$UNZIP" && as_fn_error $? "unzip is required" "$LINENO" 5
+
+if test $build_os = cygwin; then
+ if test -n "`$ZIP -h | $GREP -i WinNT`"; then
+ as_fn_error $? "$ZIP is not the required Cygwin version of Info-ZIP's zip.exe." "$LINENO" 5
+ fi
+fi
+
+# Extract the first word of "touch", so it can be a program name with args.
+set dummy touch; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_TOUCH+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $TOUCH in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_TOUCH="$TOUCH" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_TOUCH="$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
+TOUCH=$ac_cv_path_TOUCH
+if test -n "$TOUCH"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
+$as_echo "$TOUCH" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+test -z "$TOUCH" && as_fn_error $? "touch is required" "$LINENO" 5
+touch warn
+if ! "$TOUCH" -h warn 2>/dev/null > /dev/null; then
+ as_fn_error $? "touch version with -h option support is required to build, please install it and make sure it is the one found first in PATH" "$LINENO" 5
+fi
+
+
+
+# Check whether --with-system-epoxy was given.
+if test "${with_system_epoxy+set}" = set; then :
+ withval=$with_system_epoxy;
+else
+ with_system_epoxy="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which epoxy to use" >&5
+$as_echo_n "checking which epoxy to use... " >&6; }
+if test "$with_system_epoxy" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_EPOXY=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPOXY" >&5
+$as_echo_n "checking for EPOXY... " >&6; }
+
+if test -n "$EPOXY_CFLAGS"; then
+ pkg_cv_EPOXY_CFLAGS="$EPOXY_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "epoxy >= 1.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EPOXY_CFLAGS=`$PKG_CONFIG --cflags "epoxy >= 1.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$EPOXY_LIBS"; then
+ pkg_cv_EPOXY_LIBS="$EPOXY_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "epoxy >= 1.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_EPOXY_LIBS=`$PKG_CONFIG --libs "epoxy >= 1.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ EPOXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy >= 1.2" 2>&1`
+ else
+ EPOXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy >= 1.2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$EPOXY_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (epoxy >= 1.2) were not met:
+
+$EPOXY_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables EPOXY_CFLAGS
+and EPOXY_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables EPOXY_CFLAGS
+and EPOXY_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ EPOXY_CFLAGS=$pkg_cv_EPOXY_CFLAGS
+ EPOXY_LIBS=$pkg_cv_EPOXY_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ EPOXY_CFLAGS=$(printf '%s' "${EPOXY_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${EPOXY_LIBS}"
+ EPOXY_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_EPOXY=
+ EPOXY_CFLAGS="-I${WORKDIR}/UnpackedTarball/epoxy/include"
+ EPOXY_LIBS=
+ BUILD_TYPE="$BUILD_TYPE EPOXY"
+fi
+
+
+
+
+
+
+
+R=""
+if test "$USING_X11" != TRUE; then
+ enable_gtk3=no
+fi
+
+ENABLE_GTK3=""
+if test "x$enable_gtk3" = "xyes"; then
+ ENABLE_GTK3="TRUE"
+ $as_echo "#define ENABLE_GTK3 1" >>confdefs.h
+
+ R="$R gtk3"
+fi
+
+
+ENABLE_GTK3_KDE5=""
+if test "x$enable_gtk3_kde5" = "xyes"; then
+ ENABLE_GTK3_KDE5="TRUE"
+ $as_echo "#define ENABLE_GTK3_KDE5 1" >>confdefs.h
+
+ R="$R gtk3_kde5"
+fi
+
+
+ENABLE_QT5=""
+if test "x$enable_qt5" = "xyes"; then
+ ENABLE_QT5="TRUE"
+ $as_echo "#define ENABLE_QT5 1" >>confdefs.h
+
+ R="$R qt5"
+fi
+
+
+ENABLE_KF5=""
+if test "x$enable_kf5" = "xyes"; then
+ ENABLE_KF5="TRUE"
+ $as_echo "#define ENABLE_KF5 1" >>confdefs.h
+
+ R="$R kf5"
+fi
+
+
+GTK3_CFLAGS=""
+GTK3_LIBS=""
+if test "x$enable_gtk3" = "xyes" -o "x$enable_gtk3_kde5" = "xyes"; then
+ if test "$with_system_cairo" = no; then
+ as_fn_error $? "System cairo required for gtk3 support, do not combine --enable-gtk3 with --without-system-cairo" "$LINENO" 5
+ fi
+ : ${with_system_cairo:=yes}
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
+$as_echo_n "checking for GTK3... " >&6; }
+
+if test -n "$GTK3_CFLAGS"; then
+ pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$GTK3_LIBS"; then
+ pkg_cv_GTK3_LIBS="$GTK3_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo" 2>&1`
+ else
+ GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GTK3_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (gtk+-3.0 >= 3.18 gtk+-unix-print-3.0 gmodule-no-export-2.0 glib-2.0 >= 2.38 cairo) were not met:
+
+$GTK3_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables GTK3_CFLAGS
+and GTK3_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables GTK3_CFLAGS
+and GTK3_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
+ GTK3_LIBS=$pkg_cv_GTK3_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ GTK3_CFLAGS=$(printf '%s' "$GTK3_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${GTK3_LIBS}"
+ GTK3_LIBS="${filteredlibs}"
+
+ if test "$with_system_epoxy" != "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglMakeCurrent in -lEGL" >&5
+$as_echo_n "checking for eglMakeCurrent in -lEGL... " >&6; }
+if ${ac_cv_lib_EGL_eglMakeCurrent+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lEGL $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 eglMakeCurrent ();
+int
+main ()
+{
+return eglMakeCurrent ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_EGL_eglMakeCurrent=yes
+else
+ ac_cv_lib_EGL_eglMakeCurrent=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_EGL_eglMakeCurrent" >&5
+$as_echo "$ac_cv_lib_EGL_eglMakeCurrent" >&6; }
+if test "x$ac_cv_lib_EGL_eglMakeCurrent" = xyes; then :
+ :
+else
+ as_fn_error $? "libEGL required." "$LINENO" 5
+fi
+
+ ac_fn_c_check_header_mongrel "$LINENO" "EGL/eglplatform.h" "ac_cv_header_EGL_eglplatform_h" "$ac_includes_default"
+if test "x$ac_cv_header_EGL_eglplatform_h" = xyes; then :
+
+else
+ as_fn_error $? "EGL headers not found. install mesa-libEGL-devel" "$LINENO" 5
+fi
+
+
+ fi
+fi
+
+
+
+if test "$enable_introspection" = yes; then
+ if test "$ENABLE_GTK3" = "TRUE" -o "$ENABLE_GTK3_KDE5" = "TRUE"; then
+
+
+
+ enable_introspection=yes
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
+$as_echo_n "checking for gobject-introspection... " >&6; }
+
+ case $enable_introspection in #(
+ no) :
+ found_introspection="no (disabled, use --enable-introspection to enable)"
+ ;; #(
+ yes) :
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ :
+else
+ as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
+fi
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= INTROSPECTION_REQUIRED_VERSION\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= INTROSPECTION_REQUIRED_VERSION") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ found_introspection=yes
+else
+ as_fn_error $? "You need to have gobject-introspection >= INTROSPECTION_REQUIRED_VERSION installed to build LibreOffice" "$LINENO" 5
+fi
+ ;; #(
+ auto) :
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= INTROSPECTION_REQUIRED_VERSION\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= INTROSPECTION_REQUIRED_VERSION") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ found_introspection=yes
+else
+ found_introspection=no
+fi
+ enable_introspection=$found_introspection
+ ;; #(
+ *) :
+ as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
+ ;;
+esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
+$as_echo "$found_introspection" >&6; }
+
+ INTROSPECTION_SCANNER=
+ INTROSPECTION_COMPILER=
+ INTROSPECTION_GENERATE=
+ INTROSPECTION_GIRDIR=
+ INTROSPECTION_TYPELIBDIR=
+ if test "x$found_introspection" = "xyes"; then
+ INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
+ INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
+ INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
+ INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
+ INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
+ INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
+ INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
+ INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
+ fi
+
+
+
+
+
+
+
+
+
+
+ else
+ as_fn_error $? "--enable-introspection requires --enable-gtk3" "$LINENO" 5
+ fi
+fi
+
+if test "$_os" = "WINNT"; then
+ R="$R win"
+elif test "$_os" = "Darwin"; then
+ R="$R osx"
+elif test "$_os" = "iOS"; then
+ R="ios (builtin)"
+fi
+
+build_vcl_plugins="$R"
+if test -z "$build_vcl_plugins"; then
+ build_vcl_plugins="none"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: VCLplugs to be built: $build_vcl_plugins" >&5
+$as_echo "$as_me: VCLplugs to be built: $build_vcl_plugins" >&6;}
+
+ENABLE_DBUS=""
+DBUS_CFLAGS=""
+DBUS_LIBS=""
+DBUS_GLIB_CFLAGS=""
+DBUS_GLIB_LIBS=""
+DBUS_HAVE_GLIB=""
+
+if test "$enable_dbus" = "no"; then
+ test_dbus=no
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBUS support" >&5
+$as_echo_n "checking whether to enable DBUS support... " >&6; }
+if test "$test_dbus" = "yes"; then
+ ENABLE_DBUS="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
+$as_echo_n "checking for DBUS... " >&6; }
+
+if test -n "$DBUS_CFLAGS"; then
+ pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.60" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$DBUS_LIBS"; then
+ pkg_cv_DBUS_LIBS="$DBUS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.60" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 0.60" 2>&1`
+ else
+ DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 0.60" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$DBUS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (dbus-1 >= 0.60) were not met:
+
+$DBUS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables DBUS_CFLAGS
+and DBUS_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables DBUS_CFLAGS
+and DBUS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
+ DBUS_LIBS=$pkg_cv_DBUS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ $as_echo "#define ENABLE_DBUS 1" >>confdefs.h
+
+ DBUS_CFLAGS=$(printf '%s' "$DBUS_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${DBUS_LIBS}"
+ DBUS_LIBS="${filteredlibs}"
+
+ # Glib is needed for BluetoothServer
+ # Sets also DBUS_GLIB_CFLAGS/DBUS_GLIB_LIBS if successful.
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
+$as_echo_n "checking for DBUS_GLIB... " >&6; }
+
+if test -n "$DBUS_GLIB_CFLAGS"; then
+ pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$DBUS_GLIB_LIBS"; then
+ pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.4" 2>&1`
+ else
+ DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.4" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$DBUS_GLIB_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Glib found, Bluetooth support will be disabled" >&5
+$as_echo "$as_me: WARNING: No Glib found, Bluetooth support will be disabled" >&2;}
+
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Glib found, Bluetooth support will be disabled" >&5
+$as_echo "$as_me: WARNING: No Glib found, Bluetooth support will be disabled" >&2;}
+
+else
+ DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
+ DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+ DBUS_HAVE_GLIB="TRUE"
+ $as_echo "#define DBUS_HAVE_GLIB 1" >>confdefs.h
+
+
+fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Impress remote control" >&5
+$as_echo_n "checking whether to enable Impress remote control... " >&6; }
+if test -n "$enable_sdremote" -a "$enable_sdremote" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_SDREMOTE=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Bluetooth support in Impress remote control" >&5
+$as_echo_n "checking whether to enable Bluetooth support in Impress remote control... " >&6; }
+
+ if test $OS = MACOSX && test "$MACOSX_SDK_VERSION" -ge 101500; then
+ # The Bluetooth code doesn't compile with macOS SDK 10.15
+ if test "$enable_sdremote_bluetooth" = yes; then
+ as_fn_error $? "macOS SDK $with_macosx_sdk does not currently support --enable-sdremote-bluetooth" "$LINENO" 5
+ fi
+ enable_sdremote_bluetooth=no
+ fi
+ # If not explicitly enabled or disabled, default
+ if test -z "$enable_sdremote_bluetooth"; then
+ case "$OS" in
+ LINUX|MACOSX|WNT)
+ # Default to yes for these
+ enable_sdremote_bluetooth=yes
+ ;;
+ *)
+ # otherwise no
+ enable_sdremote_bluetooth=no
+ ;;
+ esac
+ fi
+ # $enable_sdremote_bluetooth is guaranteed non-empty now
+
+ if test "$enable_sdremote_bluetooth" != "no"; then
+ if test "$OS" = "LINUX"; then
+ if test "$ENABLE_DBUS" = "TRUE" -a "$DBUS_HAVE_GLIB" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_SDREMOTE_BLUETOOTH=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Bluetooth header to use" >&5
+$as_echo_n "checking which Bluetooth header to use... " >&6; }
+ if test "$with_system_bluez" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
+if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
+
+else
+ as_fn_error $? "bluetooth.h not found. install bluez" "$LINENO" 5
+fi
+
+
+ SYSTEM_BLUEZ=TRUE
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_BLUEZ=
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, dbus disabled" >&5
+$as_echo "no, dbus disabled" >&6; }
+ ENABLE_SDREMOTE_BLUETOOTH=
+ SYSTEM_BLUEZ=
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_SDREMOTE_BLUETOOTH=TRUE
+ SYSTEM_BLUEZ=
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_SDREMOTE_BLUETOOTH=
+ SYSTEM_BLUEZ=
+ fi
+else
+ ENABLE_SDREMOTE=
+ SYSTEM_BLUEZ=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+if test "$ENABLE_GTK3" = "TRUE" -o "$ENABLE_GTK3_KDE5" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GIO support" >&5
+$as_echo_n "checking whether to enable GIO support... " >&6; }
+ if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gio" = "yes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
+$as_echo_n "checking for GIO... " >&6; }
+
+if test -n "$GIO_CFLAGS"; then
+ pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$GIO_LIBS"; then
+ pkg_cv_GIO_LIBS="$GIO_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
+ else
+ GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GIO_PKG_ERRORS" >&5
+
+ ENABLE_GIO=""
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_GIO=""
+else
+ GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
+ GIO_LIBS=$pkg_cv_GIO_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_GIO="TRUE"
+fi
+ if test "$ENABLE_GIO" = "TRUE"; then
+ $as_echo "#define ENABLE_GIO 1" >>confdefs.h
+
+ GIO_CFLAGS=$(printf '%s' "$GIO_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${GIO_LIBS}"
+ GIO_LIBS="${filteredlibs}"
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+fi
+
+
+
+
+
+
+SPLIT_APP_MODULES=""
+if test "$enable_split_app_modules" = "yes"; then
+ SPLIT_APP_MODULES="TRUE"
+fi
+
+
+SPLIT_OPT_FEATURES=""
+if test "$enable_split_opt_features" = "yes"; then
+ SPLIT_OPT_FEATURES="TRUE"
+fi
+
+
+if test $_os = Darwin -o $_os = WINNT -o $_os = iOS; then
+ if test "$enable_cairo_canvas" = yes; then
+ as_fn_error $? "The cairo canvas should not be used for this platform" "$LINENO" 5
+ fi
+ enable_cairo_canvas=no
+elif test -z "$enable_cairo_canvas"; then
+ enable_cairo_canvas=yes
+fi
+
+ENABLE_CAIRO_CANVAS=""
+if test "$enable_cairo_canvas" = "yes"; then
+ test_cairo=yes
+ ENABLE_CAIRO_CANVAS="TRUE"
+ $as_echo "#define ENABLE_CAIRO_CANVAS 1" >>confdefs.h
+
+fi
+
+
+
+ENABLE_GSTREAMER_1_0=""
+
+if test "$build_gstreamer_1_0" = "yes"; then
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the GStreamer 1.0 avmedia backend" >&5
+$as_echo_n "checking whether to enable the GStreamer 1.0 avmedia backend... " >&6; }
+ if test "$enable_avmedia" = yes -a "$enable_gstreamer_1_0" != no; then
+ ENABLE_GSTREAMER_1_0="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTREAMER_1_0" >&5
+$as_echo_n "checking for GSTREAMER_1_0... " >&6; }
+
+if test -n "$GSTREAMER_1_0_CFLAGS"; then
+ pkg_cv_GSTREAMER_1_0_CFLAGS="$GSTREAMER_1_0_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 ") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GSTREAMER_1_0_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$GSTREAMER_1_0_LIBS"; then
+ pkg_cv_GSTREAMER_1_0_LIBS="$GSTREAMER_1_0_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 ") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GSTREAMER_1_0_LIBS=`$PKG_CONFIG --libs "gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ GSTREAMER_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 " 2>&1`
+ else
+ GSTREAMER_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 " 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GSTREAMER_1_0_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 ) were not met:
+
+$GSTREAMER_1_0_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables GSTREAMER_1_0_CFLAGS
+and GSTREAMER_1_0_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables GSTREAMER_1_0_CFLAGS
+and GSTREAMER_1_0_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ GSTREAMER_1_0_CFLAGS=$pkg_cv_GSTREAMER_1_0_CFLAGS
+ GSTREAMER_1_0_LIBS=$pkg_cv_GSTREAMER_1_0_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ GSTREAMER_1_0_CFLAGS=$(printf '%s' "$GSTREAMER_1_0_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${GSTREAMER_1_0_LIBS}"
+ GSTREAMER_1_0_LIBS="${filteredlibs}"
+ $as_echo "#define ENABLE_GSTREAMER_1_0 1" >>confdefs.h
+
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+fi
+
+
+
+
+
+ENABLE_VLC=""
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the VLC avmedia backend" >&5
+$as_echo_n "checking whether to enable the VLC avmedia backend... " >&6; }
+if test "$enable_avmedia" = yes -a $_os != iOS -a $_os != Android -a "$enable_vlc" = yes; then
+ ENABLE_VLC="TRUE"
+ { $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
+
+
+ENABLE_OPENGL_TRANSITIONS=
+ENABLE_OPENGL_CANVAS=
+if test $_os = iOS -o $_os = Android -o "$ENABLE_FUZZERS" = "TRUE"; then
+ : # disable
+elif test "$_os" = "Darwin"; then
+ # We use frameworks on macOS, no need for detail checks
+ ENABLE_OPENGL_TRANSITIONS=TRUE
+ $as_echo "#define HAVE_FEATURE_OPENGL 1" >>confdefs.h
+
+ ENABLE_OPENGL_CANVAS=TRUE
+elif test $_os = WINNT; then
+ ENABLE_OPENGL_TRANSITIONS=TRUE
+ $as_echo "#define HAVE_FEATURE_OPENGL 1" >>confdefs.h
+
+ ENABLE_OPENGL_CANVAS=TRUE
+else
+ if test "$USING_X11" = TRUE; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
+$as_echo_n "checking for glBegin in -lGL... " >&6; }
+if ${ac_cv_lib_GL_glBegin+:} false; 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" = xyes; then :
+ :
+else
+ as_fn_error $? "libGL required." "$LINENO" 5
+fi
+
+ ENABLE_OPENGL_TRANSITIONS=TRUE
+ $as_echo "#define HAVE_FEATURE_OPENGL 1" >>confdefs.h
+
+ ENABLE_OPENGL_CANVAS=TRUE
+ fi
+fi
+
+
+
+
+
+if test $_os != iOS -a $_os != Android -a "$ENABLE_FUZZERS" != "TRUE"; then
+ # OPENCL in BUILD_TYPE and HAVE_FEATURE_OPENCL tell that OpenCL is potentially available on the
+ # platform (optional at run-time, used through clew).
+ BUILD_TYPE="$BUILD_TYPE OPENCL"
+ $as_echo "#define HAVE_FEATURE_OPENCL 1" >>confdefs.h
+
+fi
+
+
+if test $_os != Android -a $_os != iOS -a "$enable_dconf" != no; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DCONF" >&5
+$as_echo_n "checking for DCONF... " >&6; }
+
+if test -n "$DCONF_CFLAGS"; then
+ pkg_cv_DCONF_CFLAGS="$DCONF_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dconf >= 0.15.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "dconf >= 0.15.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DCONF_CFLAGS=`$PKG_CONFIG --cflags "dconf >= 0.15.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$DCONF_LIBS"; then
+ pkg_cv_DCONF_LIBS="$DCONF_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dconf >= 0.15.2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "dconf >= 0.15.2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DCONF_LIBS=`$PKG_CONFIG --libs "dconf >= 0.15.2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ DCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dconf >= 0.15.2" 2>&1`
+ else
+ DCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dconf >= 0.15.2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$DCONF_PKG_ERRORS" >&5
+
+
+ if test "$enable_dconf" = yes; then
+ as_fn_error $? "dconf not found" "$LINENO" 5
+ else
+ enable_dconf=no
+ fi
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+ if test "$enable_dconf" = yes; then
+ as_fn_error $? "dconf not found" "$LINENO" 5
+ else
+ enable_dconf=no
+ fi
+else
+ DCONF_CFLAGS=$pkg_cv_DCONF_CFLAGS
+ DCONF_LIBS=$pkg_cv_DCONF_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dconf" >&5
+$as_echo_n "checking whether to enable dconf... " >&6; }
+if test $_os = Android -o $_os = iOS -o "$enable_dconf" = no; then
+ DCONF_CFLAGS=
+ DCONF_LIBS=
+ ENABLE_DCONF=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ ENABLE_DCONF=TRUE
+ $as_echo "#define ENABLE_DCONF 1" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+
+
+
+
+# pdf import?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the PDF import feature" >&5
+$as_echo_n "checking whether to build the PDF import feature... " >&6; }
+ENABLE_PDFIMPORT=
+if test $_os != Android -a $_os != iOS -a \( -z "$enable_pdfimport" -o "$enable_pdfimport" = yes \); then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_PDFIMPORT=TRUE
+ $as_echo "#define HAVE_FEATURE_PDFIMPORT 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+# Pdfium?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build PDFium" >&5
+$as_echo_n "checking whether to build PDFium... " >&6; }
+ENABLE_PDFIUM=
+if test \( -z "$enable_pdfium" -a "$ENABLE_PDFIMPORT" = "TRUE" \) -o "$enable_pdfium" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_PDFIUM=TRUE
+ $as_echo "#define HAVE_FEATURE_PDFIUM 1" >>confdefs.h
+
+ BUILD_TYPE="$BUILD_TYPE PDFIUM"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ENABLE_POPPLER=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Poppler" >&5
+$as_echo_n "checking whether to build Poppler... " >&6; }
+if test \( -z "$enable_poppler" -a "$ENABLE_PDFIMPORT" = "TRUE" \) -o "$enable_poppler" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_POPPLER=TRUE
+ $as_echo "#define HAVE_FEATURE_POPPLER 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test "$ENABLE_PDFIMPORT" = "TRUE" -a "$ENABLE_POPPLER" != "TRUE" -a "$ENABLE_PDFIUM" != "TRUE"; then
+ as_fn_error $? "Cannot import PDF without either Pdfium or Poppler; please enable either of them." "$LINENO" 5
+fi
+
+if test "$ENABLE_PDFIMPORT" != "TRUE" -a \( "$ENABLE_POPPLER" = "TRUE" -o "$ENABLE_PDFIUM" = "TRUE" \); then
+ as_fn_error $? "Cannot enable Pdfium or Poppler when PDF importing is disabled; please enable PDF import first." "$LINENO" 5
+fi
+
+if test "$ENABLE_PDFIMPORT" = "TRUE" -a "$ENABLE_POPPLER" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which PDF import poppler to use" >&5
+$as_echo_n "checking which PDF import poppler to use... " >&6; }
+ if test "$with_system_poppler" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_POPPLER=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
+$as_echo_n "checking for POPPLER... " >&6; }
+
+if test -n "$POPPLER_CFLAGS"; then
+ pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.12.0 \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "poppler >= 0.12.0 ") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= 0.12.0 " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$POPPLER_LIBS"; then
+ pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.12.0 \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "poppler >= 0.12.0 ") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= 0.12.0 " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler >= 0.12.0 " 2>&1`
+ else
+ POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler >= 0.12.0 " 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$POPPLER_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (poppler >= 0.12.0 ) were not met:
+
+$POPPLER_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables POPPLER_CFLAGS
+and POPPLER_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables POPPLER_CFLAGS
+and POPPLER_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
+ POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+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
+
+ save_CXXFLAGS=$CXXFLAGS
+ save_CPPFLAGS=$CPPFLAGS
+ CXXFLAGS="$CXXFLAGS $POPPLER_CFLAGS"
+ CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
+ ac_fn_cxx_check_header_mongrel "$LINENO" "cpp/poppler-version.h" "ac_cv_header_cpp_poppler_version_h" "$ac_includes_default"
+if test "x$ac_cv_header_cpp_poppler_version_h" = xyes; then :
+ $as_echo "#define HAVE_POPPLER_VERSION_H 1" >>confdefs.h
+
+fi
+
+
+ CXXFLAGS=$save_CXXFLAGS
+ CPPFLAGS=$save_CPPFLAGS
+ 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
+
+ POPPLER_CFLAGS=$(printf '%s' "$POPPLER_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+
+ FilterLibs "${POPPLER_LIBS}"
+ POPPLER_LIBS="${filteredlibs}"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_POPPLER=
+ BUILD_TYPE="$BUILD_TYPE POPPLER"
+ $as_echo "#define HAVE_POPPLER_VERSION_H 1" >>confdefs.h
+
+ fi
+ $as_echo "#define ENABLE_PDFIMPORT 1" >>confdefs.h
+
+fi
+
+
+
+
+
+# Skia?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Skia" >&5
+$as_echo_n "checking whether to build Skia... " >&6; }
+ENABLE_SKIA=
+if test "$enable_skia" != "no" -a "$build_skia" = "yes"; then
+ if test "$enable_skia" = "debug"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (debug)" >&5
+$as_echo "yes (debug)" >&6; }
+ ENABLE_SKIA_DEBUG=TRUE
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_SKIA_DEBUG=
+ fi
+ ENABLE_SKIA=TRUE
+ $as_echo "#define HAVE_FEATURE_SKIA 1" >>confdefs.h
+
+ BUILD_TYPE="$BUILD_TYPE SKIA"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+CLANG_CXXFLAGS_INTRINSICS_SSE2=
+CLANG_CXXFLAGS_INTRINSICS_SSSE3=
+CLANG_CXXFLAGS_INTRINSICS_SSE41=
+CLANG_CXXFLAGS_INTRINSICS_SSE42=
+CLANG_CXXFLAGS_INTRINSICS_AVX=
+CLANG_CXXFLAGS_INTRINSICS_AVX2=
+CLANG_CXXFLAGS_INTRINSICS_AVX512=
+CLANG_CXXFLAGS_INTRINSICS_F16C=
+CLANG_CXXFLAGS_INTRINSICS_FMA=
+
+if test "$ENABLE_SKIA" = TRUE -a "$COM_IS_CLANG" != TRUE; then
+ if test -n "$CLANG_CC" -a -n "$CLANG_CXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Clang" >&5
+$as_echo_n "checking for Clang... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_CC / $CLANG_CXX" >&5
+$as_echo "$CLANG_CC / $CLANG_CXX" >&6; }
+ else
+ if test "$_os" = "WINNT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang-cl" >&5
+$as_echo_n "checking for clang-cl... " >&6; }
+ if test -x "$VC_PRODUCT_DIR/Tools/Llvm/bin/clang-cl.exe"; then
+ CLANG_CC=`win_short_path_for_make "$VC_PRODUCT_DIR/Tools/Llvm/bin/clang-cl.exe"`
+ if test "$BITNESS_OVERRIDE" = ""; then
+ CLANG_CC="$CLANG_CC -m32"
+ else
+ CLANG_CC="$CLANG_CC -m64"
+ fi
+ CLANG_CXX="$CLANG_CC"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_CC" >&5
+$as_echo "$CLANG_CC" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ else
+ # Extract the first word of "clang", so it can be a program name with args.
+set dummy clang; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CLANG_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CLANG_CC"; then
+ ac_cv_prog_CLANG_CC="$CLANG_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CLANG_CC="clang"
+ $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
+CLANG_CC=$ac_cv_prog_CLANG_CC
+if test -n "$CLANG_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_CC" >&5
+$as_echo "$CLANG_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ # Extract the first word of "clang++", so it can be a program name with args.
+set dummy clang++; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CLANG_CXX+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CLANG_CXX"; then
+ ac_cv_prog_CLANG_CXX="$CLANG_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CLANG_CXX="clang++"
+ $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
+CLANG_CXX=$ac_cv_prog_CLANG_CXX
+if test -n "$CLANG_CXX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_CXX" >&5
+$as_echo "$CLANG_CXX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+ fi
+ if test -n "$CLANG_CC" -a -n "$CLANG_CXX"; then
+ clang2_version=`echo __clang_major__.__clang_minor__.__clang_patchlevel__ | $CLANG_CC -E - | tail -1 | sed 's/ //g'`
+ clang2_ver=`echo "$clang2_version" | $AWK -F. '{ print \$1*10000+(\$2<100?\$2:99)*100+(\$3<100?\$3:99) }'`
+ if test "$clang2_ver" -lt 50002; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$clang2_version\" is too old or unrecognized, must be at least Clang 5.0.2" >&5
+$as_echo "$as_me: WARNING: \"$clang2_version\" is too old or unrecognized, must be at least Clang 5.0.2" >&2;}
+ CLANG_CC=
+ CLANG_CXX=
+ fi
+ fi
+ if test -z "$CLANG_CC" -o -z "$CLANG_CXX"; then
+ # Skia is the default on Windows, so hard-require Clang.
+ # Elsewhere it's used just by the 'gen' VCL backend which is rarely used.
+ if test "$_os" = "WINNT"; then
+ as_fn_error $? "Clang compiler not found. The Skia library needs to be built using Clang." "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Clang compiler not found." >&5
+$as_echo "$as_me: WARNING: Clang compiler not found." >&2;}
+ fi
+ else
+
+ save_CXX="$CXX"
+ CXX="$CLANG_CXX"
+ # copy&paste (and adjust) of intrinsics checks, since MSVC's -arch doesn't work well for Clang-cl
+ flag_sse2=-msse2
+ flag_ssse3=-mssse3
+ flag_sse41=-msse4.1
+ flag_sse42=-msse4.2
+ flag_avx=-mavx
+ flag_avx2=-mavx2
+ flag_avx512="-mavx512f -mavx512vl -mavx512bw -mavx512dq -mavx512cd"
+ flag_f16c=-mf16c
+ flag_fma=-mfma
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSE2 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSE2 intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_sse2"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <emmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_xor_si128 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_sse2=yes
+else
+ can_compile_sse2=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_sse2}" >&5
+$as_echo "${can_compile_sse2}" >&6; }
+ if test "${can_compile_sse2}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_SSE2="$flag_sse2"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSSE3 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSSE3 intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_ssse3"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <tmmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_maddubs_epi16 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_ssse3=yes
+else
+ can_compile_ssse3=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_ssse3}" >&5
+$as_echo "${can_compile_ssse3}" >&6; }
+ if test "${can_compile_ssse3}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_SSSE3="$flag_ssse3"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSE4.1 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSE4.1 intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_sse41"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <smmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_cmpeq_epi64 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_sse41=yes
+else
+ can_compile_sse41=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_sse41}" >&5
+$as_echo "${can_compile_sse41}" >&6; }
+ if test "${can_compile_sse41}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_SSE41="$flag_sse41"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile SSE4.2 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile SSE4.2 intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_sse42"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <nmmintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
+ c = _mm_cmpgt_epi64 (a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_sse42=yes
+else
+ can_compile_sse42=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_sse42}" >&5
+$as_echo "${can_compile_sse42}" >&6; }
+ if test "${can_compile_sse42}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_SSE42="$flag_sse42"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile AVX intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile AVX intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_avx"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m256 a = _mm256_set1_ps (0.0f), b = _mm256_set1_ps (0.0f), c;
+ c = _mm256_xor_ps(a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_avx=yes
+else
+ can_compile_avx=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_avx}" >&5
+$as_echo "${can_compile_avx}" >&6; }
+ if test "${can_compile_avx}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_AVX="$flag_avx"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile AVX2 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile AVX2 intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_avx2"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m256i a = _mm256_set1_epi32 (0), b = _mm256_set1_epi32 (0), c;
+ c = _mm256_maddubs_epi16(a, b);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_avx2=yes
+else
+ can_compile_avx2=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_avx2}" >&5
+$as_echo "${can_compile_avx2}" >&6; }
+ if test "${can_compile_avx2}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_AVX2="$flag_avx2"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile AVX512 intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile AVX512 intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_avx512"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m512i a = _mm512_loadu_si512(0);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_avx512=yes
+else
+ can_compile_avx512=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_avx512}" >&5
+$as_echo "${can_compile_avx512}" >&6; }
+ if test "${can_compile_avx512}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_AVX512="$flag_avx512"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile F16C intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile F16C intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_f16c"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m128i a = _mm_set1_epi32 (0);
+ __m128 c;
+ c = _mm_cvtph_ps(a);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_f16c=yes
+else
+ can_compile_f16c=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_f16c}" >&5
+$as_echo "${can_compile_f16c}" >&6; }
+ if test "${can_compile_f16c}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_F16C="$flag_f16c"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can compile FMA intrinsics" >&5
+$as_echo_n "checking whether $CXX can compile FMA intrinsics... " >&6; }
+ 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
+ CXXFLAGS="$CXXFLAGS $flag_fma"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <immintrin.h>
+ int main () {
+ __m256 a = _mm256_set1_ps (0.0f), b = _mm256_set1_ps (0.0f), c = _mm256_set1_ps (0.0f), d;
+ d = _mm256_fmadd_ps(a, b, c);
+ return 0;
+ }
+
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ can_compile_fma=yes
+else
+ can_compile_fma=no
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+
+ CXXFLAGS=$save_CXXFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${can_compile_fma}" >&5
+$as_echo "${can_compile_fma}" >&6; }
+ if test "${can_compile_fma}" = "yes" ; then
+ CLANG_CXXFLAGS_INTRINSICS_FMA="$flag_fma"
+ fi
+
+ CXX="$save_CXX"
+ fi
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+SYSTEM_GPGMEPP=
+
+if test "$build_for_ios" = "YES"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gpgmepp should be disabled due to iOS" >&5
+$as_echo_n "checking whether gpgmepp should be disabled due to iOS... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+elif test "$enable_mpl_subset" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gpgmepp should be disabled due to building just MPL" >&5
+$as_echo_n "checking whether gpgmepp should be disabled due to building just MPL... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+elif test "$enable_fuzzers" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gpgmepp should be disabled due to oss-fuzz" >&5
+$as_echo_n "checking whether gpgmepp should be disabled due to oss-fuzz... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+elif test "$_os" = "Linux" -o "$_os" = "Darwin" -o "$_os" = "WINNT" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which gpgmepp to use" >&5
+$as_echo_n "checking which gpgmepp to use... " >&6; }
+ if test "$with_system_gpgmepp" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_GPGMEPP=TRUE
+
+ # C++ library doesn't come with fancy gpgmepp-config, check for headers the old-fashioned way
+ ac_fn_c_check_header_mongrel "$LINENO" "gpgme++/gpgmepp_version.h" "ac_cv_header_gpgmepp_gpgmepp_version_h" "$ac_includes_default"
+if test "x$ac_cv_header_gpgmepp_gpgmepp_version_h" = xyes; then :
+ GPGMEPP_CFLAGS=-I/usr/include/gpgme++
+else
+ as_fn_error $? "gpgmepp headers not found, install gpgmepp development package" "$LINENO" 5
+fi
+
+
+ # progress_callback is the only func with plain C linkage
+ # checking for it also filters out older, KDE-dependent libgpgmepp versions
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for progress_callback in -lgpgmepp" >&5
+$as_echo_n "checking for progress_callback in -lgpgmepp... " >&6; }
+if ${ac_cv_lib_gpgmepp_progress_callback+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgpgmepp $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 progress_callback ();
+int
+main ()
+{
+return progress_callback ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_gpgmepp_progress_callback=yes
+else
+ ac_cv_lib_gpgmepp_progress_callback=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_gpgmepp_progress_callback" >&5
+$as_echo "$ac_cv_lib_gpgmepp_progress_callback" >&6; }
+if test "x$ac_cv_lib_gpgmepp_progress_callback" = xyes; then :
+ GPGMEPP_LIBS=-lgpgmepp
+else
+ as_fn_error $? "gpgmepp not found or not functional" "$LINENO" 5
+fi
+
+ ac_fn_c_check_header_mongrel "$LINENO" "gpgme.h" "ac_cv_header_gpgme_h" "$ac_includes_default"
+if test "x$ac_cv_header_gpgme_h" = xyes; then :
+
+else
+ as_fn_error $? "gpgme headers not found, install gpgme development package" "$LINENO" 5
+fi
+
+
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ BUILD_TYPE="$BUILD_TYPE LIBGPGERROR LIBASSUAN GPGMEPP"
+ $as_echo "#define GPGME_CAN_EXPORT_MINIMAL_KEY 1" >>confdefs.h
+
+
+ GPG_ERROR_CFLAGS="-I${WORKDIR}/UnpackedTarball/libgpg-error/src"
+ LIBASSUAN_CFLAGS="-I${WORKDIR}/UnpackedTarball/libassuan/src"
+ if test "$_os" != "WINNT"; then
+ GPG_ERROR_LIBS="-L${WORKDIR}/UnpackedTarball/libgpg-error/src/.libs -lgpg-error"
+ LIBASSUAN_LIBS="-L${WORKDIR}/UnpackedTarball/libassuan/src/.libs -lassuan"
+ elif test "$host_cpu" = "i686" -a "$WINDOWS_SDK_ARCH" = "x64"; then
+ as_fn_error $? "gpgme cannot be built on cygwin32 for Win64." "$LINENO" 5
+ fi
+ fi
+ ENABLE_GPGMEPP=TRUE
+ $as_echo "#define HAVE_FEATURE_GPGME 1" >>confdefs.h
+
+ # Extract the first word of "gpg", so it can be a program name with args.
+set dummy gpg; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GPG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GPG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GPG="$GPG" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GPG="$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
+GPG=$ac_cv_path_GPG
+if test -n "$GPG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG" >&5
+$as_echo "$GPG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ # TODO: Windows's cygwin gpg does not seem to work with our gpgme,
+ # so let's exclude that manually for the moment
+ if test -n "$GPG" -a "$_os" != "WINNT"; then
+ # make sure we not only have a working gpgme, but a full working
+ # gpg installation to run OpenPGP signature verification
+ $as_echo "#define HAVE_FEATURE_GPGVERIFY 1" >>confdefs.h
+
+ fi
+ if test "$_os" = "Linux"; then
+ uid=`id -u`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /run/user/$uid" >&5
+$as_echo_n "checking for /run/user/$uid... " >&6; }
+ if test -d /run/user/$uid; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ # Extract the first word of "gpgconf", so it can be a program name with args.
+set dummy gpgconf; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GPGCONF+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GPGCONF in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GPGCONF="$GPGCONF" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GPGCONF="$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
+GPGCONF=$ac_cv_path_GPGCONF
+if test -n "$GPGCONF"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGCONF" >&5
+$as_echo "$GPGCONF" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+ # Older versions of gpgconf are not working as expected, since
+ # `gpgconf --remove-socketdir` fails to exit any gpg-agent daemon operating
+ # on that socket dir that has (indirectly) been started by the tests in xmlsecurity/qa/unit/signing/signing.cxx
+ # (see commit message of f0305ec0a7d199e605511844d9d6af98b66d4bfd%5E )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether version of gpgconf is suitable ... " >&5
+$as_echo_n "checking whether version of gpgconf is suitable ... ... " >&6; }
+ GPGCONF_VERSION=`"$GPGCONF" --version | "$AWK" '/^gpgconf \(GnuPG\)/{print $3}'`
+ GPGCONF_NUMVER=`echo $GPGCONF_VERSION | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
+ if test "$GPGCONF_VERSION" = "2.2_OOo" -o "$GPGCONF_NUMVER" -ge "020200"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $GPGCONF_VERSION" >&5
+$as_echo "yes, $GPGCONF_VERSION" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpgconf --create-socketdir... " >&5
+$as_echo_n "checking for gpgconf --create-socketdir... ... " >&6; }
+ if $GPGCONF --dump-options > /dev/null ; then
+ if $GPGCONF --dump-options | grep -q create-socketdir ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ $as_echo "#define HAVE_GPGCONF_SOCKETDIR 1" >>confdefs.h
+
+ cat >>confdefs.h <<_ACEOF
+#define GPGME_GPGCONF "$GPGCONF"
+_ACEOF
+
+ 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: no. missing or broken gpgconf?" >&5
+$as_echo "no. missing or broken gpgconf?" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $GPGCONF_VERSION" >&5
+$as_echo "no, $GPGCONF_VERSION" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ fi
+fi
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the Wiki Publisher extension" >&5
+$as_echo_n "checking whether to build the Wiki Publisher extension... " >&6; }
+if test "x$enable_ext_wiki_publisher" = "xyes" -a "x$enable_extension_integration" != "xno" -a "$with_java" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_MEDIAWIKI=TRUE
+ BUILD_TYPE="$BUILD_TYPE XSLTML"
+ if test "x$with_java" = "xno"; then
+ as_fn_error $? "Wiki Publisher requires Java! Enable Java if you want to build it." "$LINENO" 5
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_MEDIAWIKI=
+ SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_MEDIAWIKI"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the Report Builder" >&5
+$as_echo_n "checking whether to build the Report Builder... " >&6; }
+if test "$enable_report_builder" != "no" -a "$with_java" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_REPORTBUILDER=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which jfreereport libs to use" >&5
+$as_echo_n "checking which jfreereport libs to use... " >&6; }
+ if test "$with_system_jfreereport" = "yes"; then
+ SYSTEM_JFREEREPORT=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ if test -z $SAC_JAR; then
+ SAC_JAR=/usr/share/java/sac.jar
+ fi
+ if ! test -f $SAC_JAR; then
+ as_fn_error $? "sac.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBXML_JAR; then
+ if test -f /usr/share/java/libxml-1.0.0.jar; then
+ LIBXML_JAR=/usr/share/java/libxml-1.0.0.jar
+ elif test -f /usr/share/java/libxml.jar; then
+ LIBXML_JAR=/usr/share/java/libxml.jar
+ else
+ as_fn_error $? "libxml.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBXML_JAR; then
+ as_fn_error $? "libxml.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $FLUTE_JAR; then
+ if test -f /usr/share/java/flute-1.3.0.jar; then
+ FLUTE_JAR=/usr/share/java/flute-1.3.0.jar
+ elif test -f /usr/share/java/flute.jar; then
+ FLUTE_JAR=/usr/share/java/flute.jar
+ else
+ as_fn_error $? "flute-1.3.0.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $FLUTE_JAR; then
+ as_fn_error $? "flute-1.3.0.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $JFREEREPORT_JAR; then
+ if test -f /usr/share/java/flow-engine-0.9.2.jar; then
+ JFREEREPORT_JAR=/usr/share/java/flow-engine-0.9.2.jar
+ elif test -f /usr/share/java/flow-engine.jar; then
+ JFREEREPORT_JAR=/usr/share/java/flow-engine.jar
+ else
+ as_fn_error $? "jfreereport.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $JFREEREPORT_JAR; then
+ as_fn_error $? "jfreereport.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBLAYOUT_JAR; then
+ if test -f /usr/share/java/liblayout-0.2.9.jar; then
+ LIBLAYOUT_JAR=/usr/share/java/liblayout-0.2.9.jar
+ elif test -f /usr/share/java/liblayout.jar; then
+ LIBLAYOUT_JAR=/usr/share/java/liblayout.jar
+ else
+ as_fn_error $? "liblayout.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBLAYOUT_JAR; then
+ as_fn_error $? "liblayout.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBLOADER_JAR; then
+ if test -f /usr/share/java/libloader-1.0.0.jar; then
+ LIBLOADER_JAR=/usr/share/java/libloader-1.0.0.jar
+ elif test -f /usr/share/java/libloader.jar; then
+ LIBLOADER_JAR=/usr/share/java/libloader.jar
+ else
+ as_fn_error $? "libloader.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBLOADER_JAR; then
+ as_fn_error $? "libloader.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBFORMULA_JAR; then
+ if test -f /usr/share/java/libformula-0.2.0.jar; then
+ LIBFORMULA_JAR=/usr/share/java/libformula-0.2.0.jar
+ elif test -f /usr/share/java/libformula.jar; then
+ LIBFORMULA_JAR=/usr/share/java/libformula.jar
+ else
+ as_fn_error $? "libformula.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBFORMULA_JAR; then
+ as_fn_error $? "libformula.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBREPOSITORY_JAR; then
+ if test -f /usr/share/java/librepository-1.0.0.jar; then
+ LIBREPOSITORY_JAR=/usr/share/java/librepository-1.0.0.jar
+ elif test -f /usr/share/java/librepository.jar; then
+ LIBREPOSITORY_JAR=/usr/share/java/librepository.jar
+ else
+ as_fn_error $? "librepository.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBREPOSITORY_JAR; then
+ as_fn_error $? "librepository.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBFONTS_JAR; then
+ if test -f /usr/share/java/libfonts-1.0.0.jar; then
+ LIBFONTS_JAR=/usr/share/java/libfonts-1.0.0.jar
+ elif test -f /usr/share/java/libfonts.jar; then
+ LIBFONTS_JAR=/usr/share/java/libfonts.jar
+ else
+ as_fn_error $? "libfonts.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBFONTS_JAR; then
+ as_fn_error $? "libfonts.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBSERIALIZER_JAR; then
+ if test -f /usr/share/java/libserializer-1.0.0.jar; then
+ LIBSERIALIZER_JAR=/usr/share/java/libserializer-1.0.0.jar
+ elif test -f /usr/share/java/libserializer.jar; then
+ LIBSERIALIZER_JAR=/usr/share/java/libserializer.jar
+ else
+ as_fn_error $? "libserializer.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBSERIALIZER_JAR; then
+ as_fn_error $? "libserializer.jar not found." "$LINENO" 5
+ fi
+
+ if test -z $LIBBASE_JAR; then
+ if test -f /usr/share/java/libbase-1.0.0.jar; then
+ LIBBASE_JAR=/usr/share/java/libbase-1.0.0.jar
+ elif test -f /usr/share/java/libbase.jar; then
+ LIBBASE_JAR=/usr/share/java/libbase.jar
+ else
+ as_fn_error $? "libbase.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $LIBBASE_JAR; then
+ as_fn_error $? "libbase.jar not found." "$LINENO" 5
+ fi
+
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_JFREEREPORT=
+ BUILD_TYPE="$BUILD_TYPE JFREEREPORT"
+ NEED_ANT=TRUE
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_REPORTBUILDER=
+ SYSTEM_JFREEREPORT=
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# this has to be here because both the Wiki Publisher and the SRB use
+# commons-logging
+COMMONS_LOGGING_VERSION=1.2
+if test "$ENABLE_REPORTBUILDER" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Apache commons-* libs to use" >&5
+$as_echo_n "checking which Apache commons-* libs to use... " >&6; }
+ if test "$with_system_apache_commons" = "yes"; then
+ SYSTEM_APACHE_COMMONS=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ if test -z $COMMONS_LOGGING_JAR; then
+ if test -f /usr/share/java/commons-logging-${COMMONS_LOGGING_VERSION}.jar; then
+ COMMONS_LOGGING_JAR=/usr/share/java/commons-logging-${COMMONS_LOGGING_VERSION}.jar
+ elif test -f /usr/share/java/commons-logging.jar; then
+ COMMONS_LOGGING_JAR=/usr/share/java/commons-logging.jar
+ else
+ as_fn_error $? "commons-logging.jar replacement not found." "$LINENO" 5
+ fi
+ elif ! test -f $COMMONS_LOGGING_JAR; then
+ as_fn_error $? "commons-logging.jar not found." "$LINENO" 5
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_APACHE_COMMONS=
+ BUILD_TYPE="$BUILD_TYPE APACHE_COMMONS"
+ NEED_ANT=TRUE
+ fi
+fi
+
+
+
+
+# scripting provider for BeanShell?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for scripts in BeanShell" >&5
+$as_echo_n "checking whether to build support for scripts in BeanShell... " >&6; }
+if test "${enable_scripting_beanshell}" != "no" -a "x$with_java" != "xno"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_SCRIPTING_BEANSHELL=TRUE
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which beanshell to use" >&5
+$as_echo_n "checking which beanshell to use... " >&6; }
+ if test "$with_system_beanshell" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_BSH=TRUE
+ if test -z $BSH_JAR; then
+ BSH_JAR=/usr/share/java/bsh.jar
+ fi
+ if ! test -f $BSH_JAR; then
+ as_fn_error $? "bsh.jar not found." "$LINENO" 5
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_BSH=
+ BUILD_TYPE="$BUILD_TYPE BSH"
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_SCRIPTING_BEANSHELL=
+ SCPDEFS="$SCPDEFS -DWITHOUT_SCRIPTING_BEANSHELL"
+fi
+
+
+
+
+# scripting provider for JavaScript?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for scripts in JavaScript" >&5
+$as_echo_n "checking whether to build support for scripts in JavaScript... " >&6; }
+if test "${enable_scripting_javascript}" != "no" -a "x$with_java" != "xno"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_SCRIPTING_JAVASCRIPT=TRUE
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which rhino to use" >&5
+$as_echo_n "checking which rhino to use... " >&6; }
+ if test "$with_system_rhino" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_RHINO=TRUE
+ if test -z $RHINO_JAR; then
+ RHINO_JAR=/usr/share/java/js.jar
+ fi
+ if ! test -f $RHINO_JAR; then
+ as_fn_error $? "js.jar not found." "$LINENO" 5
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_RHINO=
+ BUILD_TYPE="$BUILD_TYPE RHINO"
+ NEED_ANT=TRUE
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_SCRIPTING_JAVASCRIPT=
+ SCPDEFS="$SCPDEFS -DWITHOUT_SCRIPTING_JAVASCRIPT"
+fi
+
+
+
+
+# This is only used in Qt5/KF5 checks to determine if /usr/lib64
+# paths should be added to library search path. So lets put all 64-bit
+# platforms there.
+supports_multilib=
+case "$host_cpu" in
+x86_64 | powerpc64 | powerpc64le | s390x | aarch64 | mips64 | mips64el)
+ if test "$SAL_TYPES_SIZEOFLONG" = "8"; then
+ supports_multilib="yes"
+ fi
+ ;;
+*)
+ ;;
+esac
+
+
+QT5_CFLAGS=""
+QT5_LIBS=""
+QMAKE5="qmake"
+MOC5="moc"
+QT5_GOBJECT_CFLAGS=""
+QT5_GOBJECT_LIBS=""
+QT5_HAVE_GOBJECT=""
+if test \( "$test_kf5" = "yes" -a "$ENABLE_KF5" = "TRUE" \) -o \
+ \( "$test_qt5" = "yes" -a "$ENABLE_QT5" = "TRUE" \) -o \
+ \( "$test_gtk3_kde5" = "yes" -a "$ENABLE_GTK3_KDE5" = "TRUE" \)
+then
+ qt5_incdirs="$QT5INC /usr/include/qt5 /usr/include $x_includes"
+ qt5_libdirs="$QT5LIB /usr/lib/qt5 /usr/lib $x_libraries"
+
+ if test -n "$supports_multilib"; then
+ qt5_libdirs="$qt5_libdirs /usr/lib64/qt5 /usr/lib64/qt /usr/lib64"
+ fi
+
+ qt5_test_include="QtWidgets/qapplication.h"
+ qt5_test_library="libQt5Widgets.so"
+
+ for ac_prog in qmake-qt5 qmake
+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 ${ac_cv_path_QMAKE5+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $QMAKE5 in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_QMAKE5="$QMAKE5" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$QT5DIR/bin:$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_QMAKE5="$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
+QMAKE5=$ac_cv_path_QMAKE5
+if test -n "$QMAKE5"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE5" >&5
+$as_echo "$QMAKE5" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$QMAKE5" && break
+done
+test -n "$QMAKE5" || QMAKE5="no"
+
+ if test "$QMAKE5" = "no"; then
+ as_fn_error $? "Qmake not found. Please specify the root of your Qt5 installation by exporting QT5DIR before running \"configure\"." "$LINENO" 5
+ else
+ qmake5_test_ver="`$QMAKE5 -v 2>&1 | $SED -n -e 's/^Using Qt version \(5\.[0-9.]\+\).*$/\1/p'`"
+ if test -z "$qmake5_test_ver"; then
+ as_fn_error $? "Wrong qmake for Qt5 found. Please specify the root of your Qt5 installation by exporting QT5DIR before running \"configure\"." "$LINENO" 5
+ fi
+ qmake5_minor_version="`echo $qmake5_test_ver | cut -d. -f2`"
+ qt5_minimal_minor="6"
+ if test "$qmake5_minor_version" -lt "$qt5_minimal_minor"; then
+ as_fn_error $? "The minimal supported Qt5 version is 5.${qt5_minimal_minor}, but your 'qmake -v' reports Qt5 version $qmake5_test_ver." "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Detected Qt5 version: $qmake5_test_ver" >&5
+$as_echo "$as_me: Detected Qt5 version: $qmake5_test_ver" >&6;}
+ fi
+ fi
+
+ qt5_incdirs="`$QMAKE5 -query QT_INSTALL_HEADERS` $qt5_incdirs"
+ qt5_libdirs="`$QMAKE5 -query QT_INSTALL_LIBS` $qt5_libdirs"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 headers" >&5
+$as_echo_n "checking for Qt5 headers... " >&6; }
+ qt5_incdir="no"
+ for inc_dir in $qt5_incdirs; do
+ if test -r "$inc_dir/$qt5_test_include"; then
+ qt5_incdir="$inc_dir"
+ break
+ fi
+ done
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt5_incdir" >&5
+$as_echo "$qt5_incdir" >&6; }
+ if test "x$qt5_incdir" = "xno"; then
+ as_fn_error $? "Qt5 headers not found. Please specify the root of your Qt5 installation by exporting QT5DIR before running \"configure\"." "$LINENO" 5
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 libraries" >&5
+$as_echo_n "checking for Qt5 libraries... " >&6; }
+ qt5_libdir="no"
+ for lib_dir in $qt5_libdirs; do
+ if test -r "$lib_dir/$qt5_test_library"; then
+ qt5_libdir="$lib_dir"
+ break
+ fi
+ done
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt5_libdir" >&5
+$as_echo "$qt5_libdir" >&6; }
+ if test "x$qt5_libdir" = "xno"; then
+ as_fn_error $? "Qt5 libraries not found. Please specify the root of your Qt5 installation by exporting QT5DIR before running \"configure\"." "$LINENO" 5
+ fi
+
+ QT5_CFLAGS="-I$qt5_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT -DQT_NO_VERSION_TAGGING"
+ QT5_CFLAGS=$(printf '%s' "$QT5_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ QT5_LIBS="-L$qt5_libdir -lQt5Core -lQt5Gui -lQt5Widgets -lQt5Network"
+
+ if test "$USING_X11" = TRUE; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5_XCB" >&5
+$as_echo_n "checking for QT5_XCB... " >&6; }
+
+if test -n "$QT5_XCB_CFLAGS"; then
+ pkg_cv_QT5_XCB_CFLAGS="$QT5_XCB_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xcb") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QT5_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$QT5_XCB_LIBS"; then
+ pkg_cv_QT5_XCB_LIBS="$QT5_XCB_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xcb") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QT5_XCB_LIBS=`$PKG_CONFIG --libs "xcb" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ QT5_XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb" 2>&1`
+ else
+ QT5_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$QT5_XCB_PKG_ERRORS" >&5
+
+ as_fn_error $? "XCB not found, which is needed for correct app grouping in X11." "$LINENO" 5
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "XCB not found, which is needed for correct app grouping in X11." "$LINENO" 5
+else
+ QT5_XCB_CFLAGS=$pkg_cv_QT5_XCB_CFLAGS
+ QT5_XCB_LIBS=$pkg_cv_QT5_XCB_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5_XCB_ICCCM" >&5
+$as_echo_n "checking for QT5_XCB_ICCCM... " >&6; }
+
+if test -n "$QT5_XCB_ICCCM_CFLAGS"; then
+ pkg_cv_QT5_XCB_ICCCM_CFLAGS="$QT5_XCB_ICCCM_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-icccm\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xcb-icccm") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QT5_XCB_ICCCM_CFLAGS=`$PKG_CONFIG --cflags "xcb-icccm" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$QT5_XCB_ICCCM_LIBS"; then
+ pkg_cv_QT5_XCB_ICCCM_LIBS="$QT5_XCB_ICCCM_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-icccm\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xcb-icccm") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QT5_XCB_ICCCM_LIBS=`$PKG_CONFIG --libs "xcb-icccm" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ QT5_XCB_ICCCM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-icccm" 2>&1`
+ else
+ QT5_XCB_ICCCM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-icccm" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$QT5_XCB_ICCCM_PKG_ERRORS" >&5
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: XCB ICCCM not found, which is needed for old Qt versions (< 5.12) on some WMs to correctly group dialogs (like QTBUG-46626)" >&5
+$as_echo "$as_me: WARNING: XCB ICCCM not found, which is needed for old Qt versions (< 5.12) on some WMs to correctly group dialogs (like QTBUG-46626)" >&2;}
+ add_warning "XCB ICCCM not found, which is needed for Qt versions (< 5.12) on some WMs to correctly group dialogs (like QTBUG-46626)"
+
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: XCB ICCCM not found, which is needed for old Qt versions (< 5.12) on some WMs to correctly group dialogs (like QTBUG-46626)" >&5
+$as_echo "$as_me: WARNING: XCB ICCCM not found, which is needed for old Qt versions (< 5.12) on some WMs to correctly group dialogs (like QTBUG-46626)" >&2;}
+ add_warning "XCB ICCCM not found, which is needed for Qt versions (< 5.12) on some WMs to correctly group dialogs (like QTBUG-46626)"
+
+else
+ QT5_XCB_ICCCM_CFLAGS=$pkg_cv_QT5_XCB_ICCCM_CFLAGS
+ QT5_XCB_ICCCM_LIBS=$pkg_cv_QT5_XCB_ICCCM_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+ QT5_HAVE_XCB_ICCCM=1
+ $as_echo "#define QT5_HAVE_XCB_ICCCM 1" >>confdefs.h
+
+
+fi
+ QT5_CFLAGS="$QT5_CFLAGS $QT5_XCB_CFLAGS $QT5_XCB_ICCCM_CFLAGS"
+ QT5_LIBS="$QT5_LIBS $QT5_XCB_LIBS $QT5_XCB_ICCCM_LIBS -lQt5X11Extras"
+ QT5_USING_X11=1
+ $as_echo "#define QT5_USING_X11 1" >>confdefs.h
+
+ fi
+
+
+ for ac_prog in moc-qt5 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 ${ac_cv_path_MOC5+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MOC5 in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MOC5="$MOC5" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="`dirname $qt5_libdir`/bin:$QT5DIR/bin:$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_MOC5="$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
+MOC5=$ac_cv_path_MOC5
+if test -n "$MOC5"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC5" >&5
+$as_echo "$MOC5" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$MOC5" && break
+done
+test -n "$MOC5" || MOC5="no"
+
+ if test "$MOC5" = "no"; then
+ as_fn_error $? "Qt Meta Object Compiler not found. Please specify
+the root of your Qt installation by exporting QT5DIR before running \"configure\"." "$LINENO" 5
+ fi
+
+ if test "$build_gstreamer_1_0" = "yes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5_GOBJECT" >&5
+$as_echo_n "checking for QT5_GOBJECT... " >&6; }
+
+if test -n "$QT5_GOBJECT_CFLAGS"; then
+ pkg_cv_QT5_GOBJECT_CFLAGS="$QT5_GOBJECT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QT5_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$QT5_GOBJECT_LIBS"; then
+ pkg_cv_QT5_GOBJECT_LIBS="$QT5_GOBJECT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_QT5_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ QT5_GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
+ else
+ QT5_GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$QT5_GOBJECT_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GObject found, can't use QWidget GStreamer sink on wayland!" >&5
+$as_echo "$as_me: WARNING: No GObject found, can't use QWidget GStreamer sink on wayland!" >&2;}
+
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GObject found, can't use QWidget GStreamer sink on wayland!" >&5
+$as_echo "$as_me: WARNING: No GObject found, can't use QWidget GStreamer sink on wayland!" >&2;}
+
+else
+ QT5_GOBJECT_CFLAGS=$pkg_cv_QT5_GOBJECT_CFLAGS
+ QT5_GOBJECT_LIBS=$pkg_cv_QT5_GOBJECT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+ QT5_HAVE_GOBJECT=1
+ $as_echo "#define QT5_HAVE_GOBJECT 1" >>confdefs.h
+
+
+fi
+ fi
+fi
+
+
+
+
+
+
+
+
+KF5_CFLAGS=""
+KF5_LIBS=""
+KF5_CONFIG="kf5-config"
+if test \( "$test_kf5" = "yes" -a "$ENABLE_KF5" = "TRUE" \) -o \
+ \( "$test_gtk3_kde5" = "yes" -a "$ENABLE_GTK3_KDE5" = "TRUE" \)
+then
+ if test "$OS" = "HAIKU"; then
+ haiku_arch="`echo $RTL_ARCH | tr X x`"
+ kf5_haiku_incdirs="`findpaths -c ' ' -a $haiku_arch B_FIND_PATH_HEADERS_DIRECTORY`"
+ kf5_haiku_libdirs="`findpaths -c ' ' -a $haiku_arch B_FIND_PATH_DEVELOP_LIB_DIRECTORY`"
+ fi
+
+ kf5_incdirs="$KF5INC /usr/include $kf5_haiku_incdirs $x_includes"
+ kf5_libdirs="$KF5LIB /usr/lib /usr/lib/kf5 /usr/lib/kf5/devel $kf5_haiku_libdirs $x_libraries"
+ if test -n "$supports_multilib"; then
+ kf5_libdirs="$kf5_libdirs /usr/lib64 /usr/lib64/kf5 /usr/lib64/kf5/devel"
+ fi
+
+ kf5_test_include="KF5/kcoreaddons_version.h"
+ kf5_test_library="libKF5CoreAddons.so"
+ kf5_libdirs="$qt5_libdir $kf5_libdirs"
+
+ # Extract the first word of "$KF5_CONFIG", so it can be a program name with args.
+set dummy $KF5_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 ${ac_cv_path_KF5_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $KF5_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_KF5_CONFIG="$KF5_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_KF5_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
+
+ test -z "$ac_cv_path_KF5_CONFIG" && ac_cv_path_KF5_CONFIG="no"
+ ;;
+esac
+fi
+KF5_CONFIG=$ac_cv_path_KF5_CONFIG
+if test -n "$KF5_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KF5_CONFIG" >&5
+$as_echo "$KF5_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$KF5_CONFIG" != "no"; then
+ kf5_incdirs="`$KF5_CONFIG --path include` $kf5_incdirs"
+ kf5_libdirs="`$KF5_CONFIG --path lib` $kf5_libdirs"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KF5 headers" >&5
+$as_echo_n "checking for KF5 headers... " >&6; }
+ kf5_incdir="no"
+ for kf5_check in $kf5_incdirs; do
+ if test -r "$kf5_check/$kf5_test_include"; then
+ kf5_incdir="$kf5_check/KF5"
+ break
+ fi
+ done
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kf5_incdir" >&5
+$as_echo "$kf5_incdir" >&6; }
+ if test "x$kf5_incdir" = "xno"; then
+ as_fn_error $? "KF5 headers not found. Please specify the root of your KF5 installation by exporting KF5DIR before running \"configure\"." "$LINENO" 5
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KF5 libraries" >&5
+$as_echo_n "checking for KF5 libraries... " >&6; }
+ kf5_libdir="no"
+ for kf5_check in $kf5_libdirs; do
+ if test -r "$kf5_check/$kf5_test_library"; then
+ kf5_libdir="$kf5_check"
+ break
+ fi
+ done
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kf5_libdir" >&5
+$as_echo "$kf5_libdir" >&6; }
+ if test "x$kf5_libdir" = "xno"; then
+ as_fn_error $? "KF5 libraries not found. Please specify the root of your KF5 installation by exporting KF5DIR before running \"configure\"." "$LINENO" 5
+ fi
+
+ KF5_CFLAGS="-I$kf5_incdir -I$kf5_incdir/KCoreAddons -I$kf5_incdir/KI18n -I$kf5_incdir/KConfigCore -I$kf5_incdir/KWindowSystem -I$kf5_incdir/KIOCore -I$kf5_incdir/KIOWidgets -I$kf5_incdir/KIOFileWidgets -I$qt5_incdir -I$qt5_incdir/QtCore -I$qt5_incdir/QtGui -I$qt5_incdir/QtWidgets -I$qt5_incdir/QtNetwork -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT -DQT_NO_VERSION_TAGGING"
+ KF5_LIBS="-L$kf5_libdir -lKF5CoreAddons -lKF5I18n -lKF5ConfigCore -lKF5WindowSystem -lKF5KIOCore -lKF5KIOWidgets -lKF5KIOFileWidgets -L$qt5_libdir -lQt5Core -lQt5Gui -lQt5Widgets -lQt5Network"
+ KF5_CFLAGS=$(printf '%s' "$KF5_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+
+ if test "$USING_X11" = TRUE; then
+ KF5_LIBS="$KF5_LIBS -lQt5X11Extras"
+ 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
+
+ save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS $KF5_CFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether KDE is >= 5.0" >&5
+$as_echo_n "checking whether KDE is >= 5.0... " >&6; }
+ if test "$cross_compiling" = yes; 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 $? "cannot run test program while cross compiling
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <kcoreaddons_version.h>
+
+int main(int argc, char **argv) {
+ if (KCOREADDONS_VERSION_MAJOR == 5 && KCOREADDONS_VERSION_MINOR >= 0) return 0;
+ else return 1;
+}
+
+_ACEOF
+if ac_fn_cxx_try_run "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ as_fn_error $? "KDE version too old" "$LINENO" 5
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ 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
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable evolution 2 support" >&5
+$as_echo_n "checking whether to enable evolution 2 support... " >&6; }
+if test "$enable_evolution2" = "yes" -o "$enable_evolution2" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
+$as_echo_n "checking for GOBJECT... " >&6; }
+
+if test -n "$GOBJECT_CFLAGS"; then
+ pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$GOBJECT_LIBS"; then
+ pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
+ else
+ GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GOBJECT_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (gobject-2.0) were not met:
+
+$GOBJECT_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables GOBJECT_CFLAGS
+and GOBJECT_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables GOBJECT_CFLAGS
+and GOBJECT_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
+ GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ GOBJECT_CFLAGS=$(printf '%s' "$GOBJECT_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${GOBJECT_LIBS}"
+ GOBJECT_LIBS="${filteredlibs}"
+ ENABLE_EVOAB2="TRUE"
+else
+ ENABLE_EVOAB2=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which themes to include" >&5
+$as_echo_n "checking which themes to include... " >&6; }
+# if none given use default subset of available themes
+if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
+ with_theme="breeze breeze_dark breeze_dark_svg breeze_svg colibre colibre_svg elementary elementary_svg karasa_jaga karasa_jaga_svg sifr sifr_svg sifr_dark sifr_dark_svg sukapura sukapura_svg"
+fi
+
+WITH_THEMES=""
+if test "x$with_theme" != "xno"; then
+ for theme in $with_theme; do
+ case $theme in
+ breeze|breeze_dark|breeze_dark_svg|breeze_svg|colibre|colibre_svg|elementary|elementary_svg|karasa_jaga|karasa_jaga_svg|sifr|sifr_svg|sifr_dark|sifr_dark_svg|sukapura|sukapura_svg) real_theme="$theme" ;;
+ default) real_theme=colibre ;;
+ *) as_fn_error $? "Unknown value for --with-theme: $theme" "$LINENO" 5 ;;
+ esac
+ WITH_THEMES=`echo "$WITH_THEMES $real_theme"|tr '\ ' '\n'|sort|uniq|tr '\n' '\ '`
+ done
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_THEMES" >&5
+$as_echo "$WITH_THEMES" >&6; }
+
+# FIXME: remove this, and the convenience default->colibre remapping after a grace period
+for theme in $with_theme; do
+ case $theme in
+ default) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-theme=default is deprecated and will be removed, use --with-theme=colibre" >&5
+$as_echo "$as_me: WARNING: --with-theme=default is deprecated and will be removed, use --with-theme=colibre" >&2;} ;;
+ *) ;;
+ esac
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for helppack integration" >&5
+$as_echo_n "checking for helppack integration... " >&6; }
+if test "$with_helppack_integration" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no integration" >&5
+$as_echo "no integration" >&6; }
+else
+ SCPDEFS="$SCPDEFS -DWITH_HELPPACK_INTEGRATION"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: integration" >&5
+$as_echo "integration" >&6; }
+fi
+
+###############################################################################
+# Extensions checking
+###############################################################################
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extensions integration" >&5
+$as_echo_n "checking for extensions integration... " >&6; }
+if test "x$enable_extension_integration" != "xno"; then
+ WITH_EXTENSION_INTEGRATION=TRUE
+ SCPDEFS="$SCPDEFS -DWITH_EXTENSION_INTEGRATION"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, use integration" >&5
+$as_echo "yes, use integration" >&6; }
+else
+ WITH_EXTENSION_INTEGRATION=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, do not integrate" >&5
+$as_echo "no, do not integrate" >&6; }
+fi
+
+
+WITH_EXTRA_EXTENSIONS=
+
+
+
+# Check whether --enable-ext-ct2n was given.
+if test "${enable_ext_ct2n+set}" = set; then :
+ enableval=$enable_ext_ct2n;
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for building the ConvertTextToNumber extension" >&5
+$as_echo_n "checking for building the ConvertTextToNumber extension... " >&6; }
+CT2N_EXTENSION_PACK=
+if test "x$enable_ext_ct2n" = "xyes" -a "x$enable_extension_integration" != "xno"; then
+ SCPDEFS="$SCPDEFS -DWITH_EXTENSION_CT2N"
+ CT2N_EXTENSION_PACK=""
+ BUILD_TYPE="$BUILD_TYPE CT2N"
+ WITH_EXTRA_EXTENSIONS=TRUE
+ { $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
+
+
+
+# Check whether --enable-ext-numbertext was given.
+if test "${enable_ext_numbertext+set}" = set; then :
+ enableval=$enable_ext_numbertext;
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for building the Numbertext extension" >&5
+$as_echo_n "checking for building the Numbertext extension... " >&6; }
+NUMBERTEXT_EXTENSION_PACK=
+if test "x$enable_ext_numbertext" = "xyes" -a "x$enable_extension_integration" != "xno"; then
+ SCPDEFS="$SCPDEFS -DWITH_EXTENSION_NUMBERTEXT"
+ NUMBERTEXT_EXTENSION_PACK="b7cae45ad2c23551fd6ccb8ae2c1f59e-numbertext_0.9.5.oxt"
+ BUILD_TYPE="$BUILD_TYPE NUMBERTEXT"
+ WITH_EXTRA_EXTENSIONS=TRUE
+ { $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
+
+
+if test "x$with_java" != "xno"; then
+
+# Check whether --enable-ext-nlpsolver was given.
+if test "${enable_ext_nlpsolver+set}" = set; then :
+ enableval=$enable_ext_nlpsolver;
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for building the NLPSolver extension" >&5
+$as_echo_n "checking for building the NLPSolver extension... " >&6; }
+NLPSOLVER_EXTENSION_PACK=
+if test "x$enable_ext_nlpsolver" = "xyes" -a "x$enable_extension_integration" != "xno"; then
+ SCPDEFS="$SCPDEFS -DWITH_EXTENSION_NLPSOLVER"
+ NLPSOLVER_EXTENSION_PACK=""
+ BUILD_TYPE="$BUILD_TYPE NLPSOLVER"
+ WITH_EXTRA_EXTENSIONS=TRUE
+ { $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
+
+
+
+# Check whether --enable-ext-languagetool was given.
+if test "${enable_ext_languagetool+set}" = set; then :
+ enableval=$enable_ext_languagetool;
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for building the LanguageTool extension" >&5
+$as_echo_n "checking for building the LanguageTool extension... " >&6; }
+LANGUAGETOOL_EXTENSION_PACK=
+if test "x$enable_ext_languagetool" = "xyes" -a "x$enable_extension_integration" != "xno"; then
+ SCPDEFS="$SCPDEFS -DWITH_EXTENSION_LANGUAGETOOL"
+ LANGUAGETOOL_EXTENSION_PACK=""
+ BUILD_TYPE="$BUILD_TYPE LANGUAGETOOL"
+ WITH_EXTRA_EXTENSIONS=TRUE
+ { $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
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build opens___.ttf" >&5
+$as_echo_n "checking whether to build opens___.ttf... " >&6; }
+if test "$enable_build_opensymbol" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ # Extract the first word of "fontforge", so it can be a program name with args.
+set dummy fontforge; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_FONTFORGE+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $FONTFORGE in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_FONTFORGE="$FONTFORGE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_FONTFORGE="$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
+FONTFORGE=$ac_cv_path_FONTFORGE
+if test -n "$FONTFORGE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
+$as_echo "$FONTFORGE" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test -z "$FONTFORGE"; then
+ as_fn_error $? "fontforge not installed" "$LINENO" 5
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ OPENSYMBOL_TTF=884ed41809687c3e168fc7c19b16585149ff058eca79acbf3ee784f6630704cc-opens___.ttf
+ BUILD_TYPE="$BUILD_TYPE OPENSYMBOL"
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include third-party fonts" >&5
+$as_echo_n "checking whether to include third-party fonts... " >&6; }
+if test "$with_fonts" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ WITH_FONTS=TRUE
+ BUILD_TYPE="$BUILD_TYPE MORE_FONTS"
+ $as_echo "#define HAVE_MORE_FONTS 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ WITH_FONTS=
+ SCPDEFS="$SCPDEFS -DWITHOUT_FONTS"
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable online update" >&5
+$as_echo_n "checking whether to enable online update... " >&6; }
+ENABLE_ONLINE_UPDATE=
+ENABLE_ONLINE_UPDATE_MAR=
+UPDATE_CONFIG=
+if test "$enable_online_update" = ""; then
+ if test "$_os" = "WINNT" -o "$_os" = "Darwin"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_ONLINE_UPDATE="TRUE"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+else
+ if test "$enable_online_update" = "mar"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - MAR-based online update" >&5
+$as_echo "yes - MAR-based online update" >&6; }
+ ENABLE_ONLINE_UPDATE_MAR="TRUE"
+ if test "$with_update_config" = ""; then
+ as_fn_error $? "mar based online updater needs an update config specified with \"with-update-config" "$LINENO" 5
+ fi
+ UPDATE_CONFIG="$with_update_config"
+ $as_echo "#define HAVE_FEATURE_UPDATE_MAR 1" >>confdefs.h
+
+ elif test "$enable_online_update" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_ONLINE_UPDATE="TRUE"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+fi
+
+
+
+
+SYSTEM_BZIP2=
+if test "$ENABLE_ONLINE_UPDATE_MAR" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use system bzip2" >&5
+$as_echo_n "checking whether to use system bzip2... " >&6; }
+ if test "$with_system_bzip2" = yes; then
+ SYSTEM_BZIP2=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
+$as_echo_n "checking for BZIP2... " >&6; }
+
+if test -n "$BZIP2_CFLAGS"; then
+ pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$BZIP2_LIBS"; then
+ pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
+ else
+ BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$BZIP2_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (bzip2) were not met:
+
+$BZIP2_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables BZIP2_CFLAGS
+and BZIP2_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables BZIP2_CFLAGS
+and BZIP2_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
+ BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ FilterLibs "${BZIP2_LIBS}"
+ BZIP2_LIBS="${filteredlibs}"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ BUILD_TYPE="$BUILD_TYPE BZIP2"
+ fi
+fi
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable extension update" >&5
+$as_echo_n "checking whether to enable extension update... " >&6; }
+ENABLE_EXTENSION_UPDATE=
+if test "x$enable_extension_update" = "xno"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_EXTENSION_UPDATE="TRUE"
+ $as_echo "#define ENABLE_EXTENSION_UPDATE 1" >>confdefs.h
+
+ SCPDEFS="$SCPDEFS -DENABLE_EXTENSION_UPDATE"
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create MSI with LIMITUI=1 (silent install)" >&5
+$as_echo_n "checking whether to create MSI with LIMITUI=1 (silent install)... " >&6; }
+if test "$enable_silent_msi" = "" -o "$enable_silent_msi" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ENABLE_SILENT_MSI=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_SILENT_MSI=TRUE
+ SCPDEFS="$SCPDEFS -DENABLE_SILENT_MSI"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether and how to use Xinerama" >&5
+$as_echo_n "checking whether and how to use Xinerama... " >&6; }
+if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
+ if test "$x_libraries" = "default_x_libraries"; then
+ XINERAMALIB=`$PKG_CONFIG --variable=libdir xinerama`
+ if test "x$XINERAMALIB" = x; then
+ XINERAMALIB="/usr/lib"
+ fi
+ else
+ XINERAMALIB="$x_libraries"
+ fi
+ if test -e "$XINERAMALIB/libXinerama.so" -a -e "$XINERAMALIB/libXinerama.a"; then
+ # we have both versions, let the user decide but use the dynamic one
+ # per default
+ USE_XINERAMA=TRUE
+ if test -z "$with_static_xinerama" -o -n "$with_system_libs"; then
+ XINERAMA_LINK=dynamic
+ else
+ XINERAMA_LINK=static
+ fi
+ elif test -e "$XINERAMALIB/libXinerama.so" -a ! -e "$XINERAMALIB/libXinerama.a"; then
+ # we have only the dynamic version
+ USE_XINERAMA=TRUE
+ XINERAMA_LINK=dynamic
+ elif test -e "$XINERAMALIB/libXinerama.a"; then
+ # static version
+ if echo $host_cpu | $GREP -E 'i[3456]86' 2>/dev/null >/dev/null; then
+ USE_XINERAMA=TRUE
+ XINERAMA_LINK=static
+ else
+ USE_XINERAMA=
+ XINERAMA_LINK=none
+ fi
+ else
+ # no Xinerama
+ USE_XINERAMA=
+ XINERAMA_LINK=none
+ fi
+ if test "$USE_XINERAMA" = "TRUE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $XINERAMA_LINK linking" >&5
+$as_echo "yes, with $XINERAMA_LINK linking" >&6; }
+ ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
+if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
+
+else
+ as_fn_error $? "Xinerama header not found." "$LINENO" 5
+fi
+
+
+ XEXTLIBS=`$PKG_CONFIG --variable=libs xext`
+ if test "x$XEXTLIB" = x; then
+ XEXTLIBS="-L$XLIB -L$XINERAMALIB -lXext"
+ fi
+ XINERAMA_EXTRA_LIBS="$XEXTLIBS"
+ if test "$_os" = "FreeBSD"; then
+ XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -lXt"
+ fi
+ if test "$_os" = "Linux"; then
+ XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -ldl"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaIsActive in -lXinerama" >&5
+$as_echo_n "checking for XineramaIsActive in -lXinerama... " >&6; }
+if ${ac_cv_lib_Xinerama_XineramaIsActive+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXinerama $XINERAMA_EXTRA_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 XineramaIsActive ();
+int
+main ()
+{
+return XineramaIsActive ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_Xinerama_XineramaIsActive=yes
+else
+ ac_cv_lib_Xinerama_XineramaIsActive=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_Xinerama_XineramaIsActive" >&5
+$as_echo "$ac_cv_lib_Xinerama_XineramaIsActive" >&6; }
+if test "x$ac_cv_lib_Xinerama_XineramaIsActive" = xyes; then :
+ :
+else
+ as_fn_error $? "Xinerama not functional?" "$LINENO" 5
+fi
+
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, libXinerama not found or wrong architecture." >&5
+$as_echo "no, libXinerama not found or wrong architecture." >&6; }
+ fi
+else
+ USE_XINERAMA=
+ XINERAMA_LINK=none
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+if test "$USING_X11" = TRUE; then
+ # Used in vcl/Library_vclplug_gen.mk
+ test_cairo=yes
+fi
+
+if test "$test_cairo" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system cairo" >&5
+$as_echo_n "checking whether to use the system cairo... " >&6; }
+
+ : ${with_system_cairo:=$with_system_libs}
+ if test "$with_system_cairo" = "yes"; then
+ SYSTEM_CAIRO=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
+$as_echo_n "checking for CAIRO... " >&6; }
+
+if test -n "$CAIRO_CFLAGS"; then
+ pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0 \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0 ") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0 " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$CAIRO_LIBS"; then
+ pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0 \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0 ") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0 " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0 " 2>&1`
+ else
+ CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0 " 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$CAIRO_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (cairo >= 1.8.0 ) were not met:
+
+$CAIRO_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables CAIRO_CFLAGS
+and CAIRO_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables CAIRO_CFLAGS
+and CAIRO_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
+ CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ CAIRO_CFLAGS=$(printf '%s' "$CAIRO_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${CAIRO_LIBS}"
+ CAIRO_LIBS="${filteredlibs}"
+
+ if test "$test_xrender" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xrender.h defines PictStandardA8" >&5
+$as_echo_n "checking whether Xrender.h defines PictStandardA8... " >&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
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <X11/extensions/Xrender.h>
+int
+main ()
+{
+
+#ifdef PictStandardA8
+#else
+ return fail;
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ as_fn_error $? "no, X headers too old." "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext 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
+ else
+ SYSTEM_CAIRO=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+ BUILD_TYPE="$BUILD_TYPE CAIRO"
+ fi
+fi
+
+
+
+
+
+if test "$_os" = "WINNT"; then
+ # Windows uses bundled mDNSResponder
+ BUILD_TYPE="$BUILD_TYPE MDNSRESPONDER"
+elif test "$_os" != "Darwin" -a "$enable_avahi" = "yes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI" >&5
+$as_echo_n "checking for AVAHI... " >&6; }
+
+if test -n "$AVAHI_CFLAGS"; then
+ pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6.10\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6.10") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags "avahi-client >= 0.6.10" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$AVAHI_LIBS"; then
+ pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6.10\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6.10") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs "avahi-client >= 0.6.10" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client >= 0.6.10" 2>&1`
+ else
+ AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client >= 0.6.10" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$AVAHI_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (avahi-client >= 0.6.10) were not met:
+
+$AVAHI_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables AVAHI_CFLAGS
+and AVAHI_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables AVAHI_CFLAGS
+and AVAHI_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
+ AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ ENABLE_AVAHI="TRUE"
+fi
+ $as_echo "#define HAVE_FEATURE_AVAHI 1" >>confdefs.h
+
+ AVAHI_CFLAGS=$(printf '%s' "$AVAHI_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${AVAHI_LIBS}"
+ AVAHI_LIBS="${filteredlibs}"
+fi
+
+
+
+
+
+SYSTEM_LIBLANGTAG=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use system liblangtag" >&5
+$as_echo_n "checking whether to use system liblangtag... " >&6; }
+if test "$with_system_liblangtag" = yes; then
+ SYSTEM_LIBLANGTAG=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLANGTAG" >&5
+$as_echo_n "checking for LIBLANGTAG... " >&6; }
+
+if test -n "$LIBLANGTAG_CFLAGS"; then
+ pkg_cv_LIBLANGTAG_CFLAGS="$LIBLANGTAG_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblangtag >= 0.4.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "liblangtag >= 0.4.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBLANGTAG_CFLAGS=`$PKG_CONFIG --cflags "liblangtag >= 0.4.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBLANGTAG_LIBS"; then
+ pkg_cv_LIBLANGTAG_LIBS="$LIBLANGTAG_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblangtag >= 0.4.0\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "liblangtag >= 0.4.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBLANGTAG_LIBS=`$PKG_CONFIG --libs "liblangtag >= 0.4.0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBLANGTAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblangtag >= 0.4.0" 2>&1`
+ else
+ LIBLANGTAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblangtag >= 0.4.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBLANGTAG_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (liblangtag >= 0.4.0) were not met:
+
+$LIBLANGTAG_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBLANGTAG_CFLAGS
+and LIBLANGTAG_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBLANGTAG_CFLAGS
+and LIBLANGTAG_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBLANGTAG_CFLAGS=$pkg_cv_LIBLANGTAG_CFLAGS
+ LIBLANGTAG_LIBS=$pkg_cv_LIBLANGTAG_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblangtag >= 0.5.5\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "liblangtag >= 0.5.5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ :
+else
+ $as_echo "#define LIBLANGTAG_INLINE_FIX 1" >>confdefs.h
+
+fi
+ LIBLANGTAG_CFLAGS=$(printf '%s' "$LIBLANGTAG_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBLANGTAG_LIBS}"
+ LIBLANGTAG_LIBS="${filteredlibs}"
+else
+ SYSTEM_LIBLANGTAG=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ BUILD_TYPE="$BUILD_TYPE LIBLANGTAG"
+ LIBLANGTAG_CFLAGS="-I${WORKDIR}/UnpackedTarball/liblangtag"
+ if test "$COM" = "MSC"; then
+ LIBLANGTAG_LIBS="${WORKDIR}/UnpackedTarball/liblangtag/liblangtag/.libs/liblangtag.lib"
+ else
+ LIBLANGTAG_LIBS="-L${WORKDIR}/UnpackedTarball/liblangtag/liblangtag/.libs -llangtag"
+ fi
+fi
+
+
+
+
+
+
+
+# Check whether --with-system-libpng was given.
+if test "${with_system_libpng+set}" = set; then :
+ withval=$with_system_libpng;
+else
+ with_system_libpng="$with_system_libs"
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libpng to use" >&5
+$as_echo_n "checking which libpng to use... " >&6; }
+if test "$with_system_libpng" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
+$as_echo "external" >&6; }
+ SYSTEM_LIBPNG=TRUE
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
+$as_echo_n "checking for LIBPNG... " >&6; }
+
+if test -n "$LIBPNG_CFLAGS"; then
+ pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$LIBPNG_LIBS"; then
+ pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
+ else
+ LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$LIBPNG_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libpng) were not met:
+
+$LIBPNG_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables LIBPNG_CFLAGS
+and LIBPNG_LIBS 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}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $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 environment variables LIBPNG_CFLAGS
+and LIBPNG_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
+ LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+ LIBPNG_CFLAGS=$(printf '%s' "${LIBPNG_CFLAGS}" | sed -e "s/-I/${ISYSTEM?}/g")
+ FilterLibs "${LIBPNG_LIBS}"
+ LIBPNG_LIBS="$filteredlibs"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
+ SYSTEM_LIBPNG=
+ LIBPNG_CFLAGS="-I${WORKDIR}/UnpackedTarball/libpng"
+ LIBPNG_LIBS="-L${WORKDIR}/LinkTarget/StaticLibrary -llibpng"
+ BUILD_TYPE="$BUILD_TYPE LIBPNG"
+fi
+
+
+
+
+
+if test "$ENABLE_JAVA" != ""; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use specific JVM search path at runtime" >&5
+$as_echo_n "checking whether to use specific JVM search path at runtime... " >&6; }
+ if test -n "$with_jvm_path" -a "$with_jvm_path" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ if ! test -d "$with_jvm_path"; then
+ as_fn_error $? "\"$with_jvm_path\" not a directory" "$LINENO" 5
+ fi
+ if ! test -d "$with_jvm_path"jvm; then
+ as_fn_error $? "\"$with_jvm_path\"jvm not found, point with_jvm_path to \/path/to/\jvm" "$LINENO" 5
+ fi
+ JVM_ONE_PATH_CHECK="$with_jvm_path"
+
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+fi
+
+
+if test "$ENABLE_JAVA" != "" -a "$NEED_ANT" = "TRUE"; then
+ ANT_HOME=; export ANT_HOME
+ WITH_ANT_HOME=; export WITH_ANT_HOME
+ if test -z "$with_ant_home" -a -n "$LODE_HOME" ; then
+ if test -x "$LODE_HOME/opt/ant/bin/ant" ; then
+ if test "$_os" = "WINNT"; then
+ with_ant_home="`cygpath -m $LODE_HOME/opt/ant`"
+ else
+ with_ant_home="$LODE_HOME/opt/ant"
+ fi
+ elif test -x "$LODE_HOME/opt/bin/ant" ; then
+ with_ant_home="$LODE_HOME/opt/ant"
+ fi
+ fi
+ if test -z "$with_ant_home"; then
+ for ac_prog in ant ant.sh ant.bat ant.cmd
+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 ${ac_cv_path_ANT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ANT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ANT="$ANT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_ANT="$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
+ANT=$ac_cv_path_ANT
+if test -n "$ANT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
+$as_echo "$ANT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ANT" && break
+done
+
+ else
+ if test "$_os" = "WINNT"; then
+ # AC_PATH_PROGS needs unix path
+ with_ant_home=`cygpath -u "$with_ant_home"`
+ fi
+ AbsolutePath "$with_ant_home"
+ with_ant_home=$absolute_path
+ for ac_prog in ant ant.sh ant.bat ant.cmd
+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 ${ac_cv_path_ANT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ANT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$with_ant_home/bin:$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_ANT="$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
+ANT=$ac_cv_path_ANT
+if test -n "$ANT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
+$as_echo "$ANT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ANT" && break
+done
+
+ WITH_ANT_HOME=$with_ant_home
+ ANT_HOME=$with_ant_home
+ fi
+
+ if test -z "$ANT"; then
+ as_fn_error $? "Ant not found - Make sure it's in the path or use --with-ant-home" "$LINENO" 5
+ else
+ # resolve relative or absolute symlink
+ while test -h "$ANT"; do
+ a_cwd=`pwd`
+ a_basename=`basename "$ANT"`
+ a_script=`ls -l "$ANT" | $SED "s/.*${a_basename} -> //g"`
+ cd "`dirname "$ANT"`"
+ cd "`dirname "$a_script"`"
+ ANT="`pwd`"/"`basename "$a_script"`"
+ cd "$a_cwd"
+ done
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $ANT works" >&5
+$as_echo_n "checking if $ANT works... " >&6; }
+ mkdir -p conftest.dir
+ a_cwd=$(pwd)
+ cd conftest.dir
+ cat > conftest.java << EOF
+ public class conftest {
+ int testmethod(int a, int b) {
+ return a + b;
+ }
+ }
+EOF
+
+ cat > conftest.xml << EOF
+ <project name="conftest" default="conftest">
+ <target name="conftest">
+ <javac srcdir="." includes="conftest.java">
+ </javac>
+ </target>
+ </project>
+EOF
+
+ { ac_try='"$ANT" -buildfile conftest.xml 1>&2'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+ if test $? = 0 -a -f ./conftest.class; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ant works" >&5
+$as_echo "Ant works" >&6; }
+ if test -z "$WITH_ANT_HOME"; then
+ ANT_HOME=`"$ANT" -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"`
+ if test -z "$ANT_HOME"; then
+ ANT_HOME=`echo "$ANT" | $SED -n "s/\/bin\/ant.*\$//p"`
+ fi
+ else
+ ANT_HOME="$WITH_ANT_HOME"
+ fi
+ else
+ echo "configure: Ant test failed" >&5
+ cat conftest.java >&5
+ cat conftest.xml >&5
+ as_fn_error $? "Ant does not work - Some Java projects will not build!" "$LINENO" 5
+ fi
+ cd "$a_cwd"
+ rm -fr conftest.dir
+ fi
+ if test -z "$ANT_HOME"; then
+ ANT_HOME="NO_ANT_HOME"
+ else
+ PathFormat "$ANT_HOME"
+ ANT_HOME="$formatted_path"
+ PathFormat "$ANT"
+ ANT="$formatted_path"
+ fi
+
+
+
+ if test "$ANT_HOME" != "NO_ANT_HOME"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ant lib directory" >&5
+$as_echo_n "checking Ant lib directory... " >&6; }
+ if test -f $ANT_HOME/lib/ant.jar; then
+ ANT_LIB="$ANT_HOME/lib"
+ else
+ if test -f $ANT_HOME/ant.jar; then
+ ANT_LIB="$ANT_HOME"
+ else
+ if test -f /usr/share/java/ant.jar; then
+ ANT_LIB=/usr/share/java
+ else
+ if test -f /usr/share/ant-core/lib/ant.jar; then
+ ANT_LIB=/usr/share/ant-core/lib
+ else
+ if test -f $ANT_HOME/lib/ant/ant.jar; then
+ ANT_LIB="$ANT_HOME/lib/ant"
+ else
+ if test -f /usr/share/lib/ant/ant.jar; then
+ ANT_LIB=/usr/share/lib/ant
+ else
+ as_fn_error $? "Ant libraries not found!" "$LINENO" 5
+ fi
+ fi
+ fi
+ fi
+ fi
+ fi
+ PathFormat "$ANT_LIB"
+ ANT_LIB="$formatted_path"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ant lib directory found." >&5
+$as_echo "Ant lib directory found." >&6; }
+ fi
+
+
+ ant_minver=1.6.0
+ ant_minminor1=`echo $ant_minver | cut -d"." -f2`
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ant is >= $ant_minver" >&5
+$as_echo_n "checking whether Ant is >= $ant_minver... " >&6; }
+ ant_version=`"$ANT" -version | $AWK '$3 == "version" { print $4; }'`
+ ant_version_major=`echo $ant_version | cut -d. -f1`
+ ant_version_minor=`echo $ant_version | cut -d. -f2`
+ echo "configure: ant_version $ant_version " >&5
+ echo "configure: ant_version_major $ant_version_major " >&5
+ echo "configure: ant_version_minor $ant_version_minor " >&5
+ if test "$ant_version_major" -ge "2"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $ant_version" >&5
+$as_echo "yes, $ant_version" >&6; }
+ elif test "$ant_version_major" = "1" -a "$ant_version_minor" -ge "$ant_minminor1"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $ant_version" >&5
+$as_echo "yes, $ant_version" >&6; }
+ else
+ as_fn_error $? "no, you need at least Ant >= $ant_minver" "$LINENO" 5
+ fi
+
+ rm -f conftest* core core.* *.core
+fi
+
+OOO_JUNIT_JAR=
+if test "$ENABLE_JAVA" != "" -a "$with_junit" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JUnit 4" >&5
+$as_echo_n "checking for JUnit 4... " >&6; }
+ if test "$with_junit" = "yes"; then
+ if test -n "$LODE_HOME" -a -e "$LODE_HOME/opt/share/java/junit.jar" ; then
+ OOO_JUNIT_JAR="$LODE_HOME/opt/share/java/junit.jar"
+ elif test -e /usr/share/java/junit4.jar; then
+ OOO_JUNIT_JAR=/usr/share/java/junit4.jar
+ else
+ if test -e /usr/share/lib/java/junit.jar; then
+ OOO_JUNIT_JAR=/usr/share/lib/java/junit.jar
+ else
+ OOO_JUNIT_JAR=/usr/share/java/junit.jar
+ fi
+ fi
+ else
+ OOO_JUNIT_JAR=$with_junit
+ fi
+ if test "$_os" = "WINNT"; then
+ OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"`
+ fi
+ printf 'import org.junit.Before;' > conftest.java
+ if "$JAVACOMPILER" -classpath "$OOO_JUNIT_JAR" conftest.java >&5 2>&5; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OOO_JUNIT_JAR" >&5
+$as_echo "$OOO_JUNIT_JAR" >&6; }
+ else
+ as_fn_error $? "cannot find JUnit 4 jar; please install one in the default location (/usr/share/java),
+ specify its pathname via --with-junit=..., or disable it via --without-junit" "$LINENO" 5
+ fi
+ rm -f conftest.class conftest.java
+ if test $OOO_JUNIT_JAR != ""; then
+ BUILD_TYPE="$BUILD_TYPE QADEVOOO"
+ fi
+fi
+
+
+HAMCREST_JAR=
+if test "$ENABLE_JAVA" != "" -a "$with_junit" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for included Hamcrest" >&5
+$as_echo_n "checking for included Hamcrest... " >&6; }
+ printf 'import org.hamcrest.BaseDescription;' > conftest.java
+ if "$JAVACOMPILER" -classpath "$OOO_JUNIT_JAR" conftest.java >&5 2>&5; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Included in $OOO_JUNIT_JAR" >&5
+$as_echo "Included in $OOO_JUNIT_JAR" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not included" >&5
+$as_echo "Not included" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone hamcrest jar." >&5
+$as_echo_n "checking for standalone hamcrest jar.... " >&6; }
+ if test "$with_hamcrest" = "yes"; then
+ if test -e /usr/share/lib/java/hamcrest.jar; then
+ HAMCREST_JAR=/usr/share/lib/java/hamcrest.jar
+ elif test -e /usr/share/java/hamcrest/core.jar; then
+ HAMCREST_JAR=/usr/share/java/hamcrest/core.jar
+ else
+ HAMCREST_JAR=/usr/share/java/hamcrest.jar
+ fi
+ else
+ HAMCREST_JAR=$with_hamcrest
+ fi
+ if test "$_os" = "WINNT"; then
+ HAMCREST_JAR=`cygpath -m "$HAMCREST_JAR"`
+ fi
+ if "$JAVACOMPILER" -classpath "$HAMCREST_JAR" conftest.java >&5 2>&5; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAMCREST_JAR" >&5
+$as_echo "$HAMCREST_JAR" >&6; }
+ else
+ as_fn_error $? "junit does not contain hamcrest; please use a junit jar that includes hamcrest, install a hamcrest jar in the default location (/usr/share/java),
+ specify its path with --with-hamcrest=..., or disable junit with --without-junit" "$LINENO" 5
+ fi
+ fi
+ rm -f conftest.class conftest.java
+fi
+
+
+
+
+
+#
+# check for wget and curl
+#
+WGET=
+CURL=
+
+if test "$enable_fetch_external" != "no"; then
+
+CURL=`which curl 2>/dev/null`
+
+for i in wget /usr/bin/wget /usr/local/bin/wget /usr/sfw/bin/wget /opt/sfw/bin/wget /opt/local/bin/wget; do
+ # wget new enough?
+ $i --help 2> /dev/null | $GREP no-use-server-timestamps 2>&1 > /dev/null
+ if test $? -eq 0; then
+ WGET=$i
+ break
+ fi
+done
+
+if test -z "$WGET" -a -z "$CURL"; then
+ as_fn_error $? "neither wget nor curl found!" "$LINENO" 5
+fi
+
+fi
+
+
+
+
+#
+# check for sha256sum
+#
+SHA256SUM=
+
+for i in shasum /usr/local/bin/shasum /usr/sfw/bin/shasum /opt/sfw/bin/shasum /opt/local/bin/shasum; do
+ eval "$i -a 256 --version" > /dev/null 2>&1
+ ret=$?
+ if test $ret -eq 0; then
+ SHA256SUM="$i -a 256"
+ break
+ fi
+done
+
+if test -z "$SHA256SUM"; then
+ for i in sha256sum /usr/local/bin/sha256sum /usr/sfw/bin/sha256sum /opt/sfw/bin/sha256sum /opt/local/bin/sha256sum; do
+ eval "$i --version" > /dev/null 2>&1
+ ret=$?
+ if test $ret -eq 0; then
+ SHA256SUM=$i
+ break
+ fi
+ done
+fi
+
+if test -z "$SHA256SUM"; then
+ as_fn_error $? "no sha256sum found!" "$LINENO" 5
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which languages to be built" >&5
+$as_echo_n "checking which languages to be built... " >&6; }
+# get list of all languages
+# generate shell variable from completelangiso= from solenv/inc/langlist.mk
+# the sed command does the following:
+# + if a line ends with a backslash, append the next line to it
+# + adds " on the beginning of the value (after =)
+# + adds " at the end of the value
+# + removes en-US; we want to put it on the beginning
+# + prints just the section starting with 'completelangiso=' and ending with the " at the end of line
+eval $(sed -e :a -e '/\\$/N; s/\\\n//; ta' -n -e 's/=/="/;s/\([^\\]\)$/\1"/;s/en-US//;/^completelangiso/p' $SRC_ROOT/solenv/inc/langlist.mk)
+ALL_LANGS="en-US $completelangiso"
+# check the configured localizations
+WITH_LANG="$with_lang"
+
+# Check for --without-lang which turns up as $with_lang being "no". Luckily there is no language with code "no".
+# (Norwegian is "nb" and "nn".)
+if test "$WITH_LANG" = "no"; then
+ WITH_LANG=
+fi
+
+if test -z "$WITH_LANG" -o "$WITH_LANG" = "en-US"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: en-US" >&5
+$as_echo "en-US" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LANG" >&5
+$as_echo "$WITH_LANG" >&6; }
+ GIT_NEEDED_SUBMODULES="translations $GIT_NEEDED_SUBMODULES"
+ if test -z "$MSGFMT"; then
+ if test -n "$LODE_HOME" -a -x "$LODE_HOME/opt/bin/msgfmt" ; then
+ MSGFMT="$LODE_HOME/opt/bin/msgfmt"
+ elif test -x "/opt/lo/bin/msgfmt"; then
+ MSGFMT="/opt/lo/bin/msgfmt"
+ else
+ for ac_prog in msgfmt
+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 ${ac_cv_prog_MSGFMT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$MSGFMT"; then
+ ac_cv_prog_MSGFMT="$MSGFMT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MSGFMT="$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
+MSGFMT=$ac_cv_prog_MSGFMT
+if test -n "$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
+
+
+ test -n "$MSGFMT" && break
+done
+
+ if test -z "$MSGFMT"; then
+ as_fn_error $? "msgfmt not found. Install GNU gettext, or re-run without languages." "$LINENO" 5
+ fi
+ fi
+ fi
+ if test -z "$MSGUNIQ"; then
+ if test -n "$LODE_HOME" -a -x "$LODE_HOME/opt/bin/msguniq" ; then
+ MSGUNIQ="$LODE_HOME/opt/bin/msguniq"
+ elif test -x "/opt/lo/bin/msguniq"; then
+ MSGUNIQ="/opt/lo/bin/msguniq"
+ else
+ for ac_prog in msguniq
+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 ${ac_cv_prog_MSGUNIQ+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$MSGUNIQ"; then
+ ac_cv_prog_MSGUNIQ="$MSGUNIQ" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MSGUNIQ="$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
+MSGUNIQ=$ac_cv_prog_MSGUNIQ
+if test -n "$MSGUNIQ"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGUNIQ" >&5
+$as_echo "$MSGUNIQ" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$MSGUNIQ" && break
+done
+
+ if test -z "$MSGUNIQ"; then
+ as_fn_error $? "msguniq not found. Install GNU gettext, or re-run without languages." "$LINENO" 5
+ fi
+ fi
+ fi
+fi
+
+
+# check that the list is valid
+for lang in $WITH_LANG; do
+ test "$lang" = "ALL" && continue
+ # need to check for the exact string, so add space before and after the list of all languages
+ for vl in $ALL_LANGS; do
+ if test "$vl" = "$lang"; then
+ break
+ fi
+ done
+ if test "$vl" != "$lang"; then
+ # if you're reading this - you prolly quoted your languages remove the quotes ...
+ as_fn_error $? "invalid language: '$lang' (vs '$v1'); supported languages are: $ALL_LANGS" "$LINENO" 5
+ fi
+done
+if test -n "$WITH_LANG" -a "$WITH_LANG" != "ALL"; then
+ echo $WITH_LANG | grep -q en-US
+ test $? -ne 1 || WITH_LANG=`echo $WITH_LANG en-US`
+fi
+# list with substituted ALL
+WITH_LANG_LIST=`echo $WITH_LANG | sed "s/ALL/$ALL_LANGS/"`
+test -z "$WITH_LANG_LIST" && WITH_LANG_LIST="en-US"
+test "$WITH_LANG" = "en-US" && WITH_LANG=
+if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
+ test "$WITH_LANG_LIST" = "en-US" || WITH_LANG_LIST=`echo $WITH_LANG_LIST qtz`
+ ALL_LANGS=`echo $ALL_LANGS qtz`
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define WITH_LANG "$WITH_LANG"
+_ACEOF
+
+
+
+
+
+WITH_POOR_HELP_LOCALIZATIONS=
+if test -d "$SRC_ROOT/translations/source"; then
+ for l in `ls -1 $SRC_ROOT/translations/source`; do
+ if test ! -d "$SRC_ROOT/translations/source/$l/helpcontent2"; then
+ WITH_POOR_HELP_LOCALIZATIONS="$WITH_POOR_HELP_LOCALIZATIONS $l"
+ fi
+ done
+fi
+
+
+if test -n "$with_locales"; then
+ WITH_LOCALES="$with_locales"
+
+ just_langs="`echo $WITH_LOCALES | sed -e 's/_A-Z*//g'`"
+ # Only languages and scripts for which we actually have ifdefs need to be handled. Also see
+ # config_host/config_locales.h.in
+ for locale in $WITH_LOCALES; do
+ lang=${locale%_*}
+
+ cat >>confdefs.h <<_ACEOF
+#define WITH_LOCALE_$lang 1
+_ACEOF
+
+
+ case $lang in
+ hi|mr*ne)
+ $as_echo "#define WITH_LOCALE_FOR_SCRIPT_Deva 1" >>confdefs.h
+
+ ;;
+ bg|ru)
+ $as_echo "#define WITH_LOCALE_FOR_SCRIPT_Cyrl 1" >>confdefs.h
+
+ ;;
+ esac
+ done
+else
+ $as_echo "#define WITH_LOCALE_ALL 1" >>confdefs.h
+
+fi
+
+
+if test -n "${GIT_REFERENCE_SRC}"; then
+ for repo in ${GIT_NEEDED_SUBMODULES}; do
+ if ! test -d "${GIT_REFERENCE_SRC}"/${repo}; then
+ as_fn_error $? "referenced git: required repository does not exist: ${GIT_REFERENCE_SRC}/${repo}" "$LINENO" 5
+ fi
+ done
+fi
+
+
+if test -n "${GIT_LINK_SRC}"; then
+ for repo in ${GIT_NEEDED_SUBMODULES}; do
+ if ! test -d "${GIT_LINK_SRC}"/${repo}; then
+ as_fn_error $? "linked git: required repository does not exist: ${GIT_LINK_SRC}/${repo}" "$LINENO" 5
+ fi
+ done
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alternative branding images directory" >&5
+$as_echo_n "checking for alternative branding images directory... " >&6; }
+# initialize mapped arrays
+BRAND_INTRO_IMAGES="intro.png intro-highres.png"
+brand_files="$BRAND_INTRO_IMAGES logo.svg logo_inverted.svg about.svg"
+
+if test -z "$with_branding" -o "$with_branding" = "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+ DEFAULT_BRAND_IMAGES="$brand_files"
+else
+ if ! test -d $with_branding ; then
+ as_fn_error $? "No directory $with_branding, falling back to default branding" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_branding" >&5
+$as_echo "$with_branding" >&6; }
+ CUSTOM_BRAND_DIR="$with_branding"
+ for lfile in $brand_files
+ do
+ if ! test -f $with_branding/$lfile ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Branded file $lfile does not exist, using the default one" >&5
+$as_echo "$as_me: WARNING: Branded file $lfile does not exist, using the default one" >&2;}
+ DEFAULT_BRAND_IMAGES="$DEFAULT_BRAND_IMAGES $lfile"
+ else
+ CUSTOM_BRAND_IMAGES="$CUSTOM_BRAND_IMAGES $lfile"
+ fi
+ done
+ check_for_progress="yes"
+ fi
+fi
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'intro' progress settings" >&5
+$as_echo_n "checking for 'intro' progress settings... " >&6; }
+PROGRESSBARCOLOR=
+PROGRESSSIZE=
+PROGRESSPOSITION=
+PROGRESSFRAMECOLOR=
+PROGRESSTEXTCOLOR=
+PROGRESSTEXTBASELINE=
+
+if test "$check_for_progress" = "yes" -a -f "$with_branding/progress.conf" ; then
+ source "$with_branding/progress.conf"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: settings found in $with_branding/progress.conf" >&5
+$as_echo "settings found in $with_branding/progress.conf" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+fi
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra build ID" >&5
+$as_echo_n "checking for extra build ID... " >&6; }
+if test -n "$with_extra_buildid" -a "$with_extra_buildid" != "yes" ; then
+ EXTRA_BUILDID="$with_extra_buildid"
+fi
+# in tinderboxes, it is easier to set EXTRA_BUILDID via the environment variable instead of configure switch
+if test -n "$EXTRA_BUILDID" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_BUILDID" >&5
+$as_echo "$EXTRA_BUILDID" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
+$as_echo "not set" >&6; }
+fi
+cat >>confdefs.h <<_ACEOF
+#define EXTRA_BUILDID "$EXTRA_BUILDID"
+_ACEOF
+
+
+OOO_VENDOR=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vendor" >&5
+$as_echo_n "checking for vendor... " >&6; }
+if test -z "$with_vendor" -o "$with_vendor" = "no"; then
+ OOO_VENDOR="$USERNAME"
+
+ if test -z "$OOO_VENDOR"; then
+ OOO_VENDOR="$USER"
+ fi
+
+ if test -z "$OOO_VENDOR"; then
+ OOO_VENDOR="`id -u -n`"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, using $OOO_VENDOR" >&5
+$as_echo "not set, using $OOO_VENDOR" >&6; }
+else
+ OOO_VENDOR="$with_vendor"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OOO_VENDOR" >&5
+$as_echo "$OOO_VENDOR" >&6; }
+fi
+cat >>confdefs.h <<_ACEOF
+#define OOO_VENDOR "$OOO_VENDOR"
+_ACEOF
+
+
+
+if test "$_os" = "Android" ; then
+ ANDROID_PACKAGE_NAME=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Android package name" >&5
+$as_echo_n "checking for Android package name... " >&6; }
+ if test -z "$with_android_package_name" -o "$with_android_package_name" = "no"; then
+ if test -n "$ENABLE_DEBUG"; then
+ # Default to the package name that makes ndk-gdb happy.
+ ANDROID_PACKAGE_NAME="org.libreoffice"
+ else
+ ANDROID_PACKAGE_NAME="org.example.libreoffice"
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, using $ANDROID_PACKAGE_NAME" >&5
+$as_echo "not set, using $ANDROID_PACKAGE_NAME" >&6; }
+ else
+ ANDROID_PACKAGE_NAME="$with_android_package_name"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_PACKAGE_NAME" >&5
+$as_echo "$ANDROID_PACKAGE_NAME" >&6; }
+ fi
+
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the compat oo* wrappers" >&5
+$as_echo_n "checking whether to install the compat oo* wrappers... " >&6; }
+if test "$with_compat_oowrappers" = "yes"; then
+ WITH_COMPAT_OOWRAPPERS=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ WITH_COMPAT_OOWRAPPERS=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+INSTALLDIRNAME=`echo LibreOffice | $AWK '{print tolower($0)}'`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dirname" >&5
+$as_echo_n "checking for install dirname... " >&6; }
+if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes"; then
+ INSTALLDIRNAME="$with_install_dirname"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALLDIRNAME" >&5
+$as_echo "$INSTALLDIRNAME" >&6; }
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix" >&5
+$as_echo_n "checking for prefix... " >&6; }
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+test "x$exec_prefix" = xNONE && exec_prefix=$prefix
+PREFIXDIR="$prefix"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PREFIXDIR" >&5
+$as_echo "$PREFIXDIR" >&6; }
+
+
+LIBDIR=$(eval echo $(eval echo $libdir))
+
+
+DATADIR=$(eval echo $(eval echo $datadir))
+
+
+MANDIR=$(eval echo $(eval echo $mandir))
+
+
+DOCDIR=$(eval echo $(eval echo $docdir))
+
+
+BINDIR=$(eval echo $(eval echo $bindir))
+
+
+INSTALLDIR="$LIBDIR/$INSTALLDIRNAME"
+
+
+TESTINSTALLDIR="${BUILDDIR}/test-install"
+
+
+
+# ===================================================================
+# OAuth2 id and secrets
+# ===================================================================
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google Drive client id and secret" >&5
+$as_echo_n "checking for Google Drive client id and secret... " >&6; }
+if test "$with_gdrive_client_id" = "no" -o -z "$with_gdrive_client_id"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
+$as_echo "not set" >&6; }
+ GDRIVE_CLIENT_ID="\"\""
+ GDRIVE_CLIENT_SECRET="\"\""
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: set" >&5
+$as_echo "set" >&6; }
+ GDRIVE_CLIENT_ID="\"$with_gdrive_client_id\""
+ GDRIVE_CLIENT_SECRET="\"$with_gdrive_client_secret\""
+fi
+cat >>confdefs.h <<_ACEOF
+#define GDRIVE_CLIENT_ID $GDRIVE_CLIENT_ID
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define GDRIVE_CLIENT_SECRET $GDRIVE_CLIENT_SECRET
+_ACEOF
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Alfresco Cloud client id and secret" >&5
+$as_echo_n "checking for Alfresco Cloud client id and secret... " >&6; }
+if test "$with_alfresco_cloud_client_id" = "no" -o -z "$with_alfresco_cloud_client_id"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
+$as_echo "not set" >&6; }
+ ALFRESCO_CLOUD_CLIENT_ID="\"\""
+ ALFRESCO_CLOUD_CLIENT_SECRET="\"\""
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: set" >&5
+$as_echo "set" >&6; }
+ ALFRESCO_CLOUD_CLIENT_ID="\"$with_alfresco_cloud_client_id\""
+ ALFRESCO_CLOUD_CLIENT_SECRET="\"$with_alfresco_cloud_client_secret\""
+fi
+cat >>confdefs.h <<_ACEOF
+#define ALFRESCO_CLOUD_CLIENT_ID $ALFRESCO_CLOUD_CLIENT_ID
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define ALFRESCO_CLOUD_CLIENT_SECRET $ALFRESCO_CLOUD_CLIENT_SECRET
+_ACEOF
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OneDrive client id and secret" >&5
+$as_echo_n "checking for OneDrive client id and secret... " >&6; }
+if test "$with_onedrive_client_id" = "no" -o -z "$with_onedrive_client_id"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
+$as_echo "not set" >&6; }
+ ONEDRIVE_CLIENT_ID="\"\""
+ ONEDRIVE_CLIENT_SECRET="\"\""
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: set" >&5
+$as_echo "set" >&6; }
+ ONEDRIVE_CLIENT_ID="\"$with_onedrive_client_id\""
+ ONEDRIVE_CLIENT_SECRET="\"$with_onedrive_client_secret\""
+fi
+cat >>confdefs.h <<_ACEOF
+#define ONEDRIVE_CLIENT_ID $ONEDRIVE_CLIENT_ID
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define ONEDRIVE_CLIENT_SECRET $ONEDRIVE_CLIENT_SECRET
+_ACEOF
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dependency tracking" >&5
+$as_echo_n "checking whether to enable dependency tracking... " >&6; }
+if test "$enable_dependency_tracking" = "no"; then
+ nodep=TRUE
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of processors to use" >&5
+$as_echo_n "checking for number of processors to use... " >&6; }
+# plain --with-parallelism is just the default
+if test -n "$with_parallelism" -a "$with_parallelism" != "yes"; then
+ if test "$with_parallelism" = "no"; then
+ PARALLELISM=0
+ else
+ PARALLELISM=$with_parallelism
+ fi
+else
+ if test "$enable_icecream" = "yes"; then
+ PARALLELISM="40"
+ else
+ case `uname -s` in
+
+ Darwin|FreeBSD|NetBSD|OpenBSD)
+ PARALLELISM=`sysctl -n hw.ncpu`
+ ;;
+
+ Linux)
+ PARALLELISM=`getconf _NPROCESSORS_ONLN`
+ ;;
+ # what else than above does profit here *and* has /proc?
+ *)
+ PARALLELISM=`grep $'^processor\t*:' /proc/cpuinfo | wc -l`
+ ;;
+ esac
+
+ # If we hit the catch-all case, but /proc/cpuinfo doesn't exist or has an
+ # unexpected format, 'wc -l' will have returned 0 (and we won't use -j at all).
+ fi
+fi
+
+if test "$no_parallelism_make" = "YES" && test $PARALLELISM -gt 1; then
+ if test -z "$with_parallelism"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >&5
+$as_echo "$as_me: WARNING: gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >&2;}
+ add_warning "gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this."
+ PARALLELISM="1"
+ else
+ add_warning "make 3.81 is prone to crashes with parallelism > 1. Since --with-parallelism was explicitly given, it is honored, but do not complain when make segfaults on you."
+ fi
+fi
+
+if test $PARALLELISM -eq 0; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicit make -j option needed" >&5
+$as_echo "explicit make -j option needed" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARALLELISM" >&5
+$as_echo "$PARALLELISM" >&6; }
+fi
+
+
+IWYU_PATH="$with_iwyu"
+
+if test ! -z "$IWYU_PATH"; then
+ if test ! -f "$IWYU_PATH"; then
+ as_fn_error $? "cannot find include-what-you-use binary specified by --with-iwyu" "$LINENO" 5
+ fi
+fi
+
+#
+# Set up ILIB for MSVC build
+#
+ILIB1=
+if test "$build_os" = "cygwin"; then
+ ILIB="."
+ if test -n "$JAVA_HOME"; then
+ ILIB="$ILIB;$JAVA_HOME/lib"
+ fi
+ ILIB1=-link
+ if test "$BITNESS_OVERRIDE" = 64; then
+ ILIB="$ILIB;$COMPATH/lib/x64"
+ ILIB1="$ILIB1 -LIBPATH:$COMPATH/lib/x64"
+ ILIB="$ILIB;$WINDOWS_SDK_HOME/lib/x64"
+ ILIB1="$ILIB1 -LIBPATH:$WINDOWS_SDK_HOME/lib/x64"
+ if test $WINDOWS_SDK_VERSION = 80 -o $WINDOWS_SDK_VERSION = 81 -o $WINDOWS_SDK_VERSION = 10; then
+ ILIB="$ILIB;$WINDOWS_SDK_HOME/lib/$winsdklibsubdir/um/x64"
+ ILIB1="$ILIB1 -LIBPATH:$WINDOWS_SDK_HOME/lib/$winsdklibsubdir/um/x64"
+ fi
+ PathFormat "${UCRTSDKDIR}lib/$UCRTVERSION/ucrt/x64"
+ ucrtlibpath_formatted=$formatted_path
+ ILIB="$ILIB;$ucrtlibpath_formatted"
+ ILIB1="$ILIB1 -LIBPATH:$ucrtlibpath_formatted"
+ else
+ ILIB="$ILIB;$COMPATH/lib/x86"
+ ILIB1="$ILIB1 -LIBPATH:$COMPATH/lib/x86"
+ ILIB="$ILIB;$WINDOWS_SDK_HOME/lib"
+ ILIB1="$ILIB1 -LIBPATH:$WINDOWS_SDK_HOME/lib"
+ if test $WINDOWS_SDK_VERSION = 80 -o $WINDOWS_SDK_VERSION = 81 -o $WINDOWS_SDK_VERSION = 10; then
+ ILIB="$ILIB;$WINDOWS_SDK_HOME/lib/$winsdklibsubdir/um/x86"
+ ILIB1="$ILIB1 -LIBPATH:$WINDOWS_SDK_HOME/lib/$winsdklibsubdir/um/x86"
+ fi
+ PathFormat "${UCRTSDKDIR}lib/$UCRTVERSION/ucrt/x86"
+ ucrtlibpath_formatted=$formatted_path
+ ILIB="$ILIB;$ucrtlibpath_formatted"
+ ILIB1="$ILIB1 -LIBPATH:$ucrtlibpath_formatted"
+ fi
+ if test -f "$DOTNET_FRAMEWORK_HOME/lib/mscoree.lib"; then
+ ILIB="$ILIB;$DOTNET_FRAMEWORK_HOME/lib"
+ else
+ ILIB="$ILIB;$DOTNET_FRAMEWORK_HOME/Lib/um/$WINDOWS_SDK_ARCH"
+ fi
+
+
+fi
+
+# ===================================================================
+# Creating bigger shared library to link against
+# ===================================================================
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create huge library" >&5
+$as_echo_n "checking whether to create huge library... " >&6; }
+MERGELIBS=
+
+if test $_os = iOS -o $_os = Android; then
+ # Never any point in mergelibs for these as we build just static
+ # libraries anyway...
+ enable_mergelibs=no
+fi
+
+if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then
+ if test $_os != Linux -a $_os != WINNT; then
+ add_warning "--enable-mergelibs is not tested for this platform"
+ fi
+ MERGELIBS="TRUE"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ $as_echo "#define ENABLE_MERGELIBS 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use icerun wrapper" >&5
+$as_echo_n "checking whether to use icerun wrapper... " >&6; }
+ICECREAM_RUN=
+if test "$enable_icecream" = "yes" && which icerun >/dev/null 2>&1 ; then
+ ICECREAM_RUN=icerun
+ { $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
+
+
+x_ICECC_VERSION=\#
+if test -n "$ICECC_VERSION" ; then
+ x_ICECC_VERSION=
+fi
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MPL subset" >&5
+$as_echo_n "checking MPL subset... " >&6; }
+MPL_SUBSET=
+
+if test "$enable_mpl_subset" = "yes"; then
+ warn_report=false
+ if test "$enable_report_builder" != "no" -a "$with_java" != "no"; then
+ warn_report=true
+ elif test "$ENABLE_REPORTBUILDER" = "TRUE"; then
+ warn_report=true
+ fi
+ if test "$warn_report" = "true"; then
+ as_fn_error $? "need to --disable-report-builder - extended database report builder." "$LINENO" 5
+ fi
+ if test "x$enable_postgresql_sdbc" != "xno"; then
+ as_fn_error $? "need to --disable-postgresql-sdbc - the PostgreSQL database backend." "$LINENO" 5
+ fi
+ if test "$enable_lotuswordpro" = "yes"; then
+ as_fn_error $? "need to --disable-lotuswordpro - a Lotus Word Pro file format import filter." "$LINENO" 5
+ fi
+ if test "$WITH_WEBDAV" = "neon"; then
+ as_fn_error $? "need --with-webdav=serf or --without-webdav - webdav support." "$LINENO" 5
+ fi
+ if test -n "$ENABLE_POPPLER"; then
+ if test "x$SYSTEM_POPPLER" = "x"; then
+ as_fn_error $? "need to disable PDF import via poppler or use system library" "$LINENO" 5
+ fi
+ fi
+ # cf. m4/libo_check_extension.m4
+ if test "x$WITH_EXTRA_EXTENSIONS" != "x"; then
+ as_fn_error $? "need to disable extra extensions '$WITH_EXTRA_EXTENSIONS'" "$LINENO" 5
+ fi
+ for theme in $WITH_THEMES; do
+ case $theme in
+ breeze|breeze_dark|breeze_dark_svg|breeze_svg|elementary|elementary_svg|karasa_jaga|karasa_jaga_svg) #blacklist of icon themes under GPL or LGPL
+ as_fn_error $? "need to disable icon themes from '$WITH_THEMES': $theme present, use --with-theme=colibre" "$LINENO" 5 ;;
+ *) : ;;
+ esac
+ done
+
+ ENABLE_OPENGL_TRANSITIONS=
+
+ if test "$enable_lpsolve" != "no" -o "x$ENABLE_LPSOLVE" = "xTRUE"; then
+ as_fn_error $? "need to --disable-lpsolve - calc linear programming solver." "$LINENO" 5
+ fi
+
+ MPL_SUBSET="TRUE"
+ $as_echo "#define MPL_HAVE_SUBSET 1" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: only" >&5
+$as_echo "only" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no restrictions" >&5
+$as_echo "no restrictions" >&6; }
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking formula logger" >&5
+$as_echo_n "checking formula logger... " >&6; }
+ENABLE_FORMULA_LOGGER=
+
+if test "x$enable_formula_logger" = "xyes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ $as_echo "#define ENABLE_FORMULA_LOGGER 1" >>confdefs.h
+
+ ENABLE_FORMULA_LOGGER=TRUE
+elif test -n "$ENABLE_DBGUTIL" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ $as_echo "#define ENABLE_FORMULA_LOGGER 1" >>confdefs.h
+
+ ENABLE_FORMULA_LOGGER=TRUE
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+if test $_os = WINNT ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for active Antivirus software" >&5
+$as_echo_n "checking for active Antivirus software... " >&6; }
+ ANTIVIRUS_LIST=`cscript.exe //Nologo $SRC_ROOT/antivirusDetection.vbs`
+ if [ "$ANTIVIRUS_LIST" != "NULL" ] ; then
+ if [ "$ANTIVIRUS_LIST" != "NOT_FOUND" ] ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
+$as_echo "found" >&6; }
+ EICAR_STRING='X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*'
+ echo $EICAR_STRING > $SRC_ROOT/eicar
+ EICAR_TEMP_FILE_CONTENTS=`cat $SRC_ROOT/eicar`
+ rm $SRC_ROOT/eicar
+ if [ "$EICAR_STRING" != "$EICAR_TEMP_FILE_CONTENTS" ] ; then
+ as_fn_error $? "Exclude the build and source directories associated with LibreOffice in the following Antivirus software: $ANTIVIRUS_LIST" "$LINENO" 5
+ fi
+ echo $EICAR_STRING > $BUILDDIR/eicar
+ EICAR_TEMP_FILE_CONTENTS=`cat $BUILDDIR/eicar`
+ rm $BUILDDIR/eicar
+ if [ "$EICAR_STRING" != "$EICAR_TEMP_FILE_CONTENTS" ] ; then
+ as_fn_error $? "Exclude the build and source directories associated with LibreOffice in the following Antivirus software: $ANTIVIRUS_LIST" "$LINENO" 5
+ fi
+ add_warning "To speed up builds and avoid failures in unit tests, it is highly recommended that you exclude the build and source directories associated with LibreOffice in the following Antivirus software: $ANTIVIRUS_LIST"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
+$as_echo "not found" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
+$as_echo "n/a" >&6; }
+ fi
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: setting up the build environment variables..." >&5
+$as_echo "$as_me: setting up the build environment variables..." >&6;}
+
+
+
+if test "$build_os" = "cygwin"; then
+ if test -d "$COMPATH/atlmfc/lib/spectre"; then
+ ATL_LIB="$COMPATH/atlmfc/lib/spectre"
+ ATL_INCLUDE="$COMPATH/atlmfc/include"
+ elif test -d "$COMPATH/atlmfc/lib"; then
+ ATL_LIB="$COMPATH/atlmfc/lib"
+ ATL_INCLUDE="$COMPATH/atlmfc/include"
+ else
+ ATL_LIB="$WINDOWS_SDK_HOME/lib" # Doesn't exist for VSE
+ ATL_INCLUDE="$WINDOWS_SDK_HOME/include/atl"
+ fi
+ if test "$BITNESS_OVERRIDE" = 64; then
+ ATL_LIB="$ATL_LIB/x64"
+ else
+ ATL_LIB="$ATL_LIB/x86"
+ fi
+ ATL_LIB=`win_short_path_for_make "$ATL_LIB"`
+ ATL_INCLUDE=`win_short_path_for_make "$ATL_INCLUDE"`
+
+ # sort.exe and find.exe also exist in C:/Windows/system32 so need /usr/bin/
+ PathFormat "/usr/bin/find.exe"
+ FIND="$formatted_path"
+ PathFormat "/usr/bin/sort.exe"
+ SORT="$formatted_path"
+ PathFormat "/usr/bin/grep.exe"
+ WIN_GREP="$formatted_path"
+ PathFormat "/usr/bin/ls.exe"
+ WIN_LS="$formatted_path"
+ PathFormat "/usr/bin/touch.exe"
+ WIN_TOUCH="$formatted_path"
+else
+ FIND=find
+ SORT=sort
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+PathFormat "$PERL"
+PERL="$formatted_path"
+
+
+if test -n "$TMPDIR"; then
+ TEMP_DIRECTORY="$TMPDIR"
+else
+ TEMP_DIRECTORY="/tmp"
+fi
+if test "$build_os" = "cygwin"; then
+ TEMP_DIRECTORY=`cygpath -m "$TEMP_DIRECTORY"`
+fi
+
+
+# setup the PATH for the environment
+if test -n "$LO_PATH_FOR_BUILD"; then
+ LO_PATH="$LO_PATH_FOR_BUILD"
+else
+ LO_PATH="$PATH"
+
+ case "$host_os" in
+
+ aix*|dragonfly*|freebsd*|linux-gnu*|*netbsd*|openbsd*)
+ if test "$ENABLE_JAVA" != ""; then
+ pathmunge "$JAVA_HOME/bin" "after"
+ fi
+ ;;
+
+ cygwin*)
+ # Win32 make needs native paths
+ if test "$GNUMAKE_WIN_NATIVE" = "TRUE" ; then
+ LO_PATH=`cygpath -p -m "$PATH"`
+ fi
+ if test "$BITNESS_OVERRIDE" = 64; then
+ # needed for msi packaging
+ pathmunge "$WINDOWS_SDK_BINDIR_NO_ARCH/x86" "before"
+ fi
+ # .NET 4.6 and higher don't have bin directory
+ if test -f "$DOTNET_FRAMEWORK_HOME/bin"; then
+ pathmunge "$DOTNET_FRAMEWORK_HOME/bin" "before"
+ fi
+ pathmunge "$WINDOWS_SDK_HOME/bin" "before"
+ pathmunge "$CSC_PATH" "before"
+ pathmunge "$MIDL_PATH" "before"
+ pathmunge "$AL_PATH" "before"
+ pathmunge "$MSPDB_PATH" "before"
+ if test "$MSPDB_PATH" != "$CL_PATH" ; then
+ pathmunge "$CL_PATH" "before"
+ fi
+ if test -n "$MSBUILD_PATH" ; then
+ pathmunge "$MSBUILD_PATH" "before"
+ fi
+ if test "$BITNESS_OVERRIDE" = 64; then
+ pathmunge "$COMPATH/bin/amd64" "before"
+ pathmunge "$WINDOWS_SDK_BINDIR_NO_ARCH/x64" "before"
+ else
+ pathmunge "$COMPATH/bin" "before"
+ pathmunge "$WINDOWS_SDK_BINDIR_NO_ARCH/x86" "before"
+ fi
+ if test "$ENABLE_JAVA" != ""; then
+ if test -d "$JAVA_HOME/jre/bin/client"; then
+ pathmunge "$JAVA_HOME/jre/bin/client" "before"
+ fi
+ if test -d "$JAVA_HOME/jre/bin/hotspot"; then
+ pathmunge "$JAVA_HOME/jre/bin/hotspot" "before"
+ fi
+ pathmunge "$JAVA_HOME/bin" "before"
+ fi
+ ;;
+
+ solaris*)
+ pathmunge "/usr/css/bin" "before"
+ if test "$ENABLE_JAVA" != ""; then
+ pathmunge "$JAVA_HOME/bin" "after"
+ fi
+ ;;
+ esac
+fi
+
+
+
+
+ if test -n "$libo_fuzz_list"; then
+ tmps=`eval echo $libo_fuzz_list`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Summary of fuzzing: $tmps" >&5
+$as_echo "$as_me: Summary of fuzzing: $tmps" >&6;}
+ fi
+
+
+# Generate a configuration sha256 we can use for deps
+if test -f config_host.mk; then
+ config_sha256=`$SHA256SUM config_host.mk | sed "s/ .*//"`
+fi
+if test -f config_host_lang.mk; then
+ config_lang_sha256=`$SHA256SUM config_host_lang.mk | sed "s/ .*//"`
+fi
+
+CFLAGS=$my_original_CFLAGS
+CXXFLAGS=$my_original_CXXFLAGS
+CPPFLAGS=$my_original_CPPFLAGS
+
+# Keep in sync with list of files far up, at AC_MSG_CHECKING([for
+# BUILD platform configuration] - otherwise breaks cross building
+ac_config_files="$ac_config_files config_host.mk config_host_lang.mk Makefile bin/bffvalidator.sh bin/odfvalidator.sh bin/officeotron.sh hardened_runtime.xcent instsetoo_native/util/openoffice.lst sysui/desktop/macosx/Info.plist"
+
+ac_config_headers="$ac_config_headers config_host/config_buildid.h"
+
+ac_config_headers="$ac_config_headers config_host/config_clang.h"
+
+ac_config_headers="$ac_config_headers config_host/config_dconf.h"
+
+ac_config_headers="$ac_config_headers config_host/config_eot.h"
+
+ac_config_headers="$ac_config_headers config_host/config_extensions.h"
+
+ac_config_headers="$ac_config_headers config_host/config_cairo_canvas.h"
+
+ac_config_headers="$ac_config_headers config_host/config_cxxabi.h"
+
+ac_config_headers="$ac_config_headers config_host/config_dbus.h"
+
+ac_config_headers="$ac_config_headers config_host/config_features.h"
+
+ac_config_headers="$ac_config_headers config_host/config_feature_desktop.h"
+
+ac_config_headers="$ac_config_headers config_host/config_feature_opencl.h"
+
+ac_config_headers="$ac_config_headers config_host/config_firebird.h"
+
+ac_config_headers="$ac_config_headers config_host/config_folders.h"
+
+ac_config_headers="$ac_config_headers config_host/config_fuzzers.h"
+
+ac_config_headers="$ac_config_headers config_host/config_gio.h"
+
+ac_config_headers="$ac_config_headers config_host/config_global.h"
+
+ac_config_headers="$ac_config_headers config_host/config_gpgme.h"
+
+ac_config_headers="$ac_config_headers config_host/config_java.h"
+
+ac_config_headers="$ac_config_headers config_host/config_langs.h"
+
+ac_config_headers="$ac_config_headers config_host/config_lgpl.h"
+
+ac_config_headers="$ac_config_headers config_host/config_libcxx.h"
+
+ac_config_headers="$ac_config_headers config_host/config_liblangtag.h"
+
+ac_config_headers="$ac_config_headers config_host/config_libnumbertext.h"
+
+ac_config_headers="$ac_config_headers config_host/config_locales.h"
+
+ac_config_headers="$ac_config_headers config_host/config_mpl.h"
+
+ac_config_headers="$ac_config_headers config_host/config_oox.h"
+
+ac_config_headers="$ac_config_headers config_host/config_options.h"
+
+ac_config_headers="$ac_config_headers config_host/config_options_calc.h"
+
+ac_config_headers="$ac_config_headers config_host/config_qrcodegen.h"
+
+ac_config_headers="$ac_config_headers config_host/config_skia.h"
+
+ac_config_headers="$ac_config_headers config_host/config_typesizes.h"
+
+ac_config_headers="$ac_config_headers config_host/config_vendor.h"
+
+ac_config_headers="$ac_config_headers config_host/config_vcl.h"
+
+ac_config_headers="$ac_config_headers config_host/config_vclplug.h"
+
+ac_config_headers="$ac_config_headers config_host/config_version.h"
+
+ac_config_headers="$ac_config_headers config_host/config_oauth2.h"
+
+ac_config_headers="$ac_config_headers config_host/config_poppler.h"
+
+ac_config_headers="$ac_config_headers config_host/config_python.h"
+
+ac_config_headers="$ac_config_headers config_host/config_writerperfect.h"
+
+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
+ if test "x$cache_file" != "x/dev/null"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
+ 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=
+U=
+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
+
+
+
+
+: "${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.
+as_myself=
+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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&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 -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+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
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# 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 LibreOffice $as_me 7.0.4.2, which was
+generated by GNU Autoconf 2.69. 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="`echo $ac_config_files`"
+config_headers="`echo $ac_config_headers`"
+
+_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
+ --config print configuration, 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
+
+Report bugs to the package provider.
+LibreOffice home page: <http://documentfoundation.org/>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
+ac_cs_version="\\
+LibreOffice config.status 7.0.4.2
+configured by $0, generated by GNU Autoconf 2.69,
+ with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2012 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'
+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=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ 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 ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; 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"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ 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
+_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
+ "config_host/config_probes.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_probes.h" ;;
+ "config_host.mk") CONFIG_FILES="$CONFIG_FILES config_host.mk" ;;
+ "config_host_lang.mk") CONFIG_FILES="$CONFIG_FILES config_host_lang.mk" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "bin/bffvalidator.sh") CONFIG_FILES="$CONFIG_FILES bin/bffvalidator.sh" ;;
+ "bin/odfvalidator.sh") CONFIG_FILES="$CONFIG_FILES bin/odfvalidator.sh" ;;
+ "bin/officeotron.sh") CONFIG_FILES="$CONFIG_FILES bin/officeotron.sh" ;;
+ "hardened_runtime.xcent") CONFIG_FILES="$CONFIG_FILES hardened_runtime.xcent" ;;
+ "instsetoo_native/util/openoffice.lst") CONFIG_FILES="$CONFIG_FILES instsetoo_native/util/openoffice.lst" ;;
+ "sysui/desktop/macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES sysui/desktop/macosx/Info.plist" ;;
+ "config_host/config_buildid.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_buildid.h" ;;
+ "config_host/config_clang.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_clang.h" ;;
+ "config_host/config_dconf.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_dconf.h" ;;
+ "config_host/config_eot.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_eot.h" ;;
+ "config_host/config_extensions.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_extensions.h" ;;
+ "config_host/config_cairo_canvas.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_cairo_canvas.h" ;;
+ "config_host/config_cxxabi.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_cxxabi.h" ;;
+ "config_host/config_dbus.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_dbus.h" ;;
+ "config_host/config_features.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_features.h" ;;
+ "config_host/config_feature_desktop.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_feature_desktop.h" ;;
+ "config_host/config_feature_opencl.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_feature_opencl.h" ;;
+ "config_host/config_firebird.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_firebird.h" ;;
+ "config_host/config_folders.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_folders.h" ;;
+ "config_host/config_fuzzers.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_fuzzers.h" ;;
+ "config_host/config_gio.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_gio.h" ;;
+ "config_host/config_global.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_global.h" ;;
+ "config_host/config_gpgme.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_gpgme.h" ;;
+ "config_host/config_java.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_java.h" ;;
+ "config_host/config_langs.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_langs.h" ;;
+ "config_host/config_lgpl.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_lgpl.h" ;;
+ "config_host/config_libcxx.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_libcxx.h" ;;
+ "config_host/config_liblangtag.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_liblangtag.h" ;;
+ "config_host/config_libnumbertext.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_libnumbertext.h" ;;
+ "config_host/config_locales.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_locales.h" ;;
+ "config_host/config_mpl.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_mpl.h" ;;
+ "config_host/config_oox.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_oox.h" ;;
+ "config_host/config_options.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_options.h" ;;
+ "config_host/config_options_calc.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_options_calc.h" ;;
+ "config_host/config_qrcodegen.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_qrcodegen.h" ;;
+ "config_host/config_skia.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_skia.h" ;;
+ "config_host/config_typesizes.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_typesizes.h" ;;
+ "config_host/config_vendor.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_vendor.h" ;;
+ "config_host/config_vcl.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_vcl.h" ;;
+ "config_host/config_vclplug.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_vclplug.h" ;;
+ "config_host/config_version.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_version.h" ;;
+ "config_host/config_oauth2.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_oauth2.h" ;;
+ "config_host/config_poppler.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_poppler.h" ;;
+ "config_host/config_python.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_python.h" ;;
+ "config_host/config_writerperfect.h") CONFIG_HEADERS="$CONFIG_HEADERS config_host/config_writerperfect.h" ;;
+
+ *) 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
+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= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_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 -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# 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 {' >"$ac_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 >>"\$ac_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 >>"\$ac_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 < "$ac_tmp/subs1.awk" > "$ac_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 sole $(srcdir),
+# ${srcdir} and @srcdir@ entries 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[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+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 >"$ac_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_tt=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_tt"; 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 "
+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="$ac_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 1 "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 >"$ac_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
+ #
+
+_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
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_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' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_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 "$ac_tmp/stdin"
+ case $ac_file in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_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 "$ac_tmp/defines.awk"' "$ac_file_inputs"
+ } >"$ac_tmp/config.h" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$ac_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 "$ac_tmp/config.h" "$ac_file" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ fi
+ else
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error $? "could not create -" "$LINENO" 5
+ fi
+ ;;
+
+
+ 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 1
+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
+
+
+if test "$CROSS_COMPILING" = TRUE; then
+ (echo; echo export BUILD_TYPE_FOR_HOST=$BUILD_TYPE) >>config_build.mk
+fi
+
+# touch the config timestamp file
+if test ! -f config_host.mk.stamp; then
+ echo > config_host.mk.stamp
+elif test "$config_sha256" = `$SHA256SUM config_host.mk | sed "s/ .*//"`; then
+ echo "Host Configuration unchanged - avoiding scp2 stamp update"
+else
+ echo > config_host.mk.stamp
+fi
+
+# touch the config lang timestamp file
+if test ! -f config_host_lang.mk.stamp; then
+ echo > config_host_lang.mk.stamp
+elif test "$config_lang_sha256" = `$SHA256SUM config_host_lang.mk | sed "s/ .*//"`; then
+ echo "Language Configuration unchanged - avoiding scp2 stamp update"
+else
+ echo > config_host_lang.mk.stamp
+fi
+
+
+if test \( "$STALE_MAKE" = "TRUE" -o "$HAVE_GNUMAKE_FILE_FUNC" != "TRUE" \) \
+ -a "$build_os" = "cygwin"; then
+
+cat << _EOS
+****************************************************************************
+WARNING:
+Your make version is known to be horribly slow, and hard to debug
+problems with. To get a reasonably functional make please do:
+
+to install a pre-compiled binary make for Win32
+
+ mkdir -p /opt/lo/bin
+ cd /opt/lo/bin
+ wget https://dev-www.libreoffice.org/bin/cygwin/make-4.2.1-msvc.exe
+ cp make-4.2.1-msvc.exe make
+ chmod +x make
+
+to install from source:
+place yourself in a working directory of you choice.
+
+ git clone git://git.savannah.gnu.org/make.git
+
+ go to Start menu, open "Visual Studio 2019", click "x86 Native Tools Command Prompt" or "x64 Native Tools Command Prompt"
+ set PATH=%PATH%;C:\Cygwin\bin
+ or Cygwin64, if that is what you have
+ cd path-to-make-repo-you-cloned-above
+ build_w32.bat --without-guile
+
+should result in a WinRel/gnumake.exe.
+Copy it to the Cygwin /opt/lo/bin directory as make.exe
+
+Then re-run autogen.sh
+
+Note: autogen.sh will try to use /opt/lo/bin/make if the environment variable GNUMAKE is not already defined.
+Alternatively, you can install the 'new' make where ever you want and make sure that `which make` finds it.
+
+_EOS
+if test "$HAVE_GNUMAKE_FILE_FUNC" != "TRUE"; then
+ as_fn_error $? "no file function found; the build will fail without it; use GNU make 4.0 or later" "$LINENO" 5
+fi
+fi
+
+
+cat << _EOF
+****************************************************************************
+
+To build, run:
+$GNUMAKE
+
+To view some help, run:
+$GNUMAKE help
+
+_EOF
+
+if test $_os != WINNT -a "$CROSS_COMPILING" != TRUE; then
+ cat << _EOF
+After the build has finished successfully, you can immediately run what you built using the command:
+_EOF
+
+ if test $_os = Darwin; then
+ echo open instdir/$PRODUCTNAME_WITHOUT_SPACES.app
+ else
+ echo instdir/program/soffice
+ fi
+ cat << _EOF
+
+If you want to run the smoketest, run:
+$GNUMAKE check
+
+_EOF
+fi
+
+if test -f warn; then
+ cat warn
+ rm warn
+fi
+