Blame support/support_paths.c

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