if test "x$BACULA" != x; then
post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
fi
-BACULA=${BACULA-Bacula}
+BACULA=${BACULA:-Bacula}
VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
DATE=`sed -n -e 's/^.*[ \t]*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
dnl By default, $datarootdir is ${prefix}/share
dnl --------------------------------------------------
AM_GNU_GETTEXT([external])
-if test x${prefix} = xNONE ; then
- if test `eval echo ${datarootdir}` = NONE/share ; then
- datarootdir=/usr/share
- fi
-fi
dnl ------------------------------------------------------------------
dnl If the user has not set --prefix, we set our default to nothing.
includedir=/usr/include
fi
+ if test `eval echo ${datarootdir}` = NONE/share ; then
+ datarootdir=/usr/share
+ fi
prefix=
fi
sysconfdir=`eval echo ${sysconfdir}`
datarootdir=`eval echo ${datarootdir}`
+docdir=`eval echo ${docdir}`
+htmldir=`eval echo ${htmldir}`
libdir=`eval echo ${libdir}`
includedir=`eval echo ${includedir}`
localedir=`eval echo ${datarootdir}/locale`
if test x$mandir = x'${prefix}/man' ; then
mandir=/usr/share/man
fi
+
+dnl -------------------------------------------------------------------------
+dnl If the user has not set --htmldir, we default to /usr/share/doc/bacula-xx.xx/html
+dnl -------------------------------------------------------------------------
+dnl z
+if test x$htmldir = x${docdir} ; then
+ htmldir=`eval echo ${docdir}bacula-${VERSION}/html`
+fi
+
+dnl -------------------------------------------------------------------------
+dnl If the user has not set --docdir, we default to /usr/share/doc/
+dnl -------------------------------------------------------------------------
+dnl z
+if test x$docdir = x'/usr/share/doc/' ; then
+ docdir=`eval echo ${docdir}bacula-${VERSION}`
+fi
+
AC_PATH_PROGS(MSGFMT, msgfmt, no)
if test "$MSGFMT" = "no"
AC_SUBST(WXCONS_CPPFLAGS)
AC_SUBST(WXCONS_LDFLAGS)
- WX_DIR=src/wx-console
+ WX_DIR="src/wx-console"
else
echo " "
echo "wx-config program not found. bwx-console disabled."
AC_TYPE_SIZE_T
AC_TYPE_PID_T
AC_TYPE_OFF_T
+AC_TYPE_INTPTR_T
+AC_TYPE_UINTPTR_T
AC_CHECK_TYPE(ino_t, unsigned long)
AC_CHECK_TYPE(dev_t, unsigned long)
AC_CHECK_TYPE(daddr_t, long)
AC_HELP_STRING([--disable-xattr], [disable xattr support @<:@default=auto@:>@]),
[
if test x$enableval = xno; then
- support_acl=no
+ support_xattr=no
fi
]
)
AC_DEFINE([HAVE_LLISTXATTR], [], [LLISTXATTR support])
AC_DEFINE([HAVE_LGETXATTR], [], [LGETXATTR support])
AC_DEFINE([HAVE_LSETXATTR], [], [LSETXATTR support])
- ], [
- AC_CHECK_FUNCS(listxattr getxattr setxattr,
- [
- have_xattr=yes
- AC_DEFINE([HAVE_LLISTXATTR], [], [LLISTXATTR support])
- AC_DEFINE([HAVE_LGETXATTR], [], [LGETXATTR support])
- AC_DEFINE([HAVE_LSETXATTR], [], [LSETXATTR support])
- ]
- )
]
)
+ #
+ # OSX specific
+ #
+ if test $have_xattr = no; then
+ AC_CHECK_FUNCS(listxattr getxattr setxattr,
+ [
+ have_xattr=yes
+ AC_DEFINE([HAVE_LLISTXATTR], [], [LLISTXATTR support])
+ AC_DEFINE([HAVE_LGETXATTR], [], [LGETXATTR support])
+ AC_DEFINE([HAVE_LSETXATTR], [], [LSETXATTR support])
+ ]
+ )
+ fi
+
+ #
+ # Solaris specific
+ #
+ if test $have_xattr = no; then
+ AC_CHECK_HEADER(sys/attr.h, [ AC_DEFINE(HAVE_SYS_ATTR_H,1,[Defines if your system have the sys/attr.h header file])] , )
+ AC_CHECK_HEADER(sys/nvpair.h, [ AC_DEFINE(HAVE_SYS_NVPAIR_H,1,[Defines if your system have the sys/nvpair.h header file])] , )
+ AC_CHECK_HEADER(attr.h, [ AC_DEFINE(HAVE_ATTR_H,1,[Defines if your system have the attr.h header file])] , )
+
+ AC_CHECK_FUNCS(openat fstatat unlinkat fchownat futimesat,
+ [
+ have_xattr=yes
+ AC_DEFINE([HAVE_OPENAT], [], [OPENAT support])
+ AC_DEFINE([HAVE_FSTATAT], [], [FSTATAT support])
+ AC_DEFINE([HAVE_UNLINKAT], [], [UNLINKAT support])
+ AC_DEFINE([HAVE_FCHOWNAT], [], [FCHOWNAT support])
+ AC_DEFINE([HAVE_FUTIMESAT], [], [FUTIMESAT support])
+ ]
+ )
+
+ if test $have_xattr = yes; then
+ AC_CHECK_LIB(nvpair, nvlist_next_nvpair,
+ [
+ FDLIBS="-lnvpair $FDLIBS"
+ ]
+ )
+ fi
+ fi
+
if test $have_xattr = yes; then
AC_DEFINE([HAVE_XATTR], [], [XATTR support])
fi
src/plugins/dir/Makefile \
src/win32/Makefile.inc \
po/Makefile.in \
+ updatedb/update_mysql_tables_9_to_10 \
+ updatedb/update_sqlite3_tables_9_to_10 \
+ updatedb/update_postgresql_tables_9_to_10 \
+ updatedb/update_sqlite_tables_9_to_10 \
updatedb/update_mysql_tables_10_to_11 \
updatedb/update_sqlite3_tables_10_to_11 \
updatedb/update_postgresql_tables_10_to_11 \
fi
cd src/qt-console
- chmod 755 install_conf_file build-depkgs-qt-console
echo "Creating bat Makefile"
$QMAKEBIN
make clean
${MAKE:-make} depend
fi
+cd src/qt-console
+chmod 755 install_conf_file build-depkgs-qt-console
+cd ${BUILD_DIR}
+
cd scripts
chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
chmod 755 dvd-handler dvd-simulator