-CONFIGURE_COMMAND="'$0'"
-for arg in "$@"; do
- CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
-done
-AC_DEFINE_UNQUOTED(CONFIGURE_COMMAND,"$CONFIGURE_COMMAND",
- [Saves the original ./configure command line arguments])
-AC_SUBST(CONFIGURE_COMMAND)
-
-AM_INIT_AUTOMAKE(amanda, 2.5.0)
-AM_CONFIG_HEADER(config/config.h)
-
-AC_PREREQ(2.57) dnl Minimum Autoconf version required.
-
-if test -f "$srcdir/SNAPSHOT"; then
- cat < "$srcdir/SNAPSHOT"
-changequote(,)
- snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
-changequote([,])
- test -z "$snapdate" || VERSION="$VERSION-$snapdate"
- SNAPSHOT_STAMP=SNAPSHOT
-else
- SNAPSHOT_STAMP=
-fi
-AC_SUBST(SNAPSHOT_STAMP)
-
-if test -f config.local; then
- echo "running local script ./config.local"
- . ./config.local
-fi
-
-dnl
-dnl Set the version number of this release of Amanda from the VERSION
-dnl string, which is set in AM_INIT_AUTOMAKE.
-dnl
-changequote(,)
-VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
-VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
-VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
-VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
-changequote([,])
-
-VERSION_SUFFIX="$VERSION"
-AC_SUBST(VERSION_MAJOR)
-AC_SUBST(VERSION_MINOR)
-AC_SUBST(VERSION_PATCH)
-AC_SUBST(VERSION_COMMENT)
-AC_SUBST(VERSION_SUFFIX)
-
-dnl
-dnl runtime and compile time
-dnl
-SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
-LOCPATH=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
-)`
-SYSLOCPATH="$SYSPATH:$LOCPATH"
-LOCSYSPATH="$LOCPATH:$SYSPATH"
-
-AC_ARG_WITH(cflags,
- [ --with-cflags=CFLAGS arguments to the c compiler (-Wall, -g, etc)],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-includes option.])
- ;;
- esac
- CFLAGS="$withval"
- ])
-
-AC_ARG_WITH(includes,
- [ --with-includes=DIR site header files for readline, etc in DIR],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-includes option.])
- ;;
- esac
- INCLUDE_DIRS="$withval"
- ])
-
-if test "$INCLUDE_DIRS"; then
- for dir in $INCLUDE_DIRS; do
- if test -d "$dir"; then
- AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
- else
- AC_MSG_WARN([*** Include directory $dir does not exist.])
- fi
- done
-fi
-
-AC_ARG_WITH(libraries,
- [ --with-libraries=DIR site library directories for readline, etc in DIR],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-libraries option.])
- ;;
- esac
- LIBRARY_DIRS="$withval"
- ])
-
-if test "$LIBRARY_DIRS"; then
- for dir in $LIBRARY_DIRS; do
- if test -d "$dir"; then
- case "$target" in
- *-solaris2*,*-netbsd*)
- AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
- ;;
- esac
- AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
- else
- AC_MSG_WARN([*** Library directory $dir does not exist.])
- fi
- done
-fi
-
-AC_ARG_WITH(dumperdir,
- [ --with-dumperdir=DIR where we install the dumpers [[EPREFIX/dumper]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-dumperdir option.])
- ;;
- esac
- DUMPER_DIR="$withval"
- ], [
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- DUMPER_DIR=$exec_prefix/dumper
- ]
-)
-DUMPER_DIR=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$DUMPER_DIR"
-)`
-AC_DEFINE_UNQUOTED(DUMPER_DIR,"$DUMPER_DIR",[Directory in which dumper interfaces should be installed and searched. ])
-AC_SUBST(DUMPER_DIR)
-
-AC_ARG_WITH(configdir,
- [ --with-configdir=DIR runtime config files in DIR [[sysconfdir/amanda]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-configdir option.])
- ;;
- *) CONFIG_DIR="$withval"
- ;;
- esac
- ],
- : ${CONFIG_DIR="$sysconfdir/amanda"}
-)
-CONFIG_DIR=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$CONFIG_DIR"
-)`
-AC_DEFINE_UNQUOTED(CONFIG_DIR,"$CONFIG_DIR",
- [The directory in which configuration directories should be created. ])
-AC_SUBST(CONFIG_DIR)
-
-AC_ARG_WITH(indexdir,
- [ --with-indexdir deprecated, use indexdir in amanda.conf],
- [ AC_MSG_ERROR([*** --with-indexdir is deprecated, use indexdir in amanda.conf instead.])
- ],)
-
-AC_ARG_WITH(dbdir,
- [ --with-dbdir deprecated, use infofile in amanda.conf],
- [ AC_MSG_ERROR([*** --with-dbdir is deprecated, use infofile in amanda.conf instead.])
- ],)
-
-AC_ARG_WITH(logdir,
- [ --with-logdir deprecated, use logfile in amanda.conf],
- [ AC_MSG_ERROR([*** --with-logdir is deprecated, use logdir in amanda.conf instead.])
- ],)
-
-AC_ARG_WITH(suffixes,
- [ --with-suffixes install binaries with version string appended to name],
- USE_VERSION_SUFFIXES=$withval,
- : ${USE_VERSION_SUFFIXES=no}
-)
-case "$USE_VERSION_SUFFIXES" in
-y | ye | yes)
- AC_DEFINE(USE_VERSION_SUFFIXES, 1,
- [Define to have programs use version suffixes when calling other programs.])
-
- program_suffix="-$VERSION"
- # This is from the output of configure.in.
- if test "x$program_transform_name" = xs,x,x,; then
- program_transform_name=
- else
- # Double any \ or $. echo might interpret backslashes.
- cat <<\EOF_SED > conftestsed
-s,\\,\\\\,g; s,\$,$$,g
-EOF_SED
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- fi
- test "x$program_prefix" != xNONE &&
- program_transform_name="s,^,${program_prefix},; $program_transform_name"
- # Use a double $ so make ignores it.
- test "x$program_suffix" != xNONE &&
- program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
-
- # sed with no file args requires a program.
- test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
- # Remove empty command
- cat <<\EOF_SED > conftestsed
-s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
-EOF_SED
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- ;;
-n | no) USE_VERSION_SUFFIXES=no
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-suffixes option.])
- ;;
-esac
-AC_SUBST(USE_VERSION_SUFFIXES)
-
-case "$target" in
- *-hp-*)
- CLIENT_SCRIPTS_OPT=amhpfixdevs
- ;;
- *-sni-sysv4)
- CLIENT_SCRIPTS_OPT=amsinixfixdevs
- ;;
- *)
- CLIENT_SCRIPTS_OPT=
- ;;
-esac
-
-AC_SUBST(CLIENT_SCRIPTS_OPT)
-
-AC_ARG_WITH(client-only,
- [ --with-client-only deprecated, use --without-server],
- [ AC_MSG_ERROR([*** --with-client-only is deprecated, use --without-server instead.])
- ],)
-AC_ARG_WITH(server-only,
- [ --with-server-only deprecated, use --without-client],
- [ AC_MSG_ERROR([*** --with-server-only is deprecated, use --without-client instead.])
- ],)
-
-AC_ARG_WITH(client,
- [ --without-client do not build client stuff],
- [
- case "$withval" in
- y | ye | yes) NO_CLIENT_MODE=false;;
- n | no) NO_CLIENT_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-client option.])
- ;;
- esac
- ]
-)
-
-AC_ARG_WITH(server,
- [ --without-server do not build server stuff (set --without-restore)],
- [
- case "$withval" in
- y | ye | yes) NO_SERVER_MODE=false ;;
- n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval])
- ;;
- esac
- ]
-)
-if test "x${NO_SERVER_MODE+set}" != xset ; then
- NO_SERVER_MODE=false
-fi
-
-AC_ARG_WITH(restore,
- [ --without-restore do not build amrestore nor amidxtaped],
- [
- case "$withval" in
- y | ye | yes) NO_RESTORE_MODE=false;;
- n | no) NO_RESTORE_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-restore option.])
- ;;
- esac
- ]
-)
-if test "x${NO_RESTORE_MODE+set}" != xset ; then
- NO_RESTORE_MODE=${NO_SERVER_MODE-false}
-fi
-
-if ${NO_SERVER_MODE-false}; then
- if ${NO_RESTORE_MODE-false}; then
- dnl
- dnl --without-server and --without-restore is OK
- dnl
- true
- else
- AC_MSG_ERROR([*** --without-server requires --without-restore])
- fi
-fi
-
-AC_ARG_WITH(amrecover,
- [ --without-amrecover do not build amrecover],
- [
- case "$withval" in
- y | ye | yes)
- if ${NO_CLIENT_MODE-false}; then
- AC_MSG_ERROR([*** --without-client and --with-amrecover are incompatible])
- fi
- NO_RECOVER_MODE=false;;
- n | no) NO_RECOVER_MODE=true;;
- *)
- AC_MSG_ERROR([*** You must not supply an argument to --with-amrecover option.])
- ;;
- esac
- ]
-)
-
-AC_ARG_WITH(index-server,
- [ --with-index-server=HOST default amanda index server [[`uname -n`]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-index-server option.])
- ;;
- *) DEFAULT_SERVER="$withval"
- ;;
- esac
- ],
- : ${DEFAULT_SERVER=`uname -n`}
-)
-AC_DEFINE_UNQUOTED(DEFAULT_SERVER,"$DEFAULT_SERVER",
- [This is the default Amanda index server. ])
-AC_SUBST(DEFAULT_SERVER)
-
-AC_ARG_WITH(force-uid,
- [ --without-force-uid do not force the uid to --with-user],
- FORCE_USERID="$withval",
- : ${FORCE_USERID=yes}
-)
-case "$FORCE_USERID" in
-y | ye | yes) AC_DEFINE(FORCE_USERID, 1,
- [Define to force to another user on client machines. ])
- ;;
-n | no) :
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-force-uid option.])
-esac
-
-AC_ARG_WITH(user,
- [ --with-user=USER force execution to USER on client systems [[required]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-user option.])
- ;;
- *) CLIENT_LOGIN="$withval"
- ;;
- esac
- ]
-)
-if test "x${CLIENT_LOGIN+set}" != xset; then
- AC_MSG_ERROR([*** --with-user=USER is missing])
-fi
-AC_DEFINE_UNQUOTED(CLIENT_LOGIN,"$CLIENT_LOGIN",
- [Define as a the user to force to on client machines. ])
-AC_SUBST(CLIENT_LOGIN)
-
-AC_ARG_WITH(group,
- [ --with-group=GROUP group allowed to execute setuid-root programs [[required]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-group option.])
- ;;
- *) SETUID_GROUP="$withval"
- ;;
- esac
- ]
-)
-if test "x${SETUID_GROUP+set}" != xset; then
- AC_MSG_ERROR([*** --with-group=GROUP is missing])
-fi
-AC_SUBST(SETUID_GROUP)
-
-AC_ARG_WITH(owner,
- [ --with-owner=USER force ownership of files to USER [[default == --with-user value]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-owner option.])
- ;;
- *) BINARY_OWNER="$withval"
- ;;
- esac
- ]
-)
-if test "x${BINARY_OWNER+set}" != xset ; then
- BINARY_OWNER=$CLIENT_LOGIN
-fi
-AC_DEFINE_UNQUOTED(BINARY_OWNER,"$BINARY_OWNER",
- [Define as the user who owns installed binaries. ])
-AC_SUBST(BINARY_OWNER)
-
-AC_ARG_WITH(rundump,
- [ --with-rundump use rundump (setuid-root) to invoke dump],
- [
- case "$withval" in
- n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
- *) AC_MSG_ERROR([*** You must not supply an argument to --with-rundump option.]);;
- esac
- ]
-)
-
-AC_ARG_WITH(config,
- [ --with-config=CONFIG default configuration [[DailySet1]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-config option.])
- ;;
- *) DEFAULT_CONFIG="$withval"
- ;;
- esac
- ],
- : ${DEFAULT_CONFIG=DailySet1}
-)
-AC_DEFINE_UNQUOTED(DEFAULT_CONFIG,"$DEFAULT_CONFIG",
- [This is the default Amanda configuration. ])
-AC_SUBST(DEFAULT_CONFIG)
-
-AC_ARG_WITH(tape-server,
- [ --with-tape-server=HOST default restoring tape server is HOST [[same as --with-index-server]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-tape-server option.])
- ;;
- *) DEFAULT_TAPE_SERVER="$withval"
- ;;
- esac
- ],
- : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
-)
-AC_DEFINE_UNQUOTED(DEFAULT_TAPE_SERVER,"$DEFAULT_TAPE_SERVER",[This is the default restoring Amanda tape server. ])
-AC_SUBST(DEFAULT_TAPE_SERVER)
-
-AC_ARG_WITH(tape-device,
- [ --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-tape-device option.])
- ;;
- *) DEFAULT_TAPE_DEVICE="$withval"
- ;;
- esac
- ],
- [
- if test -z "$DEFAULT_TAPE_DEVICE"; then
- AC_MSG_CHECKING(for non-rewinding tape device)
- dnl Check for the /dev/rmt directory and use what's in there.
- dnl Otherwise look for tape devices in /dev. For the devices
- dnl in /dev/rmt, we want to use the Berkeley behavior of
- dnl reading the first record of the next tape file after 0
- dnl bytes are returned upon reading to the next tape mark,
- dnl instead of returning an error. Look for devices that have
- dnl a 'b' in their name.
- tape_dev=null:
- nr_tape_dev=null:
- if test -d /dev/rmt; then
-
- dnl See if we can find two devices, one being the norewind
- dnl version of the other. Devices in this directory are
- dnl normally a digit followed by some characters. We also
- dnl want the Berkely behavior, since Amanda needs it for
- dnl amrestore.
-
- for num in 9 8 7 6 5 4 3 2 1 0; do
- td=/dev/rmt/${num}b
- ntd=/dev/rmt/${num}bn
- if test -r $td -a -r $ntd; then
- tape_dev=$td
- nr_tape_dev=$ntd
- fi
- done
- else
- dnl Look for tape devices in /dev.
- for num in 9 8 7 6 5 4 3 2 1 0; do
- td=/dev/rst${num}
- ntd=/dev/nrst${num}
- if test -r $td -a -r $ntd; then
- tape_dev=$td
- nr_tape_dev=$ntd
- fi
- done
- fi
- DEFAULT_TAPE_DEVICE=$nr_tape_dev
- AC_MSG_RESULT($DEFAULT_TAPE_DEVICE)
- fi
- ]
-)
-
-if test -z "$DEFAULT_TAPE_DEVICE"; then
- DEFAULT_TAPE_DEVICE=/dev/null
-fi
-
-AC_DEFINE_UNQUOTED(DEFAULT_TAPE_DEVICE,"$DEFAULT_TAPE_DEVICE",[This is the default no-rewinding tape device. ])
-AC_SUBST(DEFAULT_TAPE_DEVICE)
-
-AC_ARG_WITH(ftape-raw-device,
- [ --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-ftape-rawdevice option.])
- ;;
- *) DEFAULT_RAW_TAPE_DEVICE="$withval"
- ;;
- esac
- ],
- [
- if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
- AC_MSG_CHECKING(for raw ftape device)
- dnl Look for tape devices in /dev.
- raw_tape_dev=/dev/null
- dnl Look for tape devices in /dev.
- for num in 3 2 1 0 ; do
- td=/dev/rawft${num}
- if test -r $td; then
- raw_tape_dev=$td
- fi
- done
- DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
- AC_MSG_RESULT($DEFAULT_RAW_TAPE_DEVICE)
- fi
- ]
-)
-
-if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
- DEFAULT_RAW_TAPE_DEVICE=/dev/null
-fi
-
-AC_DEFINE_UNQUOTED(DEFAULT_RAW_TAPE_DEVICE,"$DEFAULT_RAW_TAPE_DEVICE",[For Linux systems with floppy tapes:
- * QIC volume table support via raw tape device. ])
-AC_SUBST(DEFAULT_RAW_TAPE_DEVICE)
-
-AC_ARG_WITH(rew-tape,
- [ --with-rew-tape deprecated, use --with-tape-device],
- [ AC_MSG_ERROR([*** --with-rew-tape is deprecated, use --with-tape-device instead.])
- ],)
-
-AC_ARG_WITH(norew-tape,
- [ --with-norew-tape=ARG deprecated, use --with-tape-device],
- [ AC_MSG_ERROR([*** --with-norew-tape is deprecated, use --with-tape-device instead.])
- ],)
-
-AC_ARG_WITH(changer-device,
- [ --with-changer-device=ARG default tape changer device [[/dev/ch0 if it exists]]],
- [
- case "$withval" in
- "" | y | ye | yes | n | no)
- AC_MSG_ERROR([*** You must supply an argument to the --with-changer-device option.])
- ;;
- *) DEFAULT_CHANGER_DEVICE="$withval"
- ;;
- esac
- ],
- [
- if test -z "$DEFAULT_CHANGER_DEVICE" &&
- test -f /dev/ch0; then
- DEFAULT_CHANGER_DEVICE=/dev/ch0
- fi
- ]
-)
-
-if test -z "$DEFAULT_CHANGER_DEVICE"; then
- DEFAULT_CHANGER_DEVICE=/dev/null
-fi
-
-AC_DEFINE_UNQUOTED(DEFAULT_CHANGER_DEVICE,"$DEFAULT_CHANGER_DEVICE",[This is the default changer device. ])
-AC_SUBST(DEFAULT_CHANGER_DEVICE)
-
-AC_ARG_WITH(fqdn,
- [ --with-fqdn use FQDN's to backup multiple networks],
- USE_FQDN=$withval,
- : ${USE_FQDN=no}
-)
-case "$USE_FQDN" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(USE_FQDN,1,[Define for backups being done on a multiple networks and FQDNs are used. ])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-fqdn option.])
- ;;
-esac
-
-AC_ARG_WITH(broken-fsf,
- [ --with-broken-fsf only enable if tape fsf calls fail mid-file],
- HAVE_BROKEN_FSF=$withval,
- : ${HAVE_BROKEN_FSF=no}
-)
-case "$HAVE_BROKEN_FSF" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(HAVE_BROKEN_FSF,1,[Define this if issuing a fsf on a tape fails when you are not at a tape
- * mark, for instance, if amrecover gives I/O errors when skipping.
-])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-broken-fsf option.])
- ;;
-esac
-
-AC_ARG_WITH(gnutar,
- [ --with-gnutar[[=PROG]] use PROG as GNU tar executable [[default: looks for one]]],
- [
- case "$withval" in
- /*) GNUTAR="$withval";;
- y|ye|yes) :;;
- n|no) GNUTAR=;;
- *) AC_MSG_ERROR([*** You must supply a full pathname to --with-gnutar]);;
- esac
- ]
-)
-
-AC_ARG_WITH(smbclient,
- [ --with-smbclient[[=PROG]] use PROG as Samba's smbclient executable [[default: looks for one]]],
- [
- case "$withval" in
- /*) SAMBA_CLIENT="$withval";;
- y|ye|yes) :;;
- n|no) SAMBA_CLIENT=;;
- *) AC_MSG_ERROR([*** You must supply a full pathname to --with-smbclient]);;
- esac
- ]
-)
-
-AC_ARG_WITH(samba-user,
- [ --with-samba-user was deprecated],
- [ AC_MSG_ERROR([*** The samba-user option was deprecated, the username go in the amandapass])
- ]
-)
-
-AC_ARG_WITH(gnutar-listdir,
- [ --with-gnutar-listdir=DIR gnutar directory lists go in DIR [[localstatedir/amanda/gnutar-lists]]],
- [
- case "$withval" in
- n | no) unset GNUTAR_LISTDIR ;;
- y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
- /*) GNUTAR_LISTDIR="$withval" ;;
- *) AC_MSG_ERROR([*** You must supply a full pathname to --with-gnutar-listdir])
- esac
- ],
- : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
-)
-if test "$GNUTAR_LISTDIR"; then
- GNUTAR_LISTDIR=`(
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- eval echo "$GNUTAR_LISTDIR"
- )`
- AC_DEFINE_UNQUOTED(GNUTAR_LISTED_INCREMENTAL_DIR,"$GNUTAR_LISTDIR",[The directory in which GNU tar should store directory lists for incrementals. ])
- GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
-else
- GNUTAR_LISTED_INCREMENTAL_DIRX=
-fi
-AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIRX)
-
-AC_ARG_WITH(gnutar-listed-incremental,
- [ --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir],
- [ AC_MSG_ERROR([*** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead])
- ]
-)
-GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
-AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
-
-AC_ARG_WITH(bsd-security,
- [ --without-bsd-security do not use BSD rsh/rlogin style security],
- BSD_SECURITY=$withval,
- : ${BSD_SECURITY=yes}
-)
-case "$BSD_SECURITY" in
-n | no) : ;;
-y | ye | yes) AC_DEFINE(BSD_SECURITY,1,[Define to use BSD .rhosts/.amandahosts security. ])
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-bsd-security option.])
- ;;
-esac
-
-AC_ARG_WITH(amandahosts,
- [ --without-amandahosts use .rhosts instead of .amandahosts],
- USE_AMANDAHOSTS=$withval,
- : ${USE_AMANDAHOSTS=yes}
-)
-case "$USE_AMANDAHOSTS" in
-n | no) : ;;
-y | ye | yes) :
- case "$BSD_SECURITY" in
- y | ye | yes) AC_DEFINE(USE_AMANDAHOSTS,1,[Define if you want to use the .amandahosts for BSD security. ])
- ;;
- esac
- ;;
-*) AC_MSG_ERROR([*** You must not supply an argument to --with-amandahosts option.])
- ;;
-esac
-
-dnl Specify --with-dbmalloc if you desire dbmalloc to be linked in
-
-AC_ARG_WITH(dbmalloc,
- [ --with-dbmalloc=DIR Location of dbmalloc libs and headers],
- DBMALLOC="$withval",
- : ${DBMALLOC=no}
-)