[Mesa-dev] [PATCH 08/12] configure.ac: deprecate --with-llvm-prefix

Jan Vesely jan.vesely at rutgers.edu
Wed Oct 31 16:19:43 UTC 2018


On Wed, 2018-10-31 at 13:30 +0000, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
> 
> The option has been long superseded with LLVM_CONFIG.
> Distributions have been using it for a couple of years now.

I've been using it in my configure setup. This might be a stupid
question; is the LLVM_CONFIG env var remembered between reconfigure
(touch configure.ac; make) or do I need to provide it explicitly every
time configure is run?

Jan

> 
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  configure.ac | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index f41f60d95a7..a5863022295 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1019,9 +1019,9 @@ AC_ARG_ENABLE([llvm-shared-libs],
>  
>  AC_ARG_WITH([llvm-prefix],
>      [AS_HELP_STRING([--with-llvm-prefix],
> -        [Prefix for LLVM installations in non-standard locations])],
> -    [llvm_prefix="$withval"],
> -    [llvm_prefix=''])
> +         [DEPRECATED: Use export LLVM_CONFIG=... if needed.])],
> +   [AC_MSG_ERROR([--with-llvm-prefix is deprecated. Use export LLVM_CONFIG=... if needed.])],
> +   [])
>  
>  PKG_CHECK_MODULES([LIBELF], [libelf], [have_libelf=yes], [have_libelf=no])
>  if test "x$have_libelf" = xno; then
> @@ -1033,11 +1033,7 @@ if test "x$have_libelf" = xno; then
>  fi
>  
>  if test -z "$LLVM_CONFIG"; then
> -    if test -n "$llvm_prefix"; then
> -        AC_PATH_TOOL([LLVM_CONFIG], [llvm-config], [no], ["$llvm_prefix/bin"])
> -    else
> -        AC_PATH_TOOL([LLVM_CONFIG], [llvm-config], [no])
> -    fi
> +    AC_PATH_TOOL([LLVM_CONFIG], [llvm-config], [no])
>  fi
>  
>  llvm_add_component() {

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181031/30b7374f/attachment.sig>


More information about the mesa-dev mailing list