mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
Merge pull request #803 from mixi/master
build-sys: use 'test -f' instead of AC_CHECK_FILE
This commit is contained in:
commit
4b6ac4326a
@ -1151,10 +1151,10 @@ AS_IF([test "x$enable_gnuefi" != "xno"], [
|
|||||||
have_efi_lds=no
|
have_efi_lds=no
|
||||||
AC_ARG_WITH(efi-ldsdir,
|
AC_ARG_WITH(efi-ldsdir,
|
||||||
AS_HELP_STRING([--with-efi-ldsdir=PATH], [Path to EFI lds directory]),
|
AS_HELP_STRING([--with-efi-ldsdir=PATH], [Path to EFI lds directory]),
|
||||||
[EFI_LDS_DIR="$withval" && AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds],
|
[EFI_LDS_DIR="$withval" && AS_IF([test -f "${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds"],
|
||||||
[have_efi_lds=yes])],
|
[have_efi_lds=yes])],
|
||||||
[AS_FOR([DIR], [EFI_LDS_DIR], ["${EFI_LIB_DIR}/gnuefi" "${EFI_LIB_DIR}"],
|
[AS_FOR([DIR], [EFI_LDS_DIR], ["${EFI_LIB_DIR}/gnuefi" "${EFI_LIB_DIR}"],
|
||||||
[AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds],
|
[AS_IF([test -f "${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds"],
|
||||||
[have_efi_lds=yes && break])])])
|
[have_efi_lds=yes && break])])])
|
||||||
AS_IF([test "x$have_efi_lds" = xyes],
|
AS_IF([test "x$have_efi_lds" = xyes],
|
||||||
[AC_SUBST([EFI_LDS_DIR])],
|
[AC_SUBST([EFI_LDS_DIR])],
|
||||||
|
Loading…
Reference in New Issue
Block a user