Skip to content

Autotools: Move abs_srcdir and abs_builddir to init macro #15537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build/php.m4
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ AS_VAR_IF([CFLAGS],, [auto_cflags=1])
dnl Required programs.
PHP_PROG_AWK

abs_srcdir=$(cd $srcdir && pwd)
abs_builddir=$(pwd)

dnl Run at the end of the configuration, before creating the config.status.
AC_CONFIG_COMMANDS_PRE(
[dnl Directory for storing shared objects of extensions.
Expand Down
3 changes: 0 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ dnl ----------------------------------------------------------------------------

PHP_INIT_BUILD_SYSTEM

abs_srcdir=`(cd $srcdir; pwd)`
abs_builddir=`pwd`

dnl Because `make install` is often performed by the superuser, we create the
dnl libs subdirectory as the user who configures PHP. Otherwise, the current
dnl user will not be able to delete libs or the contents of libs.
Expand Down
3 changes: 0 additions & 3 deletions scripts/phpize.m4
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ AC_DEFUN([PHP_ALWAYS_SHARED],[

PHP_INIT_BUILD_SYSTEM

abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`

PKG_PROG_PKG_CONFIG
AC_PROG_CC([cc gcc])
PHP_DETECT_ICC
Expand Down
Loading