Blame support/support_paths.c

Packit Service 20a62b
/* Various paths that might be needed.
Packit Service 20a62b
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Service 20a62b
   This file is part of the GNU C Library.
Packit Service 20a62b
Packit Service 20a62b
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 20a62b
   modify it under the terms of the GNU Lesser General Public
Packit Service 20a62b
   License as published by the Free Software Foundation; either
Packit Service 20a62b
   version 2.1 of the License, or (at your option) any later version.
Packit Service 20a62b
Packit Service 20a62b
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 20a62b
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 20a62b
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 20a62b
   Lesser General Public License for more details.
Packit Service 20a62b
Packit Service 20a62b
   You should have received a copy of the GNU Lesser General Public
Packit Service 20a62b
   License along with the GNU C Library; if not, see
Packit Service 20a62b
   <http://www.gnu.org/licenses/>.  */
Packit Service 20a62b
Packit Service 20a62b
#include <support/support.h>
Packit Service 20a62b
#include <support/check.h>
Packit Service 20a62b
Packit Service 20a62b
/* The idea here is to make various makefile-level paths available to
Packit Service 20a62b
   support programs, as canonicalized absolute paths.  */
Packit Service 20a62b
Packit Service 20a62b
/* These point to the TOP of the source/build tree, not your (or
Packit Service 20a62b
   support's) subdirectory.  */
Packit Service 20a62b
#ifdef SRCDIR_PATH
Packit Service 20a62b
const char support_srcdir_root[] = SRCDIR_PATH;
Packit Service 20a62b
#else
Packit Service 20a62b
# error please -DSRCDIR_PATH=something in the Makefile
Packit Service 20a62b
#endif
Packit Service 20a62b
Packit Service 20a62b
#ifdef OBJDIR_PATH
Packit Service 20a62b
const char support_objdir_root[] = OBJDIR_PATH;
Packit Service 20a62b
#else
Packit Service 20a62b
# error please -DOBJDIR_PATH=something in the Makefile
Packit Service 20a62b
#endif
Packit Service 20a62b
Packit Service 20a62b
#ifdef OBJDIR_ELF_LDSO_PATH
Packit Service 20a62b
/* Corresponds to the path to the runtime linker used by the testsuite,
Packit Service 20a62b
   e.g. OBJDIR_PATH/elf/ld-linux-x86-64.so.2  */
Packit Service 20a62b
const char support_objdir_elf_ldso[] = OBJDIR_ELF_LDSO_PATH;
Packit Service 20a62b
#else
Packit Service 20a62b
# error please -DOBJDIR_ELF_LDSO_PATH=something in the Makefile
Packit Service 20a62b
#endif
Packit Service 20a62b
Packit Service 20a62b
#ifdef INSTDIR_PATH
Packit Service 20a62b
/* Corresponds to the --prefix= passed to configure.  */
Packit Service 20a62b
const char support_install_prefix[] = INSTDIR_PATH;
Packit Service 20a62b
#else
Packit Service 20a62b
# error please -DINSTDIR_PATH=something in the Makefile
Packit Service 20a62b
#endif
Packit Service 20a62b
Packit Service 20a62b
#ifdef LIBDIR_PATH
Packit Service 20a62b
/* Corresponds to the install's lib/ or lib64/ directory.  */
Packit Service 20a62b
const char support_libdir_prefix[] = LIBDIR_PATH;
Packit Service 20a62b
#else
Packit Service 20a62b
# error please -DLIBDIR_PATH=something in the Makefile
Packit Service 20a62b
#endif
Packit Service c2e47d
Packit Service c2e47d
#ifdef BINDIR_PATH
Packit Service c2e47d
/* Corresponds to the install's bin/ directory.  */
Packit Service c2e47d
const char support_bindir_prefix[] = BINDIR_PATH;
Packit Service c2e47d
#else
Packit Service c2e47d
# error please -DBINDIR_PATH=something in the Makefile
Packit Service c2e47d
#endif
Packit Service 52ab41
Packit Service 084aa0
#ifdef SBINDIR_PATH
Packit Service 084aa0
/* Corresponds to the install's bin/ directory.  */
Packit Service 084aa0
const char support_sbindir_prefix[] = SBINDIR_PATH;
Packit Service 084aa0
#else
Packit Service 084aa0
# error please -DSBINDIR_PATH=something in the Makefile
Packit Service 084aa0
#endif
Packit Service 084aa0
Packit Service 52ab41
#ifdef ROOTSBINDIR_PATH
Packit Service 52ab41
/* Corresponds to the install's sbin/ directory.  */
Packit Service 52ab41
const char support_install_rootsbindir[] = ROOTSBINDIR_PATH;
Packit Service 52ab41
#else
Packit Service 52ab41
# error please -DROOTSBINDIR_PATH=something in the Makefile
Packit Service 52ab41
#endif
Packit Service 8b0ce4
Packit Service 8b0ce4
#ifdef COMPLOCALEDIR_PATH
Packit Service 8b0ce4
/* Corresponds to the install's compiled locale directory.  */
Packit Service 8b0ce4
const char support_complocaledir_prefix[] = COMPLOCALEDIR_PATH;
Packit Service 8b0ce4
#else
Packit Service 8b0ce4
# error please -DCOMPLOCALEDIR_PATH=something in the Makefile
Packit Service 8b0ce4
#endif