From: ellson Date: Tue, 8 Jan 2008 18:21:30 +0000 (+0000) Subject: install php bindings in php-preferred location X-Git-Tag: LAST_LIBGRAPH~32^2~4905 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f75ae293ffcc7038c68762012b03b44335afe4dd;p=graphviz install php bindings in php-preferred location --- diff --git a/configure.ac b/configure.ac index 1298b0e0c..048c0debd 100644 --- a/configure.ac +++ b/configure.ac @@ -795,6 +795,7 @@ PHP_INCLUDES="-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/Z else PHP_INCLUDES="-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM" fi +PHP_INSTALL_DIR="/usr/lib${LIBPOSTFIX}/php" PHP_LIBS= save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $PHP_INCLUDES" @@ -803,6 +804,7 @@ AC_CHECK_HEADER(zend.h,,[ PHP= ]) CPPFLAGS=$save_CPPFLAGS +AC_SUBST(PHP_INSTALL_DIR) AC_SUBST(PHP_INCLUDES) AC_SUBST(PHP_LIBS) fi diff --git a/tclpkg/gv/Makefile.am b/tclpkg/gv/Makefile.am index 6586b4309..478268398 100644 --- a/tclpkg/gv/Makefile.am +++ b/tclpkg/gv/Makefile.am @@ -111,7 +111,7 @@ $(PERL_data): gv_perl.cpp gv_perl.cpp: gv.i $(SWIG) -c++ -perl -o gv_perl.cpp $(srcdir)/gv.i -pkgphpdir = $(pkglibdir)/php +pkgphpdir = @PHP_INSTALL_DIR@ PHP_data = gv.php php_gv.h nodist_libgv_php_la_SOURCES = gv_php.cpp $(PHP_data) libgv_php_la_SOURCES = $(BASESOURCES) gv_php_init.cpp diff --git a/tclpkg/gv/demo/modgraph.php b/tclpkg/gv/demo/modgraph.php index c26653f93..2b6640e22 100755 --- a/tclpkg/gv/demo/modgraph.php +++ b/tclpkg/gv/demo/modgraph.php @@ -1,9 +1,5 @@ #!/usr/bin/php