diff options
author | Nathan Scott <nathans@sgi.com> | 2003-04-29 00:15:14 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2003-04-29 00:15:14 +0000 |
commit | 387c84f744b6b0f9e549e1b31030206c9d6cfbb7 (patch) | |
tree | 8a07cc3dc46012c82db0a60252634afc99a1889d /m4/package_globals.m4 | |
parent | 7df8d5496ddf319b9fdfc4be5b6d9cc649eb7ea9 (diff) | |
download | attr-387c84f744b6b0f9e549e1b31030206c9d6cfbb7.tar.gz |
Bunch of configure updates for acl/attr to allow packages to better be
kept in sync in this area.
Add an aclocal.m4 build target for top level directory.
Diffstat (limited to 'm4/package_globals.m4')
-rw-r--r-- | m4/package_globals.m4 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/m4/package_globals.m4 b/m4/package_globals.m4 new file mode 100644 index 0000000..c83dc2d --- /dev/null +++ b/m4/package_globals.m4 @@ -0,0 +1,43 @@ +# +# Generic macro, sets up all of the global packaging variables. +# The following environment variables may be set to override defaults: +# DEBUG OPTIMIZER MALLOCLIB PLATFORM DISTRIBUTION INSTALL_USER INSTALL_GROUP +# +AC_DEFUN([AC_PACKAGE_GLOBALS], + [ pkg_name="$1" + AC_SUBST(pkg_name) + + . ./VERSION + pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION} + AC_SUBST(pkg_version) + pkg_release=$PKG_BUILD + AC_SUBST(pkg_release) + + DEBUG=${DEBUG:-'-DDEBUG'} dnl -DNDEBUG + debug_build="$DEBUG" + AC_SUBST(debug_build) + + OPTIMIZER=${OPTIMIZER:-'-g'} dnl -O2 + opt_build="$OPTIMIZER" + AC_SUBST(opt_build) + + MALLOCLIB=${MALLOCLIB:-''} dnl /usr/lib/libefence.a + malloc_lib="$MALLOCLIB" + AC_SUBST(malloc_lib) + + PKG_USER=${INSTALL_USER:-'root'} + pkg_user="$PKG_USER" + AC_SUBST(pkg_user) + + PKG_GROUP=${INSTALL_GROUP:-'root'} + pkg_group="$PKG_GROUP" + AC_SUBST(pkg_group) + + pkg_distribution=`uname -s` + test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION" + AC_SUBST(pkg_distribution) + + pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'` + test -z "$PLATFORM" || pkg_platform="$PLATFORM" + AC_SUBST(pkg_platform) + ]) |