/libreoffice-3.6.0.2/configure
Shell | 16697 lines | 14541 code | 1447 blank | 709 comment | 1383 complexity | 1bbcc5c839bd095b9a052626355da566 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-2.1, AGPL-1.0, BSD-3-Clause-No-Nuclear-License-2014, GPL-3.0, LGPL-3.0
- #! /bin/sh
- # Guess values for system-dependent variables and create Makefiles.
- # Generated by GNU Autoconf 2.68 for LibreOffice 3.6.
- #
- #
- # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
- # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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
- if test "x$CONFIG_SHELL" = x; then
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '\${1+\"\$@\"}'='\"\$@\"'
- setopt NO_GLOB_SUBST
- else
- case \`(set -o) 2>/dev/null\` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
- esac
- fi
- "
- as_required="as_fn_return () { (exit \$1); }
- as_fn_success () { as_fn_return 0; }
- as_fn_failure () { as_fn_return 1; }
- as_fn_ret_success () { return 0; }
- as_fn_ret_failure () { return 1; }
- exitcode=0
- as_fn_success || { exitcode=1; echo as_fn_success failed.; }
- as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
- as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
- as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
- if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
- else
- exitcode=1; echo positional parameters were not saved.
- fi
- test x\$exitcode = x0 || exit 1"
- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
- test \$(( 1 + 1 )) = 2 || exit 1"
- if (eval "$as_required") 2>/dev/null; then :
- as_have_required=yes
- else
- as_have_required=no
- fi
- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_found=false
- for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- as_found=:
- case $as_dir in #(
- /*)
- for as_base in sh bash ksh sh5; do
- # Try only shells that exist, to save several forks.
- as_shell=$as_dir/$as_base
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
- CONFIG_SHELL=$as_shell as_have_required=yes
- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
- break 2
- fi
- fi
- done;;
- esac
- as_found=false
- done
- $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
- CONFIG_SHELL=$SHELL as_have_required=yes
- fi; }
- IFS=$as_save_IFS
- if test "x$CONFIG_SHELL" != x; then :
- # We cannot yet assume a decent shell, so we have to provide a
- # neutralization value for shells without unset; and this also
- # works around shells that cannot unset nonexistent variables.
- # 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
- export CONFIG_SHELL
- 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+"$@"}
- fi
- if test x$as_have_required = xno; then :
- $as_echo "$0: This script requires a shell more modern than all"
- $as_echo "$0: the shells that I found on your system."
- if test x${ZSH_VERSION+set} = xset ; then
- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
- $as_echo "$0: be upgraded to zsh 4.3.4 or later."
- else
- $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
- $0: including any error possibly output before this
- $0: message. Then install a modern shell, or manually run
- $0: the script under such a shell if you do have one."
- fi
- exit 1
- fi
- fi
- fi
- SHELL=${CONFIG_SHELL-/bin/sh}
- export SHELL
- # Unset more variables known to interfere with behavior of common tools.
- CLICOLOR_FORCE= GREP_OPTIONS=
- unset CLICOLOR_FORCE GREP_OPTIONS
- ## --------------------- ##
- ## M4sh Shell Functions. ##
- ## --------------------- ##
- # as_fn_unset VAR
- # ---------------
- # Portably unset VAR.
- as_fn_unset ()
- {
- { eval $1=; unset $1;}
- }
- as_unset=as_fn_unset
- # as_fn_set_status STATUS
- # -----------------------
- # Set $? to STATUS, without forking.
- as_fn_set_status ()
- {
- return $1
- } # as_fn_set_status
- # as_fn_exit STATUS
- # -----------------
- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
- as_fn_exit ()
- {
- set +e
- as_fn_set_status $1
- exit $1
- } # as_fn_exit
- # as_fn_mkdir_p
- # -------------
- # Create "$as_dir" as a directory, including parents if necessary.
- as_fn_mkdir_p ()
- {
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
- } # as_fn_mkdir_p
- # as_fn_append VAR VALUE
- # ----------------------
- # Append the text in VALUE to the end of the definition contained in VAR. Take
- # advantage of any shell optimizations that allow amortized linear growth over
- # repeated appends, instead of the typical quadratic growth present in naive
- # implementations.
- if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
- else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
- fi # as_fn_append
- # as_fn_arith ARG...
- # ------------------
- # Perform arithmetic evaluation on the ARGs, and store the result in the
- # global $as_val. Take advantage of shells that can avoid forks. The arguments
- # must be portable across $(()) and expr.
- if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
- else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
- fi # as_fn_arith
- # as_fn_error 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; }
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensitive to this).
- . "./$as_me.lineno"
- # Exit status is that of the last command.
- exit
- }
- ECHO_C= ECHO_N= ECHO_T=
- case `echo -n x` in #(((((
- -n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
- *)
- ECHO_N='-n';;
- esac
- rm -f conf$$ conf$$.exe conf$$.file
- if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
- else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
- fi
- if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -p'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -p'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -p'
- fi
- else
- as_ln_s='cp -p'
- fi
- rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
- rmdir conf$$.dir 2>/dev/null
- if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
- else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
- fi
- if test -x / >/dev/null 2>&1; then
- as_test_x='test -x'
- else
- if ls -dL / >/dev/null 2>&1; then
- as_ls_L_option=L
- else
- as_ls_L_option=
- fi
- as_test_x='
- eval sh -c '\''
- if test -d "$1"; then
- test -d "$1/.";
- else
- case $1 in #(
- -*)set "./$1";;
- esac;
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
- ???[sx]*):;;*)false;;esac;fi
- '\'' sh
- '
- fi
- as_executable_p=$as_test_x
- # Sed expression to map a string onto a valid CPP name.
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
- # Sed expression to map a string onto a valid variable name.
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
- 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='3.6'
- PACKAGE_STRING='LibreOffice 3.6'
- 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
- TMP_DIRECTORY
- TEMP_DIRECTORY
- SOLARLIB_FOR_BUILD
- SOLARINC_FOR_BUILD
- SOLARLIB
- SOLARINC
- BUILD_TYPE
- WIN_TOUCH
- WIN_LS
- WIN_GREP
- WIN_FIND
- MFC_LIB
- MFC_INCLUDE
- ATL_LIB
- ATL_INCLUDE
- GMAKE_MODULE_PARALLELISM
- GMAKE_PARALLELISM
- BUILD_MAX_JOBS
- MERGELIBS
- ILIB
- BUILD_NCPUS
- nodep
- ENABLE_ZENITY
- ZNTY
- VERBOSE
- DEVINSTALLDIR
- INSTALLDIR
- DOCDIR
- MANDIR
- DATADIR
- LIBDIR
- PREFIXDIR
- INSTALLDIRNAME
- PRODUCTNAME
- WITH_COMPAT_OOWRAPPERS
- UNIXWRAPPERNAME
- OOO_VENDOR
- STARTCENTER_SPACE_BITMAP
- STARTCENTER_RTL_RIGHT_BITMAP
- STARTCENTER_RTL_LEFT_BITMAP
- STARTCENTER_RIGHT_BITMAP
- STARTCENTER_LEFT_BITMAP
- FLAT_LOGO_SVG
- ABOUT_BACKGROUND_SVG
- INTRO_BITMAP
- PROGRESSFRAMECOLOR
- PROGRESSPOSITION
- PROGRESSSIZE
- PROGRESSBARCOLOR
- GIT_LINK_SRC
- WITH_POOR_HELP_LOCALIZATIONS
- L10N_MODULE
- GIT_REPO_NAMES
- WITH_LANG_LIST
- WITH_LANG
- ALL_LANGS
- PRODUCTVERSION
- DOXYGEN
- OOO_JUNIT_JAR
- ANT_LIB
- ANT_HOME
- ANT
- JVM_ONE_PATH_CHECK
- SYSTEM_LIBPNG
- SYSTEM_LIBGSF
- SYSTEM_PANGO
- SYSTEM_LIBCROCO
- SYSTEM_GETTEXT
- SYSTEM_GLIB
- SYSTEM_GDKPIXBUF
- MINGW_PNG15_DLL
- MINGW_PIXMAN_DLL
- MINGW_FREETYPE_DLL
- MINGW_FONTCONFIG_DLL
- MINGW_CAIRO_DLL
- SYSTEM_CAIRO
- CAIRO_LIBS
- CAIRO_CFLAGS
- SYSTEM_LIBRSVG
- ENABLE_LIBRSVG
- LIBRSVG_LIBS
- LIBRSVG_CFLAGS
- XINERAMA_LINK
- USE_XINERAMA
- SCPDEFS
- ENABLE_SILENT_MSI
- ENABLE_RELEASE_BUILD
- ENABLE_ONLINE_UPDATE
- ENABLE_LOMENUBAR
- DBUSMENUGTK_LIBS
- DBUSMENUGTK_CFLAGS
- OXYGENOFFICE_PACK
- ENABLE_OXYGENOFFICE
- OOOP_FONTS_PACK
- WITH_EXTRA_FONT
- OOOP_SAMPLES_PACK
- WITH_EXTRA_SAMPLE
- OOOP_TEMPLATES_PACK
- WITH_EXTRA_TEMPLATE
- OOOP_GALLERY_PACK
- WITH_EXTRA_GALLERY
- WITHOUT_AFMS
- WITHOUT_PPDS
- WITH_AGFA_MONOTYPE_FONTS
- WITH_FONTS
- SUNTEMPLATES_IT_PACK
- SUNTEMPLATES_HU_PACK
- SUNTEMPLATES_FR_PACK
- SUNTEMPLATES_ES_PACK
- SUNTEMPLATES_EN_US_PACK
- SUNTEMPLATES_DE_PACK
- OOOBLOGGER_EXTENSION_PACK
- GOOGLE_DOCS_EXTENSION_PACK
- TYPO_EXTENSION_PACK
- HUNART_EXTENSION_PACK
- NUMBERTEXT_EXTENSION_PACK
- CT2N_EXTENSION_PACK
- BARCODE_EXTENSION_PACK
- VALIDATOR_EXTENSION_PACK
- DIAGRAM_EXTENSION_PACK
- WATCH_WINDOW_EXTENSION_PACK
- WITH_EXTENSION_INTEGRATION
- WITH_HELPPACK_INTEGRATION
- WITH_THEMES
- ENABLE_KAB
- ENABLE_TDEAB
- ENABLE_EVOAB2
- GOBJECT_LIBS
- GOBJECT_CFLAGS
- ENABLE_LOCKDOWN
- KDE_HAVE_GLIB
- KDE4_LIBS
- KDE4_CFLAGS
- KDE_GLIB_LIBS
- KDE_GLIB_CFLAGS
- MOC4
- MOCQT4
- QMAKE4
- QMAKEQT4
- KDE_LIBS
- KDE_CFLAGS
- TDE_LIBS
- TDE_CFLAGS
- MOC
- ENABLE_SCRIPTING_PYTHON
- RHINO_JAR
- SYSTEM_RHINO
- ENABLE_SCRIPTING_JAVASCRIPT
- BSH_JAR
- SYSTEM_BSH
- ENABLE_SCRIPTING_BEANSHELL
- COMMONS_LOGGING_JAR
- COMMONS_HTTPCLIENT_JAR
- COMMONS_LANG_JAR
- COMMONS_CODEC_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
- SERVLETAPI_JAR
- SYSTEM_SERVLETAPI
- ENABLE_MEDIAWIKI
- SYSTEM_POPPLER
- ENABLE_PDFIMPORT
- POPPLER_LIBS
- POPPLER_CFLAGS
- ENABLE_PRESENTER_SCREEN
- ENABLE_MINIMIZER
- ENABLE_OPENGL
- SYSTEM_MESA_HEADERS
- ENABLE_GSTREAMER
- GSTREAMER_LIBS
- GSTREAMER_CFLAGS
- ENABLE_CAIRO_CANVAS
- SPLIT_OPT_FEATURES
- SPLIT_APP_MODULES
- ENABLE_QUICKSTART_LIBPNG
- LIBPNG_LIBS
- LIBPNG_CFLAGS
- ENABLE_GTK_PRINT
- ENABLE_SYSTRAY_GTK
- ENABLE_DBUS
- ENABLE_GIO
- GIO_LIBS
- GIO_CFLAGS
- DBUS_LIBS
- DBUS_CFLAGS
- GTK_PRINT_LIBS
- GTK_PRINT_CFLAGS
- GTK210_LIBS
- GTK210_CFLAGS
- GTHREAD_LIBS
- GTHREAD_CFLAGS
- GTK_LIBS
- GTK_CFLAGS
- ENABLE_GNOMEVFS
- GNOMEVFS_LIBS
- GNOMEVFS_CFLAGS
- ENABLE_GCONF
- GCONF_LIBS
- GCONF_CFLAGS
- ENABLE_HEADLESS
- ENABLE_KDE4
- ENABLE_KDE
- ENABLE_TDE
- ENABLE_GTK
- ENABLE_GTK3
- GTK3_LIBS
- GTK3_CFLAGS
- UNZIP
- ZIP
- ML_EXE
- x_GNUCP
- GNUPATCH
- GNUCP
- PATCH
- FLEX
- ANCIENT_BISON
- BISON
- DIRECTXSDK_LIB
- DIRECTXSDK_HOME
- UUIDGEN
- WINDOWS_SDK_HOME
- SYSTEM_LIBC
- HAVE_READDIR_R
- HAVE_GETOPT
- SYSTEM_LIBEXTTEXTCAT_DATA
- SYSTEM_LIBEXTTEXTCAT
- LIBEXTTEXTCAT_LIBS
- LIBEXTTEXTCAT_CFLAGS
- MINGW_LPSOLVE_DLL
- SYSTEM_LPSOLVE
- MINGW_MYTHES_DLL
- SYSTEM_MYTHES
- MYTHES_LIBS
- MYTHES_CFLAGS
- MINGW_HYPHEN_DLL
- HYPHEN_LIB
- SYSTEM_HYPH
- MINGW_HUNSPELL_DLL
- SYSTEM_HUNSPELL
- HUNSPELL_LIBS
- HUNSPELL_CFLAGS
- MINGW_SQLITE3_DLL
- MINGW_REDLAND_DLL
- MINGW_RASQAL_DLL
- MINGW_RAPTOR_DLL
- SYSTEM_REDLAND
- REDLAND_LIBS
- REDLAND_CFLAGS
- MINGW_CRYPTO_DLL
- MINGW_SSL_DLL
- SYSTEM_OPENSSL
- OPENSSL_LIBS
- OPENSSL_CFLAGS
- MINGW_TASN1_DLL
- MINGW_NEON_DLL
- MINGW_GNUTLS_DLL
- NEON_VERSION
- SYSTEM_NEON
- NEON_LIBS
- NEON_CFLAGS
- DISABLE_NEON
- ENABLE_RANDR
- XRANDR_DLOPEN
- XRANDR_LIBS
- XRANDR_CFLAGS
- XLIB
- XINC
- X_EXTRA_LIBS
- X_LIBS
- X_PRE_LIBS
- X_CFLAGS
- XMKMF
- ENABLE_NSPLUGIN
- MINGW_GRAPHITE2_DLL
- SYSTEM_GRAPHITE
- ENABLE_GRAPHITE
- GRAPHITE_LIBS
- GRAPHITE_CFLAGS
- MINGW_ICUUC_DLL
- MINGW_ICUI18N_DLL
- MINGW_ICUDATA_DLL
- ICU_RECLASSIFIED_PREPEND_SET_EMPTY
- ICU_RECLASSIFIED_HEBREW_LETTER
- ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER
- ICU_RECLASSIFIED_CLOSE_PARENTHESIS
- ICU_MICRO
- ICU_MINOR
- ICU_MAJOR
- SYSTEM_ICU
- SYSTEM_GENCMN
- SYSTEM_GENCCODE
- SYSTEM_GENBRK
- ICUCONFIG_FOR_BUILD
- ICUCONFIG
- HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
- SYSTEM_MOZILLA_HEADERS
- MOZILLA_HEADERS_LIBS
- MOZILLA_HEADERS_CFLAGS
- SYSTEM_NSS
- NSS_LIBS
- NSS_CFLAGS
- MOZ_LDAP_CFLAGS
- MOZ_LIB_XPCOM
- MOZ_LIB
- MOZ_INC
- MOZ_FLAVOUR
- SYSTEM_MOZILLA
- MOZILLABUILD
- PREBUILD_MOZAB
- BUILD_MOZAB
- MOZLIBREQ_LIBS
- MOZLIBREQ_CFLAGS
- MOZILLA_TOOLKIT
- MOZILLA_VERSION
- MOZILLAXPCOM_LIBS
- MOZILLAXPCOM_CFLAGS
- WITH_OPENLDAP
- WITH_LDAP
- ENABLE_XMLSEC
- WITH_MOZILLA
- SYSTEM_ODBC_HEADERS
- SYSTEM_VIGRA
- MDDS_CPPFLAGS
- SYSTEM_MDDS
- SYSTEM_BOOST
- MINGW_BOOST_DATE_TIME_DLL
- HAVE_BOOST_UNORDERED_MAP
- MINGW_SSL3_DLL
- MINGW_SSH2_DLL
- MINGW_PLDS4_DLL
- MINGW_PLC4_DLL
- MINGW_NSSUTIL3_DLL
- MINGW_NSS3_DLL
- MINGW_NSPR4_DLL
- MINGW_INTL_DLL
- MINGW_IDN_DLL
- MINGW_GPG_ERROR_DLL
- MINGW_GCRYPT_DLL
- MINGW_CURL_DLL
- SYSTEM_CURL
- CURLCONFIG
- CURL_LIBS
- CURL_CFLAGS
- BUILD_STAX
- SAXON_JAR
- SYSTEM_SAXON
- SERIALIZER_JAR
- POSTGRESQL_LIB
- POSTGRESQL_INC
- SYSTEM_POSTGRESQL
- BUILD_POSTGRESQL_SDBC
- WITH_GSSAPI
- WITH_KRB5
- PGCONFIG
- HSQLDB_JAR
- SYSTEM_HSQLDB
- SYSTEM_MYSQL_CPPCONN
- LIBMYSQL_PATH
- MYSQL_DEFINES
- MYSQL_LIB
- MYSQL_INC
- SYSTEM_MYSQL
- MYSQLCONFIG
- ENABLE_MYSQLC
- MINGW_DB_DLL
- DB_CPPLIB
- DB_LIB
- SYSTEM_DB_CFLAGS
- SYSTEM_DB
- PYTHON_LIBS
- PYTHON_CFLAGS
- SYSTEM_PYTHON
- BZIP2
- pkgpyexecdir
- pyexecdir
- pkgpythondir
- pythondir
- PYTHON_PLATFORM
- PYTHON_EXEC_PREFIX
- PYTHON_PREFIX
- PYTHON_VERSION
- PYTHON
- DISABLE_PYTHON
- MINGW_ZLIB_DLL
- MINGW_LIBXML_DLL
- SYSTEM_LIBXML
- XMLLINT
- LIBXML_LIBS
- LIBXML_CFLAGS
- MINGW_ICONV_DLL
- MINGW_LIBXSLT_DLL
- SYSTEM_LIBXSLT_FOR_BUILD
- SYSTEM_LIBXSLT
- XSLTPROC
- LIBXSLT_LIBS
- LIBXSLT_CFLAGS
- USE_FT_EMBOLDEN
- SYSTEM_LIBWPG
- WPG_LIBS
- WPG_CFLAGS
- SYSTEM_LIBWPS
- WPS_LIBS
- WPS_CFLAGS
- FREETYPE_LIBS
- FREETYPE_CFLAGS
- SYSTEM_CPPUNIT
- CPPUNIT_LIBS
- CPPUNIT_CFLAGS
- MINGW_LCMS2_DLL
- SYSTEM_LCMS2
- LCMS2_LIBS
- LCMS2_CFLAGS
- SYSTEM_LIBWPD
- WPD_LIBS
- WPD_CFLAGS
- SYSTEM_LIBCMIS
- LIBCMIS_LIBS
- LIBCMIS_CFLAGS
- SYSTEM_LIBVISIO
- VISIO_LIBS
- VISIO_CFLAGS
- SYSTEM_LIBCDR
- CDR_LIBS
- CDR_CFLAGS
- MINGW_EXPAT_DLL
- SYSTEM_EXPAT
- SYSTEM_CLUCENE
- CLUCENE_LIBS
- CLUCENE_CFLAGS
- MINGW_JPEG_DLL
- SYSTEM_JPEG
- MINGW_MINIZIP_DLL
- SYSTEM_MINIZIP
- SYSTEM_ZLIB
- MINIZIP_LIBS
- MINIZIP_CFLAGS
- SYSTEM_STDLIBS
- BUILD_UNOWINREG
- MINGWSTRIP
- MINGWCXX
- GPERF
- PKGFORMAT
- BUILD_EPM
- RPM
- PKGMK
- DPKG
- EPM
- BUILD_DMAKE
- DMAKE
- x_JDKLIB
- x_JAVALIB
- XCLASSPATH
- JDKLIB
- JDK
- JAVA_TARGET_VER
- JAVA_SOURCE_VER
- JAVA_HOME
- JAVAIFLAGS
- JAVAFLAGS
- JAVALIB
- CLASSPATH
- AWTLIB
- JAVADOC
- JAVACISKAFFE
- JAVACISGCJ
- JAVACOMPILER
- JAVAINTERPRETER
- WITH_VC_REDIST
- JITC_PROCESSOR_TYPE
- SOLAR_JAVA
- BUILD_VER_STRING
- ALLOC
- HAVE_POSIX_FALLOCATE
- HAVE_GCC_FNO_ENFORCE_EH_SPECS
- HAVE_GCC_FNO_DEFAULT_INLINE
- HAVE_SFINAE_ANONYMOUS_BROKEN
- HAVE_GCC_VISIBILITY_BROKEN
- HAVE_GCC_VISIBILITY_FEATURE
- HAVE_GCC_AVX
- HAVE_GCC_NO_LONG_DOUBLE
- HAVE_CXX0X
- HAVE_THREADSAFE_STATICS
- GXX_INCLUDE_PATH
- WITH_STLPORT
- EXCEPTIONS
- MINGW_GXXDLL
- MINGW_GCCDLL
- MINGW_SHARED_LIBSTDCPP
- MINGW_SHARED_GXXLIB
- MINGW_SHARED_GCCLIB
- MINGW_CLIB_DIR
- MINGW_LIB_INCLUDE_PATH
- VALGRIND_CFLAGS
- ALIGNOF_DOUBLE
- ALIGNOF_LONG
- ALIGNOF_INT
- ALIGNOF_SHORT
- SIZEOF_POINTER
- SIZEOF_DOUBLE
- SIZEOF_LONGLONG
- SIZEOF_LONG
- SIZEOF_INT
- SIZEOF_SHORT
- LFS_CFLAGS
- WORDS_BIGENDIAN
- CXXCPP
- ac_ct_CXX
- CXXFLAGS
- CXX
- CSC_PATH
- MIDL_PATH
- WINDRES
- DLLTOOL
- STRIP
- RANLIB
- OBJDUMP
- NM
- AR
- PERL
- WITH_LINKER_HASH_STYLE
- HAVE_LD_HASH_STYLE
- GNUMAKE
- HAVE_GNUMAKE_FILE_FUNC
- SHA1SUM
- THES_SYSTEM_DIR
- HYPH_SYSTEM_DIR
- DICT_SYSTEM_DIR
- SYSTEM_DICTS
- WITH_MYSPELL_DICTS
- WITH_BINFILTER
- DO_FETCH_TARBALLS
- TARFILE_LOCATION
- FONTCONFIG_LIBS
- FONTCONFIG_CFLAGS
- PKG_CONFIG_LIBDIR
- PKG_CONFIG_PATH
- PKG_CONFIG
- CPP
- ENABLE_CUPS
- ENABLE_SYMBOLS
- ENABLE_LTO
- DISABLE_LINKOO
- ENABLE_DEBUG_FOR
- ENABLE_DEBUG
- EXTERNAL_WARNINGS_NOT_ERRORS
- ENABLE_CRASHDUMP
- SOURCEVERSION
- UPD
- WORKDIR_FOR_BUILD
- OUTDIR_FOR_BUILD
- MACOSX_DEPLOYMENT_TARGET_FOR_BUILD
- OUTPATH_FOR_BUILD
- INPATH_FOR_BUILD
- CXX_FOR_BUILD
- CC_FOR_BUILD
- CPUNAME_FOR_BUILD
- CPU_FOR_BUILD
- OS_FOR_BUILD
- GUIBASE_FOR_BUILD
- GUI_FOR_BUILD
- COM_FOR_BUILD
- WORKDIR
- SOLARVER
- P_SEP
- OUTPATH
- OUTDIR
- OS
- INPATH
- GUIBASE
- GUI
- EPM_FLAGS
- RTL_ARCH
- RTL_OS
- CPUNAME
- CPU
- COM
- SHOWINCLUDES_PREFIX
- COMEX
- LIBMGR_X64_BINARY
- LINK_X64_BINARY
- CXX_X64_BINARY
- BUILD_X64
- MSPDB_PATH
- PROEXT
- PRODUCT
- HAVE_LD_BSYMBOLIC_FUNCTIONS
- HAVE_GCC_FNO_INLINE
- HAVE_GCC_FINLINE_LIMIT
- HAVE_GCC_GGDB2
- COM_GCC_IS_CLANG
- DISABLE_ATL
- DISABLE_ACTIVEX
- ENABLE_DIRECTX
- CL_X64
- MAC_OS_X_VERSION_MAX_ALLOWED
- MAC_OS_X_VERSION_MIN_REQUIRED
- MACOSX_DEPLOYMENT_TARGET
- MACOSX_SDK_PATH
- FRAMEWORKSHOME
- _cc
- COMPATH
- OBJEXT
- EXEEXT
- ac_ct_CC
- CPPFLAGS
- LDFLAGS
- CFLAGS
- CC
- GCC_HOME
- CCACHE
- SYSBASE
- DISABLE_DYNLOADING
- DISABLE_SCRIPTING
- DISABLE_EXTENSIONS
- DISABLE_DBCONNECTIVITY
- STRIP_COMPONENTS
- GNUTAR
- BASH
- AWK
- FONTCONFIG_TARBALL
- FREETYPE_TARBALL
- PTHREAD_LIBS
- PTHREAD_CFLAGS
- OSVERSION
- WITH_MINGW
- DYNAMIC_CRT
- use_shl_version
- GAWK
- ANDROID_SDK_HOME
- ANDROID_NDK_HOME
- SED
- x_Cygwin
- EXEEXT_FOR_BUILD
- SRC_ROOT
- EGREP
- GREP
- CROSS_COMPILING
- host_os
- host_vendor
- host_cpu
- host
- build_os
- build_vendor
- build_cpu
- build
- target_alias
- host_alias
- build_alias
- LIBS
- ECHO_T
- ECHO_N
- ECHO_C
- DEFS
- mandir
- localedir
- libdir
- psdir
- pdfdir
- dvidir
- htmldir
- infodir
- docdir
- oldincludedir
- includedir
- localstatedir
- sharedstatedir
- sysconfdir
- datadir
- datarootdir
- libexecdir
- sbindir
- bindir
- program_transform_name
- prefix
- exec_prefix
- PACKAGE_URL
- PACKAGE_BUGREPORT
- PACKAGE_STRING
- PACKAGE_VERSION
- PACKAGE_TARNAME
- PACKAGE_NAME
- PATH_SEPARATOR
- SHELL'
- ac_subst_files=''
- ac_user_opts='
- enable_option_checking
- enable_extension_integration
- enable_ext_barcode
- enable_database_connectivity
- enable_extensions
- enable_scripting
- enable_dynamic_loading
- enable_ext_diagram
- enable_ext_google_docs
- enable_ext_hunart
- enable_ext_languagetool
- enable_ext_mysql_connector
- enable_ext_nlpsolver
- enable_ext_ct2n
- enable_ext_numbertext
- enable_ext_oooblogger
- enable_ext_pdfimport
- enable_ext_presenter_console
- enable_ext_presenter_minimizer
- enable_ext_report_builder
- enable_ext_scripting_beanshell
- enable_ext_scripting_javascript
- enable_ext_typo
- enable_ext_validator
- enable_ext_watch_window
- enable_ext_wiki_publisher
- enable_mergelibs
- enable_graphite
- enable_ldap
- enable_fetch_external
- enable_lockdown
- enable_vba
- enable_pch
- enable_mozilla
- enable_epm
- enable_odk
- enable_mathmldtd
- enable_evolution2
- enable_directx
- enable_activex
- enable_atl
- enable_symbols
- enable_werror
- enable_debug
- enable_dbgutil
- enable_linkoo
- enable_lto
- enable_crashdump
- enable_python
- enable_gtk
- enable_gtk3
- enable_systray
- enable_split_app_modules
- enable_split_opt_features
- enable_cairo_canvas
- enable_librsvg
- enable_opengl
- enable_dbus
- enable_gconf
- enable_gnome_vfs
- enable_gio
- enable_build_mozilla
- enable_xmlsec
- enable_tde
- enable_tdeab
- enable_kde
- enable_kdeab
- enable_kde4
- enable_headless
- enable_unix_qstart_libpng
- enable_binfilter
- enable_rpath
- enable_randr
- enable_randr_link
- enable_gstreamer
- enable_neon
- enable_build_unowinreg
- enable_verbose
- enable_dependency_tracking
- enable_icecream
- enable_zenity
- enable_nsplugin
- enable_cups
- enable_ccache
- enable_cl_x64
- enable_extra_gallery
- enable_extra_template
- enable_extra_sample
- enable_extra_font
- enable_oxygenoffice
- enable_lomenubar
- enable_online_update
- enable_release_build
- enable_silent_msi
- enable_postgresql_sdbc
- with_android_ndk
- with_android_sdk
- with_gnu_patch
- with_build_platform_configure_options
- with_gnu_cp
- with_external_tar
- with_solver_and_workdir_root
- with_linked_git
- with_openldap
- with_vba_package_format
- with_theme
- with_helppack_integration
- with_fonts
- with_ppds
- with_afms
- with_agfa_monotype_fonts
- with_epm
- with_package_format
- with_system_libs
- with_system_headers
- with_system_jars
- with_system_stdlibs
- with_system_cairo
- with_system_graphite
- with_system_nss
- with_mozilla_version
- with_mozilla_toolkit
- with_myspell_dicts
- with_system_dicts
- with_external_dict_dir
- with_external_hyph_dir
- with_external_thes_dir
- with_system_zlib
- with_system_openssl
- with_system_jpeg
- with_system_clucene
- with_system_expat
- with_system_libcmis
- with_system_lcms2
- with_system_libcdr
- with_system_libvisio
- with_system_libwpd
- with_system_libwps
- with_system_libwpg
- with_system_libxml
- with_system_icu
- with_system_poppler
- with_system_db
- with_system_apache_commons
- with_system_mysql
- with_libmysql_path
- with_system_mysql_cppconn
- with_system_postgresql
- with_libpq_path
- with_system_hsqldb
- with_hsqldb_jar
- with_system_beanshell
- with_beanshell_jar
- with_system_rhino
- with_rhino_jar
- with_commons_codec_jar
- with_commons_lang_jar
- with_commons_httpclient_jar
- with_commons_logging_jar
- with_system_servlet_api
- with_servlet_api_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_saxon
- with_saxon_jar
- with_system_odbc
- with_system_sane
- with_system_xextensions_headers
- with_system_mesa_headers
- with_system_curl
- with_system_boost
- with_system_mdds
- with_system_vigra
- with_system_neon
- with_system_hunspell
- with_system_mythes
- with_system_altlinuxhyph
- with_system_lpsolve
- with_system_libexttextcat
- with_system_cppunit
- with_system_redland
- with_system_mozilla
- with_system_mozilla_headers
- with_system_gettext
- with_system_libpng
- with_linker_hash_style
- with_stlport
- with_jdk_home
- with_gxx_include_path
- with_help
- with_java
- with_java_target_version
- with_jvm_path
- with_ant_home
- with_junit
- with_perl_home
- with_doxygen
- with_cl_home
- with_mspdb_path
- with_midl_path
- with_csc_path
- with_dotnet_framework_home
- with_windows_sdk_home
- with_directx_home
- with_mozilla_build
- with_lang
- with_krb5
- with_gssapi
- with_branding
- with_intro_bitmap
- with_intro_progressbar_color
- with_intro_progressbar_size
- with_intro_progressbar_position
- with_intro_progressbar_frame_color
- with_flat_logo_svg
- with_about_background_svg
- with_startcenter_left_bitmap
- with_startcenter_right_bitmap
- with_startcenter_rtl_left_bitmap
- with_startcenter_rtl_right_bitmap
- with_startcenter_space_bitmap
- with_vendor
- with_unix_wrapper
- with_compat_oowrappers
- with_asm_home
- with_os_version
- with_mingw_cross_compiler
- with_build_version
- with_alloc
- with_sun_templates
- with_num_cpus
- with_max_jobs
- with_macosx_sdk
- with_macosx_version_min_required
- with_macosx_version_max_allowed
- with_system_boost_for_build
- with_system_cppunit_for_build
- with_system_db_for_build
- with_system_expat_for_build
- with_system_icu_for_build
- with_system_libxml_for_build
- enable_largefile
- with_x
- '
- 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
- MINIZIP_CFLAGS
- MINIZIP_LIBS
- CLUCENE_CFLAGS
- CLUCENE_LIBS
- CDR_CFLAGS
- CDR_LIBS
- VISIO_CFLAGS
- VISIO_LIBS
- LIBCMIS_CFLAGS
- LIBCMIS_LIBS
- WPD_CFLAGS
- WPD_LIBS
- LCMS2_CFLAGS
- LCMS2_LIBS
- CPPUNIT_CFLAGS
- CPPUNIT_LIBS
- FREETYPE_CFLAGS
- FREETYPE_LIBS
- WPS_CFLAGS
- WPS_LIBS
- WPG_CFLAGS
- WPG_LIBS
- LIBXSLT_CFLAGS
- LIBXSLT_LIBS
- LIBXML_CFLAGS
- LIBXML_LIBS
- CURL_CFLAGS
- CURL_LIBS
- MOZILLAXPCOM_CFLAGS
- MOZILLAXPCOM_LIBS
- MOZLIBREQ_CFLAGS
- MOZLIBREQ_LIBS
- NSS_CFLAGS
- NSS_LIBS
- MOZILLA_HEADERS_CFLAGS
- MOZILLA_HEADERS_LIBS
- GRAPHITE_CFLAGS
- GRAPHITE_LIBS
- XMKMF
- XRANDR_CFLAGS
- XRANDR_LIBS
- NEON_CFLAGS
- NEON_LIBS
- OPENSSL_CFLAGS
- OPENSSL_LIBS
- REDLAND_CFLAGS
- REDLAND_LIBS
- HUNSPELL_CFLAGS
- HUNSPELL_LIBS
- MYTHES_CFLAGS
- MYTHES_LIBS
- LIBEXTTEXTCAT_CFLAGS
- LIBEXTTEXTCAT_LIBS
- GTK3_CFLAGS
- GTK3_LIBS
- GCONF_CFLAGS
- GCONF_LIBS
- GNOMEVFS_CFLAGS
- GNOMEVFS_LIBS
- GTK_CFLAGS
- GTK_LIBS
- GTHREAD_CFLAGS
- GTHREAD_LIBS
- GTK210_CFLAGS
- GTK210_LIBS
- GTK_PRINT_CFLAGS
- GTK_PRINT_LIBS
- DBUS_CFLAGS
- DBUS_LIBS
- GIO_CFLAGS
- GIO_LIBS
- LIBPNG_CFLAGS
- LIBPNG_LIBS
- GSTREAMER_CFLAGS
- GSTREAMER_LIBS
- POPPLER_CFLAGS
- POPPLER_LIBS
- KDE_GLIB_CFLAGS
- KDE_GLIB_LIBS
- GOBJECT_CFLAGS
- GOBJECT_LIBS
- DBUSMENUGTK_CFLAGS
- DBUSMENUGTK_LIBS
- LIBRSVG_CFLAGS
- LIBRSVG_LIBS
- CAIRO_CFLAGS
- CAIRO_LIBS'
- # Initialize some variables set by options.
- ac_init_help=
- ac_init_version=false
- ac_unrecognized_opts=
- ac_unrecognized_sep=
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- cache_file=/dev/null
- exec_prefix=NONE
- no_create=
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- verbose=
- x_includes=NONE
- x_libraries=NONE
- # Installation directory options.
- # These are left unexpanded so users can "make install exec_prefix=/foo"
- # and all the variables that are supposed to be based on exec_prefix
- # by default will actually change.
- # Use braces instead of parens because sh, perl, etc. also accept them.
- # (The list follows the same order as the GNU Coding Standards.)
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datarootdir='${prefix}/share'
- datadir='${datarootdir}'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
- infodir='${datarootdir}/info'
- htmldir='${docdir}'
- dvidir='${docdir}'
- pdfdir='${docdir}'
- psdir='${docdir}'
- libdir='${exec_prefix}/lib'
- localedir='${datarootdir}/locale'
- mandir='${datarootdir}/man'
- ac_prev=
- ac_dashdash=
- for ac_option
- do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval $ac_prev=\$ac_option
- ac_prev=
- continue
- fi
- case $ac_option in
- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
- *=) ac_optarg= ;;
- *) ac_optarg=yes ;;
- esac
- # Accept the important Cygnus configure options, so we can diagnose typos.
- case $ac_dashdash$ac_option in
- --)
- ac_dashdash=yes ;;
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir=$ac_optarg ;;
- -build | --build | --buil | --bui | --bu)
- ac_prev=build_alias ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build_alias=$ac_optarg ;;
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file=$ac_optarg ;;
- --config-cache | -C)
- cache_file=config.cache ;;
- -datadir | --datadir | --datadi | --datad)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=*)
- datadir=$ac_optarg ;;
- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
- | --dataroo | --dataro | --datar)
- ac_prev=datarootdir ;;
- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
- datarootdir=$ac_optarg ;;
- -disable-* | --disable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "enable_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=no ;;
- -docdir | --docdir | --docdi | --doc | --do)
- ac_prev=docdir ;;
- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
- docdir=$ac_optarg ;;
- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
- ac_prev=dvidir ;;
- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
- dvidir=$ac_optarg ;;
- -enable-* | --enable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "enable_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=\$ac_optarg ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix=$ac_optarg ;;
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
- -help | --help | --hel | --he | -h)
- ac_init_help=long ;;
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
- ac_init_help=recursive ;;
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
- ac_init_help=short ;;
- -host | --host | --hos | --ho)
- ac_prev=host_alias ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host_alias=$ac_optarg ;;
- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
- ac_prev=htmldir ;;
- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
- | --ht=*)
- htmldir=$ac_optarg ;;
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir=$ac_optarg ;;
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir=$ac_optarg ;;
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir=$ac_optarg ;;
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir=$ac_optarg ;;
- -localedir | --localedir | --localedi | --localed | --locale)
- ac_prev=localedir ;;
- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
- localedir=$ac_optarg ;;
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst | --locals)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
- localstatedir=$ac_optarg ;;
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir=$ac_optarg ;;
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c | -n)
- no_create=yes ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir=$ac_optarg ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=$ac_optarg ;;
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix=$ac_optarg ;;
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix=$ac_optarg ;;
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name=$ac_optarg ;;
- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
- ac_prev=pdfdir ;;
- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
- pdfdir=$ac_optarg ;;
- -psdir | --psdir | --psdi | --psd | --ps)
- ac_prev=psdir ;;
- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
- psdir=$ac_optarg ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir=$ac_optarg ;;
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir=$ac_optarg ;;
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site=$ac_optarg ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir=$ac_optarg ;;
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir=$ac_optarg ;;
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target_alias ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target_alias=$ac_optarg ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
- -version | --version | --versio | --versi | --vers | -V)
- ac_init_version=: ;;
- -with-* | --with-*)
- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "with_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=\$ac_optarg ;;
- -without-* | --without-*)
- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "with_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=no ;;
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes=$ac_optarg ;;
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries=$ac_optarg ;;
- -*) as_fn_error $? "unrecognized option: \`$ac_option'
- Try \`$0 --help' for more information"
- ;;
- *=*)
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
- # Reject names that are not valid shell variable names.
- case $ac_envvar in #(
- '' | [0-9]* | *[!_$as_cr_alnum]* )
- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
- esac
- eval $ac_envvar=\$ac_optarg
- export $ac_envvar ;;
- *)
- # FIXME: should be removed in autoconf 3.0.
- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
- ;;
- esac
- done
- if test -n "$ac_prev"; then
- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
- as_fn_error $? "missing argument to $ac_option"
- fi
- if test -n "$ac_unrecognized_opts"; then
- case $enable_option_checking in
- no) ;;
- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
- esac
- fi
- # Check all directory arguments for consistency.
- for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
- datadir sysconfdir sharedstatedir localstatedir includedir \
- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir
- do
- eval ac_val=\$$ac_var
- # Remove trailing slashes.
- case $ac_val in
- */ )
- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
- eval $ac_var=\$ac_val;;
- esac
- # Be sure to have absolute directory names.
- case $ac_val in
- [\\/$]* | ?:[\\/]* ) continue;;
- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
- esac
- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
- done
- # There might be people who depend on the old broken behavior: `$host'
- # used to hold the argument of --host etc.
- # FIXME: To remove some day.
- build=$build_alias
- host=$host_alias
- target=$target_alias
- # FIXME: To remove some day.
- if test "x$host_alias" != x; then
- if test "x$build_alias" = x; then
- cross_compiling=maybe
- $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
- If a cross compiler is detected then cross compile mode will be used" >&2
- elif test "x$build_alias" != "x$host_alias"; then
- cross_compiling=yes
- fi
- fi
- ac_tool_prefix=
- test -n "$host_alias" && ac_tool_prefix=$host_alias-
- test "$silent" = yes && exec 6>/dev/null
- ac_pwd=`pwd` && test -n "$ac_pwd" &&
- ac_ls_di=`ls -di .` &&
- ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
- as_fn_error $? "working directory cannot be determined"
- test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
- as_fn_error $? "pwd does not report name of working directory"
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then the parent directory.
- ac_confdir=`$as_dirname -- "$as_myself" ||
- $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_myself" : 'X\(//\)[^/]' \| \
- X"$as_myself" : 'X\(//\)$' \| \
- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$as_myself" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- srcdir=$ac_confdir
- if test ! -r "$srcdir/$ac_unique_file"; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r "$srcdir/$ac_unique_file"; then
- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
- fi
- ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
- ac_abs_confdir=`(
- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
- pwd)`
- # When building in place, set srcdir=.
- if test "$ac_abs_confdir" = "$ac_pwd"; then
- srcdir=.
- fi
- # Remove unnecessary trailing slashes from srcdir.
- # Double slashes in file names in object file debugging info
- # mess up M-x gdb in Emacs.
- case $srcdir in
- */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
- esac
- for ac_var in $ac_precious_vars; do
- eval ac_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_env_${ac_var}_value=\$${ac_var}
- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_cv_env_${ac_var}_value=\$${ac_var}
- done
- #
- # Report the --help message.
- #
- if test "$ac_init_help" = "long"; then
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat <<_ACEOF
- \`configure' configures LibreOffice 3.6 to adapt to many kinds of systems.
- Usage: $0 [OPTION]... [VAR=VALUE]...
- To assign environment variables (e.g., CC, CFLAGS...), specify them as
- VAR=VALUE. See below for descriptions of some of the useful variables.
- Defaults for the options are specified in brackets.
- Configuration:
- -h, --help display this help and exit
- --help=short display options specific to this package
- --help=recursive display the short help of all the included packages
- -V, --version display version information and exit
- -q, --quiet, --silent do not print \`checking ...' messages
- --cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=config.cache'
- -n, --no-create do not create output files
- --srcdir=DIR find the sources in DIR [configure dir or \`..']
- Installation directories:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [PREFIX]
- By default, \`make install' will install all the files in
- \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
- an installation prefix other than \`$ac_default_prefix' using \`--prefix',
- for instance \`--prefix=\$HOME'.
- For better control, use the options below.
- Fine tuning of the installation directories:
- --bindir=DIR user executables [EPREFIX/bin]
- --sbindir=DIR system admin executables [EPREFIX/sbin]
- --libexecdir=DIR program executables [EPREFIX/libexec]
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --libdir=DIR object code libraries [EPREFIX/lib]
- --includedir=DIR C header files [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
- --infodir=DIR info documentation [DATAROOTDIR/info]
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
- --mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/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 3.6:";;
- esac
- cat <<\_ACEOF
- Optional Features:
- --disable-option-checking ignore unrecognized --enable/--with options
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --disable-extension-integration
- Disable integration of the built extensions in the
- installer of the product. Use this switch to disable
- the integration.
- --enable-ext-barcode Enable the Barcode extension.
- --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.
- --enable-ext-diagram Enable the SmART Gallery (Diagram) extension.
- --enable-ext-google-docs
- Enable the Google Documents extension.
- --enable-ext-hunart Enable the Hungarian Cross-reference Toolbar
- extension.
- --enable-ext-languagetool
- Enable the LanguageTool extension.
- --enable-ext-mysql-connector
- Enable the build of the MySQL Connector extension.
- --enable-ext-nlpsolver Enable the NLPSolver extension.
- --enable-ext-ct2n Enable the ConvertTextToNumber extension.
- --enable-ext-numbertext Enable the Numbertext extension.
- --enable-ext-oooblogger Enable the OOo Blogger extension.
- --disable-ext-pdfimport Disable the PDF Import extension.
- --disable-ext-presenter-console
- Disable the Presenter Console extension.
- --disable-ext-presenter-minimizer
- Disable the Presentation Minimizer extension.
- --disable-ext-report-builder
- Disable the Report Builder extension.
- --enable-ext-scripting-beanshell
- Enable support for scripts in BeanShell.
- --enable-ext-scripting-javascript
- Enable support for scripts in JavaScript.
- --enable-ext-typo Enable the Typography Toolbar extension.
- --enable-ext-validator Enable the Validator extension.
- --enable-ext-watch-window
- Enable the Watch Window extension to Calc.
- --enable-ext-wiki-publisher
- Enable the Wiki Publisher extension.
- --enable-mergelibs Enables linking of big merged library used for
- better performance.
- --enable-graphite Enables the compilation of Graphite smart font
- rendering.
- --disable-ldap Disables the use of LDAP backend via
- Netscape/Mozilla or OpenLDAP LDAP SDK
- --disable-fetch-external
- Disables fetching external tarballs from web
- sources.
- --disable-lockdown Disables the gconf integration work in LibreOffice.
- --disable-vba Disables the vba compatibility feature.
- --enable-pch DEPRECATED : is ignored
- --disable-mozilla LibreOffice usually includes a strangely hacked up
- Mozilla binary for your platform, to build without
- this version, use this option.
- --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.
- --disable-mathmldtd Disable mathmldtd (useful for distributions that
- want to avoid packaging it).
- --enable-evolution2 Allows the built-in evolution 2 addressbook
- connectivity build to be enabled.
- --disable-directx Remove DirectX implementation for the new XCanvas
- interface. The DirectX support requires more stuff
- installed on Windows to compile. (DirectX SDK, GDI+
- libs)
- --disable-activex Disable the use of ActiveX for a Windows build. This
- switch is mandatory when using VC++ 2008 Express.
- --disable-atl Disable the use of ATL for a Windows build.
- This switch is mandatory when using VC++ 2008 Express.
- --enable-symbols Include debugging symbols in output. WARNING - a
- complete build needs a lot of space (roughly 10 GiB)
- and takes much longer (enables -g compiler flag for
- GCC or equivalent).
- --enable-werror Turn warnings to errors. (Has no effect in modules
- where the treating of warnings as errors is disabled
- explicitly.)
- --enable-debug Include debugging symbols like with
- --enable-symbols, disable compiler optimization and
- inlining plus extra debugging code like assertions.
- Extra large build! (enables -g compiler flag and
- dmake debug=true) If you need even more verbose
- output, build a module with "build -- debug=true
- dbglevel=2". You can also use this switch as
- follows: --enable-debug="all -sw/ -Library_sc" to
- enable symbols only for the specified gbuild-build
- targets (all means everything, - prepended means not
- to enable, / appended means everything in the
- directory, there is no ordering, more specific
- overrides more general, and disabling takes
- precedence).
- --enable-dbgutil Include additional debugging utilities, such as
- assertions, object counting, etc. Larger build.
- Independent from --enable-debug. Note that this
- option makes the build ABI incompatible: It is not
- possible to mix object files or libraries from a
- --enable-dbgutil and a --disable-dbgutil build.
- --disable-linkoo Disable linkoo for the smoketest installation.
- --enable-lto Enable link-time optimization. Suitable for product
- builds. Building takes longer but libraries are
- optimized for speed. (possible only with gcc-4.5 or
- later, better to use gcc-4.6 and 'gold' as linker)
- --enable-crashdump Enable the crashdump feature.
- --enable-python=<no/auto/system/internal>
- Enables or disables Python support at run-time and
- build-time. Also specifies what Python to use.
- 'auto' is the default. Note that Python can be
- disabled with --disable-python or --enable-python=no
- only if no translations are required.
- --disable-gtk Determines whether to use Gtk+ vclplug on platforms
- where Gtk+ is available.
- --disable-gtk3 Determines whether to use Gtk+ 3.0 vclplug on
- platforms where Gtk+ 3.0 is available.
- --disable-systray Determines whether to build the systray
- quickstarter.
- --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.
- --enable-librsvg=<no/auto/system/internal/fully-internal>
- Enables or disables use of librsvg to render SVG at
- run-time. Also specificed what librsvg to use.
- 'auto' is the default. 'fully-internal' also forces
- internal versions of libraries (only) librsvg
- depends on (currently GLib, gdk-pixbuf, libcroco,
- libgsf, pango).
- --disable-opengl Determines whether to build the OpenGL 3D slide
- transitions component.
- --enable-dbus Determines whether to enable presentation mode
- screensaver control under GNOME via DBUS.
- --disable-gconf Determines whether to use the GConf support.
- --disable-gnome-vfs Determines whether to use the Gnome Virtual Filing
- System on platforms where that VFS is available.
- --enable-gio Determines whether to use the GIO support.
- --disable-build-mozilla Use this option if you do not want to build the
- Mozilla components from the Mozilla source code but
- take precompiled zips.
- --disable-xmlsec Whether to enable XMLsec for open document signing.
- Be warned, building without XML Security will likely
- give you test failures.
- --enable-tde Determines whether to use TQt/TDE vclplug on
- platforms where TQt and TDE are available.
- --disable-tdeab Disable the TDE address book support.
- --enable-kde Determines whether to use Qt3/KDE3 vclplug on
- platforms where Qt3 and KDE3 are available.
- --disable-kdeab Disable the KDE3 address book support.
- --enable-kde4 Determines whether to use Qt4/KDE4 vclplug on
- platforms where Qt4 and KDE4 are available. May be
- used with --enable-kde if you want to support both
- KDE3 and KDE4.
- --enable-headless Disable building of GUIs to reduce dependencies.
- Useful for server usage. Work in progress, use only
- if you are hacking on it. Not related to the
- --headless option.
- --disable-unix-qstart-libpng
- On UNIX systems, we have a faster splash app, that
- can use libpng to render its splash, if we can
- safely link to the system libpng then enabling this
- is a good idea (ie. for Linux Distro packaging).
- --enable-binfilter Enable legacy binary file formats filters build.
- --disable-rpath Disable the use of relative paths in shared
- libraries.
- --disable-randr Disable RandR support in the vcl project.
- --disable-randr-link Disable linking with libXrandr, instead dynamically
- open it at runtime.
- --disable-gstreamer Disable building the gstreamer avmedia backend.
- --disable-neon Disable neon and the compilation of webdav binding.
- --enable-build-unowinreg
- Do not use the prebuilt unowinreg.dll. Build it
- instead. The MinGW C++ compiler is needed on Linux.
- Usage: --enable-build-unowinreg
- --enable-verbose Increase build verbosity.
- --disable-verbose Decrease build verbosity.
- --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.
- --disable-zenity Do not display a build icon in the notification area
- (on unix) during build.
- --disable-nsplugin Do not build nsplugin extension for browser
- embedding.
- --disable-cups Do not build cups support.
- --disable-ccache Do not try to use ccache automatically. By default,
- 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.
- --enable-cl-x64 Build a 64-bit LibreOffice using the Microsoft C/C++
- x64 compiler. Incomplete and doesn't work, use only
- if you are hacking on it.
- --enable-extra-gallery Add extra gallery content.
- --enable-extra-template Add extra template content.
- --enable-extra-sample Add extra sample content.
- --enable-extra-font Add extra font content.
- --enable-oxygenoffice Download OxygenOffice branding and set custom
- settings.
- --enable-lomenubar Enable global menu support.
- --enable-online-update Enable the online update service that will check for
- new versions of LibreOffice. By default, it is on on
- Windows and Mac, and off on Linux.
- --enable-release-build Enable release build. See
- http://wiki.documentfoundation.org/DevBuild
- --enable-silent-msi Enable MSI with LIMITUI=1 (silent install).
- --disable-postgresql-sdbc
- Disable the build of the PostgreSQL-SDBC driver.
- --disable-largefile omit support for large files
- 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-sdk Specify location of the Android SDK. Mandatory when
- building for Android.
- --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD.
- 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 path to tarfiles manually.
- --with-solver-and-workdir-root=<PATH>
- Specify path that contains SOLARVER and WORKDIR
- directories manually.
- --with-linked-git=<OTHER_CLONE_DIR>
- Specify another checkout's clonedir to re-use. This
- makes use of git-new-workdir, and saves a lot of
- diskspace when having multiple trees side-by-side.
- --with-openldap Enables the use of the OpenLDAP LDAP SDK instead of
- the Netscape/Mozilla one.
- --with-vba-package-format
- Specify package format for vba compatibility api.
- Specifying "builtin" means the api component and
- associated type library are part of the installation
- set. Specifying "extn" creates an uno extension that
- is part of the installation set (located in the
- program directory) that MUST be optionally
- registered using either the unopkg executeable or
- the extension manager gui.
- Note: "builtin" is the default, "extn" can cause
- problems.
- Usage: --with-vba-package-format="builtin" or
- --with-vba-package-format="extn"
- --with-theme="theme1 theme2..."
- Choose which themes to include. By default those
- themes with an '*' are included. Possible choices:
- *crystal, *default (galaxy), *hicontrast, human,
- industrial, *oxygen, *tango.
- --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.
- --without-ppds Removes Postscript Printer definition files from
- LibreOffice installation set, for people building
- for specific distributions where PPDs are known to
- be already available (every recent distro with CUPS
- backend).
- --without-afms Removes bitmap font files from LibreOffice
- installation set, for people building for specific
- distributions where AFM files or TrueType Fonts are
- known to be available.
- --with-agfa-monotype-fonts
- This switch should only be enabled for those who
- have the right to use or distribute the proprietary
- Agfa Monotype fonts.
- --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
- installsets. Default is the "normal" one of the
- OS/Distribution. Possible values: aix, bsd, deb,
- inst, tardist, osx, pkg, rpm, setld, native,
- portable, archive, dmg, installed, msi. Example:
- --with-package-format="deb dmg"
- --with-system-libs Use libraries already on system -- enables all
- --with-system-* flags except mozilla.
- --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/vigra/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
- --without-system-stdlibs
- Bundle the used libstdc++/libgcc_s into the
- installation set.
- --with-system-cairo Use Cairo libraries already on system.
- --with-system-graphite Use graphite library already installed on system.
- --with-system-nss Use NSS/nspr libraries already on system.
- --with-mozilla-version Choose which version of Mozilla to use while
- building Mozilla. (default=1.7.5) Note that not all
- versions are supported.
- --with-mozilla-toolkit Choose which GUI toolkit to use while building
- Mozilla components. (default=gtk2)
- --without-myspell-dicts Removes myspell dictionaries from LibreOffice
- installation set, for people building for specific
- distributions where the myspell dictionaries are
- installed from other sources.
- --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-openssl Use OpenSSL 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-libcmis Use libcmis already on system.
- --with-system-lcms2 Use littlecms v2 already on system.
- --with-system-libcdr Use libcdr already on system.
- --with-system-libvisio Use libvisio already on system.
- --with-system-libwpd Use libwpd already on system.
- --with-system-libwps Use libwps already on system.
- --with-system-libwpg Use libwpg already on system.
- --with-system-libxml Use libxml/libxslt already on system.
- --with-system-icu Use icu already on system.
- --with-system-poppler Use system poppler. (only needed for pdfimport
- extension)
- --with-system-db Use Berkeley db already on system.
- --with-system-apache-commons
- Use Apache commons libraries already on system.
- --with-system-mysql Use MySQL libraries already on system, for building
- the MySQL Connector/LibreOffice extension. If the
- the mysql_config executable is not in PATH, use
- MYSQLCONFIG to point to it.
- --with-libmysql-path Use Connector/C (libmysql) installation for building
- the MySQL Connector/LibreOffice extension.
- Usage: --with-libmysql-path=<absolute path to
- your Connector/C installation>
- --with-system-mysql-cppconn
- Use MySQL C++ Connector 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 Use this PostgreSQL C interface (libpq) installation
- for building the PostgreSQL-SDBC extension.
- Usage: --with-libpq-path=<absolute path to
- your libq installation>
- --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-codec-jar=JARFILE
- Specify path to jarfile manually.
- --with-commons-lang-jar=JARFILE
- Specify path to jarfile manually.
- --with-commons-httpclient-jar=JARFILE
- Specify path to jarfile manually.
- --with-commons-logging-jar=JARFILE
- Specify path to jarfile manually.
- --with-system-servlet-api
- Use servlet-api already on system.
- --with-servlet-api-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-saxon Use saxon already on system.
- --with-saxon-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-xextensions-headers
- To build without system X11 extensions headers, use
- --without-system-xextensions-headers. This is
- possibly useful on legacy unix systems which ship
- with the libs but without the headers.
- --with-system-mesa-headers
- Use Mesa headers already on system.
- --with-system-curl Use curl already on system.
- --with-system-boost Use boost already on system.
- --with-system-mdds Use mdds already on system.
- --with-system-vigra Use vigra already on system.
- --with-system-neon Use neon already on system.
- --with-system-hunspell Use libhunspell 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-libexttextcat
- Use libexttextcat already on system.
- --with-system-cppunit Use cppunit already on system.
- --with-system-redland Use redland library already on system.
- --with-system-mozilla Use Mozilla already on system. Note that some
- components cannot be built against a contemporary
- Mozilla. The flavour used can be specified by
- --with-system-mozilla=<flavour>. Supported are:
- libxul (default), xulrunner, firefox, seamonkey,
- mozilla, iceape.
- --with-system-mozilla-headers
- Use mozilla headers provided by system instead of
- bundled ones. Used in nsplugin
- --with-system-gettext Use gettext runtime library already on system.
- --with-system-libpng Use libpng already on system.
- --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-stlport Build the STLPort library for compatibility with old
- extensions for architectures where STLPort used to
- be used.
- --with-jdk-home If you have installed JDK 1.3 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.
- Usage: --with-jdk-home=<absolute path to JDK home>
- --with-gxx-include-path If you want to override the autodetected g++ include
- path.
- Usage: --with-gxx-include-path=<absolute path to
- g++ include dir>
- --with-help Enable the build of help. To build without help, use
- --without-help.
- --with-java 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.
- Usage: --with-java==<java command>
- --without-java
- --with-java-target-version
- Generate class files that will work on JVMs with the
- specified version. For example, use
- --with-java-target-version=1.4 to make sure that the
- application will work with JVM 1.4 even when
- compiled with JDK 1.5.
- This option is ignored when you compile with gcj/gij.
- Usage: --with-java-target-version=<jvm version>
- --with-jvm-path Use a specific JVM search path at runtime.
- Usage: --with-jvm-path=<absolute path to parent of jvm home>
- e. g.: --with-jvm-path=/usr/lib/
- to find JRE/JDK in /usr/lib/jvm/
- --with-ant-home If you have installed Jakarta 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.
- Usage: --with-ant-home=<absolute path to Ant home>
- --with-junit Specifies the JUnit 4 jar file to use for
- JUnit-based tests. --without-junit disables those
- tests. Not relevant in the --without-java case.
- Usage: --with-junit=<absolute path to JUnit 4 jar>
- --with-perl-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.
- Usage: --with-perl-home=<abs. path to Perl 5 home>
- --with-doxygen 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.
- Usage: --with-doxygen=<absolute path to doxygen executable>
- --with-cl-home For Windows NT users, please supply the path for the
- Microsoft C/C++ compiler. Note that this is not the
- location of the compiler binary but the location of
- the entire distribution.
- Usage: --with-cl-home=<absolute path to Microsoft
- C/C++ compiler home>
- --with-mspdb-path For Microsoft C/C++ compiler users, please supply
- the path pointing to the mspdb80.dll (if using
- Visual Studio 2008) or mspdb100.dll (if using Visual
- Studio 2010).
- Usage: --with-mspdb-path=<path to
- mspdb80.dll/mspdb100.dll>
- --with-midl-path For Microsoft compiler users, please supply the path
- pointing to the midl.exe.
- Usage: --with-midl-path=<abs. path to midl.exe>
- --with-csc-path For Windows builds, please supply the path pointing
- to the csc.exe. Usually found automatically when
- building on Windows.
- Usage: --with-csc-path=<abs. path to csc.exe>
- --with-dotnet-framework-home
- For Microsoft compiler users, please supply the path
- pointing to lib/mscoree.lib, usually something like:
- "/cygdrive/c/Program Files/Windows
- SDKs/Windows/v7.0"
- Note that in most cases it will be automatically
- found, though.
- Usage: --with-dotnet-framework-home=<absolute path to .NET
- Framework>
- --with-windows-sdk-home For Windows builds, please supply the path to the
- Windows SDK. Usually found automatically when
- building on Windows.
- Usage: --with-windows-sdk-home=<absolute path to Windows SDK>
- --with-directx-home For Windows users, please supply the path to the
- Microsoft DirectX SDK.
- Usage: --with-directx-home=<absolute path to
- Microsoft DirectX SDK>
- --with-mozilla-build For Windows users, please supply the path to the
- Mozilla build tools.
- Usage: --with-mozilla-build=<absolute path to
- Mozilla build tools>
- At the moment of this writing, an installer for the
- mozilla build tools can be obtained from http://ftp.
- mozilla.org/pub/mozilla.org/mozilla/libraries/win32.
- --with-lang Use this option to build LibreOffice with additional
- language support. English (US) is always included by
- default. Separate multiple languages with space. For
- all languages, use --with-lang=ALL.
- Usage: --with-lang="es sw tu cs sk"
- --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-branding Use given path to retrieve all branding images.
- Expects /path/intro.png ...
- /path/backing_rtl_right.png to be there. Individual
- images can be overridden via --with-intro-bitmap ...
- --with-startcenter-rtl-left-bitmap switches.
- Usage: --with-branding=/path/to/images
- --with-intro-bitmap Prefer the specified intro bitmap over the
- the default one.
- Usage: --with-intro-bitmap=/path/my_ooo_intro.png
- --with-intro-progressbar-color Set color of progress bar on intro screen.
- Comma separated RGB values in decimal format.
- Usage: --with-intro-progressbar-color=126,170,23
- --with-intro-progressbar-size Set size of progress bar on intro screen.
- Comma separated values in decimal format.
- Usage: --with-intro-progressbar-size=319,10
- --with-intro-progressbar-position Set position of progress bar on intro screen.
- Comma separated values in decimal format.
- Usage: --with-intro-progressbar-position=164,225
- --with-intro-progressbar-frame-color Set color of progress bar frame on intro screen.
- Comma separated RGB values in decimal format.
- Usage: --with-intro-progressbar-frame-color=207,208,211
- --with-flat-logo-svg Allows specification of the flat Logo SVG.
- Usage: --with-flat-logo-svg=/path/my_flat_logo.svg
- --with-about-background-svg Allows specification of the background SVG for the About dialog.
- Usage: --with-about-background-svg=/path/my_libo_about.svg
- --with-startcenter-left-bitmap Similarly to --with-intro-bitmap, this allows
- specification of bitmap for the Start center.
- Usage: --with-startcenter-left-bitmap=/path/my_backing_left.png
- --with-startcenter-right-bitmap Similarly to --with-intro-bitmap, this allows
- specification of bitmap for the Start center.
- Usage: --with-startcenter-right-bitmap=/path/my_backing_right.png
- --with-startcenter-rtl-left-bitmap Similarly to --with-intro-bitmap, this allows
- specification of bitmap for the Start center.
- Usage: --with-startcenter-rtl-left-bitmap=/path/my_backing_rtl_left.png
- --with-startcenter-rtl-right-bitmap Similarly to --with-intro-bitmap, this allows
- specification of bitmap for the Start center.
- Usage: --with-startcenter-rtl-right-bitmap=/path/my_backing_rtl_right.png
- --with-startcenter-space-bitmap Similarly to --with-intro-bitmap, this allows
- specification of bitmap for the Start center.
- Usage: --with-startcenter-space-bitmap=/path/my_backing_space.png
- --with-vendor Set vendor of the build.
- Usage: --with-vendor="John the Builder"
- --with-unix-wrapper Redefines the name of the UNIX wrapper that will be
- used in the desktop files and in the
- desktop-integration RPMs.
- Usage: --with-unix-wrapper=ooffice
- --with-compat-oowrappers
- Install oo* wrappers in parallel with lo* ones to
- keep backward compatibility. Has effect only with
- make distro-pack-install
- --with-asm-home For Windows, please supply the path for the ml.exe
- or ml64.exe assembler.
- Usage: --with-asm-home=<path to assembler directory>
- --with-os-version For FreeBSD users, use this option option to
- override the detected OSVERSION.
- Usage: --with-os-version=<OSVERSION>
- --with-mingw-cross-compiler
- Specify the MinGW cross-compiler to use.
- Usage: --with-mingw-cross-compiler=<mingw32-g++ command>
- When building on the ODK on Unix and building unowinreg.dll,
- specify the MinGW C++ cross-compiler.
- --with-build-version Allows the builder to add a custom version tag that
- will appear in the Help/About box for QA purposes.
- Usage: --with-build-version="Built by Jim"
- --with-alloc Define which allocator to build with (choices are
- oo, system, tcmalloc, jemalloc). Note that on
- FreeBSD/NetBSD system==jemalloc
- --with-sun-templates Integrate Sun template packages.
- --with-num-cpus Number of build processes/cpus to use (number of
- projects that will build at the same time).
- Multi-process/multi-cpu builds can save a lot of
- time on multi-cpu machines. Defaults to the number
- of CPUs on the machine.
- --with-max-jobs Maximum number of jobs that will be issued at the
- same time per dmake or gbuild subproject. The real
- number of the jobs is affected by the
- --with-num-cpus too, it can get up to CPUS*max_jobs.
- Defaults to 1, unless you configure
- --enable-icecream - then to 10.
- --with-macosx-sdk Use a specific SDK for building.
- Usage: --with-macosx-sdk=<version>
- e. g.: --with-macosx-sdk=10.4
- there are 3 options to controle the MacOSX build:
- --with-macosx-sdk (refered as 'sdl' below)
- --with-macosx-version-min-required (refered as 'min' below)
- --with-macosx-version-max-allowed (refered as 'max' below)
- the connection between these value and the default they take is as follow:
- ( ? means not specified on the command line, constraint: x <= y <= z)
- ==========================================
- command line || config result
- ==========================================
- min | max | sdk || min | max | sdk |
- ? | ? | ? || 10.4 | 10.4 | 10.4 |
- ? | ? | 10.x || 10.4 | 10.4 | 10.x |
- ? | 10.x | ? || 10.4 | 10.x | 10.x |
- ? | 10.x | 10.y || 10.4 | 10.x | 10.y |
- 10.x | ? | ? || 10.x | 10.x | 10.x |
- 10.x | ? | 10.y || 10.x | 10.x | 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 detailled technical explanation of these variables
- Note: MACOSX_DEPLOYMENT_TARGET will be set to the value of 'min'.
- --with-macosx-version-min-required
- set the minimum OS version needed to run the built
- LibreOffice
- Usage: --with-macosx-version-min-required=<version>
- e. g.: --with-macos-version-min-required=10.4
- see --with-macosx-sdk for more info
- --with-macosx-version-max-allowed
- set the maximum allowed OS version the LibreOffice
- compilation can use APIs from
- Usage: --with-macosx-version-max-allowed=<version>
- e. g.: --with-macos-version-max-allowed=10.6
- see --with-macosx-sdk for more info
- --with-system-boost-for-build
- Use boost already on system for build tools
- (cross-compilation only).
- --with-system-cppunit-for-build
- Use cppunit already on system for build tools
- (cross-compilation only).
- --with-system-db-for-build
- Use db already on system for build tools
- (cross-compilation only).
- --with-system-expat-for-build
- Use expat already on system for build tools
- (cross-compilation only).
- --with-system-icu-for-build=yes/no/force
- Use icu already on system for build tools
- (cross-compilation only).
- --with-system-libxml-for-build
- Use libxml/libxslt already on system for build tools
- (cross-compilation only).
- --with-x use the X Window System
- 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
- MINIZIP_CFLAGS
- C compiler flags for MINIZIP, overriding pkg-config
- MINIZIP_LIBS
- linker flags for MINIZIP, overriding pkg-config
- CLUCENE_CFLAGS
- C compiler flags for CLUCENE, overriding pkg-config
- CLUCENE_LIBS
- linker flags for CLUCENE, overriding pkg-config
- CDR_CFLAGS C compiler flags for CDR, overriding pkg-config
- CDR_LIBS linker flags for CDR, overriding pkg-config
- VISIO_CFLAGS
- C compiler flags for VISIO, overriding pkg-config
- VISIO_LIBS linker flags for VISIO, overriding pkg-config
- LIBCMIS_CFLAGS
- C compiler flags for LIBCMIS, overriding pkg-config
- LIBCMIS_LIBS
- linker flags for LIBCMIS, overriding pkg-config
- WPD_CFLAGS C compiler flags for WPD, overriding pkg-config
- WPD_LIBS linker flags for WPD, 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
- WPS_CFLAGS C compiler flags for WPS, overriding pkg-config
- WPS_LIBS linker flags for WPS, overriding pkg-config
- WPG_CFLAGS C compiler flags for WPG, overriding pkg-config
- WPG_LIBS linker flags for WPG, overriding pkg-config
- LIBXSLT_CFLAGS
- C compiler flags for LIBXSLT, overriding pkg-config
- LIBXSLT_LIBS
- linker flags for LIBXSLT, overriding pkg-config
- LIBXML_CFLAGS
- C compiler flags for LIBXML, overriding pkg-config
- LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
- CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
- CURL_LIBS linker flags for CURL, overriding pkg-config
- MOZILLAXPCOM_CFLAGS
- C compiler flags for MOZILLAXPCOM, overriding pkg-config
- MOZILLAXPCOM_LIBS
- linker flags for MOZILLAXPCOM, overriding pkg-config
- MOZLIBREQ_CFLAGS
- C compiler flags for MOZLIBREQ, overriding pkg-config
- MOZLIBREQ_LIBS
- linker flags for MOZLIBREQ, overriding pkg-config
- NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
- NSS_LIBS linker flags for NSS, overriding pkg-config
- MOZILLA_HEADERS_CFLAGS
- C compiler flags for MOZILLA_HEADERS, overriding pkg-config
- MOZILLA_HEADERS_LIBS
- linker flags for MOZILLA_HEADERS, overriding pkg-config
- GRAPHITE_CFLAGS
- C compiler flags for GRAPHITE, overriding pkg-config
- GRAPHITE_LIBS
- linker flags for GRAPHITE, overriding pkg-config
- XMKMF Path to xmkmf, Makefile generator for X Window System
- XRANDR_CFLAGS
- C compiler flags for XRANDR, overriding pkg-config
- XRANDR_LIBS linker flags for XRANDR, 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
- 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
- LIBEXTTEXTCAT_CFLAGS
- C compiler flags for LIBEXTTEXTCAT, overriding pkg-config
- LIBEXTTEXTCAT_LIBS
- linker flags for LIBEXTTEXTCAT, overriding pkg-config
- GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
- GTK3_LIBS linker flags for GTK3, overriding pkg-config
- GCONF_CFLAGS
- C compiler flags for GCONF, overriding pkg-config
- GCONF_LIBS linker flags for GCONF, overriding pkg-config
- GNOMEVFS_CFLAGS
- C compiler flags for GNOMEVFS, overriding pkg-config
- GNOMEVFS_LIBS
- linker flags for GNOMEVFS, overriding pkg-config
- GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
- GTK_LIBS linker flags for GTK, overriding pkg-config
- GTHREAD_CFLAGS
- C compiler flags for GTHREAD, overriding pkg-config
- GTHREAD_LIBS
- linker flags for GTHREAD, overriding pkg-config
- GTK210_CFLAGS
- C compiler flags for GTK210, overriding pkg-config
- GTK210_LIBS linker flags for GTK210, overriding pkg-config
- GTK_PRINT_CFLAGS
- C compiler flags for GTK_PRINT, overriding pkg-config
- GTK_PRINT_LIBS
- linker flags for GTK_PRINT, overriding pkg-config
- DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
- DBUS_LIBS linker flags for DBUS, overriding pkg-config
- GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
- GIO_LIBS linker flags for GIO, overriding pkg-config
- LIBPNG_CFLAGS
- C compiler flags for LIBPNG, overriding pkg-config
- LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
- GSTREAMER_CFLAGS
- C compiler flags for GSTREAMER, overriding pkg-config
- GSTREAMER_LIBS
- linker flags for GSTREAMER, overriding pkg-config
- POPPLER_CFLAGS
- C compiler flags for POPPLER, overriding pkg-config
- POPPLER_LIBS
- linker flags for POPPLER, overriding pkg-config
- KDE_GLIB_CFLAGS
- C compiler flags for KDE_GLIB, overriding pkg-config
- KDE_GLIB_LIBS
- linker flags for KDE_GLIB, overriding pkg-config
- GOBJECT_CFLAGS
- C compiler flags for GOBJECT, overriding pkg-config
- GOBJECT_LIBS
- linker flags for GOBJECT, overriding pkg-config
- DBUSMENUGTK_CFLAGS
- C compiler flags for DBUSMENUGTK, overriding pkg-config
- DBUSMENUGTK_LIBS
- linker flags for DBUSMENUGTK, overriding pkg-config
- LIBRSVG_CFLAGS
- C compiler flags for LIBRSVG, overriding pkg-config
- LIBRSVG_LIBS
- linker flags for LIBRSVG, overriding pkg-config
- CAIRO_CFLAGS
- C compiler flags for CAIRO, overriding pkg-config
- CAIRO_LIBS linker flags for CAIRO, 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 3.6
- generated by GNU Autoconf 2.68
- Copyright (C) 2010 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_link LINENO
- # -----------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded.
- ac_fn_c_try_link ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_link
- # 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_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_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_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_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 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 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 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 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 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 ||
- $as_test_x conftest$ac_exeext
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_cxx_try_link
- # 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_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_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
- # 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
- 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 3.6, which was
- generated by GNU Autoconf 2.68. 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
- save_CC=$CC
- save_CXX=$CXX
- BUILD_TYPE="LibO"
- SCPDEFS=""
- GIT_REPO_NAMES=""
- LO_PATH= # used by path_munge to construct a PATH variable
- PathFormat()
- {
- formatted_path="$1"
- if test "$build_os" = "cygwin"; then
- pf_part1=
- pf_conv_to_dos=
- for pf_part in $formatted_path; do
- if test -z "$pf_part1"; then
- pf_part1="$pf_part"
- else
- pf_conv_to_dos="yes"
- fi
- done
- if test "$pf_conv_to_dos" = "yes"; then
- formatted_path=`cygpath -d "$formatted_path"`
- 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
- formatted_path=`realpath "$formatted_path"`
- if test $? -ne 0; then
- as_fn_error $? "realpath failed for \"$1\"." "$LINENO" 5
- 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
- fi
- }
- if test -n "$SOLARENV" ; 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
- 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
- if test "$cross_compiling" = "yes"; then
- CROSS_COMPILING=YES
- else
- CROSS_COMPILING=
- BUILD_TYPE="$BUILD_TYPE NATIVE"
- fi
- { $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"
- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
- # Check for GNU ac_path_GREP and select it if it is found.
- # Check for GNU $ac_path_GREP
- case `"$ac_path_GREP" --version 2>&1` in
- *GNU*)
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
- *)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'GREP' >> "conftest.nl"
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_GREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_GREP="$ac_path_GREP"
- ac_path_GREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
- esac
- $ac_path_GREP_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_GREP"; then
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
- else
- ac_cv_path_GREP=$GREP
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
- $as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
- $as_echo_n "checking for egrep... " >&6; }
- if ${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"
- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
- # Check for GNU ac_path_EGREP and select it if it is found.
- # Check for GNU $ac_path_EGREP
- case `"$ac_path_EGREP" --version 2>&1` in
- *GNU*)
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
- *)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'EGREP' >> "conftest.nl"
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_EGREP="$ac_path_EGREP"
- ac_path_EGREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
- esac
- $ac_path_EGREP_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_EGREP"; then
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
- else
- ac_cv_path_EGREP=$EGREP
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
- $as_echo "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
- # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
- if test "$build_os" = "cygwin"; then
- EXEEXT_FOR_BUILD=.exe
- SRC_ROOT=`pwd`
- PathFormat "$SRC_ROOT"
- SRC_ROOT="$formatted_path"
- x_Cygwin=
- else
- EXEEXT_FOR_BUILD=
- SRC_ROOT=`pwd`
- x_Cygwin=\#
- fi
- cat /dev/null > warn
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
- ANDROID_NDK_HOME=
- if test -n "$with_android_ndk"; then
- ANDROID_NDK_HOME=$with_android_ndk
- # Set up a lot of pre-canned defaults
- # What if the NDK at some point starts including several toolchains for different
- # gcc versions (like some 3rd-party improved NDK builds already do)?
- # Then the use of a wildcard below will break.
- ANDROID_ABI_PREBUILT_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-linux*/prebuilt/*/bin`
- test -z "$SYSBASE" && export SYSBASE=$ANDROID_NDK_HOME/platforms/android-9/arch-arm
- test -z "$AR" && AR=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-ar
- test -z "$NM" && NM=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-nm
- test -z "$OBJDUMP" && OBJDUMP=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-objdump
- test -z "$RANLIB" && RANLIB=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-ranlib
- test -z "$STRIP" && STRIP=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-strip
- ANDROIDCFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-arm -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a"
- test -z "$CC" && CC="$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-gcc $ANDROIDCFLAGS"
- test -z "$CXX" && CXX="$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-g++ $ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include"
- fi
- ANDROID_SDK_HOME=
- if test -n "$with_android_sdk"; then
- ANDROID_SDK_HOME=$with_android_sdk
- PATH="$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH"
- fi
- #defaults unless the os test overrides this:
- test_randr=yes
- test_xrender=yes
- test_cups=yes
- test_fontconfig=yes
- test_cairo=yes
- # Default values, as such probably valid just for Linux, set
- # differently below just for Mac OS X,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.in?
- LINKFLAGSSHL="-shared"
- PICSWITCH="-fpic"
- DLLPOST=".so"
- LINKFLAGSNOUNDEFS="-Wl,-z,defs"
- case "$host_os" in
- solaris*)
- test_gtk=yes
- build_gstreamer=yes
- test_tde=yes
- test_kde=yes
- test_freetype=yes
- test_gstreamer=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*)
- test_gtk=yes
- build_gstreamer=yes
- test_tde=yes
- test_kde=yes
- test_kde4=yes
- test_freetype=yes
- test_unix_quickstarter=yes
- _os=Linux
- ;;
- gnu)
- test_randr=no
- test_xrender=no
- _os=GNU
- ;;
- cygwin*|interix*|mingw32*)
- # 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.
- # When cross-compiling to Windows from Unix, the host platform
- # is "mingw32" (because in that case it is the MinGW
- # tool-chain that is used).
- test_cups=no
- test_randr=no
- test_xrender=no
- test_freetype=no
- test_fontconfig=no
- _os=WINNT
- use_shl_version="TRUE"
- DYNAMIC_CRT="TRUE"
- # If the host OS matches "mingw32*", that means we are using the
- # MinGW cross-compiler, because we don't see the point in building
- # LibreOffice using MinGW on Windows. If you want to build on
- # Windows, use MSVC. If you want to use MinGW, surely you want to
- # cross-compile (from Linux or some other Unix).
- case "$host_os" in
- mingw32*)
- WITH_MINGW=yes
- if test -z "$CC"; then
- CC="$host_cpu-$host_vendor-$host_os-gcc"
- fi
- if test -z "$CXX"; then
- CXX="$host_cpu-$host_vendor-$host_os-g++"
- fi
- ;;
- esac
- ;;
- darwin*) # Mac OS X or iOS
- test_gtk=yes
- test_randr=no
- test_xrender=no
- test_freetype=no
- test_fontconfig=no
- if test "$host_cpu" = "arm"; then
- _os=iOS
- test_gtk=no
- test_cups=no
- else
- _os=Darwin
- fi
- enable_systray=no
- # See comment above the case "$host_os"
- LINKFLAGSSHL="-dynamiclib -single_module"
- # -fPIC is default
- PICSWITCH=""
- DLLPOST=".dylib"
- # -undefined error is the default
- LINKFLAGSNOUNDEFS=""
- ;;
- freebsd*)
- test_gtk=yes
- build_gstreamer=yes
- test_tde=yes
- test_kde=yes
- test_kde4=yes
- test_freetype=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*)
- test_gtk=yes
- build_gstreamer=yes
- test_tde=no
- test_kde=no
- test_kde4=yes
- test_freetype=yes
- PTHREAD_LIBS="-pthread -lpthread"
- _os=NetBSD
- ;;
- aix*)
- test_randr=no
- test_freetype=yes
- PTHREAD_LIBS=-pthread
- _os=AIX
- ;;
- openbsd*)
- test_gtk=yes
- test_tde=yes
- test_kde=yes
- test_freetype=yes
- PTHREAD_CFLAGS="-D_THREAD_SAFE"
- PTHREAD_LIBS="-pthread"
- _os=OpenBSD
- ;;
- dragonfly*)
- test_gtk=yes
- build_gstreamer=yes
- test_tde=yes
- test_kde=yes
- test_kde4=yes
- test_freetype=yes
- PTHREAD_LIBS="-pthread"
- _os=DragonFly
- ;;
- linux-androideabi*)
- build_gstreamer=no
- test_cups=no
- test_fontconfig=no
- test_freetype=no
- test_gtk=no
- test_tde=no
- test_kde=no
- test_kde4=no
- test_randr=no
- test_xrender=no
- test_unix_quickstarter=no
- _os=Android
- if test -z "$with_android_ndk"; then
- as_fn_error $? "the --with-android-ndk option is mandatory" "$LINENO" 5
- fi
- if test -z "$with_android_sdk"; then
- as_fn_error $? "the --with-android-sdk option is mandatory" "$LINENO" 5
- fi
- # Verify that the NDK and SDK options are proper
- if test ! -f "$ANDROID_NDK_HOME/platforms/android-9/arch-arm/usr/lib/libc.a"; then
- as_fn_error $? "the --with-android-ndk option does not point to an Android NDK" "$LINENO" 5
- fi
- if test ! -f "$ANDROID_SDK_HOME/platforms/android-14/android.jar"; then
- as_fn_error $? "the --with-android-sdk option does not point to an Android SDK" "$LINENO" 5
- fi
- BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE"
- FREETYPE_TARBALL=dbf2caca1d3afd410a29217a9809d397-freetype-2.4.8.tar.bz2
- FONTCONFIG_TARBALL=77e15a92006ddc2adbb06f840d591c0e-fontconfig-2.8.0.tar.gz
- ;;
- *)
- as_fn_error $? "$host_os operating system is not suitable to build LibreOffice for!" "$LINENO" 5
- ;;
- esac
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
- ###############################################################################
- # 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 wether 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;
- fi
- # Check whether --enable-ext-barcode was given.
- if test "${enable_ext_barcode+set}" = set; then :
- enableval=$enable_ext_barcode;
- 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;
- fi
- # Check whether --enable-scripting was given.
- if test "${enable_scripting+set}" = set; then :
- enableval=$enable_scripting;
- fi
- # This is mainly for 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-ext-diagram was given.
- if test "${enable_ext_diagram+set}" = set; then :
- enableval=$enable_ext_diagram;
- fi
- # Check whether --enable-ext-google-docs was given.
- if test "${enable_ext_google_docs+set}" = set; then :
- enableval=$enable_ext_google_docs;
- fi
- # Check whether --enable-ext-hunart was given.
- if test "${enable_ext_hunart+set}" = set; then :
- enableval=$enable_ext_hunart;
- fi
- # Check whether --enable-ext-languagetool was given.
- if test "${enable_ext_languagetool+set}" = set; then :
- enableval=$enable_ext_languagetool;
- fi
- # Check whether --enable-ext-mysql-connector was given.
- if test "${enable_ext_mysql_connector+set}" = set; then :
- enableval=$enable_ext_mysql_connector;
- fi
- # Check whether --enable-ext-nlpsolver was given.
- if test "${enable_ext_nlpsolver+set}" = set; then :
- enableval=$enable_ext_nlpsolver;
- fi
- # Check whether --enable-ext-ct2n was given.
- if test "${enable_ext_ct2n+set}" = set; then :
- enableval=$enable_ext_ct2n;
- fi
- # Check whether --enable-ext-numbertext was given.
- if test "${enable_ext_numbertext+set}" = set; then :
- enableval=$enable_ext_numbertext;
- fi
- # Check whether --enable-ext-oooblogger was given.
- if test "${enable_ext_oooblogger+set}" = set; then :
- enableval=$enable_ext_oooblogger;
- fi
- # Check whether --enable-ext-pdfimport was given.
- if test "${enable_ext_pdfimport+set}" = set; then :
- enableval=$enable_ext_pdfimport;
- fi
- # Check whether --enable-ext-presenter-console was given.
- if test "${enable_ext_presenter_console+set}" = set; then :
- enableval=$enable_ext_presenter_console;
- fi
- # Check whether --enable-ext-presenter-minimizer was given.
- if test "${enable_ext_presenter_minimizer+set}" = set; then :
- enableval=$enable_ext_presenter_minimizer;
- fi
- # Check whether --enable-ext-report-builder was given.
- if test "${enable_ext_report_builder+set}" = set; then :
- enableval=$enable_ext_report_builder;
- fi
- # Check whether --enable-ext-scripting-beanshell was given.
- if test "${enable_ext_scripting_beanshell+set}" = set; then :
- enableval=$enable_ext_scripting_beanshell;
- fi
- # Check whether --enable-ext-scripting-javascript was given.
- if test "${enable_ext_scripting_javascript+set}" = set; then :
- enableval=$enable_ext_scripting_javascript;
- fi
- # Check whether --enable-ext-typo was given.
- if test "${enable_ext_typo+set}" = set; then :
- enableval=$enable_ext_typo;
- fi
- # Check whether --enable-ext-validator was given.
- if test "${enable_ext_validator+set}" = set; then :
- enableval=$enable_ext_validator;
- fi
- # Check whether --enable-ext-watch-window was given.
- if test "${enable_ext_watch_window+set}" = set; then :
- enableval=$enable_ext_watch_window;
- fi
- # Check whether --enable-ext-wiki-publisher was given.
- if test "${enable_ext_wiki_publisher+set}" = set; then :
- enableval=$enable_ext_wiki_publisher;
- fi
- ###############################################################################
- # Check whether --enable-mergelibs was given.
- if test "${enable_mergelibs+set}" = set; then :
- enableval=$enable_mergelibs;
- fi
- # Check whether --enable-graphite was given.
- if test "${enable_graphite+set}" = set; then :
- enableval=$enable_graphite;
- fi
- # Check whether --enable-ldap was given.
- if test "${enable_ldap+set}" = set; then :
- enableval=$enable_ldap;
- fi
- # Check whether --enable-fetch-external was given.
- if test "${enable_fetch_external+set}" = set; then :
- enableval=$enable_fetch_external;
- fi
- # Check whether --enable-lockdown was given.
- if test "${enable_lockdown+set}" = set; then :
- enableval=$enable_lockdown;
- fi
- # Check whether --enable-vba was given.
- if test "${enable_vba+set}" = set; then :
- enableval=$enable_vba;
- fi
- # Check whether --enable-pch was given.
- if test "${enable_pch+set}" = set; then :
- enableval=$enable_pch;
- fi
- # Check whether --enable-mozilla was given.
- if test "${enable_mozilla+set}" = set; then :
- enableval=$enable_mozilla;
- fi
- # Check whether --enable-epm was given.
- if test "${enable_epm+set}" = set; then :
- enableval=$enable_epm;
- fi
- # Check whether --enable-odk was given.
- if test "${enable_odk+set}" = set; then :
- enableval=$enable_odk;
- fi
- # Check whether --enable-mathmldtd was given.
- if test "${enable_mathmldtd+set}" = set; then :
- enableval=$enable_mathmldtd;
- fi
- # Check whether --enable-evolution2 was given.
- if test "${enable_evolution2+set}" = set; then :
- enableval=$enable_evolution2;
- fi
- # Check whether --enable-directx was given.
- if test "${enable_directx+set}" = set; then :
- enableval=$enable_directx;
- fi
- # Check whether --enable-activex was given.
- if test "${enable_activex+set}" = set; then :
- enableval=$enable_activex;
- fi
- # Check whether --enable-atl was given.
- if test "${enable_atl+set}" = set; then :
- enableval=$enable_atl;
- fi
- # Check whether --enable-symbols was given.
- if test "${enable_symbols+set}" = set; then :
- enableval=$enable_symbols;
- fi
- # Check whether --enable-werror was given.
- if test "${enable_werror+set}" = set; then :
- enableval=$enable_werror;
- fi
- # Check whether --enable-debug was given.
- if test "${enable_debug+set}" = set; then :
- enableval=$enable_debug;
- fi
- # Check whether --enable-dbgutil was given.
- if test "${enable_dbgutil+set}" = set; then :
- enableval=$enable_dbgutil;
- fi
- # Check whether --enable-linkoo was given.
- if test "${enable_linkoo+set}" = set; then :
- enableval=$enable_linkoo;
- fi
- # Check whether --enable-lto was given.
- if test "${enable_lto+set}" = set; then :
- enableval=$enable_lto;
- fi
- # Check whether --enable-crashdump was given.
- if test "${enable_crashdump+set}" = set; then :
- enableval=$enable_crashdump;
- fi
- # Check whether --enable-python was given.
- if test "${enable_python+set}" = set; then :
- enableval=$enable_python;
- fi
- # Check whether --enable-gtk was given.
- if test "${enable_gtk+set}" = set; then :
- enableval=$enable_gtk;
- else
- enable_gtk=yes
- fi
- # Check whether --enable-gtk3 was given.
- if test "${enable_gtk3+set}" = set; then :
- enableval=$enable_gtk3;
- else
- enable_gtk3=no
- fi
- # Check whether --enable-systray was given.
- if test "${enable_systray+set}" = set; then :
- enableval=$enable_systray;
- else
- enable_systray=yes
- 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;
- fi
- # Check whether --enable-librsvg was given.
- if test "${enable_librsvg+set}" = set; then :
- enableval=$enable_librsvg;
- fi
- # Check whether --enable-opengl was given.
- if test "${enable_opengl+set}" = set; then :
- enableval=$enable_opengl;
- else
- enable_opengl=yes
- fi
- # Check whether --enable-dbus was given.
- if test "${enable_dbus+set}" = set; then :
- enableval=$enable_dbus;
- else
- enable_dbus=no
- fi
- # Check whether --enable-gconf was given.
- if test "${enable_gconf+set}" = set; then :
- enableval=$enable_gconf;
- else
- enable_gconf=yes
- fi
- # Check whether --enable-gnome-vfs was given.
- if test "${enable_gnome_vfs+set}" = set; then :
- enableval=$enable_gnome_vfs;
- else
- enable_gnome_vfs=yes
- fi
- # Check whether --enable-gio was given.
- if test "${enable_gio+set}" = set; then :
- enableval=$enable_gio;
- else
- enable_gio=no
- fi
- # Check whether --enable-build-mozilla was given.
- if test "${enable_build_mozilla+set}" = set; then :
- enableval=$enable_build_mozilla;
- fi
- # Check whether --enable-xmlsec was given.
- if test "${enable_xmlsec+set}" = set; then :
- enableval=$enable_xmlsec;
- fi
- # Check whether --enable-tde was given.
- if test "${enable_tde+set}" = set; then :
- enableval=$enable_tde;
- fi
- # Check whether --enable-tdeab was given.
- if test "${enable_tdeab+set}" = set; then :
- enableval=$enable_tdeab;
- else
- if test "$enable_tde" = "yes"; then
- enable_tdeab=yes;
- fi
- fi
- # Check whether --enable-kde was given.
- if test "${enable_kde+set}" = set; then :
- enableval=$enable_kde;
- fi
- # Check whether --enable-kdeab was given.
- if test "${enable_kdeab+set}" = set; then :
- enableval=$enable_kdeab;
- else
- if test "$enable_kde" = "yes"; then
- enable_kdeab=yes;
- fi
- fi
- # Check whether --enable-kde4 was given.
- if test "${enable_kde4+set}" = set; then :
- enableval=$enable_kde4;
- fi
- # Check whether --enable-headless was given.
- if test "${enable_headless+set}" = set; then :
- enableval=$enable_headless;
- fi
- # Check whether --enable-unix-qstart-libpng was given.
- if test "${enable_unix_qstart_libpng+set}" = set; then :
- enableval=$enable_unix_qstart_libpng;
- else
- enable_unix_qstart_libpng=yes
- fi
- # Check whether --enable-binfilter was given.
- if test "${enable_binfilter+set}" = set; then :
- enableval=$enable_binfilter;
- else
- enable_binfilter=no
- fi
- # Check whether --enable-rpath was given.
- if test "${enable_rpath+set}" = set; then :
- enableval=$enable_rpath;
- fi
- # Check whether --enable-randr was given.
- if test "${enable_randr+set}" = set; then :
- enableval=$enable_randr;
- else
- enable_randr=yes
- fi
- # Check whether --enable-randr-link was given.
- if test "${enable_randr_link+set}" = set; then :
- enableval=$enable_randr_link;
- else
- enable_randr_link=yes
- fi
- # Check whether --enable-gstreamer was given.
- if test "${enable_gstreamer+set}" = set; then :
- enableval=$enable_gstreamer;
- else
- enable_gstreamer=yes
- fi
- # Check whether --enable-neon was given.
- if test "${enable_neon+set}" = set; then :
- enableval=$enable_neon;
- fi
- # Check whether --enable-build-unowinreg was given.
- if test "${enable_build_unowinreg+set}" = set; then :
- enableval=$enable_build_unowinreg;
- fi
- # Check whether --enable-verbose was given.
- if test "${enable_verbose+set}" = set; then :
- enableval=$enable_verbose;
- 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-zenity was given.
- if test "${enable_zenity+set}" = set; then :
- enableval=$enable_zenity;
- else
- enable_zenity=yes
- fi
- # Check whether --enable-nsplugin was given.
- if test "${enable_nsplugin+set}" = set; then :
- enableval=$enable_nsplugin;
- fi
- # Check whether --enable-cups was given.
- if test "${enable_cups+set}" = set; then :
- enableval=$enable_cups;
- fi
- # Check whether --enable-ccache was given.
- if test "${enable_ccache+set}" = set; then :
- enableval=$enable_ccache;
- fi
- # Check whether --enable-cl-x64 was given.
- if test "${enable_cl_x64+set}" = set; then :
- enableval=$enable_cl_x64;
- fi
- # Check whether --enable-extra-gallery was given.
- if test "${enable_extra_gallery+set}" = set; then :
- enableval=$enable_extra_gallery;
- fi
- # Check whether --enable-extra-template was given.
- if test "${enable_extra_template+set}" = set; then :
- enableval=$enable_extra_template;
- fi
- # Check whether --enable-extra-sample was given.
- if test "${enable_extra_sample+set}" = set; then :
- enableval=$enable_extra_sample;
- fi
- # Check whether --enable-extra-font was given.
- if test "${enable_extra_font+set}" = set; then :
- enableval=$enable_extra_font;
- fi
- # Check whether --enable-oxygenoffice was given.
- if test "${enable_oxygenoffice+set}" = set; then :
- enableval=$enable_oxygenoffice;
- fi
- # Check whether --enable-lomenubar was given.
- if test "${enable_lomenubar+set}" = set; then :
- enableval=$enable_lomenubar;
- fi
- # Check whether --enable-online-update was given.
- if test "${enable_online_update+set}" = set; then :
- enableval=$enable_online_update;
- fi
- # Check whether --enable-release-build was given.
- if test "${enable_release_build+set}" = set; then :
- enableval=$enable_release_build;
- fi
- # Check whether --enable-silent-msi was given.
- if test "${enable_silent_msi+set}" = set; then :
- enableval=$enable_silent_msi;
- fi
- # Check whether --enable-postgresql-sdbc was given.
- if test "${enable_postgresql_sdbc+set}" = set; then :
- enableval=$enable_postgresql_sdbc;
- 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-sdk was given.
- if test "${with_android_sdk+set}" = set; then :
- withval=$with_android_sdk;
- 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-solver-and-workdir-root was given.
- if test "${with_solver_and_workdir_root+set}" = set; then :
- withval=$with_solver_and_workdir_root;
- 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-openldap was given.
- if test "${with_openldap+set}" = set; then :
- withval=$with_openldap;
- fi
- # Check whether --with-vba-package-format was given.
- if test "${with_vba_package_format+set}" = set; then :
- withval=$with_vba_package_format;
- 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;
- fi
- # Check whether --with-fonts was given.
- if test "${with_fonts+set}" = set; then :
- withval=$with_fonts;
- fi
- # Check whether --with-ppds was given.
- if test "${with_ppds+set}" = set; then :
- withval=$with_ppds;
- fi
- # Check whether --with-afms was given.
- if test "${with_afms+set}" = set; then :
- withval=$with_afms;
- fi
- # Check whether --with-agfa-monotype-fonts was given.
- if test "${with_agfa_monotype_fonts+set}" = set; then :
- withval=$with_agfa_monotype_fonts;
- 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-system-libs was given.
- if test "${with_system_libs+set}" = set; then :
- withval=$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-stdlibs was given.
- if test "${with_system_stdlibs+set}" = set; then :
- withval=$with_system_stdlibs;
- else
- with_system_stdlibs="$with_system_libs"
- fi
- # Check whether --with-system-cairo was given.
- if test "${with_system_cairo+set}" = set; then :
- withval=$with_system_cairo;
- else
- with_system_cairo="$with_system_libs"
- fi
- # 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
- # 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
- # Check whether --with-mozilla-version was given.
- if test "${with_mozilla_version+set}" = set; then :
- withval=$with_mozilla_version;
- fi
- # Check whether --with-mozilla-toolkit was given.
- if test "${with_mozilla_toolkit+set}" = set; then :
- withval=$with_mozilla_toolkit;
- 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-openssl was given.
- if test "${with_system_openssl+set}" = set; then :
- withval=$with_system_openssl;
- else
- with_system_openssl="$with_system_libs"
- fi
- # Check whether --with-system-jpeg was given.
- if test "${with_system_jpeg+set}" = set; then :
- withval=$with_system_jpeg;
- else
- with_system_jpeg=auto
- 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-libcmis was given.
- if test "${with_system_libcmis+set}" = set; then :
- withval=$with_system_libcmis;
- else
- with_system_libcmis="$with_system_libs"
- 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
- # 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
- # 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
- # 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
- # 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
- # 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
- # 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-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-db was given.
- if test "${with_system_db+set}" = set; then :
- withval=$with_system_db;
- else
- with_system_db="$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-mysql was given.
- if test "${with_system_mysql+set}" = set; then :
- withval=$with_system_mysql;
- else
- with_system_mysql="$with_system_libs"
- fi
- # Check whether --with-libmysql-path was given.
- if test "${with_libmysql_path+set}" = set; then :
- withval=$with_libmysql_path;
- fi
- # Check whether --with-system-mysql-cppconn was given.
- if test "${with_system_mysql_cppconn+set}" = set; then :
- withval=$with_system_mysql_cppconn;
- else
- with_system_mysql_cppconn="$with_system_libs"
- 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-hsqldb was given.
- if test "${with_system_hsqldb+set}" = set; then :
- withval=$with_system_hsqldb;
- else
- with_system_hsqldb="$with_system_jars"
- 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 --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 --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-codec-jar was given.
- if test "${with_commons_codec_jar+set}" = set; then :
- withval=$with_commons_codec_jar; COMMONS_CODEC_JAR=$withval
- fi
- # Check whether --with-commons-lang-jar was given.
- if test "${with_commons_lang_jar+set}" = set; then :
- withval=$with_commons_lang_jar; COMMONS_LANG_JAR=$withval
- fi
- # Check whether --with-commons-httpclient-jar was given.
- if test "${with_commons_httpclient_jar+set}" = set; then :
- withval=$with_commons_httpclient_jar; COMMONS_HTTPCLIENT_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-servlet-api was given.
- if test "${with_system_servlet_api+set}" = set; then :
- withval=$with_system_servlet_api;
- else
- with_system_servlet_api="$with_system_jars"
- fi
- # Check whether --with-servlet-api-jar was given.
- if test "${with_servlet_api_jar+set}" = set; then :
- withval=$with_servlet_api_jar; SERVLETAPI_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-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-saxon was given.
- if test "${with_system_saxon+set}" = set; then :
- withval=$with_system_saxon;
- else
- with_system_saxon="$with_system_jars"
- fi
- # Check whether --with-saxon-jar was given.
- if test "${with_saxon_jar+set}" = set; then :
- withval=$with_saxon_jar; SAXON_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="$with_system_headers"
- 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-xextensions-headers was given.
- if test "${with_system_xextensions_headers+set}" = set; then :
- withval=$with_system_xextensions_headers;
- fi
- # Check whether --with-system-mesa-headers was given.
- if test "${with_system_mesa_headers+set}" = set; then :
- withval=$with_system_mesa_headers;
- else
- with_system_mesa_headers="$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-mdds was given.
- if test "${with_system_mdds+set}" = set; then :
- withval=$with_system_mdds;
- else
- with_system_mdds="$with_system_headers"
- fi
- # Check whether --with-system-vigra was given.
- if test "${with_system_vigra+set}" = set; then :
- withval=$with_system_vigra;
- else
- with_system_vigra="$with_system_headers"
- fi
- # 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
- # 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 --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-libexttextcat was given.
- if test "${with_system_libexttextcat+set}" = set; then :
- withval=$with_system_libexttextcat;
- else
- with_system_libexttextcat="$with_system_libs"
- fi
- # 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
- # 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
- # Check whether --with-system-mozilla was given.
- if test "${with_system_mozilla+set}" = set; then :
- withval=$with_system_mozilla; WITH_SYSTEM_MOZILLA=$withval
- else
- WITH_SYSTEM_MOZILLA=no
- fi
- # Check whether --with-system-mozilla-headers was given.
- if test "${with_system_mozilla_headers+set}" = set; then :
- withval=$with_system_mozilla_headers;
- else
- with_system_mozilla_headers="$with_system_headers"
- fi
- # Check whether --with-system-gettext was given.
- if test "${with_system_gettext+set}" = set; then :
- withval=$with_system_gettext;
- else
- with_system_gettext="$with_system_libs"
- fi
- # Check whether --with-system-libpng was given.
- if test "${with_system_libpng+set}" = set; then :
- withval=$with_system_libpng;
- else
- with_system_libpng=auto
- 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-stlport was given.
- if test "${with_stlport+set}" = set; then :
- withval=$with_stlport; with_stlport=$withval
- else
- with_stlport=auto
- fi
- # Check whether --with-jdk-home was given.
- if test "${with_jdk_home+set}" = set; then :
- withval=$with_jdk_home;
- fi
- # Check whether --with-gxx_include_path was given.
- if test "${with_gxx_include_path+set}" = set; then :
- withval=$with_gxx_include_path;
- fi
- # Check whether --with-help was given.
- if test "${with_help+set}" = set; then :
- withval=$with_help;
- 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
- with_java=java
- fi
- # Check whether --with-java_target_version was given.
- if test "${with_java_target_version+set}" = set; then :
- withval=$with_java_target_version;
- 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-junit was given.
- if test "${with_junit+set}" = set; then :
- withval=$with_junit;
- else
- with_junit=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
- with_doxygen=yes
- fi
- # Check whether --with-cl-home was given.
- if test "${with_cl_home+set}" = set; then :
- withval=$with_cl_home;
- fi
- # Check whether --with-mspdb-path was given.
- if test "${with_mspdb_path+set}" = set; then :
- withval=$with_mspdb_path;
- fi
- # Check whether --with-midl-path was given.
- if test "${with_midl_path+set}" = set; then :
- withval=$with_midl_path;
- fi
- # Check whether --with-csc-path was given.
- if test "${with_csc_path+set}" = set; then :
- withval=$with_csc_path;
- fi
- # Check whether --with-dotnet-framework-home was given.
- if test "${with_dotnet_framework_home+set}" = set; then :
- withval=$with_dotnet_framework_home;
- fi
- # Check whether --with-windows-sdk-home was given.
- if test "${with_windows_sdk_home+set}" = set; then :
- withval=$with_windows_sdk_home;
- fi
- # Check whether --with-directx-home was given.
- if test "${with_directx_home+set}" = set; then :
- withval=$with_directx_home;
- fi
- # Check whether --with-mozilla-build was given.
- if test "${with_mozilla_build+set}" = set; then :
- withval=$with_mozilla_build; MOZILLABUILD=$withval
- fi
- # Check whether --with-lang was given.
- if test "${with_lang+set}" = set; then :
- withval=$with_lang;
- 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;
- fi
- # Check whether --with-gssapi was given.
- if test "${with_gssapi+set}" = set; then :
- withval=$with_gssapi;
- fi
- # Check whether --with-branding was given.
- if test "${with_branding+set}" = set; then :
- withval=$with_branding;
- fi
- # Check whether --with-intro-bitmap was given.
- if test "${with_intro_bitmap+set}" = set; then :
- withval=$with_intro_bitmap;
- fi
- # Check whether --with-intro-progressbar-color was given.
- if test "${with_intro_progressbar_color+set}" = set; then :
- withval=$with_intro_progressbar_color;
- fi
- # Check whether --with-intro-progressbar-size was given.
- if test "${with_intro_progressbar_size+set}" = set; then :
- withval=$with_intro_progressbar_size;
- fi
- # Check whether --with-intro-progressbar-position was given.
- if test "${with_intro_progressbar_position+set}" = set; then :
- withval=$with_intro_progressbar_position;
- fi
- # Check whether --with-intro-progressbar-frame-color was given.
- if test "${with_intro_progressbar_frame_color+set}" = set; then :
- withval=$with_intro_progressbar_frame_color;
- fi
- # Check whether --with-flat-logo-svg was given.
- if test "${with_flat_logo_svg+set}" = set; then :
- withval=$with_flat_logo_svg;
- fi
- # Check whether --with-about-background-svg was given.
- if test "${with_about_background_svg+set}" = set; then :
- withval=$with_about_background_svg;
- fi
- # Check whether --with-startcenter-left-bitmap was given.
- if test "${with_startcenter_left_bitmap+set}" = set; then :
- withval=$with_startcenter_left_bitmap;
- fi
- # Check whether --with-startcenter-right-bitmap was given.
- if test "${with_startcenter_right_bitmap+set}" = set; then :
- withval=$with_startcenter_right_bitmap;
- fi
- # Check whether --with-startcenter-rtl-left-bitmap was given.
- if test "${with_startcenter_rtl_left_bitmap+set}" = set; then :
- withval=$with_startcenter_rtl_left_bitmap;
- fi
- # Check whether --with-startcenter-rtl-right-bitmap was given.
- if test "${with_startcenter_rtl_right_bitmap+set}" = set; then :
- withval=$with_startcenter_rtl_right_bitmap;
- fi
- # Check whether --with-startcenter-space-bitmap was given.
- if test "${with_startcenter_space_bitmap+set}" = set; then :
- withval=$with_startcenter_space_bitmap;
- fi
- # Check whether --with-vendor was given.
- if test "${with_vendor+set}" = set; then :
- withval=$with_vendor;
- fi
- # Check whether --with-unix-wrapper was given.
- if test "${with_unix_wrapper+set}" = set; then :
- withval=$with_unix_wrapper;
- fi
- # Check whether --with-compat-oowrappers was given.
- if test "${with_compat_oowrappers+set}" = set; then :
- withval=$with_compat_oowrappers;
- fi
- # Check whether --with-asm-home was given.
- if test "${with_asm_home+set}" = set; then :
- withval=$with_asm_home;
- 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-build-version was given.
- if test "${with_build_version+set}" = set; then :
- withval=$with_build_version; with_build_version=$withval
- fi
- # Check whether --with-alloc was given.
- if test "${with_alloc+set}" = set; then :
- withval=$with_alloc;
- fi
- # Check whether --with-sun-templates was given.
- if test "${with_sun_templates+set}" = set; then :
- withval=$with_sun_templates;
- fi
- # Check whether --with-num-cpus was given.
- if test "${with_num_cpus+set}" = set; then :
- withval=$with_num_cpus;
- fi
- # Check whether --with-max-jobs was given.
- if test "${with_max_jobs+set}" = set; then :
- withval=$with_max_jobs;
- 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-boost-for-build was given.
- if test "${with_system_boost_for_build+set}" = set; then :
- withval=$with_system_boost_for_build;
- fi
- # Check whether --with-system-cppunit-for-build was given.
- if test "${with_system_cppunit_for_build+set}" = set; then :
- withval=$with_system_cppunit_for_build;
- fi
- # Check whether --with-system-db-for-build was given.
- if test "${with_system_db_for_build+set}" = set; then :
- withval=$with_system_db_for_build;
- fi
- # Check whether --with-system-expat-for-build was given.
- if test "${with_system_expat_for_build+set}" = set; then :
- withval=$with_system_expat_for_build;
- 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
- # Check whether --with-system-libxml-for-build was given.
- if test "${with_system_libxml_for_build+set}" = set; then :
- withval=$with_system_libxml_for_build;
- fi
- pathmunge ()
- {
- if test -n "$1"; then
- if test "$build_os" = "cygwin"; then
- PathFormat "$1"
- new_path=`cygpath -u "$formatted_path"`
- else
- new_path="$1"
- fi
- if ! echo "$LO_PATH" | $EGREP -q "(^|:)$1($|:)"; then
- if test "$2" = "after"; then
- LO_PATH="$LO_PATH:$new_path"
- else
- LO_PATH="$new_path:$LO_PATH"
- fi
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_AWK="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- AWK=$ac_cv_prog_AWK
- if test -n "$AWK"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
- $as_echo "$AWK" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$AWK" && break
- done
- # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 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 "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; then
- BUILD_TYPE="$BUILD_TYPE DESKTOP"
- fi
- if test -z "$enable_database_connectivity"; then
- # Do enable database connectivity for Android for now as otherwise
- # we presumably will get linking errors... We are not as far in
- # the work for iOS, so we might as well disable it for iOS already.
- if test $_os != iOS; then
- enable_database_connectivity=yes
- fi
- fi
- DISABLE_DBCONNECTIVITY=''
- if test "$enable_database_connectivity" = yes; then
- BUILD_TYPE="$BUILD_TYPE DBCONNECTIVITY"
- else
- DISABLE_DBCONNECTIVITY='TRUE'
- SCPDEFS="$SCPDEFS -DDISABLE_DBCONNECTIVITY"
- fi
- if test -z "$enable_extensions"; then
- # For iOS disable extensions unless specifically overridden with
- # --enable-extensions.
- if test $_os != iOS; then
- enable_extensions=yes
- fi
- fi
- DISABLE_EXTENSIONS=''
- if test "$enable_extensions" = yes; then
- BUILD_TYPE="$BUILD_TYPE EXTENSIONS"
- else
- DISABLE_EXTENSIONS='TRUE'
- 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"
- else
- DISABLE_SCRIPTING='TRUE'
- SCPDEFS="$SCPDEFS -DDISABLE_SCRIPTING"
- fi
- if test $_os = iOS; then
- # Disable dynamic_loading always for iOS
- enable_dynamic_loading=no
- elif test -z "$enable_dynamic_loading"; then
- # Otherwise enable it unless speficically disabled
- enable_dynamic_loading=yes
- fi
- DISABLE_DYNLOADING=''
- if test "$enable_dynamic_loading" = yes; then
- BUILD_TYPE="$BUILD_TYPE DYNLOADING"
- else
- DISABLE_DYNLOADING='TRUE'
- SCPDEFS="$SCPDEFS -DDISABLE_DYNLOADING"
- fi
- if test -n "${with_solver_and_workdir_root}"; then
- if ! test -d ${with_solver_and_workdir_root}; then
- as_fn_error $? "directory does not exist: ${with_solver_and_workdir_root}" "$LINENO" 5
- fi
- PathFormat "${with_solver_and_workdir_root}"
- # IsValidFilePath in /sal/osl/w32/file_url.cxx rejects "X:\\" breaking idlc
- if echo ${formatted_path} | $GREP -q '/$'; then
- SOLARVER=${formatted_path}solver
- else
- SOLARVER=${formatted_path}/solver
- fi
- else
- SOLARVER=${SRC_ROOT}/solver
- fi
- if test "$build_os" = "cygwin"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cygwin gcc/g++" >&5
- $as_echo_n "checking for Cygwin gcc/g++... " >&6; }
- if which gcc > /dev/null && which g++ > /dev/null; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
- $as_echo "found" >&6; }
- else
- as_fn_error $? "Cygwin gcc and g++ are needed, please install them." "$LINENO" 5
- fi
- fi
- # remenber SYSBASE value
- if test "$enable_ccache" = "yes" -o \( "$enable_ccache" = "" -a "$enable_icecream" != "yes" -a "$build_os" != "cygwin" \); then
- case "%$CC%$CXX%" in
- # If $CC and/or $CXX already contain "ccache" (possibly suffixed with some verison 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;}
- ;;
- *)
- # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
- # 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=""
- fi
- fi
- fi
- ;;
- esac
- else
- CCACHE=""
- 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-producive: Disabling auto-ccache detection" >&5
- $as_echo "$as_me: WARNING: ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection" >&2;}
- echo "ccache's cache size is less than 1GB using it is counter-producive: auto-ccache detection disabled" >> warn
- 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-producive 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-producive for debug or symbol-enabled build" >&2;}
- echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
- 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-producive 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-producive for debug or symbol-enabled build" >&2;}
- echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
- fi
- fi
- fi
- 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/"
- else
- GCC_HOME="/opt/icecream/"
- 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"
- fi
- if test -z "$CXX"; then
- CXX="$GCC_HOME/bin/g++"
- fi
- fi
- if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; 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
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- else
- CC="$ac_cv_prog_CC"
- fi
- if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}cc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- fi
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# != 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
- fi
- fi
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CC" && break
- done
- fi
- if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CC" && break
- done
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- fi
- fi
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "no acceptable C compiler found in \$PATH
- See \`config.log' for more details" "$LINENO" 5; }
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- 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>
- #include <sys/types.h>
- #include <sys/stat.h>
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
- struct buf { int x; };
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
- static char *e (p, i)
- char **p;
- int i;
- {
- return p[i];
- }
- static char *f (char * (*g) (char **, int), char **p, ...)
- {
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
- }
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
- #define FOO(x) 'x'
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
- int test (int i, double x);
- struct s1 {int (*f) (int a);};
- struct s2 {int (*f) (double a);};
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
- int argc;
- char **argv;
- int
- main ()
- {
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
- }
- _ACEOF
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
- do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
- fi
- rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
- done
- rm -f conftest.$ac_ext
- CC=$ac_save_CC
- fi
- # AC_CACHE_VAL
- case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
- $as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
- $as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
- esac
- if test "x$ac_cv_prog_cc_c89" != xno; then :
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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]\\\$@@"`;
- if test "$_os" = "SunOS"; then
- if test "$CC" = "cc"; 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__cc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $_cc in
- [\\/]* | ?:[\\/]*)
- ac_cv_path__cc="$_cc" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path__cc="$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
- _cc=$ac_cv_path__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
- COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the SunStudio C/C++ compiler version" >&5
- $as_echo_n "checking the SunStudio C/C++ compiler version... " >&6; }
- _sunstudio_string=`$CC -V 2>&1 | grep '^cc' | $SED -e 's/.* C //'`
- _sunstudio_version=`echo $_sunstudio_string | $AWK '{ print $1 }'`
- _sunstudio_major=`echo $_sunstudio_version | $AWK -F. '{ print $1 }'`
- if test "$_sunstudio_major" != "5"; then
- as_fn_error $? "found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" "$LINENO" 5
- else
- _sunstudio_minor=`echo $_sunstudio_version | $AWK -F. '{ if ($2 == 5) print "true"; else if ($2 == 7) print "true"; else if ($2 == 8) print "true"; else if ($2 == 9) print "true"; else print "false" }'`
- if test "$_sunstudio_minor" = "false"; then
- as_fn_error $? "found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
- $as_echo "checked" >&6; }
- fi
- fi
- fi
- fi
- if test "$_os" = "Darwin"; then
- if test "$with_macosx_version_min_required" = ""; then
- with_macosx_version_min_required="10.4"
- fi
- if test "$with_macosx_version_max_allowed" = ""; then
- with_macosx_version_max_allowed="$with_macosx_version_min_required"
- fi
- if test "$with_macosx_sdk" = ""; then
- with_macosx_sdk="$with_macosx_version_max_allowed"
- fi
- case "$with_macosx_sdk" in
- 10.4)
- MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.4u.sdk"
- if test ! -d "$MACOSX_SDK_PATH"; then
- MACOSX_SDK_PATH="/Developer-old/SDKs/MacOSX10.4u.sdk"
- fi
- if test ! -d "$MACOSX_SDK_PATH"; then
- MACOSX_SDK_PATH="/Xcode3/SDKs/MacOSX10.4u.sdk"
- fi
- macosx_sdk_value="1040"
- ;;
- 10.5)
- MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.5.sdk"
- if test ! -d "$MACOSX_SDK_PATH"; then
- MACOSX_SDK_PATH="/Developer-old/SDKs/MacOSX10.5.sdk"
- fi
- if test ! -d "$MACOSX_SDK_PATH"; then
- MACOSX_SDK_PATH="/Xcode3/SDKs/MacOSX10.5.sdk"
- fi
- macosx_sdk_value="1050"
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a SDK > 10.4 is experimental" >&5
- $as_echo "$as_me: WARNING: Building with a SDK > 10.4 is experimental" >&2;}
- echo "Building with a SDK > 10.4 is experimental" >> warn
- ;;
- 10.6)
- MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.6.sdk"
- if test ! -d "$MACOSX_SDK_PATH"; then
- MACOSX_SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
- fi
- macosx_sdk_value="1060"
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a SDK > 10.4 is experimental" >&5
- $as_echo "$as_me: WARNING: Building with a SDK > 10.4 is experimental" >&2;}
- echo "Building with a SDK > 10.4 is experimental" >> warn
- ;;
- 10.7)
- MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.7.sdk"
- if test ! -d "$MACOSX_SDK_PATH"; then
- MACOSX_SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
- fi
- macosx_sdk_value="1070"
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with SDK 10.7 is known to fail in vcl" >&5
- $as_echo "$as_me: WARNING: Building with SDK 10.7 is known to fail in vcl" >&2;}
- echo "Building with SDK 10.7 is known to fail in vcl" >> warn
- ;;
- *)
- as_fn_error $? "$with_macosx_sdk is not a supported SDK value, supported value are 10.4, 10.5, 10.6 and 10.7" "$LINENO" 5
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the presence of the SDK $with_macosx_sdk" >&5
- $as_echo_n "checking the presence of the SDK $with_macosx_sdk... " >&6; }
- if test -d "$MACOSX_SDK_PATH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_SDK_PATH ok" >&5
- $as_echo "$MACOSX_SDK_PATH ok" >&6; }
- else
- as_fn_error $? "$MACOSX_SDK_PATH not found" "$LINENO" 5
- fi
- FRAMEWORKSHOME="$MACOSX_SDK_PATH/System/Library/Frameworks";
- MACOSX_DEPLOYMENT_TARGET="$with_macosx_version_min_required"
- case "$with_macosx_version_min_required" in
- 10.4)
- MAC_OS_X_VERSION_MIN_REQUIRED="1040"
- ;;
- 10.5)
- MAC_OS_X_VERSION_MIN_REQUIRED="1050"
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
- $as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
- echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
- if test -z "$save_CC"; then
- CC="gcc-4.2 -m32"
- CXX="g++-4.2 -m32"
- fi
- ;;
- 10.6)
- MAC_OS_X_VERSION_MIN_REQUIRED="1060"
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
- $as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
- echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
- if test -z "$save_CC"; then
- CC="gcc-4.2 -m32"
- CXX="g++-4.2 -m32"
- fi
- ;;
- 10.7)
- MAC_OS_X_VERSION_MIN_REQUIRED="1070"
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
- $as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
- echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
- if test -z "$save_CC"; then
- CC="gcc-4.2 -m32"
- CXX="g++-4.2 -m32"
- fi
- ;;
- *)
- as_fn_error $? "with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" "$LINENO" 5
- ;;
- esac
- case "$with_macosx_version_max_allowed" in
- 10.4)
- MAC_OS_X_VERSION_MAX_ALLOWED="1040"
- ;;
- 10.5)
- MAC_OS_X_VERSION_MAX_ALLOWED="1050"
- ;;
- 10.6)
- MAC_OS_X_VERSION_MAX_ALLOWED="1060"
- ;;
- 10.7)
- MAC_OS_X_VERSION_MAX_ALLOWED="1070"
- ;;
- *)
- as_fn_error $? "with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" "$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 minimumn required must be inferior or equal to the version maximum 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 macos-with-sdk" >&5
- $as_echo_n "checking that macosx-version-max-allowed is coherent macos-with-sdk... " >&6; }
- if test $MAC_OS_X_VERSION_MAX_ALLOWED -gt $macosx_sdk_value; then
- as_fn_error $? "the version maximum allowed cannot be greater thatn 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;}
- fi
- if test "$_os" = "WINNT" -a "$WITH_MINGW" != yes; 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_cl_x64" = "" -o "$enable_cl_x64" = "no"; then
- CL_X64=""
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- CL_X64="TRUE"
- { $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 use DirectX" >&5
- $as_echo_n "checking whether to use DirectX... " >&6; }
- if test "$enable_directx" = "yes" -o "$enable_directx" = ""; then
- ENABLE_DIRECTX="TRUE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- ENABLE_DIRECTX=""
- { $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 ActiveX" >&5
- $as_echo_n "checking whether to use ActiveX... " >&6; }
- if test "$enable_activex" = "yes" -o "$enable_activex" = "TRUE" -o "$enable_activex" = ""; then
- DISABLE_ACTIVEX=""
- SCPDEFS="$SCPDEFS -DWITH_ACTIVEX_COMPONENT"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- DISABLE_ACTIVEX="TRUE"
- { $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 ATL" >&5
- $as_echo_n "checking whether to use ATL... " >&6; }
- if test "$enable_atl" = "yes" -o "$enable_atl" = "TRUE" -o "$enable_atl" = ""; then
- DISABLE_ATL=""
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- DISABLE_ATL="TRUE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- CL_X64=""
- ENABLE_DIRECTX=""
- DISABLE_ACTIVEX="TRUE"
- DISABLE_ATL="TRUE"
- fi
- if test "$GCC" = "yes"; 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_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
- GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
- if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$GCCVER" -ge "040100"; then
- if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0"; then
- export CC="$GCC_HOME/bin/gcc-4.0"
- # export CC to have it available in set_soenv -> config.guess
- GCCVER2=`$CC -dumpversion | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
- if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100"; then
- GCCVER=$GCCVER2
- fi
- fi
- if test "$GCCVER" -ge "040100"; then
- as_fn_error $? "You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: implicitly using CC=$CC" >&5
- $as_echo "implicitly using CC=$CC" >&6; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc $_gcc_version" >&5
- $as_echo "gcc $_gcc_version" >&6; }
- fi
- fi
- COM_GCC_IS_CLANG=
- if test "$GCC" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC is actually Clang" >&5
- $as_echo_n "checking whether GCC 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_GCC_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
- if test "$COM_GCC_IS_CLANG" = TRUE; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Clang version" >&5
- $as_echo_n "checking the Clang version... " >&6; }
- clang_version=`echo __clang_major__.__clang_minor__.__clang_patchlevel__ | $CC -E -P -`
- CLANG_FULL_VERSION=`echo __clang_version__ | $CC -E -P -`
- CLANGVER=`echo $clang_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Clang $CLANG_FULL_VERSION, $CLANGVER" >&5
- $as_echo "Clang $CLANG_FULL_VERSION, $CLANGVER" >&6; }
- fi
- 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=
- HAVE_GCC_FINLINE_LIMIT=
- HAVE_GCC_FNO_INLINE=
- if test "$GCC" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ggdb2" >&5
- $as_echo_n "checking whether $CC supports -ggdb2... " >&6; }
- if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
- # Option just ignored and silly warning that isn't a real
- # warning printed
- :
- else
- 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
- fi
- 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -finline-limit=0" >&5
- $as_echo_n "checking whether $CC supports -finline-limit=0... " >&6; }
- if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
- # As above
- :
- else
- save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Werror -finline-limit=0"
- 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_FINLINE_LIMIT=TRUE
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS=$save_CFLAGS
- fi
- if test "$HAVE_GCC_FINLINE_LIMIT" = "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 supports -fno-inline" >&5
- $as_echo_n "checking whether $CC supports -fno-inline... " >&6; }
- if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
- # Ditto
- :
- else
- save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Werror -fno-inline"
- 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_FNO_INLINE=TRUE
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS=$save_CFLAGS
- fi
- if test "$HAVE_GCC_FNO_INLINE" = "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
- 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 -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo"
- 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
- { $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
- PROEXT=""
- PRODUCT=""
- { $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 DBG_UTIL build" "$LINENO" 5
- else
- with_system_cppunit=no
- fi
- if test "$with_system_graphite" = "yes"; then
- as_fn_error $? "--with-system-graphite conflicts with DBG_UTIL build" "$LINENO" 5
- else
- with_system_graphite=no
- fi
- if test "$with_system_mysql_cppconn" = "yes"; then
- as_fn_error $? "--with-system-mysql-cppconn conflicts with DBG_UTIL build" "$LINENO" 5
- else
- with_system_mysql_cppconn=no
- fi
- if test $_os = WINNT -a \
- \( "$enable_mozilla" != no -o \
- "$enable_build_mozilla" != no \); then
- # We can't build against the Mozilla stuff if using _DEBUG, will get linking errors
- # See connectivity/drivers/mozab
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Also disabling Mozilla stuff then" >&5
- $as_echo "$as_me: WARNING: Also disabling Mozilla stuff then" >&2;}
- enable_mozilla=no
- enable_build_mozilla=no
- fi
- else
- PRODUCT="full"
- PROEXT=".pro"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, full product build" >&5
- $as_echo "no, full product build" >&6; }
- fi
- SHOWINCLUDES_PREFIX=
- if test "$_os" = "WINNT"; then
- if test "$WITH_MINGW" != "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a friendly Microsoft C/C++ compiler installation path" >&5
- $as_echo_n "checking for a friendly Microsoft C/C++ compiler installation path... " >&6; }
- if test -z "$with_cl_home"; then
- vctest=`./oowintool --msvc-productdir`;
- if test "$CL_X64" = ""; then
- if test -x "$vctest/bin/cl.exe"; then
- with_cl_home=$vctest;
- fi
- else
- if test -x "$vctest/bin/amd64/cl.exe"; then
- with_cl_home=$vctest;
- fi
- fi
- else
- with_cl_home=`cygpath -u "$with_cl_home"`
- fi
- with_cl_home=`cygpath -d "$with_cl_home"`
- with_cl_home=`cygpath -u "$with_cl_home"`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cl_home" >&5
- $as_echo "$with_cl_home" >&6; }
- if test -n "$with_mspdb_path";then
- with_mspdb_path=`cygpath -u "$with_mspdb_path"`
- fi
- if test -e "$with_mspdb_path/mspdb80.dll" -o -e "$with_mspdb_path/mspdb100.dll"; then
- MSPDB_PATH="$with_mspdb_path"
- fi
- if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb80.dll"; then
- MSPDB_PATH="$with_cl_home/../Common7/IDE"
- fi
- if test -z "$MSPDB_PATH" -a -e "$with_cl_home/bin/mspdb80.dll"; then
- MSPDB_PATH="$with_cl_home/bin"
- fi
- if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb100.dll"; then
- MSPDB_PATH="$with_cl_home/../Common7/IDE"
- fi
- if test -z "$MSPDB_PATH";then
- # Extract the first word of "mspdb80.dll", so it can be a program name with args.
- set dummy mspdb80.dll; 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_MSPDB_PATH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $MSPDB_PATH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MSPDB_PATH="$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
- MSPDB_PATH=$ac_cv_path_MSPDB_PATH
- if test -n "$MSPDB_PATH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSPDB_PATH" >&5
- $as_echo "$MSPDB_PATH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "mspdb100.dll", so it can be a program name with args.
- set dummy mspdb100.dll; 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_MSPDB_PATH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $MSPDB_PATH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MSPDB_PATH="$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
- MSPDB_PATH=$ac_cv_path_MSPDB_PATH
- if test -n "$MSPDB_PATH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSPDB_PATH" >&5
- $as_echo "$MSPDB_PATH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- MSPDB_PATH=`dirname "$MSPDB_PATH"`
- fi
- if test -z "$MSPDB_PATH"; then
- as_fn_error $? "You need a mspdb80.dllor mspdb100.dll, make sure it is in the path or use --with-mspdb-path" "$LINENO" 5
- fi
- MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
- MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
- PATH="$MSPDB_PATH:$PATH"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Microsoft C/C++ Compiler" >&5
- $as_echo_n "checking the Microsoft C/C++ Compiler... " >&6; }
- if test -z "$CC"; then
- if test "$CL_X64" = ""; then
- if test -x "$with_cl_home/bin/cl.exe"; then
- CC="$with_cl_home/bin/cl.exe"
- fi
- else
- if test -x "$with_cl_home/bin/amd64/cl.exe"; then
- CC="$with_cl_home/bin/amd64/cl.exe"
- fi
- fi
- if test -z "$CC"; then
- # Extract the first word of "cl.exe", so it can be a program name with args.
- set dummy cl.exe; 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_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CC="$CC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_CC="$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
- CC=$ac_cv_path_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
- # This gives us a posix path with 8.3 filename restrictions
- CC=`cygpath -d "$CC"`
- CC=`cygpath -u "$CC"`
- fi
- if test -n "$CC"; then
- # Remove /cl.exe from CC case insensitive
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($CC)" >&5
- $as_echo "found ($CC)" >&6; }
- if test "$CL_X64" = ""; then
- COMPATH=`echo $CC | $SED -e 's@\/[Bb][Ii][Nn]\/[cC][lL]\.[eE][xX][eE].*@@' -e 's@^.* @@'`
- else
- if test -n "$with_cl_home"; then
- COMPATH=`echo $with_cl_home`
- fi
- fi
- export INCLUDE=`cygpath -d "$COMPATH/Include"`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Version of Microsoft C/C++ Compiler" >&5
- $as_echo_n "checking the Version of Microsoft C/C++ Compiler... " >&6; }
- # The following finds Microsoft, matches nn.nn.nnnn then pulls numbers out.
- CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ {
- x = match( \\\$0, /..\\...\\...../ )
- CCversion = substr( \\\$0, RSTART, RLENGTH)
- tokencount = split (CCversion,vertoken,\".\")
- for ( i = 1 ; i <= tokencount ; i++ ) {
- printf (\"%04d\",vertoken[i] )
- }
- }"`
- if test "$CCNUMVER" -ge "001600000000"; then
- COMEX=13
- MSVSVER=2010
- elif test "$CCNUMVER" -ge "001500000000"; then
- COMEX=12
- MSVSVER=2008
- else
- as_fn_error $? "Compiler too old. Use Microsoft Visual Studio 2008 or 2010." "$LINENO" 5
- fi
- PathFormat "$COMPATH"
- COMPATH="$formatted_path"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found compiler version $CCNUMVER (MSVS $MSVSVER)." >&5
- $as_echo "found compiler version $CCNUMVER (MSVS $MSVSVER)." >&6; }
- else
- as_fn_error $? "Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe." "$LINENO" 5
- fi
- { $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 -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
- # 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, which is
- # unfished work and highly experimental.
- BUILD_X64=
- CXX_X64_BINARY=
- LINK_X64_BINARY=
- LIBMGR_X64_BINARY=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a x64 compiler and libraries for 64bit ActiveX component" >&5
- $as_echo_n "checking for a x64 compiler and libraries for 64bit ActiveX component... " >&6; }
- if test "$CL_X64" = "" -a -f "$with_cl_home/atlmfc/lib/amd64/atls.lib"; then
- # Prefer native x64 compiler to cross-compiler, in case we are running
- # the build on a 64-bit OS.
- if "$with_cl_home/bin/amd64/cl.exe" -? </dev/null >/dev/null 2>&1; then
- BUILD_X64=TRUE
- CXX_X64_BINARY="$with_cl_home/bin/amd64/cl.exe"
- LINK_X64_BINARY="$with_cl_home/bin/amd64/link.exe"
- LIBMGR_X64_BINARY="$with_cl_home/bin/amd64/lib.exe"
- elif "$with_cl_home/bin/x86_amd64/cl.exe" -? </dev/null >/dev/null 2>&1; then
- BUILD_X64=TRUE
- CXX_X64_BINARY="$with_cl_home/bin/x86_amd64/cl.exe"
- LINK_X64_BINARY="$with_cl_home/bin/x86_amd64/link.exe"
- LIBMGR_X64_BINARY="$with_cl_home/bin/x86_amd64/lib.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 the 64-bit Explorer extension" >&5
- $as_echo "$as_me: WARNING: Installation set will not contain the 64-bit Explorer extension" >&2;}
- fi
- # These are passed to the environment through set_soenv.in as usual, and then
- # used in set_wntx64.mk
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler is MinGW" >&5
- $as_echo_n "checking the compiler is MinGW... " >&6; }
- MACHINE_PREFIX=`$CC -dumpmachine`
- if echo $MACHINE_PREFIX | $GREP -q mingw32; then
- COMPATH=`echo "$COMPATH" | sed -e 's,/bin$,,'`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- as_fn_error $? "Compiler is not MinGW." "$LINENO" 5
- fi
- fi
- fi
- PathFormat "$MSPDB_PATH"
- MSPDB_PATH="$formatted_path"
- #
- # prefix C with ccache if needed
- #
- if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
- if test "$CCACHE" != ""; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is already ccached" >&5
- $as_echo_n "checking whether $CC 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"
- { $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
- fi
- #
- # determine CPU, CPUNAME, GUI, GUIBASE, ...
- #
- LIB64="lib"
- SOLARINC=
- case "$host_os" in
- aix*)
- COM=GCC
- CPU=P
- CPUNAME=POWERPC
- GUI=UNX
- GUIBASE=unx
- OS=AIX
- RTL_OS=AIX
- RTL_ARCH=PowerPC
- OUTPATH=unxaigppc
- P_SEP=:
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- ;;
- cygwin*)
- COM=MSC
- GUI=WNT
- GUIBASE=WIN
- OS=WNT
- RTL_OS=Windows
- P_SEP=";"
- case "$host_cpu" in
- i*86|x86_64)
- if test "$CL_X64" != ""; then
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_64
- LIB64="lib/x64"
- OUTPATH=wntmscx$COMEX
- else
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- OUTPATH=wntmsci$COMEX
- fi
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SCPDEFS="$SCPDEFS -D_MSC_VER"
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- ;;
- darwin*)
- COM=GCC
- GUI=UNX
- # Not sure if "Aqua" is the right term to use?
- GUIBASE="aqua"
- OS=MACOSX
- RTL_OS=MacOSX
- P_SEP=:
- case "$host_cpu" in
- arm*)
- CPU=R
- CPUNAME=ARM
- RTL_ARCH=ARM_EABI
- GUIBASE=cocoatouch
- OUTPATH=unxiosr
- OS=IOS;
- ;;
- powerpc*)
- CPU=P
- CPUNAME=POWERPC
- RTL_ARCH=PowerPC
- OUTPATH=unxmacxp
- ;;
- i*86|x86_64)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- OUTPATH=unxmacxi
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARLIB="-L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- ;;
- dragonfly*)
- COM=GCC
- GUI=UNX
- GUIBASE=unx
- OS=DRAGONFLY
- RTL_OS=DragonFly
- OUTPATH=unxdfly
- P_SEP=:
- case "$host_cpu" in
- i*86)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- ;;
- x86_64)
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_64
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- ;;
- freebsd*)
- COM=GCC
- GUI=UNX
- GUIBASE=unx
- RTL_OS=FreeBSD
- OS=FREEBSD
- OUTPATH=unxfbsd
- P_SEP=:
- case "$host_cpu" in
- i*86)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- OUTPATH=unxfbsdi
- ;;
- x86_64)
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_64
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- ;;
- kfreebsd*)
- COM=GCC
- GUI=UNX
- GUIBASE=unx
- OS=LINUX
- RTL_OS=kFreeBSD
- case "$host_cpu" in
- i*86)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- OUTPATH=unxkfgi6
- ;;
- x86_64)
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_64
- LIB64="lib64"
- OUTPATH=unxkfgx6
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- ;;
- linux-gnu*)
- COM=GCC
- GUI=UNX
- GUIBASE=unx
- OS=LINUX
- RTL_OS=Linux
- P_SEP=:
- case "$host_cpu" in
- alpha)
- CPU=L
- CPUNAME=AXP
- RTL_ARCH=ALPHA
- OUTPATH=unxlngaxp
- ;;
- arm*)
- CPU=R
- CPUNAME=ARM
- EPM_FLAGS="-a arm"
- OUTPATH=unxlngr
- RTL_ARCH=ARM_EABI
- case "$host_cpu" in
- arm*-linux)
- RTL_ARCH=ARM_OABI
- ;;
- esac
- ;;
- hppa)
- CPU=H
- CPUNAME=HPPA
- RTL_ARCH=HPPA
- EPM_FLAGS="-a hppa"
- OUTPATH=unxlnghppa
- ;;
- i*86)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- OUTPATH=unxlngi6
- ;;
- ia64)
- CPU=A
- CPUNAME=IA64
- RTL_ARCH=IA64
- OUTPATH=unxlnga
- ;;
- mips)
- CPU=M
- CPUNAME=GODSON
- RTL_ARCH=MIPS_EB
- EPM_FLAGS="-a mips"
- OUTPATH=unxlngmips
- ;;
- mips64)
- CPU=M
- CPUNAME=GODSON
- RTL_ARCH=MIPS_EB
- EPM_FLAGS="-a mips64"
- OUTPATH=unxlngmips
- ;;
- mips64el)
- CPU=M
- CPUNAME=GODSON
- RTL_ARCH=MIPS_EL
- EPM_FLAGS="-a mips64el"
- OUTPATH=unxlngmips
- ;;
- mipsel)
- CPU=M
- CPUNAME=GODSON
- RTL_ARCH=MIPS_EL
- EPM_FLAGS="-a mipsel"
- OUTPATH=unxlngmips
- ;;
- m68k)
- CPU=6
- CPUNAME=M68K
- RTL_ARCH=M68K
- OUTPATH=unxlngm68k
- ;;
- powerpc)
- CPU=P
- CPUNAME=POWERPC
- RTL_ARCH=PowerPC
- OUTPATH=unxlngppc
- ;;
- powerpc64)
- CPU=P
- CPUNAME=POWERPC64
- RTL_ARCH=PowerPC_64
- LIB64="lib64"
- OUTPATH=unxlngppc64
- ;;
- sparc)
- CPU=S
- CPUNAME=SPARC
- RTL_ARCH=SPARC
- OUTPATH=unxlngs
- ;;
- s390)
- CPU=3
- CPUNAME=S390
- RTL_ARCH=S390
- OUTPATH=unxlngs390
- ;;
- s390x)
- CPU=3
- CPUNAME=S390x
- RTL_ARCH=S390x
- LIB64="lib64"
- OUTPATH=unxlngs390x
- ;;
- x86_64)
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_64
- LIB64="lib64"
- OUTPATH=unxlngx6
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- ;;
- linux-androideabi*)
- COM=GCC
- GUI=UNX
- GUIBASE=android
- OS=ANDROID
- RTL_OS=Android
- P_SEP=:
- case "$host_cpu" in
- arm|armel)
- CPU=R
- CPUNAME=ARM
- RTL_ARCH=ARM_EABI
- OUTPATH=unxandr
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARINC="$SOLARINC -I$SRC_ROOT/solenv/inc/$OUTPATH"
- SOLARLIB="-L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- ;;
- mingw*)
- COM=GCC
- GUI=WNT
- GUIBASE=WIN
- OS=WNT
- RTL_OS=Windows
- P_SEP=:
- case "$host_cpu" in
- i*86|x86_64)
- if test "$CL_X64" != ""; then
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_84
- OUTPATH=wntgccx$COMEX
- else
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- OUTPATH=wntgcci$COMEX
- fi
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARINC="$SOLARINC -I$SRC_ROOT/solenv/inc/win32 -I$SRC_ROOT/solenv/inc/$OUTPATH"
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- ;;
- *netbsd*)
- COM=GCC
- GUI=UNX
- GUIBASE=unx
- OS=NETBSD
- RTL_OS=NetBSD
- OUTPATH=unxnbsd
- P_SEP=:
- case "$host_cpu" in
- i*86)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- ;;
- powerpc)
- CPU=P
- CPUNAME=POWERPC
- RTL_ARCH=PowerPC
- ;;
- sparc)
- CPU=S
- CPUNAME=SPARC
- RTL_ARCH=SPARC
- ;;
- x86_64)
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_64
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- ;;
- openbsd*)
- COM=GCC
- GUI=UNX
- GUIBASE=unx
- OS=OPENBSD
- RTL_OS=OpenBSD
- OUTPATH=unxobsd
- P_SEP=:
- case "$host_cpu" in
- i*86)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- ;;
- x86_64)
- CPU=X
- CPUNAME=X86_64
- RTL_ARCH=X86_64
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARINC="$SOLARINC -I/usr/local/include"
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L/usr/local/lib"
- ;;
- solaris*)
- COM=GCC
- GUI=UNX
- GUIBASE=unx
- OS=SOLARIS
- RTL_OS=Solaris
- P_SEP=:
- case "$host_cpu" in
- i*86)
- CPU=I
- CPUNAME=INTEL
- RTL_ARCH=x86
- OUTPATH=unxsogi
- ;;
- sparc)
- CPU=S
- CPUNAME=SPARC
- RTL_ARCH=SPARC
- OUTPATH=unxsogs
- ;;
- *)
- as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARINC="$SOLARINC -I/usr/local/include"
- SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
- SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
- SOLARLIB="$SOLARLIB -L$COMPATH/lib"
- SOLARLIB="$SOLARLIB -L/usr/local/bin -L/usr/dt/lib -L/usr/openwin/lib"
- ;;
- *)
- as_fn_error $? "$host_os operating system is not suitable to build LibreOffice for!" "$LINENO" 5
- ;;
- esac
- if test "$enable_headless" = "yes"; then
- GUIBASE=headless
- fi
- INPATH="${OUTPATH}${PROEXT}"
- if test -n "${with_solver_and_workdir_root}"; then
- PathFormat "${with_solver_and_workdir_root}"
- # IsValidFilePath in /sal/osl/w32/file_url.cxx rejects "X:\\" breaking idlc
- if echo ${formatted_path} | $GREP -q '/$'; then
- WORKDIR=${formatted_path}workdir/${INPATH}
- else
- WORKDIR=${formatted_path}/workdir/${INPATH}
- fi
- else
- WORKDIR=${SRC_ROOT}/workdir/${INPATH}
- fi
- OUTDIR="${SOLARVER}/${INPATH}"
- SOLARINC="-I. -I${SOLARVER}/$INPATH/inc/external -I${SOLARVER}/$INPATH/inc -I$SRC_ROOT/solenv/inc $SOLARINC"
- 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
- tar cf - \
- bin/repo-list.in \
- config.guess \
- config_host.mk.in \
- configure \
- ooo.lst.in \
- oowintool \
- post_download.in \
- solenv/inc/langlist.mk \
- solenv/inc/postset.mk \
- | (cd CONF-FOR-BUILD && tar xf -)
- (
- unset COM GUI GUIBASE OS CPU CPUNAME
- unset CC CXX SYSBASE CFLAGS
- unset PYTHON_CFLAGS PYTHON_LIBS
- unset AR NM OBJDUMP PKG_CONFIG RANLIB STRIP
- unset CPPUNIT_CFLAGS CPPUNIT_LIBS
- unset LIBXML_CFLAGS LIBXML_LIBS LIBXSLT_CFLAGS LIBXSLT_LIBS XSLTPROC
- test -n "$CC_FOR_BUILD" && export CC="$CC_FOR_BUILD"
- test -n "$CXX_FOR_BUILD" && export CXX="$CXX_FOR_BUILD"
- 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_java = no && sub_conf_opts="$sub_conf_opts --without-java"
- 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 -n "${with_solver_and_workdir_root}" && sub_conf_opts="$sub_conf_opts --with-solver-and-workdir-root=${with_solver_and_workdir_root}"
- test -n "$with_system_boost_for_build" && sub_conf_opts="$sub_conf_opts --with-system-boost"
- test -n "$with_system_cppunit_for_build" && sub_conf_opts="$sub_conf_opts --with-system-cppunit"
- test -n "$with_system_db_for_build" && sub_conf_opts="$sub_conf_opts --with-system-db"
- test -n "$with_system_expat_for_build" && sub_conf_opts="$sub_conf_opts --with-system-expat"
- test "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force" && sub_conf_opts="$sub_conf_opts --with-system-icu"
- test -n "$with_system_libxml_for_build" && sub_conf_opts="$sub_conf_opts --with-system-libxml"
- sub_conf_opts="$sub_conf_opts $with_build_platform_configure_options"
- ./configure \
- --disable-mozilla \
- --disable-build-mozilla \
- --disable-zenity \
- --with-num-cpus="$with_num_cpus" \
- --with-max-jobs="$with_max_jobs" \
- --without-doxygen \
- $sub_conf_opts \
- 2>&1 | sed -e 's/^/ /'
- test -f ./config_host.mk 2>/dev/null || exit
- cp config_host.mk ../config_build.mk
- cp config.log ../config.Build.log
- sed -e 's,=\(.*\),="\1",' < config_host.mk > config_host.sh
- . ./config_host.sh
- for V in COM GUI GUIBASE OS CPU CPUNAME CC CXX GXX_INCLUDE_PATH MACOSX_DEPLOYMENT_TARGET INPATH OUTPATH \
- 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 OUTDIR LO_PATH SOLARINC SOLARLIB WORKDIR; do
- VV='$'$V
- VV=`eval "echo $VV"`
- VV=`echo $VV | sed -e 's,/CONF-FOR-BUILD,,g'`
- if test -n "$VV"; then
- line="${V}_FOR_BUILD='$VV'"
- echo "$line" >>build-config
- fi
- done
- )
- 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,/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
- CC_FOR_BUILD="$CC"
- CXX_FOR_BUILD="$CXX"
- CC_FOR_BUILD="$CC"
- COM_FOR_BUILD="$COM"
- CPUNAME_FOR_BUILD="$CPUNAME"
- CPU_FOR_BUILD="$CPU"
- CXX_FOR_BUILD="$CXX"
- GUIBASE_FOR_BUILD="$GUIBASE"
- GUI_FOR_BUILD="$GUI"
- INPATH_FOR_BUILD="$INPATH"
- MACOSX_DEPLOYMENT_TARGET_FOR_BUILD="$MACOSX_DEPLOYMENT_TARGET"
- OS_FOR_BUILD="$OS"
- OUTDIR_FOR_BUILD="$OUTDIR"
- OUTPATH_FOR_BUILD="$OUTPATH"
- WORKDIR_FOR_BUILD="$WORKDIR"
- fi
- UPD="`echo 3.6 | sed "s/\.//"`0"
- SOURCEVERSION="OOO$UPD"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable crashdump feature" >&5
- $as_echo_n "checking whether to enable crashdump feature... " >&6; }
- if test "$enable_crashdump" = "yes"; then
- ENABLE_CRASHDUMP="TRUE"
- BUILD_TYPE="$BUILD_TYPE CRASHREP"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- ENABLE_CRASHDUMP=""
- { $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 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
- EXTERNAL_WARNINGS_NOT_ERRORS="FALSE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- EXTERNAL_WARNINGS_NOT_ERRORS="TRUE"
- { $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 do a debug build" >&5
- $as_echo_n "checking whether to do a debug build... " >&6; }
- if test -n "$enable_debug" && test "$enable_debug" != "no"; then
- if test "$enable_debug" = "y" || test "$enable_debug" = "yes"; then
- ENABLE_DEBUG="TRUE"
- ENABLE_DEBUG_FOR=all
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- ENABLE_DEBUG=""
- ENABLE_DEBUG_FOR="$enable_debug"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: for $enable_debug" >&5
- $as_echo "for $enable_debug" >&6; }
- fi
- else
- ENABLE_DEBUG=""
- ENABLE_DEBUG_FOR=""
- { $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 linkoo for the smoketest installation" >&5
- $as_echo_n "checking whether to use linkoo for the smoketest installation... " >&6; }
- if test "$enable_linkoo" = "no"; then
- DISABLE_LINKOO="TRUE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- DISABLE_LINKOO=
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include symbols" >&5
- $as_echo_n "checking whether to include symbols... " >&6; }
- if test -n "$enable_symbols" -a "$enable_symbols" != "no"; then
- ENABLE_SYMBOLS="TRUE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- ENABLE_SYMBOLS=
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$enable_headless" = "yes"; then
- # be sure to do not mess with uneeded stuff
- test_randr=no
- test_xrender=no
- test_cups=no
- test_fontconfig=yes
- test_gtk=no
- build_gstreamer=no
- test_tde=no
- test_kde=no
- test_kde4=no
- test_unix_quickstarter=no
- test_cairo=no
- fi
- if test "$enable_cups" = "no"; then
- test_cups=no
- ENABLE_CUPS="NO"
- elif test "$enable_cups" = "yes"; then
- if test $_os = iOS -o $_os = Android; then
- as_fn_error $? "CUPS makes no sense for $_os" "$LINENO" 5
- fi
- ENABLE_CUPS="YES"
- elif test $_os = iOS -o $_os = Android; then
- ENABLE_CUPS=NO
- else
- ENABLE_CUPS="YES"
- fi
- if test "$test_cups" = "yes"; then
- { $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_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
- 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" -a "$ac_cv_header_cups_cups_h" != "yes"; then
- as_fn_error $? "Could not find CUPS. Install libcupsys2-dev or cups???-devel." "$LINENO" 5
- fi
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_PKG_CONFIG"; then
- ac_pt_PKG_CONFIG=$PKG_CONFIG
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
- if test -n "$ac_pt_PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
- $as_echo "$ac_pt_PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_PKG_CONFIG" = x; then
- PKG_CONFIG=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- PKG_CONFIG=$ac_pt_PKG_CONFIG
- fi
- else
- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
- fi
- fi
- if test -n "$PKG_CONFIG"; then
- _pkg_min_version=0.9.0
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
- $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PKG_CONFIG=""
- fi
- fi
- 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.2.0\""; } >&5
- ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 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.2.0" 2>/dev/null`
- 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.2.0\""; } >&5
- ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 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.2.0" 2>/dev/null`
- 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 "fontconfig >= 2.2.0" 2>&1`
- else
- FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.2.0" 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.2.0) 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
- else
- case "$BUILD_TYPE" in
- *FONTCONFIG*)
- FONTCONFIG_LIBS="-lfontconfig"
- ;;
- esac
- fi
- if test -z "$TARFILE_LOCATION"; then
- TARFILE_LOCATION="$SRC_ROOT/src"
- 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- DO_FETCH_TARBALLS="YES"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- DO_FETCH_TARBALLS="NO"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable filters for legacy binary file formats (StarOffice 5.2)" >&5
- $as_echo_n "checking whether to enable filters for legacy binary file formats (StarOffice 5.2)... " >&6; }
- if test "$enable_binfilter" = "no"; then
- WITH_BINFILTER="NO"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- WITH_BINFILTER="YES"
- BUILD_TYPE="$BUILD_TYPE BINFILTER"
- GIT_REPO_NAMES="$GIT_REPO_NAMES binfilter"
- { $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 build help" >&5
- $as_echo_n "checking whether to build help... " >&6; }
- if test "$with_help" != "no" -a $_os != iOS -a $_os != Android; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- BUILD_TYPE="$BUILD_TYPE HELP"
- SCPDEFS="$SCPDEFS -DWITH_HELP"
- GIT_REPO_NAMES="$GIT_REPO_NAMES help"
- 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 include MySpell dictionaries" >&5
- $as_echo_n "checking whether to include MySpell dictionaries... " >&6; }
- if test -z "$with_myspell_dicts" -o "$with_myspell_dicts" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- WITH_MYSPELL_DICTS=YES
- BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
- GIT_REPO_NAMES="$GIT_REPO_NAMES dictionaries"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- WITH_MYSPELL_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=YES
- { $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=NO
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pch feature" >&5
- $as_echo_n "checking whether to enable pch feature... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, obsolete" >&5
- $as_echo "no, obsolete" >&6; }
- { $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 -x "/opt/lo/bin/make"; then
- GNUMAKE="/opt/lo/bin/make"
- fi
- fi
- 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
- GNUMAKE=$a
- 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
- fi
- { $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
- 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_SHA1SUM+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $SHA1SUM in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_SHA1SUM="$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
- SHA1SUM=$ac_cv_path_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 approproate SHA-1 checksumming program for this OS" "$LINENO" 5
- 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`
- cat > $TESTGMAKEBUG20033/Makefile << EOF
- A := \$(wildcard *.a)
- .PHONY: all
- all: \$(A:.a=.b)
- @echo survived bug20033. #dont kill these tabs, you will break the Makefile!!!!
- .PHONY: setup
- setup:
- @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
- \$(eval CHECKSUM := \$(word 1,\$(shell cat \$^ | $SHA1SUM))) \$(if \$(wildcard \$(CACHEDIR)/\$(CHECKSUM)),\
- \$(call d1,\$(CHECKSUM)),\
- \$(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`"
- cat > $TESTGMAKEFILEFUNC/Makefile << EOF
- \$(file >test.txt,Success )
- .PHONY: all
- all:
- @cat test.txt
- EOF
- $GNUMAKE -C $TESTGMAKEFILEFUNC 2>/dev/null 1>&2
- if test -f $TESTGMAKEFILEFUNC/test.txt ; then
- HAVE_GNUMAKE_FILE_FUNC="YES"
- { $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 LibreOffice`;
- STALE_MAKE=
- make_warning=
- 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"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- int
- main ()
- {
- printf ("");
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- if ./conftest$EXEEXT; then
- HAVE_LD_HASH_STYLE=TRUE
- WITH_LINKER_HASH_STYLE=$hash_style
- fi
- else
- HAVE_LD_HASH_STYLE=FALSE
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- PERL=$ac_cv_path_PERL
- if test -n "$PERL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
- $as_echo "$PERL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- 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 version \"$_perl_version\", use version 5 of Perl" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (perl $_perl_version)" >&5
- $as_echo "checked (perl $_perl_version)" >&6; }
- else
- as_fn_error $? "Perl not found, install version 5 of Perl" "$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; }
- if `$PERL -e 'use Archive::Zip; use Cwd; use Digest::MD5'`; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: all modules found" >&5
- $as_echo "all modules found" >&6; }
- else
- as_fn_error $? "Failed to find some modules" "$LINENO" 5
- fi
- if test "$_os" != "WINNT" -o "$WITH_MINGW" = "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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_PKG_CONFIG"; then
- ac_pt_PKG_CONFIG=$PKG_CONFIG
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
- if test -n "$ac_pt_PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
- $as_echo "$ac_pt_PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_PKG_CONFIG" = x; then
- PKG_CONFIG=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- PKG_CONFIG=$ac_pt_PKG_CONFIG
- fi
- else
- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
- fi
- fi
- if test -n "$PKG_CONFIG"; then
- _pkg_min_version=0.9.0
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
- $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PKG_CONFIG=""
- fi
- fi
- fi
- if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; 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.
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_AR="${ac_tool_prefix}ar"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- AR=$ac_cv_prog_AR
- if test -n "$AR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
- $as_echo "$AR" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_AR"; then
- ac_ct_AR=$AR
- # Extract the first word of "ar", so it can be a program name with args.
- set dummy ar; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_AR="ar"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_AR=$ac_cv_prog_ac_ct_AR
- if test -n "$ac_ct_AR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
- $as_echo "$ac_ct_AR" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_AR" = x; then
- AR=""
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_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}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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- OBJDUMP=$ac_cv_prog_OBJDUMP
- if test -n "$OBJDUMP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
- $as_echo "$OBJDUMP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_OBJDUMP"; then
- ac_ct_OBJDUMP=$OBJDUMP
- # Extract the first word of "objdump", so it can be a program name with args.
- set dummy objdump; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_OBJDUMP="objdump"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
- if test -n "$ac_ct_OBJDUMP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
- $as_echo "$ac_ct_OBJDUMP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_OBJDUMP" = x; then
- OBJDUMP=""
- 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}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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- RANLIB=$ac_cv_prog_RANLIB
- if test -n "$RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
- $as_echo "$RANLIB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_RANLIB"; then
- ac_ct_RANLIB=$RANLIB
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_RANLIB="ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
- if test -n "$ac_ct_RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
- $as_echo "$ac_ct_RANLIB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_RANLIB" = x; then
- RANLIB=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- RANLIB=$ac_ct_RANLIB
- fi
- else
- RANLIB="$ac_cv_prog_RANLIB"
- fi
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- STRIP=$ac_cv_prog_STRIP
- if test -n "$STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
- $as_echo "$STRIP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_STRIP"; then
- ac_ct_STRIP=$STRIP
- # Extract the first word of "strip", so it can be a program name with args.
- set dummy strip; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_STRIP="strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
- if test -n "$ac_ct_STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
- $as_echo "$ac_ct_STRIP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_STRIP" = x; then
- STRIP=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- STRIP=$ac_ct_STRIP
- fi
- else
- STRIP="$ac_cv_prog_STRIP"
- fi
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- DLLTOOL=$ac_cv_prog_DLLTOOL
- if test -n "$DLLTOOL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
- $as_echo "$DLLTOOL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_DLLTOOL"; then
- ac_ct_DLLTOOL=$DLLTOOL
- # Extract the first word of "dlltool", so it can be a program name with args.
- set dummy dlltool; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_DLLTOOL="dlltool"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
- if test -n "$ac_ct_DLLTOOL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
- $as_echo "$ac_ct_DLLTOOL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_DLLTOOL" = x; then
- DLLTOOL=""
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_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_echo "$as_me:${as_lineno-$LINENO}: result: yes, from Mono" >&5
- $as_echo "yes, from Mono" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from unknown origin" >&5
- $as_echo "yes, from unknown origin" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might have unexpected consequences, please consider hiding $PKG_CONFIG" >&5
- $as_echo "$as_me: WARNING: This might have unexpected consequences, please consider hiding $PKG_CONFIG" >&2;}
- echo "Having a $PKG_CONFIG might have unexpected consequences, please consider hiding it" >>warn
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$build_os" = "cygwin"; then
- # Extract the first word of "midl.exe", so it can be a program name with args.
- set dummy midl.exe; 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_MIDL_PATH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $MIDL_PATH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MIDL_PATH="$MIDL_PATH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MIDL_PATH="$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
- MIDL_PATH=$ac_cv_path_MIDL_PATH
- if test -n "$MIDL_PATH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL_PATH" >&5
- $as_echo "$MIDL_PATH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -n "$MIDL_PATH";then
- MIDL_PATH=`dirname "$MIDL_PATH"`
- fi
- if test -n "$with_midl_path";then
- with_midl_path=`cygpath -u "$with_midl_path"`
- fi
- if test -x "$with_midl_path/midl.exe"; then
- MIDL_PATH="$with_midl_path"
- fi
- if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
- MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
- fi
- if test -z "$MIDL_PATH"; then
- vstest=`./oowintool --msvs-productdir`;
- if test -x "$vstest/Common7/Tools/Bin/midl.exe"; then
- MIDL_PATH="$vstest/Common7/Tools/Bin"
- fi
- fi
- if test -z "$MIDL_PATH"; then
- winsdktest=`./oowintool --windows-sdk-home`
- if test -x "$winsdktest/Bin/midl.exe"; then
- MIDL_PATH="$winsdktest/Bin"
- fi
- fi
- if test ! -x "$MIDL_PATH/midl.exe"; then
- as_fn_error $? "midl.exe not found. Make sure it's in PATH or use --with-midl-path" "$LINENO" 5
- fi
- # Convert to posix path with 8.3 filename restrictions ( No spaces )
- MIDL_PATH=`cygpath -d "$MIDL_PATH"`
- MIDL_PATH=`cygpath -u "$MIDL_PATH"`
- # Extract the first word of "csc.exe", so it can be a program name with args.
- set dummy csc.exe; 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_CSC_PATH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CSC_PATH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CSC_PATH="$CSC_PATH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_CSC_PATH="$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
- CSC_PATH=$ac_cv_path_CSC_PATH
- if test -n "$CSC_PATH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC_PATH" >&5
- $as_echo "$CSC_PATH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -n "$CSC_PATH";then
- CSC_PATH=`dirname "$CSC_PATH"`
- fi
- if test -n "$with_csc_path";then
- with_csc_path=`cygpath -u "$with_csc_path"`
- fi
- if test -x "$with_csc_path/csc.exe"; then
- CSC_PATH="$with_csc_path"
- else
- csctest=`./oowintool --csc-compilerdir`;
- if test -x "$csctest/csc.exe"; then
- CSC_PATH="$csctest"
- fi
- fi
- if test ! -x "$CSC_PATH/csc.exe"; then
- as_fn_error $? "csc.exe not found. Make sure it's in the path or use --with-csc-path" "$LINENO" 5
- fi
- # Convert to posix path with 8.3 filename restrictions ( No spaces )
- CSC_PATH=`cygpath -d "$CSC_PATH"`
- CSC_PATH=`cygpath -u "$CSC_PATH"`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking .NET Framework" >&5
- $as_echo_n "checking .NET Framework... " >&6; }
- if test -n "$with_dotnet_framework_home"; then
- with_dotnet_framework_home=`cygpath -u "$with_dotnet_framework_home"`
- fi
- if test -f "$with_dotnet_framework_home/lib/mscoree.lib"; then
- DOTNET_FRAMEWORK_HOME="$with_dotnet_framework_home"
- fi
- if test -z "$DOTNET_FRAMEWORK_HOME"; then
- frametest=`./oowintool --dotnetsdk-dir`
- if test -f "$frametest/lib/mscoree.lib"; then
- DOTNET_FRAMEWORK_HOME="$frametest"
- else
- frametest=`./oowintool --windows-sdk-home`
- if test -f "$frametest/lib/mscoree.lib"; then
- DOTNET_FRAMEWORK_HOME="$frametest"
- fi
- fi
- fi
- if test ! -f "$DOTNET_FRAMEWORK_HOME/lib/mscoree.lib"; then
- as_fn_error $? "mscoree.lib (.NET Framework) not found. Make sure you use --with-dotnet-framework-home" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
- $as_echo "found" >&6; }
- PathFormat "$MIDL_PATH"
- MIDL_PATH="$formatted_path"
- PathFormat "$DOTNET_FRAMEWORK_HOME"
- DOTNET_FRAMEWORK_HOME="$formatted_path"
- PathFormat "$CSC_PATH"
- CSC_PATH="$formatted_path"
- fi
- if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; 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" -o "$WITH_MINGW" = "yes"; 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
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CXX=$ac_cv_prog_CXX
- if test -n "$CXX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
- $as_echo "$CXX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CXX" && break
- done
- fi
- if test -z "$CXX"; then
- ac_ct_CXX=$CXX
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CXX="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
- if test -n "$ac_ct_CXX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
- $as_echo "$ac_ct_CXX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CXX" && break
- done
- if test "x$ac_ct_CXX" = x; then
- CXX="g++"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CXX=$ac_ct_CXX
- fi
- fi
- fi
- fi
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- 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
- else
- if test -n "$CC" -a -z "$CXX"; then
- CXX="$CC"
- fi
- fi
- if test "$GXX" = "yes"; 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 "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$_gpp_majmin" -ge "401"; then
- if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0"; then
- export CXX="$GCC_HOME/bin/g++-4.0"
- _gpp_majmin_2=`$CXX -dumpversion | $AWK -F. '{ print \$1*100+\$2 }'`
- if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401"; then
- _gpp_majmin=$_gpp_majmin_2
- fi
- fi
- if test "$_gpp_majmin" -ge "401"; then
- as_fn_error $? "You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: implicitly using CXX=$CXX" >&5
- $as_echo "implicitly using CXX=$CXX" >&6; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (g++ $_gpp_version)" >&5
- $as_echo "checked (g++ $_gpp_version)" >&6; }
- fi
- if test "$_gpp_majmin" = "304"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX has the enum bug" >&5
- $as_echo_n "checking whether $CXX has the enum bug... " >&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. */
- extern "C" void abort (void);
- extern "C" void exit (int status);
- enum E { E0, E1, E2, E3, E4, E5 };
- void test (enum E e)
- {
- if (e == E2 || e == E3 || e == E1)
- exit (1);
- }
- int main (void)
- {
- test (E4);
- test (E5);
- test (E0);
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- as_fn_error $? "your version of the GNU C++ compile has a bug which prevents LibreOffice from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details." "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- 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
- #
- # prefx CXX with ccache if needed
- #
- if test "$CCACHE" != ""; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is already ccached" >&5
- $as_echo_n "checking whether $CXX 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"
- { $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" -o "$WITH_MINGW" = "yes"; 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
- if test "$_os" = "SunOS"; then
- CPP=$CXXCPP
- else
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $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
- fi
- if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
- # 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
- SIZEOF_SHORT=$ac_cv_sizeof_short
- SIZEOF_INT=$ac_cv_sizeof_int
- SIZEOF_LONG=$ac_cv_sizeof_long
- SIZEOF_LONGLONG=$ac_cv_sizeof_long_long
- SIZEOF_DOUBLE=$ac_cv_sizeof_double
- SIZEOF_POINTER=$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
- ALIGNOF_SHORT=$ac_cv_alignof_short
- ALIGNOF_INT=$ac_cv_alignof_int
- ALIGNOF_LONG=$ac_cv_alignof_long
- ALIGNOF_DOUBLE=$ac_cv_alignof_double
- { $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)
- $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
- ;; #(
- no)
- ;; #(
- universal)
- $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
- ;; #(
- *)
- as_fn_error $? "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
- esac
- WORDS_BIGENDIAN=$ac_cv_c_bigendian
- # 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
- SIZEOF_SHORT=2
- SIZEOF_INT=4
- SIZEOF_LONG=4
- SIZEOF_LONGLONG=8
- if test "$CL_X64" = ""; then
- SIZEOF_POINTER=4
- else
- SIZEOF_POINTER=8
- fi
- ALIGNOF_SHORT=2
- ALIGNOF_INT=4
- ALIGNOF_LONG=4
- ALIGNOF_DOUBLE=8
- WORDS_BIGENDIAN=no
- LFS_CFLAGS=''
- fi
- if test "$cross_compiling" != "yes" -a "$enable_dbgutil" != "no" -a \
- -z "$VALGRIND_CFLAGS"; then
- prev_cppflags=$CPPFLAGS
- CPPFLAGS="-I/usr/include/valgrind"
- ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
- if test "x$ac_cv_header_valgrind_h" = xyes; then :
- VALGRIND_CFLAGS=$CPPFLAGS
- else
- unset ac_cv_header_valgrind_h
- fi
- if test -z "$VALGRIND_CFLAGS"; then
- CPPFLAGS="-I/usr/local/include/valgrind"
- ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
- if test "x$ac_cv_header_valgrind_h" = xyes; then :
- VALGRIND_CFLAGS=$CPPFLAGS
- fi
- fi
- if test -n "$VALGRIND_CFLAGS"; then
- CPPFLAGS=$VALGRIND_CFLAGS
- ac_fn_c_check_header_mongrel "$LINENO" "memcheck.h" "ac_cv_header_memcheck_h" "$ac_includes_default"
- if test "x$ac_cv_header_memcheck_h" = xyes; then :
- else
- VALGRIND_CFLAGS=""
- fi
- fi
- CPPFLAGS=$prev_cppflags
- fi
- if test "$WITH_MINGW" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW include path" >&5
- $as_echo_n "checking for MinGW include path... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- #include <stddef.h>
- #include <bits/c++config.h>
- _ACEOF
- _mingw_lib_include_path=`$CXX -E -xc++ conftest.$ac_ext | $SED -n -e '/.*1*"\(.*\)\/stddef.h".*/s//\1/p' -e '/.*1*"\(.*\)\/bits\/c++config.h".*/s//\1/p' | sort -u | xargs echo`
- rm conftest.$ac_ext
- if test -z "$_mingw_lib_include_path"; then
- _mingw_lib_include_path="NO_LIB_INCLUDE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no MinGW include path" >&5
- $as_echo "no MinGW include path" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_mingw_lib_include_path" >&5
- $as_echo "$_mingw_lib_include_path" >&6; }
- fi
- MINGW_LIB_INCLUDE_PATH="$_mingw_lib_include_path"
- mingw_crtbegin=`$CC -print-file-name=crtbegin.o`
- MINGW_CLIB_DIR=`dirname $mingw_crtbegin`
- 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 dynamic libgcc" >&5
- $as_echo_n "checking for dynamic libgcc... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <iostream>
- using namespace std;
- int
- main ()
- {
- try { throw 42; } catch (int e) { cout << "Yep, " << e << endl; }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- MINGW_GCCDLL=`$OBJDUMP -p conftest.exe | grep 'DLL Name: libgcc' | $SED -e 's@.*DLL Name: @@'`
- if test -n "$MINGW_GCCDLL"; then
- MINGW_SHARED_GCCLIB=YES
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGW_GCCDLL" >&5
- $as_echo " $MINGW_GCCDLL" >&6; }
- else
- MINGW_SHARED_GCCLIB=NO
- { $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" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic libstdc++" >&5
- $as_echo_n "checking for dynamic libstdc++... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <iostream>
- using namespace std;
- int
- main ()
- {
- cout << "Hello there." << endl;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- MINGW_GXXDLL=`$OBJDUMP -p conftest.exe | grep 'DLL Name: libstdc++' | $SED -e 's@.*DLL Name: @@'`
- if test -n "$MINGW_GXXDLL"; then
- mingw_gxxdll_root=${MINGW_GXXDLL%.dll}
- mingw_gxxdll_root=${mingw_gxxdll_root#lib}
- MINGW_SHARED_LIBSTDCPP=-l$mingw_gxxdll_root
- MINGW_SHARED_GXXLIB=YES
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGW_GXXDLL" >&5
- $as_echo "$MINGW_GXXDLL" >&6; }
- else
- MINGW_SHARED_GXXLIB=NO
- { $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" >&5
- $as_echo "no" >&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
- if test "$_os" = "SunOS"; then
- if test "$CC" = "cc"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking SunStudio C++ Compiler" >&5
- $as_echo_n "checking SunStudio C++ Compiler... " >&6; }
- if test "$CXX" != "CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SunStudio C++ was not found" >&5
- $as_echo "$as_me: WARNING: SunStudio C++ was not found" >&2;}
- echo "SunStudio C++ was not found" >> warn
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
- $as_echo "checked" >&6; }
- fi
- fi
- fi
- if test "$WITH_MINGW" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking exception type" >&5
- $as_echo_n "checking exception 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
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <iostream>
- extern "C" void _Unwind_SjLj_RaiseException(void) __attribute__ ((__noreturn__));
- int
- main ()
- {
- _Unwind_SjLj_RaiseException()
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- exceptions_type="sjlj"
- else
- exceptions_type="dwarf2"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $exceptions_type" >&5
- $as_echo "$exceptions_type" >&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
- fi
- EXCEPTIONS="$exceptions_type"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether building STLPort library makes sense" >&5
- $as_echo_n "checking Whether building STLPort library makes sense... " >&6; }
- BUILD_STLPORT="no"
- if test "$_os" = "Linux"; then
- case "$host_cpu" in
- i?86)
- case "$host_os" in
- k*bsd*-gnu*)
- BUILD_STLPORT="no"
- ;;
- *)
- BUILD_STLPORT="yes"
- ;;
- esac
- ;;
- *)
- BUILD_STLPORT="no"
- ;;
- esac
- elif test "$_os" = "SunOS"; then
- BUILD_STLPORT="yes"
- elif test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
- BUILD_STLPORT="yes"
- elif test "$_os" = "FreeBSD"; then
- BUILD_STLPORT="yes"
- fi
- if test "$BUILD_STLPORT" = "yes"; 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 STLPort library will be actually built" >&5
- $as_echo_n "checking Whether STLPort library will be actually built... " >&6; }
- if test "$with_stlport" = "auto" -o "$BUILD_STLPORT" = "no"; then
- with_stlport=$BUILD_STLPORT
- fi
- if test "$with_stlport" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- WITH_STLPORT=YES
- SCPDEFS="$SCPDEFS -DWITH_STLPORT"
- BUILD_TYPE="$BUILD_TYPE STLPORT"
- else
- WITH_STLPORT=NO
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
- # often contains an i386 which is expanded as a macro.
- if test "$GXX" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ include path" >&5
- $as_echo_n "checking for g++ include path... " >&6; }
- if test -z "$with_gxx_include_path"; then
- with_gxx_include_path=`echo "#include <cstring>" | $CXX -E -xc++ - 2>/dev/null | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
- if test "$with_gxx_include_path" = "/usr/libexec/(null)/include"; then
- with_gxx_include_path="/usr/include"
- fi
- if echo $with_gxx_include_path | $GREP -q linux; then
- # workaround for Mandriva - issue 100049
- with_gxx_include_path=`cd -P $with_gxx_include_path && pwd`
- fi
- fi
- if test -z "$with_gxx_include_path"; then
- with_gxx_include_path="NO_GXX_INCLUDE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
- $as_echo "none" >&6; }
- else
- PathFormat "$with_gxx_include_path"
- with_gxx_include_path="$formatted_path"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gxx_include_path" >&5
- $as_echo "$with_gxx_include_path" >&6; }
- fi
- else
- with_gxx_include_path="NO_GXX_INCLUDE"
- fi
- GXX_INCLUDE_PATH="$with_gxx_include_path"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports thread safe statics" >&5
- $as_echo_n "checking whether $CXX supports thread safe statics... " >&6; }
- unset HAVE_THREADSAFE_STATICS
- if test "$GCC" = "yes"; then
- save_CXXFLAGS=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS -fthreadsafe-statics"
- 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. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- HAVE_THREADSAFE_STATICS=TRUE
- 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 "$HAVE_THREADSAFE_STATICS" = "TRUE"; then
- if test "$_os" = "Darwin" -o "${GCCVER?}" -lt 040300; then
- unset HAVE_THREADSAFE_STATICS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken (i.e., no)" >&5
- $as_echo "broken (i.e., no)" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- 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: unknown (assuming no)" >&5
- $as_echo "unknown (assuming no)" >&6; }
- fi
- if test "$GCC" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5
- $as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; }
- save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
- 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_VISIBILITY_FEATURE=TRUE
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS=$save_CFLAGS
- if test "$COM_GCC_IS_CLANG" = TRUE -a $_os = Darwin; then
- # It seems that with Apple's Clang, visibility doesn't work as
- # we would want at least in the connectivity and dbaccess
- # modules. This might be because of something peculiar in
- # those modules? Whatever.
- HAVE_GCC_VISIBILITY_FEATURE=
- fi
- if test "$HAVE_GCC_VISIBILITY_FEATURE" = "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 supports -Wno-long-double" >&5
- $as_echo_n "checking whether $CC supports -Wno-long-double... " >&6; }
- save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Werror -Wno-long-double"
- 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_NO_LONG_DOUBLE=TRUE
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS=$save_CFLAGS
- if test "$HAVE_GCC_NO_LONG_DOUBLE" = "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 supports -mno-avx" >&5
- $as_echo_n "checking whether $CC 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 supports -std=gnu++0x without Language Defect 757" >&5
- $as_echo_n "checking whether $CC supports -std=gnu++0x without Language Defect 757... " >&6; }
- save_CXXFLAGS=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS -std=gnu++0x"
- 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 :
- HAVE_CXX0X=TRUE
- 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 "$HAVE_CXX0X" = "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
- HAVE_GCC_VISIBILITY_BROKEN=
- if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \); 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
- if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; 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_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&5
- $as_echo "$as_me: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&2;}
- echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
- unset HAVE_GCC_VISIBILITY_FEATURE
- fi
- fi
- if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
- sharedlink_ldflags_save=$LDFLAGS
- LDFLAGS="$LDFLAGS -fvisibility-inlines-hidden $PICSWITCH $LINKFLAGSSHL"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc is -fvisibility-inlines-hidden safe with STL headers" >&5
- $as_echo_n "checking if gcc is -fvisibility-inlines-hidden safe with STL headers... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sstream>
- using namespace std;
- int
- main ()
- {
- istringstream strm( "test" ); return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- # Ugh, surely bad to assume an error message will contain
- # the word "unresolvable", a problem with
- # -fvisibility-inlines-hidden and STL headers might cause
- # some more obscure message on some platform, and anway,
- # the error message could be localised.
- $EGREP -q unresolvable conftest.err;
- if test $? -eq 0; then gccvisok=no; else gccvisok=yes; fi
- else
- gccvisok=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisok" >&5
- $as_echo "$gccvisok" >&6; }
- if test "$gccvisok" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >&5
- $as_echo "$as_me: WARNING: Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >&2;}
- echo "Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >> warn
- HAVE_GCC_VISIBILITY_BROKEN="TRUE"
- fi
- LDFLAGS=$sharedlink_ldflags_save
- fi
- if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE" -a "$HAVE_GCC_VISIBILITY_BROKEN" != "TRUE"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc is -fvisibility-inlines-hidden safe (Clang bug 11250)" >&5
- $as_echo_n "checking if gcc 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
- if ! $CXX $CXXFLAGS $CPPFLAGS $LINKFLAGSSHL -fPIC -fvisibility-inlines-hidden conftestlib2.cc -L. -lconftest1 $LINKFLAGSNOUNDEFS -o libconftest2$DLLPOST >/dev/null 2>&5; then
- gccvisinlineshiddenok=no
- fi
- fi
- rm -f libconftest1$DLLPOST libconftest2$DLLPOST
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisinlineshiddenok" >&5
- $as_echo "$gccvisinlineshiddenok" >&6; }
- if test "$gccvisinlineshiddenok" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc/clang is not -fvisibility-inlines-hidden safe, disabling that." >&5
- $as_echo "$as_me: WARNING: Your gcc/clang is not -fvisibility-inlines-hidden safe, disabling that." >&2;}
- echo "Your gcc/clang is not -fvisibility-inlines-hidden safe, disabling that." >> warn
- HAVE_GCC_VISIBILITY_BROKEN="TRUE"
- fi
- fi
- if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)" >&5
- $as_echo_n "checking if gcc 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 2>/dev/null > /dev/null; then
- gccvisbroken=yes
- else
- case "$host_cpu" in
- i?86|x86_64)
- if test "$_os" = "Darwin"; then
- gccvisbroken=no
- else
- if $EGREP -q '@PLT|@GOT' visibility.s; 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_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&5
- $as_echo "$as_me: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&2;}
- echo "Your gcc is not -fvisibility=hidden safe. Disabling visibility" >> warn
- unset HAVE_GCC_VISIBILITY_FEATURE
- fi
- 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_SFINAE_ANONYMOUS_BROKEN=
- if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \); 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 if SFINAE is broken with anonymous types" >&5
- $as_echo_n "checking if SFINAE is broken with anonymous types... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- enum { AnonymousEnumValue };
- template< typename T > class TestPredicate {};
- template<> class TestPredicate< int > { public: typedef bool Type; };
- template< typename T >
- bool test( const T&, typename TestPredicate< T >::Type = false )
- { return true; };
- void test( ... );
- int
- main ()
- {
- test( 10 );
- test( AnonymousEnumValue );
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- sfinae_anonymous_broken=no
- else
- sfinae_anonymous_broken=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sfinae_anonymous_broken" >&5
- $as_echo "$sfinae_anonymous_broken" >&6; }
- if test "$sfinae_anonymous_broken" = "yes"; then
- HAVE_SFINAE_ANONYMOUS_BROKEN="TRUE"
- 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
- HAVE_GCC_FNO_DEFAULT_INLINE=
- HAVE_GCC_FNO_ENFORCE_EH_SPECS=
- if test "$GCC" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fno-default-inline" >&5
- $as_echo_n "checking whether $CXX supports -fno-default-inline... " >&6; }
- if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
- # Option just ignored and silly warning that isn't a real
- # warning printed
- :
- else
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- save_CXXFLAGS=$CXXFLAGS
- CXXFLAGS="$CFLAGS -Werror -fno-default-inline"
- 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_DEFAULT_INLINE=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
- fi
- if test "$HAVE_GCC_FNO_DEFAULT_INLINE" = "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 $CXX supports -fno-enforce-eh-specs" >&5
- $as_echo_n "checking whether $CXX supports -fno-enforce-eh-specs... " >&6; }
- if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
- # As above
- :
- else
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- save_CXXFLAGS=$CXXFLAGS
- 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
- fi
- 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking which memory allocator to use" >&5
- $as_echo_n "checking which memory allocator to use... " >&6; }
- if test "$with_alloc" = "system"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
- $as_echo "system" >&6; }
- ALLOC="SYS_ALLOC";
- for ac_func in malloc realloc calloc free
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- fi
- if test "$with_alloc" = "tcmalloc"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcmalloc" >&5
- $as_echo "tcmalloc" >&6; }
- if ! echo $host_cpu | $GREP -E 'i[3456]86' 2>/dev/null >/dev/null; then
- as_fn_error $? "tcmalloc only available/usable on ix86" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ltcmalloc" >&5
- $as_echo_n "checking for malloc in -ltcmalloc... " >&6; }
- if ${ac_cv_lib_tcmalloc_malloc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltcmalloc $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 malloc ();
- int
- main ()
- {
- return malloc ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_tcmalloc_malloc=yes
- else
- ac_cv_lib_tcmalloc_malloc=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_tcmalloc_malloc" >&5
- $as_echo "$ac_cv_lib_tcmalloc_malloc" >&6; }
- if test "x$ac_cv_lib_tcmalloc_malloc" = xyes; then :
- :
- else
- as_fn_error $? "tcmalloc not found or functional. Install the Google Profiling Tools" "$LINENO" 5
- fi
- ALLOC="TCMALLOC";
- fi
- if test "$with_alloc" = "jemalloc"; then
- if test "$_os" != "FreeBSD" -o "$_os" != "NetBSD"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc" >&5
- $as_echo "jemalloc" >&6; }
- save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -pthread"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ljemalloc" >&5
- $as_echo_n "checking for malloc in -ljemalloc... " >&6; }
- if ${ac_cv_lib_jemalloc_malloc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljemalloc $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 malloc ();
- int
- main ()
- {
- return malloc ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_jemalloc_malloc=yes
- else
- ac_cv_lib_jemalloc_malloc=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_jemalloc_malloc" >&5
- $as_echo "$ac_cv_lib_jemalloc_malloc" >&6; }
- if test "x$ac_cv_lib_jemalloc_malloc" = xyes; then :
- :
- else
- as_fn_error $? "jemalloc not found or functional. Install the jemalloc allocator." "$LINENO" 5
- fi
- ALLOC="JEMALLOC";
- CFLAGS=$save_CFLAGS
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
- $as_echo "system" >&6; }
- ALLOC="SYS_ALLOC";
- for ac_func in malloc realloc calloc free
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- fi
- fi
- if test "$with_alloc" = "internal" -o -z "$with_alloc"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
- $as_echo "internal" >&6; }
- fi
- 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add custom build version" >&5
- $as_echo_n "checking whether to add custom build version... " >&6; }
- if test "$with_build_version" != ""; then
- BUILD_VER_STRING=$with_build_version
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $BUILD_VER_STRING" >&5
- $as_echo "yes, $BUILD_VER_STRING" >&6; }
- else
- BUILD_VER_STRING=
- { $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 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; }
- SOLAR_JAVA=""
- with_java=no
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- SOLAR_JAVA="TRUE"
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- SOLAR_JAVA=""
- fi
- 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
- if test $_os = "WINNT"; then
- SCPDEFS="$SCPDEFS -DWITH_VC_REDIST"
- fi
- if test "$SOLAR_JAVA" != ""; then
- # Windows-specific tests
- if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
- if test "$CL_X64" != ""; then
- bitness="64-bit"
- otherbitness="32-bit"
- else
- bitness="32-bit"
- otherbitness="64-bit"
- fi
- if test -z "$with_jdk_home"; then
- # Unfortunately apparently no way to find, if needed, the 64-bit
- # JDK in the Registry from the 32-bit Perl oowintool
- _jdk_home=`./oowintool --jdk-home`
- if test -f "$_jdk_home/lib/jvm.lib" -a -f "$_jdk_home/bin/java.exe"; then
- with_jdk_home="$_jdk_home"
- howfound="found by oowintool"
- else
- as_fn_error $? "No JDK found by oowintool, pass the --with-jdk-home option pointing to a $bitness JDK" "$LINENO" 5
- fi
- else
- test "$build_os" = "cygwin" && with_jdk_home=`cygpath -u "$with_jdk_home"`
- howfound="you passed"
- fi
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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" -a "$_os" = "WINNT"; then
- # Check that the JDK found is correct architecture
- # Why is this necessary, we don't link with any library from the JDK I think,
- shortjdkhome=`cygpath -d "$with_jdk_home"`
- if test "$CL_X64" != "" -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 "$CL_X64" = "" -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=`cygpath -d "$JAVAINTERPRETER"`
- JAVAINTERPRETER=`cygpath -u "$JAVAINTERPRETER"`
- elif test "$_os" = "Darwin"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to pass -d32 to Java interpreter" >&5
- $as_echo_n "checking whether to pass -d32 to Java interpreter... " >&6; }
- if "$JAVAINTERPRETER" -d32 >&5 2>&5; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- JAVAIFLAGS=-d32
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- 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 "$SOLAR_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.in" "$LINENO" 5
- elif test `$JAVAINTERPRETER --version 2>&1 | $GREP -c "GNU libgcj"` -gt 0; then
- JDK=gcj
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (gcj)" >&5
- $as_echo "checked (gcj)" >&6; }
- _gij_version=`$JAVAINTERPRETER --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
- _gij_longver=`echo $_gij_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
- 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.in" "$LINENO" 5
- elif test `$JAVAINTERPRETER -version 2>&1 | $AWK '{ print }' | $GREP -c "IBM"` -gt 0; then
- JDK=ibm
- _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
- _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
- if test "$_jdk_ver" -lt 10500; then
- as_fn_error $? "IBM JDK is too old, you need at least 1.5" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (IBM JDK $_jdk)" >&5
- $as_echo "checked (IBM JDK $_jdk)" >&6; }
- if test "$with_jdk_home" = ""; then
- as_fn_error $? "In order to successfully build LibreOffice using the IBM JDK,
- you must use the \"--with-jdk-home\" configure option explicitly" "$LINENO" 5
- fi
- JAVA_HOME=$with_jdk_home
- else
- JDK=sun
- _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
- _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
- if test "$_jdk_ver" -lt 10500; then
- as_fn_error $? "JDK is too old, you need at least 1.5" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (JDK $_jdk)" >&5
- $as_echo "checked (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
- fi
- else
- as_fn_error $? "Java not found. You need at least jdk-1.5, or gcj-4" "$LINENO" 5
- fi
- else
- JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME
- fi
- _java_target_ver="1.5"
- if test "$SOLAR_JAVA" != ""; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target Java bytecode version" >&5
- $as_echo_n "checking for target Java bytecode version... " >&6; }
- if test "$JDK" = "gcj" -o "$JDK" = "kaffe"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: default by $JDK" >&5
- $as_echo "default by $JDK" >&6; }
- if test -n "$with_java_target_version" -a "$with_java_target_version" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value defined by --with-java-target-version is ignored!" >&5
- $as_echo "$as_me: WARNING: Value defined by --with-java-target-version is ignored!" >&2;}
- fi
- else
- if test -n "$with_java_target_version" -a "$with_java_target_version" != "no"; then
- _java_target_ver="$with_java_target_version"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_java_target_ver" >&5
- $as_echo "$_java_target_ver" >&6; }
- elif test $_jdk_ver -gt 10000; then
- _java_target_ver=`echo "$_jdk_ver" | $AWK '{ maj=substr($0,1,1); min=substr($0,2,2); print int(maj)"."int(min) }'`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_java_target_ver" >&5
- $as_echo "$_java_target_ver" >&6; }
- else
- as_fn_error $? "Unable to guess Java bytecode version from Java version!" "$LINENO" 5
- fi
- fi
- JAVA_SOURCE_VER="$_java_target_ver"
- JAVA_TARGET_VER="$_java_target_ver"
- fi
- if test "$SOLAR_JAVA" != ""; then
- if test "$JDK" = "gcj"; then
- javacompiler=`echo $with_java | $SED -e "s/gij/gcj/g" | $SED -e "s/java/javac/g"`
- else
- javacompiler="javac"
- fi
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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" -a "$_os" = "WINNT"; then
- if test x`echo "$JAVACOMPILER" | $GREP -i '\.exe$'` = x; then
- JAVACOMPILER="${JAVACOMPILER}.exe"
- fi
- JAVACOMPILER=`cygpath -d "$JAVACOMPILER"`
- JAVACOMPILER=`cygpath -u "$JAVACOMPILER"`
- fi
- if test `$JAVACOMPILER -version 2>&1 | $GREP -c "Eclipse Java Compiler"` -gt 0; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking re-checking JDK" >&5
- $as_echo_n "checking re-checking JDK... " >&6; }
- JDK=gcj
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (ecj)" >&5
- $as_echo "checked (ecj)" >&6; }
- #TODO: what's to do here? some switch to do 1.5 compiling?
- JAVAFLAGS="-source 1.5 -target 1.5"
- _gij_longver="40200"
- fi
- fi
- JAVACISGCJ=""
- if test "$SOLAR_JAVA" != ""; then
- if test `$JAVACOMPILER --version 2>&1 | $GREP -c "GCC"` -gt 0; then
- JAVACISGCJ="yes"
- fi
- fi
- JAVACISKAFFE=""
- if test "$SOLAR_JAVA" != ""; then
- if test `$JAVACOMPILER -version 2>&1 | $GREP -c "Kaffe"` -gt 0; then
- JAVACISKAFFE="yes"
- fi
- fi
- if test "$SOLAR_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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" -a "$_os" = "WINNT"; then
- if test x`echo "$JAVADOC" | $GREP -i '\.exe$'` = x; then
- JAVADOC="${JAVADOC}.exe"
- fi
- JAVADOC=`cygpath -d "$JAVADOC"`
- JAVADOC=`cygpath -u "$JAVADOC"`
- fi
- fi
- if test "$SOLAR_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 a alternatives
- # 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;}
- echo "JAVA_HOME is set to /usr - this is very likely to be incorrect" >> warn
- echo "if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >> warn
- 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$,,)
- 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
- if test "$JDK" != "gcj" -o "$_gij_longver" -ge "40200"; then
- # now check if $JAVA_HOME is really valid
- if test "$_os" = "Darwin" -o "$OS_FOR_BUILD" = MACOSX; then
- if test ! -f "$JAVA_HOME/lib/jvm.cfg" -a "x$with_jdk_home" = "x"; then
- JAVA_HOME_OK="NO"
- fi
- elif test ! -d "$JAVA_HOME/jre" -a "x$with_jdk_home" = "x"; then
- JAVA_HOME_OK="NO"
- fi
- if test "$JAVA_HOME_OK" = "NO"; 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 with not be built correctly" >&5
- $as_echo "$as_me: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&2;}
- echo "JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >> warn
- echo "attempted to find JAVA_HOME automatically, but apparently it failed" >> warn
- echo "in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >> warn
- fi
- fi
- PathFormat "$JAVA_HOME"
- JAVA_HOME="$formatted_path"
- fi
- AWTLIB=
- if test "$SOLAR_JAVA" != ""; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jawt lib name" >&5
- $as_echo_n "checking for jawt lib name... " >&6; }
- if test "$JDK" = "gcj"; then
- save_CFLAGS=$CFLAGS
- save_LDFLAGS=$LDFLAGS
- CFLAGS="$CFLAGS -I$JAVA_HOME/include"
- LDFLAGS="$LDFLAGS -L$JAVA_HOME/lib -lgcj"
- exec 6>/dev/null # no output
- ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
- if test "x$ac_cv_header_jni_h" = xyes; then :
- else
- as_fn_error $? "jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -lgcjawt" >&5
- $as_echo_n "checking for JAWT_GetAWT in -lgcjawt... " >&6; }
- if ${ac_cv_lib_gcjawt_JAWT_GetAWT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgcjawt $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 JAWT_GetAWT ();
- int
- main ()
- {
- return JAWT_GetAWT ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gcjawt_JAWT_GetAWT=yes
- else
- ac_cv_lib_gcjawt_JAWT_GetAWT=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_gcjawt_JAWT_GetAWT" >&5
- $as_echo "$ac_cv_lib_gcjawt_JAWT_GetAWT" >&6; }
- if test "x$ac_cv_lib_gcjawt_JAWT_GetAWT" = xyes; then :
- AWTLIB="-lgcjawt -lgcj"
- fi
- exec 6>&1 # output on again
- CFLAGS=$save_CFLAGS
- LDFLAGS=$save_LDFLAGS
- fi
- # IBM SDK 1.5.0-sr5 includes libjawt.so with unresolved symbols.
- # A workaround is to link also against libpmawt.so
- if test "$JDK" = "ibm"; then
- save_CFLAGS=$CFLAGS
- save_LDFLAGS=$LDFLAGS
- save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
- CFLAGS="$CFLAGS -I$JAVA_HOME/include"
- LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin"
- LD_LIBRARY_PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:$JAVA_HOME/jre/bin/xawt:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- exec 6>/dev/null # no output
- ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
- if test "x$ac_cv_header_jni_h" = xyes; then :
- else
- as_fn_error $? "jni.h could not be found." "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -ljawt" >&5
- $as_echo_n "checking for JAWT_GetAWT in -ljawt... " >&6; }
- if ${ac_cv_lib_jawt_JAWT_GetAWT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljawt $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 JAWT_GetAWT ();
- int
- main ()
- {
- return JAWT_GetAWT ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_jawt_JAWT_GetAWT=yes
- else
- ac_cv_lib_jawt_JAWT_GetAWT=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_jawt_JAWT_GetAWT" >&5
- $as_echo "$ac_cv_lib_jawt_JAWT_GetAWT" >&6; }
- if test "x$ac_cv_lib_jawt_JAWT_GetAWT" = xyes; then :
- AWTLIB="-ljawt"
- fi
- if test -z "$AWTLIB"; then
- LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin/xawt -ljawt"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -lmawt" >&5
- $as_echo_n "checking for JAWT_GetAWT in -lmawt... " >&6; }
- if ${ac_cv_lib_mawt_JAWT_GetAWT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lmawt $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 JAWT_GetAWT ();
- int
- main ()
- {
- return JAWT_GetAWT ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_mawt_JAWT_GetAWT=yes
- else
- ac_cv_lib_mawt_JAWT_GetAWT=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_mawt_JAWT_GetAWT" >&5
- $as_echo "$ac_cv_lib_mawt_JAWT_GetAWT" >&6; }
- if test "x$ac_cv_lib_mawt_JAWT_GetAWT" = xyes; then :
- AWTLIB="-L$JAVA_HOME/jre/bin/xawt -ljawt -lmawt"
- fi
- fi
- exec 6>&1 # output on again
- CFLAGS=$save_CFLAGS
- LDFLAGS=$save_LDFLAGS
- LD_LIBRARY_PATH=$save_LD_LIBRARY_PATH
- fi
- if test -z "$AWTLIB"; then
- AWTLIB=-ljawt
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWTLIB" >&5
- $as_echo "$AWTLIB" >&6; }
- fi
- if test "$SOLAR_JAVA" != ""; then
- #
- # Determine JAVALIB
- # If your platform follow the common pattern
- # just define JAVA_ARCH and JAVA_TOOLKIT for it
- # if not, leave JAVA_ARCH empty and define JAVALIB manually
- # if you don't want JAVALIB to be exported at all
- # define x_JAVALIB=[\#]
- #
- JAVA_ARCH=
- JAVA_TOOLKIT=
- x_JAVALIB=
- x_JDKLIB=\#
- case "$host_os" in
- aix*)
- JAVA_ARCH="ppc"
- JAVA_TOOLKIT="classic"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/aix"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- cygwin*)
- x_JDKLIB=
- JDKLIB="$JAVA_HOME/lib"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/win32"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- ;;
- darwin*)
- x_JAVALIB=\#
- SOLARINC="$SOLARINC -I$FRAMEWORKSHOME/JavaVM.framework/Versions/Current/Headers -I$FRAMEWORKSHOME/JavaVM/Headers"
- ;;
- dragonfly*)
- case "$host_cpu" in
- i*86)
- JAVA_ARCH="i386"
- JAVA_TOOLKIT="client"
- ;;
- x86_64)
- JAVA_ARCH="amd64"
- JAVA_TOOLKIT="server"
- ;;
- esac
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- freebsd*)
- case "$host_cpu" in
- i*86)
- JAVA_ARCH="i386"
- JAVA_TOOLKIT="client"
- ;;
- x86_64)
- if test "`echo $JAVA_HOME | sed -e 's,.*/,,'`" = "linux"; then
- JAVA_ARCH="i386"
- JAVA_TOOLKIT="client"
- else
- JAVA_ARCH="amd64"
- JAVA_TOOLKIT="server"
- fi
- ;;
- esac
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/freebsd"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/bsd"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/linux"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- k*bsd*-gnu*)
- case "$host_cpu" in
- i*86)
- JAVA_ARCH="i386"
- JAVA_TOOLKIT="client"
- ;;
- x86_64)
- JAVA_ARCH="amd64"
- JAVA_TOOLKIT="server"
- ;;
- esac
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- linux-gnu*)
- case "$host_cpu" in
- alpha)
- JAVA_ARCH="alpha"
- JAVA_TOOLKIT="server"
- ;;
- arm*)
- JAVA_ARCH="arm"
- JAVA_TOOLKIT="server"
- ;;
- hppa)
- JAVA_ARCH="hppa"
- JAVA_TOOLKIT="server"
- ;;
- i*86)
- JAVA_ARCH="i386"
- case "$JDK" in
- IiBbMm*)
- JAVA_ARCH=
- JRE_BASE_DIR="$JAVA_HOME/jre/bin"
- JAVALIB="-L$JAVA_HOME/$LIB64 -L$JRE_BASE_DIR -L$JRE_BASE_DIR/classic -L$JRE_BASE_DIR/native_thread"
- ;;
- BbEeAa*)
- JAVA_TOOLKIT="jrockit";
- ;;
- *)
- JAVA_TOOLKIT="client";
- ;;
- esac
- ;;
- ia64)
- JAVA_ARCH="ia64"
- JAVA_TOOLKIT="server"
- ;;
- m68k)
- JAVA_ARCH="mk68"
- JAVA_TOOLKIT="server"
- ;;
- mips|mips64|mipsel|mips64el)
- JAVA_ARCH="$host_cpu"
- JAVA_TOOLKIT="server"
- ;;
- mips32)
- JAVA_ARCH="$host_cpu"
- JAVA_TOOLKIT="client"
- ;;
- powerpc)
- JAVA_ARCH="ppc"
- case "$JDK" in
- IiBbMm*)
- JAVA_TOOLKIT="classic"
- ;;
- gcj)
- JAVA_TOOLKIT="client"
- ;;
- *)
- JAVA_TOOLKIT="server"
- ;;
- esac
- ;;
- powerpc64)
- JAVA_ARCH="ppc64"
- if test "$JDK" = "gcj"; then
- JAVA_TOOLKIT="client"
- else
- JAVA_TOOLKIT="server"
- fi
- ;;
- sparc)
- JAVA_ARCH="sparc"
- JAVA_TOOLKIT="server"
- ;;
- s390)
- JAVA_ARCH="s390"
- JAVA_TOOLKIT="server"
- ;;
- s390x)
- JAVA_ARCH="s390x"
- JAVA_TOOLKIT="server"
- ;;
- x86_64)
- JAVA_ARCH="amd64"
- JAVA_TOOLKIT="server"
- ;;
- *)
- as_fn_error $? "No JAVALIB definition host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
- ;;
- esac
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/linux"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- linux-androideabi*)
- case "$host_cpu" in
- arm|armel)
- JAVA_ARCH="arm"
- JAVA_TOOLKIT="server"
- ;;
- esac
- ;;
- mingw*)
- x_JAVALIB=\#
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- ;;
- *netbsd*)
- case "$host_cpu" in
- i*86)
- JAVA_ARCH="i386"
- JAVA_TOOLKIT="client"
- ;;
- powerpc)
- JAVA_ARCH="pcc"
- JAVA_TOOLKIT="classic"
- ;;
- sparc)
- JAVA_ARCH="sparc"
- JAVA_TOOLKIT="client"
- ;;
- x86_64)
- JAVA_ARCH="amd64"
- JAVA_TOOLKIT="client"
- ;;
- esac
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/netbsd"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- openbsd*)
- case "$host_cpu" in
- i*86)
- JAVA_ARCH="i386"
- JAVA_TOOLKIT="client"
- ;;
- x86_64)
- JAVA_ARCH="amd64"
- JAVA_TOOLKIT="server"
- ;;
- esac
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/openbsd"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- solaris*)
- JAVA_TOOLKIT="xawt"
- case "$host_cpu" in
- i*86)
- JAVA_ARCH="i386"
- ;;
- sparc)
- JAVA_ARCH="sparc"
- ;;
- esac
- SOLARINC="$SOLARINC -I$JAVA_HOME/include"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/solaris"
- SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
- ;;
- esac
- if test -n "$JAVA_ARCH"; then
- JRE_BASE_DIR="$JAVA_HOME/jre/lib/$JAVA_ARCH"
- JAVALIB="-L$JAVA_HOME/$LIB64"
- test -d "$JRE_BASE_DIR" && JAVALIB="$JAVALIB -L$JRE_BASE_DIR"
- test -d "$JRE_BASE_DIR/$JAVA_TOOLKIT" && JAVALIB="$JAVALIB -L$JRE_BASE_DIR/$JAVA_TOOLKIT"
- test -d "$JRE_BASE_DIR/native_thread" && JAVALIB="$JAVALIB -L$JRE_BASE_DIR/native_thread"
- fi
- CLASSPATH=
- if test "$JDK"!="gcj"; then
- if test -f "$JAVA_HOME/jre/lib/rt.jar"; then
- CLASSPATH="${JAVA_HOME}/jre/lib/rt.jar${P_SEP}."
- fi
- fi
- XCLASSPATH="$CLASSPATH"
- else
- x_JAVALIB=\#
- x_JDKLIB=\#
- fi
- # Extract the first word of "dmake", so it can be a program name with args.
- set dummy dmake; 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_DMAKE+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $DMAKE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_DMAKE="$DMAKE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_DMAKE="$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_DMAKE" && ac_cv_path_DMAKE="no"
- ;;
- esac
- fi
- DMAKE=$ac_cv_path_DMAKE
- if test -n "$DMAKE"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMAKE" >&5
- $as_echo "$DMAKE" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$DMAKE" = "no"; then
- BUILD_DMAKE=YES
- echo "dmake will be built on ./bootstrap"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the found dmake is the right dmake" >&5
- $as_echo_n "checking whether the found dmake is the right dmake... " >&6; }
- # we need to find out whether that dmake we found is "our" dmake
- # or the dmake from Sun's SunStudio Compiler which is something
- # different
- # This test _should_ work because the one accepts -V (ours) and one
- # (the other) not...
- $DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
- if test $? -eq 0; then
- BUILD_DMAKE=NO
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the dmake version" >&5
- $as_echo_n "checking the dmake version... " >&6; }
- DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
- if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 4.11" >&5
- $as_echo "OK, >= 4.11" >&6; }
- elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
- test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 4.11" >&5
- $as_echo "OK, >= 4.11" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old. >= 4.11 is needed" >&5
- $as_echo "too old. >= 4.11 is needed" >&6; }
- echo "A newer dmake will be built on ./bootstrap"
- BUILD_DMAKE=YES
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- echo "dmake will be built on ./bootstrap"
- BUILD_DMAKE=YES
- 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; }
- BUILD_EPM=NO
- 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 -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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
- echo "EPM will be built."
- BUILD_EPM=YES
- BUILD_TYPE="$BUILD_TYPE 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 (www.easysw.com/epm) 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; }
- BUILD_EPM=NO
- if test "$_os" = "Darwin"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking which PackageMaker EPM thinks to use" >&5
- $as_echo_n "checking which PackageMaker EPM thinks to use... " >&6; }
- _pm=`strings $EPM | grep PackageMaker | cut -d" " -f1`
- if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then
- as_fn_error $? "$_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" "$LINENO" 5
- elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_pm, ok" >&5
- $as_echo "$_pm, ok" >&6; }
- else # we never should get here, but go safe
- as_fn_error $? "$_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" "$LINENO" 5
- fi
- fi
- 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; }
- echo "EPM will be built."
- BUILD_EPM=YES
- BUILD_TYPE="$BUILD_TYPE EPM"
- fi
- fi
- fi
- # test which package format to use
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking which package format to use" >&5
- $as_echo_n "checking which package format to use... " >&6; }
- # defaults
- case "$_os" in
- Darwin)
- PKGFORMAT=dmg
- ;;
- SunOS)
- PKGFORMAT=pkg
- ;;
- Linux)
- # if building on Debian, default should be deb...
- if test -e /etc/debian_version; then
- PKGFORMAT=deb
- else
- PKGFORMAT=rpm
- fi
- ;;
- AIX)
- PKGFORMAT=rpm
- ;;
- OpenBSD|DragonFly)
- PKGFORMAT=portable
- ;;
- *BSD)
- PKGFORMAT=bsd
- ;;
- WINNT)
- PKGFORMAT=msi
- ;;
- # we never should get here since we check the arciecture/os at the beginning,
- # but go sure...
- *)
- as_fn_error $? "unknown system" "$LINENO" 5
- esac
- if test -n "$with_package_format"; then
- for i in $with_package_format; do
- case "$i" in
- aix | bsd | deb | inst | tardist | osx | pkg | rpm | setld | native | portable | 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
- inst or tardist - IRIX software distribution
- osx - MacOS X software distribution
- pkg - Solaris software distribution
- rpm - RedHat software distribution
- setld - Tru64 (setld) software distribution
- native - \"Native\" software distribution for the platform
- portable - Portable software distribution
- LibreOffice additionally supports:
- archive - .tar.gz or .zip
- dmg - Mac OS X .dmg
- installed - installation tree
- msi - Windows .msi
- " "$LINENO" 5
- ;;
- esac
- done
- PKGFORMAT="$with_package_format"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGFORMAT" >&5
- $as_echo "$PKGFORMAT" >&6; }
- 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; }
- 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 osx 2>&1 >/dev/null; then
- if test "$_os" = "Darwin"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker availability" >&5
- $as_echo_n "checking for PackageMaker availability... " >&6; }
- if ! test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then
- as_fn_error $? "not installed. Please install Apples Dev Tools" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- fi
- else
- as_fn_error $? "PackageMaker needed to build OSX packages and you are not on OSX..." "$LINENO" 5
- fi
- fi
- if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
- echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
- if test "$EPM" != "no" -a "$EPM" != "internal"; 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 LibreOffice" $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;}
- echo "the rpms will need to be installed with --nodeps" >> warn
- else
- _pt="pkg"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ${_pt}s will not be relocateable" >&5
- $as_echo "$as_me: WARNING: the ${_pt}s will not be relocateable" >&2;}
- echo "the ${_pt}s will not be relocateable" >> warn
- { $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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- EPM=NO
- PKGFORMAT=native
- fi
- # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking gperf version" >&5
- $as_echo_n "checking gperf version... " >&6; }
- if test "`$GPERF --version | $EGREP ^GNU\ gperf | $AWK '{ print $3 }' | cut -d. -f1`" -ge "3"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
- $as_echo "OK" >&6; }
- else
- as_fn_error $? "too old, you need at least 3.0.0" "$LINENO" 5
- 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=NO
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- BUILD_UNOWINREG=YES
- fi
- if test "$_os" != "WINNT" -a "$BUILD_UNOWINREG" = "YES"; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_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=NO
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide libstdc++/libgcc_s in the installset" >&5
- $as_echo_n "checking whether to provide libstdc++/libgcc_s in the installset... " >&6; }
- if test "$with_system_stdlibs" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- SYSTEM_STDLIBS=YES
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- SYSTEM_STDLIBS=NO
- fi
- if test "$with_system_zlib" = "auto"; then
- case "$_os" in
- WINNT)
- with_system_zlib="$with_system_libs"
- ;;
- *)
- with_system_zlib=yes
- ;;
- 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=YES
- 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=-lz
- else
- as_fn_error $? "zlib not found or functional" "$LINENO" 5
- fi
- if test "$WITH_MINGW" = "yes"; then
- # we need minizip too
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MINIZIP" >&5
- $as_echo_n "checking for MINIZIP... " >&6; }
- if test -n "$MINIZIP_CFLAGS"; then
- pkg_cv_MINIZIP_CFLAGS="$MINIZIP_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"minizip\""; } >&5
- ($PKG_CONFIG --exists --print-errors "minizip") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_MINIZIP_CFLAGS=`$PKG_CONFIG --cflags "minizip" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$MINIZIP_LIBS"; then
- pkg_cv_MINIZIP_LIBS="$MINIZIP_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"minizip\""; } >&5
- ($PKG_CONFIG --exists --print-errors "minizip") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_MINIZIP_LIBS=`$PKG_CONFIG --libs "minizip" 2>/dev/null`
- 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
- MINIZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "minizip" 2>&1`
- else
- MINIZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors "minizip" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$MINIZIP_PKG_ERRORS" >&5
- as_fn_error $? "Package requirements (minizip) were not met:
- $MINIZIP_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 MINIZIP_CFLAGS
- and MINIZIP_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 MINIZIP_CFLAGS
- and MINIZIP_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
- MINIZIP_CFLAGS=$pkg_cv_MINIZIP_CFLAGS
- MINIZIP_LIBS=$pkg_cv_MINIZIP_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- libo_MINGW_CHECK_DLL(MINIZIP, libminizip)
- SYSTEM_MINIZIP=YES
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
- $as_echo "internal" >&6; }
- SYSTEM_ZLIB=NO
- SYSTEM_MINIZIP=NO
- BUILD_TYPE="$BUILD_TYPE ZLIB"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking which jpeg to use" >&5
- $as_echo_n "checking which jpeg to use... " >&6; }
- if test "$with_system_jpeg" = "auto"; then
- case "$_os" in
- WINNT|Darwin|iOS|Android)
- with_system_jpeg="$with_system_libs"
- ;;
- *)
- with_system_jpeg=yes
- ;;
- esac
- fi
- if test "$with_system_jpeg" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
- $as_echo "external" >&6; }
- SYSTEM_JPEG=YES
- 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 :
- 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