[DVDnav-discuss] r1210 - in trunk/libdvdnav: configure.ac m4/Makefile.am
erik
subversion at mplayerhq.hu
Sat Jul 31 01:34:21 CEST 2010
Author: erik
Date: Sat Jul 31 01:34:21 2010
New Revision: 1210
Log:
Remove the special case test for uid=0
Some package tools run configure as fakeroot. This triggers code in
configure.ac that detects uid 0 to hardcode the installation path of the
m4 macros to the system aclocal macro dir. This ignores any DESTDIR the
packaging tools may have set and installation fails since it attempts to
write to a system dir without proper permissions. Patch submitted by
John Stebbins <stebbins AT jetheaddev DOT com>. Thanks!
Modified:
trunk/libdvdnav/configure.ac
trunk/libdvdnav/m4/Makefile.am
Modified: trunk/libdvdnav/configure.ac
==============================================================================
--- trunk/libdvdnav/configure.ac Sat Jul 31 01:34:19 2010 (r1209)
+++ trunk/libdvdnav/configure.ac Sat Jul 31 01:34:21 2010 (r1210)
@@ -207,26 +207,6 @@ DEBUG_CFLAGS="-g -DDEBUG $CFLAGS"
AC_SUBST(DEBUG_CFLAGS)
dnl ---------------------------------------------
-dnl Get where .m4 should be installed.
-dnl ---------------------------------------------
-case "`id`" in
- uid=0\(* )
- AC_MSG_CHECKING(for aclocal directory)
- if (aclocal --version) < /dev/null > /dev/null 2>&1; then
- ACLOCAL_DIR="`eval $ACLOCAL --print-ac-dir`"
- AC_MSG_RESULT($ACLOCAL_DIR)
- else
- ACLOCAL_DIR="/usr/local/share/aclocal"
- AC_MSG_RESULT(none - will be installed in $ACLOCAL_DIR)
- fi
- escapedprefix="`echo $prefix | sed -e 's/\\//\\\\\//g'`"
- ACLOCAL_DIR="`echo $ACLOCAL_DIR|sed -e 's/^'$escapedprefix/'\${prefix}'/`"
- AC_SUBST(ACLOCAL_DIR)
- ;;
-esac
-AM_CONDITIONAL(INSTALL_M4, test x"$ACLOCAL_DIR" != "x")
-
-dnl ---------------------------------------------
dnl Check for doxygen (dynamic documentation generator)
dnl ---------------------------------------------
AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, no)
Modified: trunk/libdvdnav/m4/Makefile.am
==============================================================================
--- trunk/libdvdnav/m4/Makefile.am Sat Jul 31 01:34:19 2010 (r1209)
+++ trunk/libdvdnav/m4/Makefile.am Sat Jul 31 01:34:21 2010 (r1210)
@@ -2,10 +2,6 @@ include $(top_srcdir)/misc/Makefile.comm
EXTRA_DIST = dvdnav.m4
-if INSTALL_M4
-m4datadir = @ACLOCAL_DIR@
-else
m4datadir = $(datadir)/aclocal
-endif
m4data_DATA = dvdnav.m4
More information about the DVDnav-discuss
mailing list