mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-27 21:44:15 +01:00
configure.ac: Workaround gtest-config not being installed.
Upstream googletest is dropping autotools support and the cmake installer does not provide gtest-config. BUG=chromium:940320 TEST=FEATURES=test emerge-lakitu google-breakpad Change-Id: Icd51ffc48b39c24eebc27cc023e74a77e592de3e Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1660893 Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
87bc402210
commit
488566d2dd
@ -1978,11 +1978,9 @@ ECHO_T = @ECHO_T@
|
|||||||
EGREP = @EGREP@
|
EGREP = @EGREP@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
GMOCK_CFLAGS = @GMOCK_CFLAGS@
|
GMOCK_CFLAGS = @GMOCK_CFLAGS@
|
||||||
GMOCK_CONFIG = @GMOCK_CONFIG@
|
|
||||||
GMOCK_LIBS = @GMOCK_LIBS@
|
GMOCK_LIBS = @GMOCK_LIBS@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
GTEST_CFLAGS = @GTEST_CFLAGS@
|
GTEST_CFLAGS = @GTEST_CFLAGS@
|
||||||
GTEST_CONFIG = @GTEST_CONFIG@
|
|
||||||
GTEST_LIBS = @GTEST_LIBS@
|
GTEST_LIBS = @GTEST_LIBS@
|
||||||
HAVE_CXX11 = @HAVE_CXX11@
|
HAVE_CXX11 = @HAVE_CXX11@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
@ -2062,7 +2060,6 @@ pdfdir = @pdfdir@
|
|||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
program_transform_name = @program_transform_name@
|
program_transform_name = @program_transform_name@
|
||||||
psdir = @psdir@
|
psdir = @psdir@
|
||||||
runstatedir = @runstatedir@
|
|
||||||
sbindir = @sbindir@
|
sbindir = @sbindir@
|
||||||
sharedstatedir = @sharedstatedir@
|
sharedstatedir = @sharedstatedir@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
|
202
configure
vendored
202
configure
vendored
@ -634,10 +634,8 @@ SELFTEST_FALSE
|
|||||||
SELFTEST_TRUE
|
SELFTEST_TRUE
|
||||||
GTEST_LIBS
|
GTEST_LIBS
|
||||||
GTEST_CFLAGS
|
GTEST_CFLAGS
|
||||||
GTEST_CONFIG
|
|
||||||
GMOCK_LIBS
|
GMOCK_LIBS
|
||||||
GMOCK_CFLAGS
|
GMOCK_CFLAGS
|
||||||
GMOCK_CONFIG
|
|
||||||
SYSTEM_TEST_LIBS_FALSE
|
SYSTEM_TEST_LIBS_FALSE
|
||||||
SYSTEM_TEST_LIBS_TRUE
|
SYSTEM_TEST_LIBS_TRUE
|
||||||
DISABLE_TOOLS_FALSE
|
DISABLE_TOOLS_FALSE
|
||||||
@ -795,10 +793,8 @@ CPP
|
|||||||
CXX
|
CXX
|
||||||
CXXFLAGS
|
CXXFLAGS
|
||||||
CCC
|
CCC
|
||||||
GMOCK_CONFIG
|
|
||||||
GMOCK_CFLAGS
|
GMOCK_CFLAGS
|
||||||
GMOCK_LIBS
|
GMOCK_LIBS
|
||||||
GTEST_CONFIG
|
|
||||||
GTEST_CFLAGS
|
GTEST_CFLAGS
|
||||||
GTEST_LIBS
|
GTEST_LIBS
|
||||||
RUST_DEMANGLE_CFLAGS
|
RUST_DEMANGLE_CFLAGS
|
||||||
@ -1464,13 +1460,9 @@ Some influential environment variables:
|
|||||||
CPP C preprocessor
|
CPP C preprocessor
|
||||||
CXX C++ compiler command
|
CXX C++ compiler command
|
||||||
CXXFLAGS C++ compiler flags
|
CXXFLAGS C++ compiler flags
|
||||||
GMOCK_CONFIG
|
|
||||||
Path to gmock-config script
|
|
||||||
GMOCK_CFLAGS
|
GMOCK_CFLAGS
|
||||||
Compiler flags for gmock
|
Compiler flags for gmock
|
||||||
GMOCK_LIBS Linker flags for gmock
|
GMOCK_LIBS Linker flags for gmock
|
||||||
GTEST_CONFIG
|
|
||||||
Path to gtest-config script
|
|
||||||
GTEST_CFLAGS
|
GTEST_CFLAGS
|
||||||
Compiler flags for gtest
|
Compiler flags for gtest
|
||||||
GTEST_LIBS Linker flags for gtest
|
GTEST_LIBS Linker flags for gtest
|
||||||
@ -7632,197 +7624,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test x$system_test_libs = xtrue; then
|
if test x$system_test_libs = xtrue; then
|
||||||
if test -n "$ac_tool_prefix"; then
|
: "${GMOCK_CFLAGS:=-pthread}"
|
||||||
# Extract the first word of "${ac_tool_prefix}gmock-config", so it can be a program name with args.
|
: "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}"
|
||||||
set dummy ${ac_tool_prefix}gmock-config; ac_word=$2
|
: "${GTEST_CFLAGS:=-pthread}"
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
: "${GTEST_LIBS:=-lgtest -pthread -lpthread}"
|
||||||
$as_echo_n "checking for $ac_word... " >&6; }
|
|
||||||
if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -n "$GMOCK_CONFIG"; then
|
|
||||||
ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
|
|
||||||
else
|
|
||||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
||||||
for as_dir in $PATH
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
||||||
ac_cv_prog_GMOCK_CONFIG="${ac_tool_prefix}gmock-config"
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
|
|
||||||
if test -n "$GMOCK_CONFIG"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
|
|
||||||
$as_echo "$GMOCK_CONFIG" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
if test -z "$ac_cv_prog_GMOCK_CONFIG"; then
|
|
||||||
ac_ct_GMOCK_CONFIG=$GMOCK_CONFIG
|
|
||||||
# Extract the first word of "gmock-config", so it can be a program name with args.
|
|
||||||
set dummy gmock-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_prog_ac_ct_GMOCK_CONFIG+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -n "$ac_ct_GMOCK_CONFIG"; then
|
|
||||||
ac_cv_prog_ac_ct_GMOCK_CONFIG="$ac_ct_GMOCK_CONFIG" # Let the user override the test.
|
|
||||||
else
|
|
||||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
||||||
for as_dir in $PATH
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
||||||
ac_cv_prog_ac_ct_GMOCK_CONFIG="gmock-config"
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
ac_ct_GMOCK_CONFIG=$ac_cv_prog_ac_ct_GMOCK_CONFIG
|
|
||||||
if test -n "$ac_ct_GMOCK_CONFIG"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GMOCK_CONFIG" >&5
|
|
||||||
$as_echo "$ac_ct_GMOCK_CONFIG" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$ac_ct_GMOCK_CONFIG" = x; then
|
|
||||||
GMOCK_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
|
|
||||||
GMOCK_CONFIG=$ac_ct_GMOCK_CONFIG
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
GMOCK_CONFIG="$ac_cv_prog_GMOCK_CONFIG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -n "$ac_tool_prefix"; then
|
|
||||||
# Extract the first word of "${ac_tool_prefix}gtest-config", so it can be a program name with args.
|
|
||||||
set dummy ${ac_tool_prefix}gtest-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_prog_GTEST_CONFIG+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -n "$GTEST_CONFIG"; then
|
|
||||||
ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
|
|
||||||
else
|
|
||||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
||||||
for as_dir in $PATH
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
||||||
ac_cv_prog_GTEST_CONFIG="${ac_tool_prefix}gtest-config"
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
|
|
||||||
if test -n "$GTEST_CONFIG"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
|
|
||||||
$as_echo "$GTEST_CONFIG" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
if test -z "$ac_cv_prog_GTEST_CONFIG"; then
|
|
||||||
ac_ct_GTEST_CONFIG=$GTEST_CONFIG
|
|
||||||
# Extract the first word of "gtest-config", so it can be a program name with args.
|
|
||||||
set dummy gtest-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_prog_ac_ct_GTEST_CONFIG+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -n "$ac_ct_GTEST_CONFIG"; then
|
|
||||||
ac_cv_prog_ac_ct_GTEST_CONFIG="$ac_ct_GTEST_CONFIG" # Let the user override the test.
|
|
||||||
else
|
|
||||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
||||||
for as_dir in $PATH
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
||||||
ac_cv_prog_ac_ct_GTEST_CONFIG="gtest-config"
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
ac_ct_GTEST_CONFIG=$ac_cv_prog_ac_ct_GTEST_CONFIG
|
|
||||||
if test -n "$ac_ct_GTEST_CONFIG"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GTEST_CONFIG" >&5
|
|
||||||
$as_echo "$ac_ct_GTEST_CONFIG" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$ac_ct_GTEST_CONFIG" = x; then
|
|
||||||
GTEST_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
|
|
||||||
GTEST_CONFIG=$ac_ct_GTEST_CONFIG
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
GTEST_CONFIG="$ac_cv_prog_GTEST_CONFIG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
GMOCK_CFLAGS=`$GMOCK_CONFIG --cppflags --cxxflags`
|
|
||||||
GMOCK_LIBS=`$GMOCK_CONFIG --ldflags --libs`
|
|
||||||
GTEST_CFLAGS=`$GTEST_CONFIG --cppflags --cxxflags`
|
|
||||||
GTEST_LIBS=`$GTEST_CONFIG --ldflags --libs`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check whether --enable-selftest was given.
|
# Check whether --enable-selftest was given.
|
||||||
|
12
configure.ac
12
configure.ac
@ -187,19 +187,15 @@ AC_ARG_ENABLE(system-test-libs,
|
|||||||
[system_test_libs=false])
|
[system_test_libs=false])
|
||||||
AM_CONDITIONAL(SYSTEM_TEST_LIBS, test x$system_test_libs = xtrue)
|
AM_CONDITIONAL(SYSTEM_TEST_LIBS, test x$system_test_libs = xtrue)
|
||||||
|
|
||||||
AC_ARG_VAR([GMOCK_CONFIG], [Path to gmock-config script])
|
|
||||||
AC_ARG_VAR([GMOCK_CFLAGS], [Compiler flags for gmock])
|
AC_ARG_VAR([GMOCK_CFLAGS], [Compiler flags for gmock])
|
||||||
AC_ARG_VAR([GMOCK_LIBS], [Linker flags for gmock])
|
AC_ARG_VAR([GMOCK_LIBS], [Linker flags for gmock])
|
||||||
AC_ARG_VAR([GTEST_CONFIG], [Path to gtest-config script])
|
|
||||||
AC_ARG_VAR([GTEST_CFLAGS], [Compiler flags for gtest])
|
AC_ARG_VAR([GTEST_CFLAGS], [Compiler flags for gtest])
|
||||||
AC_ARG_VAR([GTEST_LIBS], [Linker flags for gtest])
|
AC_ARG_VAR([GTEST_LIBS], [Linker flags for gtest])
|
||||||
if test x$system_test_libs = xtrue; then
|
if test x$system_test_libs = xtrue; then
|
||||||
AC_CHECK_TOOL([GMOCK_CONFIG], [gmock-config])
|
: "${GMOCK_CFLAGS:=-pthread}"
|
||||||
AC_CHECK_TOOL([GTEST_CONFIG], [gtest-config])
|
: "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}"
|
||||||
GMOCK_CFLAGS=`$GMOCK_CONFIG --cppflags --cxxflags`
|
: "${GTEST_CFLAGS:=-pthread}"
|
||||||
GMOCK_LIBS=`$GMOCK_CONFIG --ldflags --libs`
|
: "${GTEST_LIBS:=-lgtest -pthread -lpthread}"
|
||||||
GTEST_CFLAGS=`$GTEST_CONFIG --cppflags --cxxflags`
|
|
||||||
GTEST_LIBS=`$GTEST_CONFIG --ldflags --libs`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(selftest,
|
AC_ARG_ENABLE(selftest,
|
||||||
|
Loading…
Reference in New Issue
Block a user