Introduced ./configure options --enable-libdir-pkgconfig
and --enable-pkgconfig-path=DIR
This commit is contained in:
parent
4b5a5658a6
commit
67ac2b9b70
53
acinclude.m4
53
acinclude.m4
@ -13,6 +13,8 @@ AC_DEFUN([TARGET_SHIZZLE],
|
|||||||
*-*-freebsd*)
|
*-*-freebsd*)
|
||||||
ARCH=freebsd
|
ARCH=freebsd
|
||||||
LIBBURN_ARCH_LIBS=-lcam
|
LIBBURN_ARCH_LIBS=-lcam
|
||||||
|
|
||||||
|
# This may later be overridden by configure --enable-libdir-pkgconfig
|
||||||
LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
|
LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -65,3 +67,54 @@ size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si
|
|||||||
AC_MSG_RESULT([$libburnia_iconv_const])
|
AC_MSG_RESULT([$libburnia_iconv_const])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl LIBBURNIA_SET_PKGCONFIG determines the install directory for the *.pc file.
|
||||||
|
dnl Important: Must be performed _after_ TARGET_SHIZZLE
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([LIBBURNIA_SET_PKGCONFIG],
|
||||||
|
[
|
||||||
|
### for testing --enable-libdir-pkgconfig on Linux
|
||||||
|
### LIBBURNIA_PKGCONFDIR="$libdir"data/pkgconfig
|
||||||
|
|
||||||
|
if test "x$LIBBURNIA_PKGCONFDIR" = "x$libdir"/pkgconfig
|
||||||
|
then
|
||||||
|
dummy=dummy
|
||||||
|
else
|
||||||
|
AC_ARG_ENABLE(libdir-pkgconfig,
|
||||||
|
[ --enable-libdir-pkgconfig Install to $libdir/pkgconfig on any OS, default=no],
|
||||||
|
, enable_libdir_pkgconfig="no")
|
||||||
|
AC_MSG_CHECKING([for --enable-libdir-pkgconfig])
|
||||||
|
if test "x$enable_libdir_pkgconfig" = xyes
|
||||||
|
then
|
||||||
|
LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT([$enable_libdir_pkgconfig])
|
||||||
|
fi
|
||||||
|
|
||||||
|
libburnia_pkgconfig_override="no"
|
||||||
|
AC_ARG_ENABLE(pkgconfig-path,
|
||||||
|
[ --enable-pkgconfig-path=DIR Absolute path of directory for libisofs-*.pc],
|
||||||
|
libburnia_pkgconfig_override="yes" , enable_pkgconfig_path="none")
|
||||||
|
AC_MSG_CHECKING([for overridden pkgconfig directory path])
|
||||||
|
if test "x$enable_pkgconfig_path" = xno
|
||||||
|
then
|
||||||
|
libburnia_pkgconfig_override="no"
|
||||||
|
fi
|
||||||
|
if test "x$enable_pkgconfig_path" = x -o "x$enable_pkgconfig_path" = xyes
|
||||||
|
then
|
||||||
|
libburnia_pkgconfig_override="invalid argument"
|
||||||
|
fi
|
||||||
|
if test "x$libburnia_pkgconfig_override" = xyes
|
||||||
|
then
|
||||||
|
LIBBURNIA_PKGCONFDIR="$enable_pkgconfig_path"
|
||||||
|
AC_MSG_RESULT([$LIBBURNIA_PKGCONFDIR])
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([$libburnia_pkgconfig_override])
|
||||||
|
fi
|
||||||
|
AC_SUBST(LIBBURNIA_PKGCONFDIR)
|
||||||
|
|
||||||
|
dnl For debugging only
|
||||||
|
### AC_MSG_RESULT([LIBBURNIA_PKGCONFDIR = $LIBBURNIA_PKGCONFDIR])
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
21
configure.ac
21
configure.ac
@ -132,14 +132,12 @@ AC_SUBST(THREAD_LIBS)
|
|||||||
|
|
||||||
TARGET_SHIZZLE
|
TARGET_SHIZZLE
|
||||||
AC_SUBST(ARCH)
|
AC_SUBST(ARCH)
|
||||||
AC_SUBST(LIBBURNIA_PKGCONFDIR)
|
|
||||||
AC_SUBST(LIBBURN_ARCH_LIBS)
|
AC_SUBST(LIBBURN_ARCH_LIBS)
|
||||||
|
|
||||||
dnl Add compiler-specific flags
|
|
||||||
|
|
||||||
dnl See if the user wants aggressive optimizations of the code
|
dnl See if the user wants aggressive optimizations of the code
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
[ --enable-debug Disable aggressive optimizations [default=yes]],
|
[ --enable-debug Disable aggressive optimizations, default=yes],
|
||||||
, enable_debug=yes)
|
, enable_debug=yes)
|
||||||
if test x$enable_debug != xyes; then
|
if test x$enable_debug != xyes; then
|
||||||
if test x$GCC = xyes; then
|
if test x$GCC = xyes; then
|
||||||
@ -156,15 +154,22 @@ fi
|
|||||||
|
|
||||||
dnl Verbose debug to make libisofs issue more debug messages
|
dnl Verbose debug to make libisofs issue more debug messages
|
||||||
AC_ARG_ENABLE(verbose-debug,
|
AC_ARG_ENABLE(verbose-debug,
|
||||||
[ --enable-verbose-debug Enable verbose debug messages [default=no]],
|
[ --enable-verbose-debug Enable verbose debug messages, default=no],
|
||||||
AC_DEFINE(LIBISOFS_VERBOSE_DEBUG, 1))
|
AC_DEFINE(LIBISOFS_VERBOSE_DEBUG, 1))
|
||||||
|
|
||||||
|
|
||||||
dnl ts A90123
|
dnl Determine target directory for libisofs-*.pc
|
||||||
|
dnl Important: Must be performed _after_ TARGET_SHIZZLE
|
||||||
|
dnl
|
||||||
|
LIBBURNIA_SET_PKGCONFIG
|
||||||
|
|
||||||
|
|
||||||
|
dnl Add compiler-specific flags
|
||||||
|
|
||||||
AC_ARG_ENABLE(libacl,
|
AC_ARG_ENABLE(libacl,
|
||||||
[ --enable-libacl Enable use of libacl by libisofs, default=yes],
|
[ --enable-libacl Enable use of libacl by libisofs, default=yes],
|
||||||
, enable_libacl=yes)
|
, enable_libacl=yes)
|
||||||
if test x$enable_libacl = xyes; then
|
if test "x$enable_libacl" = xyes; then
|
||||||
dnl Check whether there is libacl-devel and libacl-runtime.
|
dnl Check whether there is libacl-devel and libacl-runtime.
|
||||||
dnl If not, erase this macro which would enable use of acl_to_text and others
|
dnl If not, erase this macro which would enable use of acl_to_text and others
|
||||||
LIBACL_DEF="-DLibisofs_with_aaip_acL"
|
LIBACL_DEF="-DLibisofs_with_aaip_acL"
|
||||||
@ -180,7 +185,7 @@ dnl ts A90123
|
|||||||
AC_ARG_ENABLE(xattr,
|
AC_ARG_ENABLE(xattr,
|
||||||
[ --enable-xattr Enable use of xattr by libisofs, default=yes],
|
[ --enable-xattr Enable use of xattr by libisofs, default=yes],
|
||||||
, enable_xattr=yes)
|
, enable_xattr=yes)
|
||||||
if test x$enable_xattr = xyes; then
|
if test "x$enable_xattr" = xyes; then
|
||||||
dnl Check whether there is the header for Linux xattr.
|
dnl Check whether there is the header for Linux xattr.
|
||||||
dnl If not, erase this macro which would enable use of listxattr and others
|
dnl If not, erase this macro which would enable use of listxattr and others
|
||||||
XATTR_DEF="-DLibisofs_with_aaip_xattR"
|
XATTR_DEF="-DLibisofs_with_aaip_xattR"
|
||||||
@ -195,7 +200,7 @@ dnl ts A90409
|
|||||||
AC_ARG_ENABLE(zlib,
|
AC_ARG_ENABLE(zlib,
|
||||||
[ --enable-zlib Enable use of zlib by libisofs, default=yes],
|
[ --enable-zlib Enable use of zlib by libisofs, default=yes],
|
||||||
, enable_zlib=yes)
|
, enable_zlib=yes)
|
||||||
if test x$enable_zlib = xyes; then
|
if test "x$enable_zlib" = xyes; then
|
||||||
dnl Check whether there is the header for zlib.
|
dnl Check whether there is the header for zlib.
|
||||||
dnl If not, erase this macro which would enable use of compress2() and others.
|
dnl If not, erase this macro which would enable use of compress2() and others.
|
||||||
dnl The empty parameter after "compress2" causes -lz.
|
dnl The empty parameter after "compress2" causes -lz.
|
||||||
|
Loading…
Reference in New Issue
Block a user