Unverified Commit a1748932 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] Use Ubuntu 22.04 as `ubuntu-latest` at CI (fixes #5186) (#5288)

parent 9afd8b93
...@@ -42,13 +42,13 @@ else # Linux ...@@ -42,13 +42,13 @@ else # Linux
iputils-ping \ iputils-ping \
jq \ jq \
libcurl4 \ libcurl4 \
libicu66 \ libicu-dev \
libssl1.1 \ libssl-dev \
libunwind8 \ libunwind8 \
locales \ locales \
netcat \ netcat \
unzip \ unzip \
zip zip || exit -1
if [[ $COMPILER == "clang" ]]; then if [[ $COMPILER == "clang" ]]; then
sudo apt-get install --no-install-recommends -y \ sudo apt-get install --no-install-recommends -y \
clang \ clang \
...@@ -60,6 +60,10 @@ else # Linux ...@@ -60,6 +60,10 @@ else # Linux
sudo locale-gen ${LANG} sudo locale-gen ${LANG}
sudo update-locale sudo update-locale
fi fi
if [[ $TASK == "r-package" ]] && [[ $COMPILER == "clang" ]]; then
sudo apt-get install --no-install-recommends -y \
libomp-dev
fi
if [[ $TASK == "mpi" ]]; then if [[ $TASK == "mpi" ]]; then
if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then
sudo apt-get update sudo apt-get update
...@@ -75,10 +79,10 @@ else # Linux ...@@ -75,10 +79,10 @@ else # Linux
fi fi
if [[ $TASK == "gpu" ]]; then if [[ $TASK == "gpu" ]]; then
if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then
sudo add-apt-repository ppa:mhier/libboost-latest -y
sudo apt-get update sudo apt-get update
sudo apt-get install --no-install-recommends -y \ sudo apt-get install --no-install-recommends -y \
libboost1.74-dev \ libboost1.74-dev \
libboost-filesystem1.74-dev \
ocl-icd-opencl-dev ocl-icd-opencl-dev
else # in manylinux image else # in manylinux image
sudo yum update -y sudo yum update -y
......
...@@ -17,7 +17,7 @@ env: ...@@ -17,7 +17,7 @@ env:
jobs: jobs:
check-links: check-links:
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
......
...@@ -9,7 +9,7 @@ on: ...@@ -9,7 +9,7 @@ on:
jobs: jobs:
noResponse: noResponse:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: lee-dohm/no-response@v0.5.0 - uses: lee-dohm/no-response@v0.5.0
with: with:
......
...@@ -9,7 +9,7 @@ on: ...@@ -9,7 +9,7 @@ on:
jobs: jobs:
all-successful: all-successful:
timeout-minutes: 120 timeout-minutes: 120
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
......
...@@ -9,7 +9,7 @@ jobs: ...@@ -9,7 +9,7 @@ jobs:
name: r-configure name: r-configure
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: "ubuntu:20.04" container: "ubuntu:22.04"
steps: steps:
- name: Install essential software before checkout - name: Install essential software before checkout
run: | run: |
......
...@@ -33,22 +33,22 @@ jobs: ...@@ -33,22 +33,22 @@ jobs:
################ ################
# CMake builds # # CMake builds #
################ ################
- os: ubuntu-latest - os: ubuntu-22.04
task: r-package task: r-package
compiler: gcc compiler: gcc
r_version: 3.6 r_version: 3.6
build_type: cmake build_type: cmake
- os: ubuntu-latest - os: ubuntu-22.04
task: r-package task: r-package
compiler: gcc compiler: gcc
r_version: 4.2 r_version: 4.2
build_type: cmake build_type: cmake
- os: ubuntu-latest - os: ubuntu-22.04
task: r-package task: r-package
compiler: clang compiler: clang
r_version: 3.6 r_version: 3.6
build_type: cmake build_type: cmake
- os: ubuntu-latest - os: ubuntu-22.04
task: r-package task: r-package
compiler: clang compiler: clang
r_version: 4.2 r_version: 4.2
...@@ -114,7 +114,7 @@ jobs: ...@@ -114,7 +114,7 @@ jobs:
toolchain: MSYS toolchain: MSYS
r_version: 4.2 r_version: 4.2
build_type: cran build_type: cran
- os: ubuntu-latest - os: ubuntu-22.04
task: r-package task: r-package
compiler: gcc compiler: gcc
r_version: 4.2 r_version: 4.2
...@@ -127,7 +127,7 @@ jobs: ...@@ -127,7 +127,7 @@ jobs:
################ ################
# Other checks # # Other checks #
################ ################
- os: ubuntu-latest - os: ubuntu-22.04
task: r-rchk task: r-rchk
compiler: gcc compiler: gcc
r_version: 4.2 r_version: 4.2
...@@ -151,7 +151,7 @@ jobs: ...@@ -151,7 +151,7 @@ jobs:
CTAN_MIRROR: https://ctan.math.illinois.edu/systems/win32/miktex CTAN_MIRROR: https://ctan.math.illinois.edu/systems/win32/miktex
TINYTEX_INSTALLER: TinyTeX TINYTEX_INSTALLER: TinyTeX
- name: Setup and run tests on Linux and macOS - name: Setup and run tests on Linux and macOS
if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest' if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-22.04'
shell: bash shell: bash
run: | run: |
export TASK="${{ matrix.task }}" export TASK="${{ matrix.task }}"
...@@ -159,7 +159,7 @@ jobs: ...@@ -159,7 +159,7 @@ jobs:
export GITHUB_ACTIONS="true" export GITHUB_ACTIONS="true"
if [[ "${{ matrix.os }}" == "macOS-latest" ]]; then if [[ "${{ matrix.os }}" == "macOS-latest" ]]; then
export OS_NAME="macos" export OS_NAME="macos"
elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then elif [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then
export OS_NAME="linux" export OS_NAME="linux"
fi fi
export BUILD_DIRECTORY="$GITHUB_WORKSPACE" export BUILD_DIRECTORY="$GITHUB_WORKSPACE"
...@@ -181,9 +181,9 @@ jobs: ...@@ -181,9 +181,9 @@ jobs:
$env:TASK = "${{ matrix.task }}" $env:TASK = "${{ matrix.task }}"
& "$env:GITHUB_WORKSPACE/.ci/test_windows.ps1" & "$env:GITHUB_WORKSPACE/.ci/test_windows.ps1"
test-r-sanitizers: test-r-sanitizers:
name: r-sanitizers (ubuntu-latest, R-devel, ${{ matrix.compiler }} ASAN/UBSAN) name: r-sanitizers (ubuntu-22.04, R-devel, ${{ matrix.compiler }} ASAN/UBSAN)
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container: wch1/r-debug container: wch1/r-debug
strategy: strategy:
fail-fast: false fail-fast: false
...@@ -219,7 +219,7 @@ jobs: ...@@ -219,7 +219,7 @@ jobs:
test-r-debian-clang: test-r-debian-clang:
name: r-package (debian, R-devel, clang) name: r-package (debian, R-devel, clang)
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container: rhub/debian-clang-devel container: rhub/debian-clang-devel
steps: steps:
- name: Install Git before checkout - name: Install Git before checkout
...@@ -248,7 +248,7 @@ jobs: ...@@ -248,7 +248,7 @@ jobs:
fi fi
all-successful: all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert # https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-latest runs-on: ubuntu-22.04
needs: [test, test-r-sanitizers, test-r-debian-clang] needs: [test, test-r-sanitizers, test-r-debian-clang]
steps: steps:
- name: Note that all tests succeeded - name: Note that all tests succeeded
......
...@@ -21,7 +21,7 @@ env: ...@@ -21,7 +21,7 @@ env:
jobs: jobs:
test: test:
name: ${{ matrix.task }} name: ${{ matrix.task }}
runs-on: ubuntu-latest runs-on: ubuntu-22.04
timeout-minutes: 60 timeout-minutes: 60
strategy: strategy:
fail-fast: false fail-fast: false
...@@ -47,7 +47,7 @@ jobs: ...@@ -47,7 +47,7 @@ jobs:
r-check-docs: r-check-docs:
name: r-package-check-docs name: r-package-check-docs
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container: rocker/verse container: rocker/verse
steps: steps:
- name: Trust git cloning LightGBM - name: Trust git cloning LightGBM
...@@ -82,7 +82,7 @@ jobs: ...@@ -82,7 +82,7 @@ jobs:
fi fi
all-successful: all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert # https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-latest runs-on: ubuntu-22.04
needs: [test, r-check-docs] needs: [test, r-check-docs]
steps: steps:
- name: Note that all tests succeeded - name: Note that all tests succeeded
......
...@@ -21,7 +21,7 @@ resources: ...@@ -21,7 +21,7 @@ resources:
- container: linux-artifact-builder - container: linux-artifact-builder
image: lightgbm/vsts-agent:manylinux_2_28_x86_64 image: lightgbm/vsts-agent:manylinux_2_28_x86_64
- container: ubuntu-latest - container: ubuntu-latest
image: 'ubuntu:20.04' image: 'ubuntu:22.04'
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro" options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
- container: rbase - container: rbase
image: wch1/r-debug image: wch1/r-debug
...@@ -151,7 +151,7 @@ jobs: ...@@ -151,7 +151,7 @@ jobs:
OS_NAME: 'linux' OS_NAME: 'linux'
PRODUCES_ARTIFACTS: 'true' PRODUCES_ARTIFACTS: 'true'
pool: pool:
vmImage: ubuntu-latest vmImage: ubuntu-22.04
timeoutInMinutes: 180 timeoutInMinutes: 180
strategy: strategy:
matrix: matrix:
...@@ -299,7 +299,7 @@ jobs: ...@@ -299,7 +299,7 @@ jobs:
########################################### ###########################################
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')) condition: not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-22.04'
container: rbase container: rbase
steps: steps:
- script: | - script: |
...@@ -330,7 +330,7 @@ jobs: ...@@ -330,7 +330,7 @@ jobs:
- R_artifact - R_artifact
condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))) condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')))
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-22.04'
steps: steps:
# Create archives with complete source code included (with git submodules) # Create archives with complete source code included (with git submodules)
- task: ArchiveFiles@2 - task: ArchiveFiles@2
......
...@@ -352,22 +352,22 @@ This section briefly explains the key files for building a CRAN package. To upda ...@@ -352,22 +352,22 @@ This section briefly explains the key files for building a CRAN package. To upda
At build time, `configure` will be run and used to create a file `Makevars`, using `Makevars.in` as a template. At build time, `configure` will be run and used to create a file `Makevars`, using `Makevars.in` as a template.
1. Edit `configure.ac`. 1. Edit `configure.ac`.
2. Create `configure` with `autoconf`. Do not edit it by hand. This file must be generated on Ubuntu 20.04. 2. Create `configure` with `autoconf`. Do not edit it by hand. This file must be generated on Ubuntu 22.04.
If you have an Ubuntu 20.04 environment available, run the provided script from the root of the `LightGBM` repository. If you have an Ubuntu 22.04 environment available, run the provided script from the root of the `LightGBM` repository.
```shell ```shell
./R-package/recreate-configure.sh ./R-package/recreate-configure.sh
``` ```
If you do not have easy access to an Ubuntu 20.04 environment, the `configure` script can be generated using Docker by running the code below from the root of this repo. If you do not have easy access to an Ubuntu 22.04 environment, the `configure` script can be generated using Docker by running the code below from the root of this repo.
```shell ```shell
docker run \ docker run \
--rm \ --rm \
-v $(pwd):/opt/LightGBM \ -v $(pwd):/opt/LightGBM \
-w /opt/LightGBM \ -w /opt/LightGBM \
-t ubuntu:20.04 \ -t ubuntu:22.04 \
./R-package/recreate-configure.sh ./R-package/recreate-configure.sh
``` ```
......
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for lightgbm 3.3.3.99. # Generated by GNU Autoconf 2.71 for lightgbm 3.3.3.99.
# #
# #
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
# Inc.
# #
# #
# This configure script is free software; the Free Software Foundation # This configure script is free software; the Free Software Foundation
...@@ -14,14 +15,16 @@ ...@@ -14,14 +15,16 @@
# Be more Bourne compatible # Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
emulate sh emulate sh
NULLCMD=: NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature. # is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"' alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST setopt NO_GLOB_SUBST
else else $as_nop
case `(set -o) 2>/dev/null` in #( case `(set -o) 2>/dev/null` in #(
*posix*) : *posix*) :
set -o posix ;; #( set -o posix ;; #(
...@@ -31,46 +34,46 @@ esac ...@@ -31,46 +34,46 @@ esac
fi fi
# Reset variables that may have inherited troublesome values from
# the environment.
# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl=' as_nl='
' '
export as_nl export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf. IFS=" "" $as_nl"
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo PS1='$ '
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo PS2='> '
# Prefer a ksh shell builtin over an external printf program on Solaris, PS4='+ '
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \ # Ensure predictable behavior from utilities with locale-dependent output.
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then LC_ALL=C
as_echo='print -r --' export LC_ALL
as_echo_n='print -rn --' LANGUAGE=C
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then export LANGUAGE
as_echo='printf %s\n'
as_echo_n='printf %s' # We cannot yet rely on "unset" to work, but we need these variables
else # to be unset--not just set to an empty or harmless value--now, to
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' # also avoids known problems related to "unset" and subshell syntax
as_echo_n='/usr/ucb/echo -n' # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
else for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' do eval test \${$as_var+y} \
as_echo_n_body='eval && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
arg=$1; done
case $arg in #(
*"$as_nl"*) # Ensure that fds 0, 1, and 2 are open.
expr "X$arg" : "X\\(.*\\)$as_nl"; if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
esac; if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
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. # The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then if ${PATH_SEPARATOR+false} :; then
PATH_SEPARATOR=: 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='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
...@@ -79,13 +82,6 @@ if test "${PATH_SEPARATOR+set}" != set; then ...@@ -79,13 +82,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
fi 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. # Find who we are. Look in the path if we contain no directory separator.
as_myself= as_myself=
case $0 in #(( case $0 in #((
...@@ -94,8 +90,12 @@ case $0 in #(( ...@@ -94,8 +90,12 @@ case $0 in #((
for as_dir in $PATH for as_dir in $PATH
do do
IFS=$as_save_IFS IFS=$as_save_IFS
test -z "$as_dir" && as_dir=. case $as_dir in #(((
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break '') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
done done
IFS=$as_save_IFS IFS=$as_save_IFS
...@@ -107,30 +107,10 @@ if test "x$as_myself" = x; then ...@@ -107,30 +107,10 @@ if test "x$as_myself" = x; then
as_myself=$0 as_myself=$0
fi fi
if test ! -f "$as_myself"; then if test ! -f "$as_myself"; then
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
exit 1 exit 1
fi fi
# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there. '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
# Use a proper internal environment variable to ensure we don't fall # Use a proper internal environment variable to ensure we don't fall
# into an infinite loop, continuously re-executing ourselves. # into an infinite loop, continuously re-executing ourselves.
...@@ -152,20 +132,22 @@ esac ...@@ -152,20 +132,22 @@ esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail # Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'. # out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255 exit 255
fi fi
# We don't want this to propagate to other subprocesses. # We don't want this to propagate to other subprocesses.
{ _as_can_reexec=; unset _as_can_reexec;} { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then if test "x$CONFIG_SHELL" = x; then
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : as_bourne_compatible="as_nop=:
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
emulate sh emulate sh
NULLCMD=: NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
# is contrary to our usage. Disable this feature. # is contrary to our usage. Disable this feature.
alias -g '\${1+\"\$@\"}'='\"\$@\"' alias -g '\${1+\"\$@\"}'='\"\$@\"'
setopt NO_GLOB_SUBST setopt NO_GLOB_SUBST
else else \$as_nop
case \`(set -o) 2>/dev/null\` in #( case \`(set -o) 2>/dev/null\` in #(
*posix*) : *posix*) :
set -o posix ;; #( set -o posix ;; #(
...@@ -185,41 +167,52 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } ...@@ -185,41 +167,52 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 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_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : if ( set x; as_fn_ret_success y && test x = \"\$1\" )
then :
else else \$as_nop
exitcode=1; echo positional parameters were not saved. exitcode=1; echo positional parameters were not saved.
fi fi
test x\$exitcode = x0 || exit 1 test x\$exitcode = x0 || exit 1
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || exit 1
test -x / || exit 1" test -x / || exit 1"
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_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 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'\" && 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 \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
if (eval "$as_required") 2>/dev/null; then : if (eval "$as_required") 2>/dev/null
then :
as_have_required=yes as_have_required=yes
else else $as_nop
as_have_required=no as_have_required=no
fi fi
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :
else else $as_nop
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do do
IFS=$as_save_IFS IFS=$as_save_IFS
test -z "$as_dir" && as_dir=. case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
as_found=: as_found=:
case $as_dir in #( case $as_dir in #(
/*) /*)
for as_base in sh bash ksh sh5; do for as_base in sh bash ksh sh5; do
# Try only shells that exist, to save several forks. # Try only shells that exist, to save several forks.
as_shell=$as_dir/$as_base as_shell=$as_dir$as_base
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 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 : as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
CONFIG_SHELL=$as_shell as_have_required=yes 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 : if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
break 2 break 2
fi fi
fi fi
...@@ -227,14 +220,21 @@ fi ...@@ -227,14 +220,21 @@ fi
esac esac
as_found=false as_found=false
done 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 IFS=$as_save_IFS
if $as_found
then :
else $as_nop
if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
CONFIG_SHELL=$SHELL as_have_required=yes
fi
fi
if test "x$CONFIG_SHELL" != x; then :
if test "x$CONFIG_SHELL" != x
then :
export CONFIG_SHELL export CONFIG_SHELL
# We cannot yet assume a decent shell, so we have to provide a # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also # neutralization value for shells without unset; and this also
...@@ -252,18 +252,19 @@ esac ...@@ -252,18 +252,19 @@ esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail # Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'. # out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255 exit 255
fi fi
if test x$as_have_required = xno; then : if test x$as_have_required = xno
$as_echo "$0: This script requires a shell more modern than all" then :
$as_echo "$0: the shells that I found on your system." printf "%s\n" "$0: This script requires a shell more modern than all"
if test x${ZSH_VERSION+set} = xset ; then printf "%s\n" "$0: the shells that I found on your system."
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" if test ${ZSH_VERSION+y} ; then
$as_echo "$0: be upgraded to zsh 4.3.4 or later." printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
else else
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
$0: including any error possibly output before this $0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run $0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one." $0: the script under such a shell if you do have one."
...@@ -290,6 +291,7 @@ as_fn_unset () ...@@ -290,6 +291,7 @@ as_fn_unset ()
} }
as_unset=as_fn_unset as_unset=as_fn_unset
# as_fn_set_status STATUS # as_fn_set_status STATUS
# ----------------------- # -----------------------
# Set $? to STATUS, without forking. # Set $? to STATUS, without forking.
...@@ -307,6 +309,14 @@ as_fn_exit () ...@@ -307,6 +309,14 @@ as_fn_exit ()
as_fn_set_status $1 as_fn_set_status $1
exit $1 exit $1
} # as_fn_exit } # as_fn_exit
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
return $?
}
as_nop=as_fn_nop
# as_fn_mkdir_p # as_fn_mkdir_p
# ------------- # -------------
...@@ -321,7 +331,7 @@ as_fn_mkdir_p () ...@@ -321,7 +331,7 @@ as_fn_mkdir_p ()
as_dirs= as_dirs=
while :; do while :; do
case $as_dir in #( case $as_dir in #(
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
*) as_qdir=$as_dir;; *) as_qdir=$as_dir;;
esac esac
as_dirs="'$as_qdir' $as_dirs" as_dirs="'$as_qdir' $as_dirs"
...@@ -330,7 +340,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ...@@ -330,7 +340,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" | printf "%s\n" X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/ s//\1/
q q
...@@ -369,12 +379,13 @@ as_fn_executable_p () ...@@ -369,12 +379,13 @@ as_fn_executable_p ()
# advantage of any shell optimizations that allow amortized linear growth over # advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive # repeated appends, instead of the typical quadratic growth present in naive
# implementations. # implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
eval 'as_fn_append () eval 'as_fn_append ()
{ {
eval $1+=\$2 eval $1+=\$2
}' }'
else else $as_nop
as_fn_append () as_fn_append ()
{ {
eval $1=\$$1\$2 eval $1=\$$1\$2
...@@ -386,18 +397,27 @@ fi # as_fn_append ...@@ -386,18 +397,27 @@ fi # as_fn_append
# Perform arithmetic evaluation on the ARGs, and store the result in the # 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 # global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr. # must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
eval 'as_fn_arith () eval 'as_fn_arith ()
{ {
as_val=$(( $* )) as_val=$(( $* ))
}' }'
else else $as_nop
as_fn_arith () as_fn_arith ()
{ {
as_val=`expr "$@" || test $? -eq 1` as_val=`expr "$@" || test $? -eq 1`
} }
fi # as_fn_arith fi # as_fn_arith
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
return $?
}
as_nop=as_fn_nop
# as_fn_error STATUS ERROR [LINENO LOG_FD] # as_fn_error STATUS ERROR [LINENO LOG_FD]
# ---------------------------------------- # ----------------------------------------
...@@ -409,9 +429,9 @@ as_fn_error () ...@@ -409,9 +429,9 @@ as_fn_error ()
as_status=$1; test $as_status -eq 0 && as_status=1 as_status=$1; test $as_status -eq 0 && as_status=1
if test "$4"; then if test "$4"; then
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fi fi
$as_echo "$as_me: error: $2" >&2 printf "%s\n" "$as_me: error: $2" >&2
as_fn_exit $as_status as_fn_exit $as_status
} # as_fn_error } # as_fn_error
...@@ -438,7 +458,7 @@ as_me=`$as_basename -- "$0" || ...@@ -438,7 +458,7 @@ as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null || X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" | printf "%s\n" X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/ s//\1/
q q
...@@ -482,7 +502,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits ...@@ -482,7 +502,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
s/-\n.*// s/-\n.*//
' >$as_me.lineno && ' >$as_me.lineno &&
chmod +x "$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; } { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
# already done that, so ensure we don't try to do so again and fall # already done that, so ensure we don't try to do so again and fall
...@@ -496,6 +516,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits ...@@ -496,6 +516,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
exit exit
} }
# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T= ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #((((( case `echo -n x` in #(((((
-n*) -n*)
...@@ -509,6 +533,13 @@ case `echo -n x` in #((((( ...@@ -509,6 +533,13 @@ case `echo -n x` in #(((((
ECHO_N='-n';; ECHO_N='-n';;
esac esac
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n. New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'
rm -f conf$$ conf$$.exe conf$$.file rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file rm -f conf$$.dir/conf$$.file
...@@ -700,8 +731,6 @@ do ...@@ -700,8 +731,6 @@ do
*) ac_optarg=yes ;; *) ac_optarg=yes ;;
esac esac
# Accept the important Cygnus configure options, so we can diagnose typos.
case $ac_dashdash$ac_option in case $ac_dashdash$ac_option in
--) --)
ac_dashdash=yes ;; ac_dashdash=yes ;;
...@@ -742,9 +771,9 @@ do ...@@ -742,9 +771,9 @@ do
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names. # Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid feature name: $ac_useropt" as_fn_error $? "invalid feature name: \`$ac_useropt'"
ac_useropt_orig=$ac_useropt ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in case $ac_user_opts in
*" *"
"enable_$ac_useropt" "enable_$ac_useropt"
...@@ -768,9 +797,9 @@ do ...@@ -768,9 +797,9 @@ do
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names. # Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid feature name: $ac_useropt" as_fn_error $? "invalid feature name: \`$ac_useropt'"
ac_useropt_orig=$ac_useropt ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in case $ac_user_opts in
*" *"
"enable_$ac_useropt" "enable_$ac_useropt"
...@@ -981,9 +1010,9 @@ do ...@@ -981,9 +1010,9 @@ do
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names. # Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid package name: $ac_useropt" as_fn_error $? "invalid package name: \`$ac_useropt'"
ac_useropt_orig=$ac_useropt ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in case $ac_user_opts in
*" *"
"with_$ac_useropt" "with_$ac_useropt"
...@@ -997,9 +1026,9 @@ do ...@@ -997,9 +1026,9 @@ do
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names. # Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid package name: $ac_useropt" as_fn_error $? "invalid package name: \`$ac_useropt'"
ac_useropt_orig=$ac_useropt ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in case $ac_user_opts in
*" *"
"with_$ac_useropt" "with_$ac_useropt"
...@@ -1043,9 +1072,9 @@ Try \`$0 --help' for more information" ...@@ -1043,9 +1072,9 @@ Try \`$0 --help' for more information"
*) *)
# FIXME: should be removed in autoconf 3.0. # FIXME: should be removed in autoconf 3.0.
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
;; ;;
...@@ -1061,7 +1090,7 @@ if test -n "$ac_unrecognized_opts"; then ...@@ -1061,7 +1090,7 @@ if test -n "$ac_unrecognized_opts"; then
case $enable_option_checking in case $enable_option_checking in
no) ;; no) ;;
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
esac esac
fi fi
...@@ -1125,7 +1154,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ...@@ -1125,7 +1154,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \
X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(//\)$' \| \
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" | printf "%s\n" X"$as_myself" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/ s//\1/
q q
...@@ -1264,9 +1293,9 @@ if test "$ac_init_help" = "recursive"; then ...@@ -1264,9 +1293,9 @@ if test "$ac_init_help" = "recursive"; then
case "$ac_dir" in case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) *)
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
# A ".." for each directory in $ac_dir_suffix. # A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
case $ac_top_builddir_sub in case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
...@@ -1294,7 +1323,8 @@ esac ...@@ -1294,7 +1323,8 @@ esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cd "$ac_dir" || { ac_status=$?; continue; } cd "$ac_dir" || { ac_status=$?; continue; }
# Check for guested configure. # Check for configure.gnu first; this name is used for a wrapper for
# Metaconfig's "Configure" on case-insensitive file systems.
if test -f "$ac_srcdir/configure.gnu"; then if test -f "$ac_srcdir/configure.gnu"; then
echo && echo &&
$SHELL "$ac_srcdir/configure.gnu" --help=recursive $SHELL "$ac_srcdir/configure.gnu" --help=recursive
...@@ -1302,7 +1332,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix ...@@ -1302,7 +1332,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
echo && echo &&
$SHELL "$ac_srcdir/configure" --help=recursive $SHELL "$ac_srcdir/configure" --help=recursive
else else
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi || ac_status=$? fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; } cd "$ac_pwd" || { ac_status=$?; break; }
done done
...@@ -1312,9 +1342,9 @@ test -n "$ac_init_help" && exit $ac_status ...@@ -1312,9 +1342,9 @@ test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
lightgbm configure 3.3.3.99 lightgbm configure 3.3.3.99
generated by GNU Autoconf 2.69 generated by GNU Autoconf 2.71
Copyright (C) 2012 Free Software Foundation, Inc. Copyright (C) 2021 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it. gives unlimited permission to copy, distribute and modify it.
_ACEOF _ACEOF
...@@ -1324,14 +1354,34 @@ fi ...@@ -1324,14 +1354,34 @@ fi
## ------------------------ ## ## ------------------------ ##
## Autoconf initialization. ## ## Autoconf initialization. ##
## ------------------------ ## ## ------------------------ ##
ac_configure_args_raw=
for ac_arg
do
case $ac_arg in
*\'*)
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
as_fn_append ac_configure_args_raw " '$ac_arg'"
done
case $ac_configure_args_raw in
*$as_nl*)
ac_safe_unquote= ;;
*)
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
ac_unsafe_a="$ac_unsafe_z#~"
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac
cat >config.log <<_ACEOF cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by lightgbm $as_me 3.3.3.99, which was It was created by lightgbm $as_me 3.3.3.99, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.71. Invocation command line was
$ $0 $@ $ $0$ac_configure_args_raw
_ACEOF _ACEOF
exec 5>>config.log exec 5>>config.log
...@@ -1364,8 +1414,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ...@@ -1364,8 +1414,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH for as_dir in $PATH
do do
IFS=$as_save_IFS IFS=$as_save_IFS
test -z "$as_dir" && as_dir=. case $as_dir in #(((
$as_echo "PATH: $as_dir" '') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
printf "%s\n" "PATH: $as_dir"
done done
IFS=$as_save_IFS IFS=$as_save_IFS
...@@ -1400,7 +1454,7 @@ do ...@@ -1400,7 +1454,7 @@ do
| -silent | --silent | --silen | --sile | --sil) | -silent | --silent | --silen | --sile | --sil)
continue ;; continue ;;
*\'*) *\'*)
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac esac
case $ac_pass in case $ac_pass in
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
...@@ -1435,11 +1489,13 @@ done ...@@ -1435,11 +1489,13 @@ done
# WARNING: Use '\'' to represent an apostrophe within the trap. # 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. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$? trap 'exit_status=$?
# Sanitize IFS.
IFS=" "" $as_nl"
# Save into config.log some information that might help in debugging. # Save into config.log some information that might help in debugging.
{ {
echo echo
$as_echo "## ---------------- ## printf "%s\n" "## ---------------- ##
## Cache variables. ## ## Cache variables. ##
## ---------------- ##" ## ---------------- ##"
echo echo
...@@ -1450,8 +1506,8 @@ trap 'exit_status=$? ...@@ -1450,8 +1506,8 @@ trap 'exit_status=$?
case $ac_val in #( case $ac_val in #(
*${as_nl}*) *${as_nl}*)
case $ac_var in #( case $ac_var in #(
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 *_cv_*) { printf "%s\n" "$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;} ;; printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
esac esac
case $ac_var in #( case $ac_var in #(
_ | IFS | as_nl) ;; #( _ | IFS | as_nl) ;; #(
...@@ -1475,7 +1531,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ...@@ -1475,7 +1531,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
) )
echo echo
$as_echo "## ----------------- ## printf "%s\n" "## ----------------- ##
## Output variables. ## ## Output variables. ##
## ----------------- ##" ## ----------------- ##"
echo echo
...@@ -1483,14 +1539,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ...@@ -1483,14 +1539,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
do do
eval ac_val=\$$ac_var eval ac_val=\$$ac_var
case $ac_val in case $ac_val in
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac esac
$as_echo "$ac_var='\''$ac_val'\''" printf "%s\n" "$ac_var='\''$ac_val'\''"
done | sort done | sort
echo echo
if test -n "$ac_subst_files"; then if test -n "$ac_subst_files"; then
$as_echo "## ------------------- ## printf "%s\n" "## ------------------- ##
## File substitutions. ## ## File substitutions. ##
## ------------------- ##" ## ------------------- ##"
echo echo
...@@ -1498,15 +1554,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ...@@ -1498,15 +1554,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
do do
eval ac_val=\$$ac_var eval ac_val=\$$ac_var
case $ac_val in case $ac_val in
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac esac
$as_echo "$ac_var='\''$ac_val'\''" printf "%s\n" "$ac_var='\''$ac_val'\''"
done | sort done | sort
echo echo
fi fi
if test -s confdefs.h; then if test -s confdefs.h; then
$as_echo "## ----------- ## printf "%s\n" "## ----------- ##
## confdefs.h. ## ## confdefs.h. ##
## ----------- ##" ## ----------- ##"
echo echo
...@@ -1514,8 +1570,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ...@@ -1514,8 +1570,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
echo echo
fi fi
test "$ac_signal" != 0 && test "$ac_signal" != 0 &&
$as_echo "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: caught signal $ac_signal"
$as_echo "$as_me: exit $exit_status" printf "%s\n" "$as_me: exit $exit_status"
} >&5 } >&5
rm -f core *.core core.conftest.* && rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
...@@ -1529,63 +1585,48 @@ ac_signal=0 ...@@ -1529,63 +1585,48 @@ ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can exceed. # confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h rm -f -r conftest* confdefs.h
$as_echo "/* confdefs.h */" > confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h
# Predefined preprocessor variables. # Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
cat >>confdefs.h <<_ACEOF printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
cat >>confdefs.h <<_ACEOF printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
cat >>confdefs.h <<_ACEOF printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
cat >>confdefs.h <<_ACEOF printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF
# Let the site file select an alternate cache file if it wants to. # Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones. # Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then if test -n "$CONFIG_SITE"; then
# We do not want a PATH search for config.site. ac_site_files="$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 elif test "x$prefix" != xNONE; then
ac_site_file1=$prefix/share/config.site ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
ac_site_file2=$prefix/etc/config.site
else else
ac_site_file1=$ac_default_prefix/share/config.site ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
ac_site_file2=$ac_default_prefix/etc/config.site
fi fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
for ac_site_file in $ac_site_files
do do
test "x$ac_site_file" = xNONE && continue case $ac_site_file in #(
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;} *) :
ac_site_file=./$ac_site_file ;;
esac
if test -f "$ac_site_file" && test -r "$ac_site_file"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5 sed 's/^/| /' "$ac_site_file" >&5
. "$ac_site_file" \ . "$ac_site_file" \
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; } See \`config.log' for more details" "$LINENO" 5; }
fi fi
...@@ -1595,16 +1636,16 @@ if test -r "$cache_file"; then ...@@ -1595,16 +1636,16 @@ if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special files # 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. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
if test /dev/null != "$cache_file" && test -f "$cache_file"; then if test /dev/null != "$cache_file" && test -f "$cache_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;} printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
case $cache_file in case $cache_file in
[\\/]* | ?:[\\/]* ) . "$cache_file";; [\\/]* | ?:[\\/]* ) . "$cache_file";;
*) . "./$cache_file";; *) . "./$cache_file";;
esac esac
fi fi
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;} printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
>$cache_file >$cache_file
fi fi
...@@ -1618,12 +1659,12 @@ for ac_var in $ac_precious_vars; do ...@@ -1618,12 +1659,12 @@ for ac_var in $ac_precious_vars; do
eval ac_new_val=\$ac_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value
case $ac_old_set,$ac_new_set in case $ac_old_set,$ac_new_set in
set,) set,)
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 { printf "%s\n" "$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;} printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;; ac_cache_corrupted=: ;;
,set) ,set)
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 { printf "%s\n" "$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;} printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;; ac_cache_corrupted=: ;;
,);; ,);;
*) *)
...@@ -1632,24 +1673,24 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ...@@ -1632,24 +1673,24 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_old_val_w=`echo x $ac_old_val` ac_old_val_w=`echo x $ac_old_val`
ac_new_val_w=`echo x $ac_new_val` ac_new_val_w=`echo x $ac_new_val`
if test "$ac_old_val_w" != "$ac_new_val_w"; then 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 { printf "%s\n" "$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;} printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac_cache_corrupted=: ac_cache_corrupted=:
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 { printf "%s\n" "$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;} printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
eval $ac_var=\$ac_old_val eval $ac_var=\$ac_old_val
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
fi;; fi;;
esac esac
# Pass precious variables to config.status. # Pass precious variables to config.status.
if test "$ac_new_set" = set; then if test "$ac_new_set" = set; then
case $ac_new_val in case $ac_new_val in
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;; *) ac_arg=$ac_var=$ac_new_val ;;
esac esac
case " $ac_configure_args " in case " $ac_configure_args " in
...@@ -1659,11 +1700,12 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} ...@@ -1659,11 +1700,12 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
fi fi
done done
if $ac_cache_corrupted; then if $ac_cache_corrupted; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 { printf "%s\n" "$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;} printf "%s\n" "$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 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
and start over" "$LINENO" 5
fi fi
## -------------------- ## ## -------------------- ##
## Main body of script. ## ## Main body of script. ##
...@@ -1681,10 +1723,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -1681,10 +1723,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# find compiler and flags # # find compiler and flags #
########################### ###########################
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of R" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of R" >&5
$as_echo_n "checking location of R... " >&6; } printf %s "checking location of R... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${R_HOME}" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${R_HOME}" >&5
$as_echo "${R_HOME}" >&6; } printf "%s\n" "${R_HOME}" >&6; }
# set up CPP flags # set up CPP flags
# find the compiler and compiler flags used by R. # find the compiler and compiler flags used by R.
...@@ -1719,8 +1761,8 @@ LGB_CPPFLAGS="${LGB_CPPFLAGS} -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE" ...@@ -1719,8 +1761,8 @@ LGB_CPPFLAGS="${LGB_CPPFLAGS} -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE"
# MM_PREFETCH # # MM_PREFETCH #
############### ###############
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MM_PREFETCH works" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MM_PREFETCH works" >&5
$as_echo_n "checking whether MM_PREFETCH works... " >&6; } printf %s "checking whether MM_PREFETCH works... " >&6; }
ac_mmprefetch=no ac_mmprefetch=no
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
...@@ -1729,7 +1771,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ...@@ -1729,7 +1771,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#include <xmmintrin.h> #include <xmmintrin.h>
int int
main () main (void)
{ {
int a = 0; int a = 0;
...@@ -1744,8 +1786,8 @@ main () ...@@ -1744,8 +1786,8 @@ main ()
_ACEOF _ACEOF
${CXX} ${CPPFLAGS} ${CXXFLAGS} -o conftest conftest.cpp 2>/dev/null && ./conftest && ac_mmprefetch=yes ${CXX} ${CPPFLAGS} ${CXXFLAGS} -o conftest conftest.cpp 2>/dev/null && ./conftest && ac_mmprefetch=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_mmprefetch}" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_mmprefetch}" >&5
$as_echo "${ac_mmprefetch}" >&6; } printf "%s\n" "${ac_mmprefetch}" >&6; }
if test "${ac_mmprefetch}" = yes; then if test "${ac_mmprefetch}" = yes; then
LGB_CPPFLAGS+=" -DMM_PREFETCH=1" LGB_CPPFLAGS+=" -DMM_PREFETCH=1"
fi fi
...@@ -1754,8 +1796,8 @@ fi ...@@ -1754,8 +1796,8 @@ fi
# MM_ALLOC # # MM_ALLOC #
############ ############
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MM_MALLOC works" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MM_MALLOC works" >&5
$as_echo_n "checking whether MM_MALLOC works... " >&6; } printf %s "checking whether MM_MALLOC works... " >&6; }
ac_mm_malloc=no ac_mm_malloc=no
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
...@@ -1764,7 +1806,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ...@@ -1764,7 +1806,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#include <mm_malloc.h> #include <mm_malloc.h>
int int
main () main (void)
{ {
char *a = (char*)_mm_malloc(8, 16); char *a = (char*)_mm_malloc(8, 16);
...@@ -1779,8 +1821,8 @@ main () ...@@ -1779,8 +1821,8 @@ main ()
_ACEOF _ACEOF
${CXX} ${CPPFLAGS} ${CXXFLAGS} -o conftest conftest.cpp 2>/dev/null && ./conftest && ac_mm_malloc=yes ${CXX} ${CPPFLAGS} ${CXXFLAGS} -o conftest conftest.cpp 2>/dev/null && ./conftest && ac_mm_malloc=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_mm_malloc}" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_mm_malloc}" >&5
$as_echo "${ac_mm_malloc}" >&6; } printf "%s\n" "${ac_mm_malloc}" >&6; }
if test "${ac_mm_malloc}" = yes; then if test "${ac_mm_malloc}" = yes; then
LGB_CPPFLAGS+=" -DMM_MALLOC=1" LGB_CPPFLAGS+=" -DMM_MALLOC=1"
fi fi
...@@ -1810,11 +1852,11 @@ then ...@@ -1810,11 +1852,11 @@ then
HOMEBREW_LIBOMP_PREFIX="" HOMEBREW_LIBOMP_PREFIX=""
if command -v brew &> /dev/null; then if command -v brew &> /dev/null; then
ac_brew_openmp=no ac_brew_openmp=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenMP was installed via Homebrew" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenMP was installed via Homebrew" >&5
$as_echo_n "checking whether OpenMP was installed via Homebrew... " >&6; } printf %s "checking whether OpenMP was installed via Homebrew... " >&6; }
brew --prefix libomp &>/dev/null && ac_brew_openmp=yes brew --prefix libomp &>/dev/null && ac_brew_openmp=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_brew_openmp}" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_brew_openmp}" >&5
$as_echo "${ac_brew_openmp}" >&6; } printf "%s\n" "${ac_brew_openmp}" >&6; }
if test "${ac_brew_openmp}" = yes; then if test "${ac_brew_openmp}" = yes; then
HOMEBREW_LIBOMP_PREFIX=`brew --prefix libomp` HOMEBREW_LIBOMP_PREFIX=`brew --prefix libomp`
OPENMP_CXXFLAGS="${OPENMP_CXXFLAGS} -I${HOMEBREW_LIBOMP_PREFIX}/include" OPENMP_CXXFLAGS="${OPENMP_CXXFLAGS} -I${HOMEBREW_LIBOMP_PREFIX}/include"
...@@ -1822,8 +1864,8 @@ $as_echo "${ac_brew_openmp}" >&6; } ...@@ -1822,8 +1864,8 @@ $as_echo "${ac_brew_openmp}" >&6; }
fi fi
fi fi
ac_pkg_openmp=no ac_pkg_openmp=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenMP will work in a package" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenMP will work in a package" >&5
$as_echo_n "checking whether OpenMP will work in a package... " >&6; } printf %s "checking whether OpenMP will work in a package... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
...@@ -1831,7 +1873,7 @@ $as_echo_n "checking whether OpenMP will work in a package... " >&6; } ...@@ -1831,7 +1873,7 @@ $as_echo_n "checking whether OpenMP will work in a package... " >&6; }
#include <omp.h> #include <omp.h>
int int
main () main (void)
{ {
return (omp_get_max_threads() <= 1); return (omp_get_max_threads() <= 1);
...@@ -1855,8 +1897,8 @@ _ACEOF ...@@ -1855,8 +1897,8 @@ _ACEOF
${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} ${OPENMP_CXXFLAGS} ${OPENMP_LIB} -o conftest conftest.cpp 2>/dev/null && ./conftest && ac_pkg_openmp=yes ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} ${OPENMP_CXXFLAGS} ${OPENMP_LIB} -o conftest conftest.cpp 2>/dev/null && ./conftest && ac_pkg_openmp=yes
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_pkg_openmp}" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_pkg_openmp}" >&5
$as_echo "${ac_pkg_openmp}" >&6; } printf "%s\n" "${ac_pkg_openmp}" >&6; }
if test "${ac_pkg_openmp}" = no; then if test "${ac_pkg_openmp}" = no; then
OPENMP_CXXFLAGS='' OPENMP_CXXFLAGS=''
OPENMP_LIB='' OPENMP_LIB=''
...@@ -1904,8 +1946,8 @@ _ACEOF ...@@ -1904,8 +1946,8 @@ _ACEOF
case $ac_val in #( case $ac_val in #(
*${as_nl}*) *${as_nl}*)
case $ac_var in #( case $ac_var in #(
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 *_cv_*) { printf "%s\n" "$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;} ;; printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
esac esac
case $ac_var in #( case $ac_var in #(
_ | IFS | as_nl) ;; #( _ | IFS | as_nl) ;; #(
...@@ -1935,15 +1977,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ...@@ -1935,15 +1977,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
/^ac_cv_env_/b end /^ac_cv_env_/b end
t clear t clear
:clear :clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
t end t end
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
:end' >>confcache :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
if test -w "$cache_file"; then if test -w "$cache_file"; then
if test "x$cache_file" != "x/dev/null"; then if test "x$cache_file" != "x/dev/null"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;} printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
if test ! -f "$cache_file" || test -h "$cache_file"; then if test ! -f "$cache_file" || test -h "$cache_file"; then
cat confcache >"$cache_file" cat confcache >"$cache_file"
else else
...@@ -1957,8 +1999,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;} ...@@ -1957,8 +1999,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;}
fi fi
fi fi
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
fi fi
fi fi
rm -f confcache rm -f confcache
...@@ -2011,7 +2053,7 @@ U= ...@@ -2011,7 +2053,7 @@ U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed. # 1. Remove the extension, and $U if already installed.
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
# will be set to the directory where LIBOBJS objects are built. # will be set to the directory where LIBOBJS objects are built.
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
...@@ -2027,8 +2069,8 @@ LTLIBOBJS=$ac_ltlibobjs ...@@ -2027,8 +2069,8 @@ LTLIBOBJS=$ac_ltlibobjs
ac_write_fail=0 ac_write_fail=0
ac_clean_files_save=$ac_clean_files ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS" ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0 as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL #! $SHELL
...@@ -2051,14 +2093,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ...@@ -2051,14 +2093,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
# Be more Bourne compatible # Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
emulate sh emulate sh
NULLCMD=: NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature. # is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"' alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST setopt NO_GLOB_SUBST
else else $as_nop
case `(set -o) 2>/dev/null` in #( case `(set -o) 2>/dev/null` in #(
*posix*) : *posix*) :
set -o posix ;; #( set -o posix ;; #(
...@@ -2068,46 +2112,46 @@ esac ...@@ -2068,46 +2112,46 @@ esac
fi fi
# Reset variables that may have inherited troublesome values from
# the environment.
# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl=' as_nl='
' '
export as_nl export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf. IFS=" "" $as_nl"
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo PS1='$ '
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo PS2='> '
# Prefer a ksh shell builtin over an external printf program on Solaris, PS4='+ '
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \ # Ensure predictable behavior from utilities with locale-dependent output.
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then LC_ALL=C
as_echo='print -r --' export LC_ALL
as_echo_n='print -rn --' LANGUAGE=C
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then export LANGUAGE
as_echo='printf %s\n'
as_echo_n='printf %s' # We cannot yet rely on "unset" to work, but we need these variables
else # to be unset--not just set to an empty or harmless value--now, to
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' # also avoids known problems related to "unset" and subshell syntax
as_echo_n='/usr/ucb/echo -n' # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
else for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' do eval test \${$as_var+y} \
as_echo_n_body='eval && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
arg=$1; done
case $arg in #(
*"$as_nl"*) # Ensure that fds 0, 1, and 2 are open.
expr "X$arg" : "X\\(.*\\)$as_nl"; if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
esac; if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
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. # The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then if ${PATH_SEPARATOR+false} :; then
PATH_SEPARATOR=: 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='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
...@@ -2116,13 +2160,6 @@ if test "${PATH_SEPARATOR+set}" != set; then ...@@ -2116,13 +2160,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
fi 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. # Find who we are. Look in the path if we contain no directory separator.
as_myself= as_myself=
case $0 in #(( case $0 in #((
...@@ -2131,8 +2168,12 @@ case $0 in #(( ...@@ -2131,8 +2168,12 @@ case $0 in #((
for as_dir in $PATH for as_dir in $PATH
do do
IFS=$as_save_IFS IFS=$as_save_IFS
test -z "$as_dir" && as_dir=. case $as_dir in #(((
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break '') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
done done
IFS=$as_save_IFS IFS=$as_save_IFS
...@@ -2144,30 +2185,10 @@ if test "x$as_myself" = x; then ...@@ -2144,30 +2185,10 @@ if test "x$as_myself" = x; then
as_myself=$0 as_myself=$0
fi fi
if test ! -f "$as_myself"; then if test ! -f "$as_myself"; then
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
exit 1 exit 1
fi fi
# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there. '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
# as_fn_error STATUS ERROR [LINENO LOG_FD] # as_fn_error STATUS ERROR [LINENO LOG_FD]
...@@ -2180,13 +2201,14 @@ as_fn_error () ...@@ -2180,13 +2201,14 @@ as_fn_error ()
as_status=$1; test $as_status -eq 0 && as_status=1 as_status=$1; test $as_status -eq 0 && as_status=1
if test "$4"; then if test "$4"; then
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fi fi
$as_echo "$as_me: error: $2" >&2 printf "%s\n" "$as_me: error: $2" >&2
as_fn_exit $as_status as_fn_exit $as_status
} # as_fn_error } # as_fn_error
# as_fn_set_status STATUS # as_fn_set_status STATUS
# ----------------------- # -----------------------
# Set $? to STATUS, without forking. # Set $? to STATUS, without forking.
...@@ -2213,18 +2235,20 @@ as_fn_unset () ...@@ -2213,18 +2235,20 @@ as_fn_unset ()
{ eval $1=; unset $1;} { eval $1=; unset $1;}
} }
as_unset=as_fn_unset as_unset=as_fn_unset
# as_fn_append VAR VALUE # as_fn_append VAR VALUE
# ---------------------- # ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take # 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 # advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive # repeated appends, instead of the typical quadratic growth present in naive
# implementations. # implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
eval 'as_fn_append () eval 'as_fn_append ()
{ {
eval $1+=\$2 eval $1+=\$2
}' }'
else else $as_nop
as_fn_append () as_fn_append ()
{ {
eval $1=\$$1\$2 eval $1=\$$1\$2
...@@ -2236,12 +2260,13 @@ fi # as_fn_append ...@@ -2236,12 +2260,13 @@ fi # as_fn_append
# Perform arithmetic evaluation on the ARGs, and store the result in the # 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 # global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr. # must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
eval 'as_fn_arith () eval 'as_fn_arith ()
{ {
as_val=$(( $* )) as_val=$(( $* ))
}' }'
else else $as_nop
as_fn_arith () as_fn_arith ()
{ {
as_val=`expr "$@" || test $? -eq 1` as_val=`expr "$@" || test $? -eq 1`
...@@ -2272,7 +2297,7 @@ as_me=`$as_basename -- "$0" || ...@@ -2272,7 +2297,7 @@ as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null || X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" | printf "%s\n" X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/ s//\1/
q q
...@@ -2294,6 +2319,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS ...@@ -2294,6 +2319,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789' as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits as_cr_alnum=$as_cr_Letters$as_cr_digits
# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T= ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #((((( case `echo -n x` in #(((((
-n*) -n*)
...@@ -2307,6 +2336,12 @@ case `echo -n x` in #((((( ...@@ -2307,6 +2336,12 @@ case `echo -n x` in #(((((
ECHO_N='-n';; ECHO_N='-n';;
esac esac
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n. New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'
rm -f conf$$ conf$$.exe conf$$.file rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file rm -f conf$$.dir/conf$$.file
...@@ -2348,7 +2383,7 @@ as_fn_mkdir_p () ...@@ -2348,7 +2383,7 @@ as_fn_mkdir_p ()
as_dirs= as_dirs=
while :; do while :; do
case $as_dir in #( case $as_dir in #(
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
*) as_qdir=$as_dir;; *) as_qdir=$as_dir;;
esac esac
as_dirs="'$as_qdir' $as_dirs" as_dirs="'$as_qdir' $as_dirs"
...@@ -2357,7 +2392,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ...@@ -2357,7 +2392,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" | printf "%s\n" X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/ s//\1/
q q
...@@ -2420,7 +2455,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ...@@ -2420,7 +2455,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by lightgbm $as_me 3.3.3.99, which was This file was extended by lightgbm $as_me 3.3.3.99, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_HEADERS = $CONFIG_HEADERS
...@@ -2469,14 +2504,16 @@ $config_files ...@@ -2469,14 +2504,16 @@ $config_files
Report bugs to the package provider." Report bugs to the package provider."
_ACEOF _ACEOF
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\ ac_cs_version="\\
lightgbm config.status 3.3.3.99 lightgbm config.status 3.3.3.99
configured by $0, generated by GNU Autoconf 2.69, configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"
Copyright (C) 2012 Free Software Foundation, Inc. Copyright (C) 2021 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it." gives unlimited permission to copy, distribute and modify it."
...@@ -2513,21 +2550,21 @@ do ...@@ -2513,21 +2550,21 @@ do
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;; ac_cs_recheck=: ;;
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
$as_echo "$ac_cs_version"; exit ;; printf "%s\n" "$ac_cs_version"; exit ;;
--config | --confi | --conf | --con | --co | --c ) --config | --confi | --conf | --con | --co | --c )
$as_echo "$ac_cs_config"; exit ;; printf "%s\n" "$ac_cs_config"; exit ;;
--debug | --debu | --deb | --de | --d | -d ) --debug | --debu | --deb | --de | --d | -d )
debug=: ;; debug=: ;;
--file | --fil | --fi | --f ) --file | --fil | --fi | --f )
$ac_shift $ac_shift
case $ac_optarg in case $ac_optarg in
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
'') as_fn_error $? "missing file argument" ;; '') as_fn_error $? "missing file argument" ;;
esac esac
as_fn_append CONFIG_FILES " '$ac_optarg'" as_fn_append CONFIG_FILES " '$ac_optarg'"
ac_need_defaults=false;; ac_need_defaults=false;;
--he | --h | --help | --hel | -h ) --he | --h | --help | --hel | -h )
$as_echo "$ac_cs_usage"; exit ;; printf "%s\n" "$ac_cs_usage"; exit ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s) | -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;; ac_cs_silent=: ;;
...@@ -2555,7 +2592,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ...@@ -2555,7 +2592,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then if \$ac_cs_recheck; then
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
shift shift
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
CONFIG_SHELL='$SHELL' CONFIG_SHELL='$SHELL'
export CONFIG_SHELL export CONFIG_SHELL
exec "\$@" exec "\$@"
...@@ -2569,7 +2606,7 @@ exec 5>>config.log ...@@ -2569,7 +2606,7 @@ exec 5>>config.log
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ## ## Running $as_me. ##
_ASBOX _ASBOX
$as_echo "$ac_log" printf "%s\n" "$ac_log"
} >&5 } >&5
_ACEOF _ACEOF
...@@ -2594,7 +2631,7 @@ done ...@@ -2594,7 +2631,7 @@ done
# We use the long form for the default assignment because of an extremely # We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3. # bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
fi fi
# Have a temporary directory for convenience. Make it in the build tree # Have a temporary directory for convenience. Make it in the build tree
...@@ -2822,7 +2859,7 @@ do ...@@ -2822,7 +2859,7 @@ do
esac || esac ||
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
esac esac
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
as_fn_append ac_file_inputs " '$ac_f'" as_fn_append ac_file_inputs " '$ac_f'"
done done
...@@ -2830,17 +2867,17 @@ do ...@@ -2830,17 +2867,17 @@ do
# use $as_me), people would be surprised to read: # use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */ # /* config.h. Generated by config.status. */
configure_input='Generated from '` configure_input='Generated from '`
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
`' by configure.' `' by configure.'
if test x"$ac_file" != x-; then if test x"$ac_file" != x-; then
configure_input="$ac_file. $configure_input" configure_input="$ac_file. $configure_input"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;} printf "%s\n" "$as_me: creating $ac_file" >&6;}
fi fi
# Neutralize special characters interpreted by sed in replacement strings. # Neutralize special characters interpreted by sed in replacement strings.
case $configure_input in #( case $configure_input in #(
*\&* | *\|* | *\\* ) *\&* | *\|* | *\\* )
ac_sed_conf_input=`$as_echo "$configure_input" | ac_sed_conf_input=`printf "%s\n" "$configure_input" |
sed 's/[\\\\&|]/\\\\&/g'`;; #( sed 's/[\\\\&|]/\\\\&/g'`;; #(
*) ac_sed_conf_input=$configure_input;; *) ac_sed_conf_input=$configure_input;;
esac esac
...@@ -2857,7 +2894,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ...@@ -2857,7 +2894,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" | printf "%s\n" X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/ s//\1/
q q
...@@ -2881,9 +2918,9 @@ $as_echo X"$ac_file" | ...@@ -2881,9 +2918,9 @@ $as_echo X"$ac_file" |
case "$ac_dir" in case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) *)
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
# A ".." for each directory in $ac_dir_suffix. # A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
case $ac_top_builddir_sub in case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
...@@ -2936,8 +2973,8 @@ ac_sed_dataroot=' ...@@ -2936,8 +2973,8 @@ ac_sed_dataroot='
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;; *datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_datarootdir_hack=' ac_datarootdir_hack='
...@@ -2979,9 +3016,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && ...@@ -2979,9 +3016,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
"$ac_tmp/out"`; test -z "$ac_out"; } && "$ac_tmp/out"`; test -z "$ac_out"; } &&
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined" >&5 which seems to be undefined. Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined" >&2;} which seems to be undefined. Please make sure it is defined" >&2;}
rm -f "$ac_tmp/stdin" rm -f "$ac_tmp/stdin"
...@@ -3028,7 +3065,8 @@ if test "$no_create" != yes; then ...@@ -3028,7 +3065,8 @@ if test "$no_create" != yes; then
$ac_cs_success || as_fn_exit 1 $ac_cs_success || as_fn_exit 1
fi fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi fi
#!/bin/bash #!/bin/bash
# recreates 'configure' from 'configure.ac' # recreates 'configure' from 'configure.ac'
# this script should run on Ubuntu 20.04 # this script should run on Ubuntu 22.04
AUTOCONF_VERSION=$(cat R-package/AUTOCONF_UBUNTU_VERSION) AUTOCONF_VERSION=$(cat R-package/AUTOCONF_UBUNTU_VERSION)
# R packages cannot have versions like 3.0.0rc1, but # R packages cannot have versions like 3.0.0rc1, but
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment