3 AC_CONFIG_SRCDIR([common-src/amanda.h])
4 AC_CONFIG_AUX_DIR(config)
5 AC_CANONICAL_TARGET([])
8 CONFIGURE_COMMAND="'$0'"
10 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
12 AC_DEFINE_UNQUOTED(CONFIGURE_COMMAND,"$CONFIGURE_COMMAND",
13 [Saves the original ./configure command line arguments])
14 AC_SUBST(CONFIGURE_COMMAND)
16 AM_INIT_AUTOMAKE(amanda, 2.5.1)
17 AM_CONFIG_HEADER(config/config.h)
19 AC_PREREQ(2.57) dnl Minimum Autoconf version required.
21 if test -f "$srcdir/SNAPSHOT"; then
22 cat < "$srcdir/SNAPSHOT"
24 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
26 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
27 SNAPSHOT_STAMP=SNAPSHOT
31 AC_SUBST(SNAPSHOT_STAMP)
33 if test -f config.local; then
34 echo "running local script ./config.local"
39 dnl Set the version number of this release of Amanda from the VERSION
40 dnl string, which is set in AM_INIT_AUTOMAKE.
43 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
44 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
45 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
46 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
49 VERSION_SUFFIX="$VERSION"
50 AC_SUBST(VERSION_MAJOR)
51 AC_SUBST(VERSION_MINOR)
52 AC_SUBST(VERSION_PATCH)
53 AC_SUBST(VERSION_COMMENT)
54 AC_SUBST(VERSION_SUFFIX)
57 dnl runtime and compile time paths
59 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
61 test "x$prefix" = xNONE && prefix=$ac_default_prefix
62 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
63 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
65 SYSLOCPATH="$SYSPATH:$LOCPATH"
66 LOCSYSPATH="$LOCPATH:$SYSPATH"
69 dnl Set up compiler location, basic CFLAGS, and include locations
70 dnl and library locations before we start checking the system
71 dnl configuration in more detail...
75 [ --with-cflags=CFLAGS arguments to the c compiler (-Wall, -g, etc)],
78 "" | y | ye | yes | n | no)
79 AC_MSG_ERROR([*** You must supply an argument to the --with-cflags option.])
85 CFLAGS="-D_GNU_SOURCE $CFLAGS"
93 dnl Process tool locations for tools we need right away to configure.
95 AC_PATH_PROGS(GREP,grep,,$LOCSYSPATH)
96 if test -z "$GREP"; then
99 AC_DEFINE_UNQUOTED(GREP,"$GREP",[Define the location of the grep program. ])
100 AC_PATH_PROGS(EGREP,egrep,,$LOCSYSPATH)
102 AC_PATH_PROGS(AMLINT,lint,,/opt/SUNWspro/bin:$SYSLOCPATH)
103 if test ! -z "$AMLINT"; then
104 $AMLINT -flags | $GREP -- '-errfmt=' 2>&1 > /dev/null
105 if test $? -eq 0; then
106 AMLINTFLAGS="-n -s -u -m -x"
107 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
108 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
109 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
110 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
111 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
112 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
113 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
114 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
115 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
116 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
117 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
118 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
119 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
120 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
121 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
122 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
123 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
124 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
125 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
126 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
127 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
128 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
129 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
130 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
131 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
132 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
133 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
134 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
135 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
136 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
137 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
138 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
139 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
140 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
141 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
142 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
143 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
144 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
145 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
146 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
147 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
148 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
149 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
150 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
151 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
152 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
153 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
154 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
155 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
156 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
161 AC_PATH_PROGS(AMLINT,splint,,$SYSLOCPATH)
162 if test ! -z "$AMLINT"; then
165 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
167 AC_SUBST(AMLINTFLAGS)
169 AC_ARG_WITH(includes,
170 [ --with-includes=DIR site header files for readline, etc in DIR],
173 "" | y | ye | yes | n | no)
174 AC_MSG_ERROR([*** You must supply an argument to the --with-includes option.])
177 INCLUDE_DIRS="$withval"
180 if test "$INCLUDE_DIRS"; then
181 for dir in $INCLUDE_DIRS; do
182 if test -d "$dir"; then
183 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
185 AC_MSG_WARN([*** Include directory $dir does not exist.])
190 AC_ARG_WITH(libraries,
191 [ --with-libraries=DIR site library directories for readline, etc in DIR],
194 "" | y | ye | yes | n | no)
195 AC_MSG_ERROR([*** You must supply an argument to the --with-libraries option.])
198 LIBRARY_DIRS="$withval"
201 if test "$LIBRARY_DIRS"; then
202 for dir in $LIBRARY_DIRS; do
203 if test -d "$dir"; then
205 *-solaris2*,*-netbsd*)
206 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
209 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
211 AC_MSG_WARN([*** Library directory $dir does not exist.])
217 dnl Process configuration flags
220 AC_ARG_WITH(dumperdir,
221 [ --with-dumperdir=DIR where we install the dumpers [[EPREFIX/dumper]]],
224 "" | y | ye | yes | n | no)
225 AC_MSG_ERROR([*** You must supply an argument to the --with-dumperdir option.])
228 DUMPER_DIR="$withval"
230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
231 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
232 DUMPER_DIR=$exec_prefix/dumper
236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
237 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
238 eval echo "$DUMPER_DIR"
240 AC_DEFINE_UNQUOTED(DUMPER_DIR,"$DUMPER_DIR",[Directory in which dumper interfaces should be installed and searched. ])
243 AC_ARG_WITH(configdir,
244 [ --with-configdir=DIR runtime config files in DIR [[sysconfdir/amanda]]],
247 "" | y | ye | yes | n | no)
248 AC_MSG_ERROR([*** You must supply an argument to the --with-configdir option.])
250 *) CONFIG_DIR="$withval"
254 : ${CONFIG_DIR="$sysconfdir/amanda"}
257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
258 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
259 eval echo "$CONFIG_DIR"
261 AC_DEFINE_UNQUOTED(CONFIG_DIR,"$CONFIG_DIR",
262 [The directory in which configuration directories should be created. ])
265 AC_ARG_WITH(indexdir,
266 [ --with-indexdir deprecated, use indexdir in amanda.conf],
267 [ AC_MSG_ERROR([*** --with-indexdir is deprecated, use indexdir in amanda.conf instead.])
271 [ --with-dbdir deprecated, use infofile in amanda.conf],
272 [ AC_MSG_ERROR([*** --with-dbdir is deprecated, use infofile in amanda.conf instead.])
276 [ --with-logdir deprecated, use logfile in amanda.conf],
277 [ AC_MSG_ERROR([*** --with-logdir is deprecated, use logdir in amanda.conf instead.])
280 AC_ARG_WITH(suffixes,
281 [ --with-suffixes install binaries with version string appended to name],
282 USE_VERSION_SUFFIXES=$withval,
283 : ${USE_VERSION_SUFFIXES=no}
285 case "$USE_VERSION_SUFFIXES" in
287 AC_DEFINE(USE_VERSION_SUFFIXES, 1,
288 [Define to have programs use version suffixes when calling other programs.])
290 program_suffix="-$VERSION"
291 # This is from the output of configure.in.
292 if test "x$program_transform_name" = xs,x,x,; then
293 program_transform_name=
295 # Double any \ or $. echo might interpret backslashes.
296 cat <<\EOF_SED > conftestsed
297 s,\\,\\\\,g; s,\$,$$,g
299 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
302 test "x$program_prefix" != xNONE &&
303 program_transform_name="s,^,${program_prefix},; $program_transform_name"
304 # Use a double $ so make ignores it.
305 test "x$program_suffix" != xNONE &&
306 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
308 # sed with no file args requires a program.
309 test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
310 # Remove empty command
311 cat <<\EOF_SED > conftestsed
312 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
314 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
317 n | no) USE_VERSION_SUFFIXES=no
319 *) AC_MSG_ERROR([*** You must not supply an argument to --with-suffixes option.])
322 AC_SUBST(USE_VERSION_SUFFIXES)
326 CLIENT_SCRIPTS_OPT=amhpfixdevs
329 CLIENT_SCRIPTS_OPT=amsinixfixdevs
336 AC_SUBST(CLIENT_SCRIPTS_OPT)
338 AC_ARG_WITH(client-only,
339 [ --with-client-only deprecated, use --without-server],
340 [ AC_MSG_ERROR([*** --with-client-only is deprecated, use --without-server instead.])
342 AC_ARG_WITH(server-only,
343 [ --with-server-only deprecated, use --without-client],
344 [ AC_MSG_ERROR([*** --with-server-only is deprecated, use --without-client instead.])
348 [ --without-client do not build client stuff],
351 y | ye | yes) NO_CLIENT_MODE=false;;
352 n | no) NO_CLIENT_MODE=true;;
354 AC_MSG_ERROR([*** You must not supply an argument to --with-client option.])
361 [ --without-server do not build server stuff (set --without-restore)],
364 y | ye | yes) NO_SERVER_MODE=false ;;
365 n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
367 AC_MSG_ERROR([*** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval])
372 if test "x${NO_SERVER_MODE+set}" != xset ; then
377 [ --without-restore do not build amrestore nor amidxtaped],
380 y | ye | yes) NO_RESTORE_MODE=false;;
381 n | no) NO_RESTORE_MODE=true;;
383 AC_MSG_ERROR([*** You must not supply an argument to --with-restore option.])
388 if test "x${NO_RESTORE_MODE+set}" != xset ; then
389 NO_RESTORE_MODE=${NO_SERVER_MODE-false}
392 if ${NO_SERVER_MODE-false}; then
393 if ${NO_RESTORE_MODE-false}; then
395 dnl --without-server and --without-restore is OK
399 AC_MSG_ERROR([*** --without-server requires --without-restore])
403 AC_ARG_WITH(amrecover,
404 [ --without-amrecover do not build amrecover],
408 if ${NO_CLIENT_MODE-false}; then
409 AC_MSG_ERROR([*** --without-client and --with-amrecover are incompatible])
411 NO_RECOVER_MODE=false;;
412 n | no) NO_RECOVER_MODE=true;;
414 AC_MSG_ERROR([*** You must not supply an argument to --with-amrecover option.])
420 AC_ARG_WITH(index-server,
421 [ --with-index-server=HOST default amanda index server [[`uname -n`]]],
424 "" | y | ye | yes | n | no)
425 AC_MSG_ERROR([*** You must supply an argument to the --with-index-server option.])
427 *) DEFAULT_SERVER="$withval"
431 : ${DEFAULT_SERVER=`uname -n`}
433 AC_DEFINE_UNQUOTED(DEFAULT_SERVER,"$DEFAULT_SERVER",
434 [This is the default Amanda index server. ])
435 AC_SUBST(DEFAULT_SERVER)
437 AC_ARG_WITH(force-uid,
438 [ --without-force-uid do not force the uid to --with-user],
439 FORCE_USERID="$withval",
440 : ${FORCE_USERID=yes}
442 case "$FORCE_USERID" in
443 y | ye | yes) AC_DEFINE(FORCE_USERID, 1,
444 [Define to force to another user on client machines. ])
448 *) AC_MSG_ERROR([*** You must not supply an argument to --with-force-uid option.])
452 [ --with-user=USER force execution to USER on client systems [[required]]],
455 "" | y | ye | yes | n | no)
456 AC_MSG_ERROR([*** You must supply an argument to the --with-user option.])
458 *) CLIENT_LOGIN="$withval"
463 if test "x${CLIENT_LOGIN+set}" != xset; then
464 AC_MSG_ERROR([*** --with-user=USER is missing])
466 AC_DEFINE_UNQUOTED(CLIENT_LOGIN,"$CLIENT_LOGIN",
467 [Define as a the user to force to on client machines. ])
468 AC_SUBST(CLIENT_LOGIN)
471 [ --with-group=GROUP group allowed to execute setuid-root programs [[required]]],
474 "" | y | ye | yes | n | no)
475 AC_MSG_ERROR([*** You must supply an argument to the --with-group option.])
477 *) SETUID_GROUP="$withval"
482 if test "x${SETUID_GROUP+set}" != xset; then
483 AC_MSG_ERROR([*** --with-group=GROUP is missing])
485 AC_SUBST(SETUID_GROUP)
488 [ --with-owner=USER force ownership of files to USER [[default == --with-user value]]],
491 "" | y | ye | yes | n | no)
492 AC_MSG_ERROR([*** You must supply an argument to the --with-owner option.])
494 *) BINARY_OWNER="$withval"
499 if test "x${BINARY_OWNER+set}" != xset ; then
500 BINARY_OWNER=$CLIENT_LOGIN
502 AC_DEFINE_UNQUOTED(BINARY_OWNER,"$BINARY_OWNER",
503 [Define as the user who owns installed binaries. ])
504 AC_SUBST(BINARY_OWNER)
507 [ --with-rundump use rundump (setuid-root) to invoke dump],
510 n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
511 *) AC_MSG_ERROR([*** You must not supply an argument to --with-rundump option.]);;
517 [ --with-config=CONFIG default configuration [[DailySet1]]],
520 "" | y | ye | yes | n | no)
521 AC_MSG_ERROR([*** You must supply an argument to the --with-config option.])
523 *) DEFAULT_CONFIG="$withval"
527 : ${DEFAULT_CONFIG=DailySet1}
529 AC_DEFINE_UNQUOTED(DEFAULT_CONFIG,"$DEFAULT_CONFIG",
530 [This is the default Amanda configuration. ])
531 AC_SUBST(DEFAULT_CONFIG)
533 AC_ARG_WITH(tape-server,
534 [ --with-tape-server=HOST default restoring tape server is HOST [[same as --with-index-server]]],
537 "" | y | ye | yes | n | no)
538 AC_MSG_ERROR([*** You must supply an argument to the --with-tape-server option.])
540 *) DEFAULT_TAPE_SERVER="$withval"
544 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
546 AC_DEFINE_UNQUOTED(DEFAULT_TAPE_SERVER,"$DEFAULT_TAPE_SERVER",[This is the default restoring Amanda tape server. ])
547 AC_SUBST(DEFAULT_TAPE_SERVER)
549 AC_ARG_WITH(tape-device,
550 [ --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive],
553 "" | y | ye | yes | n | no)
554 AC_MSG_ERROR([*** You must supply an argument to the --with-tape-device option.])
556 *) DEFAULT_TAPE_DEVICE="$withval"
561 if test -z "$DEFAULT_TAPE_DEVICE"; then
562 AC_MSG_CHECKING(for non-rewinding tape device)
563 dnl Check for the /dev/rmt directory and use what's in there.
564 dnl Otherwise look for tape devices in /dev. For the devices
565 dnl in /dev/rmt, we want to use the Berkeley behavior of
566 dnl reading the first record of the next tape file after 0
567 dnl bytes are returned upon reading to the next tape mark,
568 dnl instead of returning an error. Look for devices that have
569 dnl a 'b' in their name.
572 if test -d /dev/rmt; then
574 dnl See if we can find two devices, one being the norewind
575 dnl version of the other. Devices in this directory are
576 dnl normally a digit followed by some characters. We also
577 dnl want the Berkely behavior, since Amanda needs it for
580 for num in 9 8 7 6 5 4 3 2 1 0; do
582 ntd=/dev/rmt/${num}bn
583 if test -r $td -a -r $ntd; then
589 dnl Look for tape devices in /dev.
590 for num in 9 8 7 6 5 4 3 2 1 0; do
593 if test -r $td -a -r $ntd; then
599 DEFAULT_TAPE_DEVICE=$nr_tape_dev
600 AC_MSG_RESULT($DEFAULT_TAPE_DEVICE)
605 if test ! -z "$DEFAULT_TAPE_DEVICE"; then
606 AC_DEFINE_UNQUOTED(DEFAULT_TAPE_DEVICE,"$DEFAULT_TAPE_DEVICE",[This is the default no-rewinding tape device. ])
607 AC_SUBST(DEFAULT_TAPE_DEVICE)
610 AC_ARG_WITH(ftape-raw-device,
611 [ --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d],
614 "" | y | ye | yes | n | no)
615 AC_MSG_ERROR([*** You must supply an argument to the --with-ftape-rawdevice option.])
617 *) DEFAULT_RAW_TAPE_DEVICE="$withval"
622 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
623 AC_MSG_CHECKING(for raw ftape device)
624 dnl Look for tape devices in /dev.
625 raw_tape_dev=/dev/null
626 dnl Look for tape devices in /dev.
627 for num in 3 2 1 0 ; do
633 DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
634 AC_MSG_RESULT($DEFAULT_RAW_TAPE_DEVICE)
639 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
640 DEFAULT_RAW_TAPE_DEVICE=/dev/null
643 AC_DEFINE_UNQUOTED(DEFAULT_RAW_TAPE_DEVICE,"$DEFAULT_RAW_TAPE_DEVICE",[For Linux systems with floppy tapes:
644 * QIC volume table support via raw tape device. ])
645 AC_SUBST(DEFAULT_RAW_TAPE_DEVICE)
647 AC_ARG_WITH(rew-tape,
648 [ --with-rew-tape deprecated, use --with-tape-device],
649 [ AC_MSG_ERROR([*** --with-rew-tape is deprecated, use --with-tape-device instead.])
652 AC_ARG_WITH(norew-tape,
653 [ --with-norew-tape=ARG deprecated, use --with-tape-device],
654 [ AC_MSG_ERROR([*** --with-norew-tape is deprecated, use --with-tape-device instead.])
657 AC_ARG_WITH(changer-device,
658 [ --with-changer-device=ARG default tape changer device [[/dev/ch0 if it exists]]],
661 "" | y | ye | yes | n | no)
662 AC_MSG_ERROR([*** You must supply an argument to the --with-changer-device option.])
664 *) DEFAULT_CHANGER_DEVICE="$withval"
669 if test -z "$DEFAULT_CHANGER_DEVICE" &&
670 test -f /dev/ch0; then
671 DEFAULT_CHANGER_DEVICE=/dev/ch0
676 if test -z "$DEFAULT_CHANGER_DEVICE"; then
677 DEFAULT_CHANGER_DEVICE=/dev/null
680 AC_DEFINE_UNQUOTED(DEFAULT_CHANGER_DEVICE,"$DEFAULT_CHANGER_DEVICE",[This is the default changer device. ])
681 AC_SUBST(DEFAULT_CHANGER_DEVICE)
684 [ --with-fqdn use FQDN's to backup multiple networks],
690 y | ye | yes) AC_DEFINE(USE_FQDN,1,[Define for backups being done on a multiple networks and FQDNs are used. ])
692 *) AC_MSG_ERROR([*** You must not supply an argument to --with-fqdn option.])
696 AC_ARG_WITH(broken-fsf,
697 [ --with-broken-fsf only enable if tape fsf calls fail mid-file],
698 HAVE_BROKEN_FSF=$withval,
699 : ${HAVE_BROKEN_FSF=no}
701 case "$HAVE_BROKEN_FSF" in
703 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
704 * mark, for instance, if amrecover gives I/O errors when skipping.
707 *) AC_MSG_ERROR([*** You must not supply an argument to --with-broken-fsf option.])
711 AC_ARG_WITH(reuseports,
712 [ --without-reuseaddr Don't closed network connections to be reused until full timeout period.],
727 AC_DEFINE(USE_REUSEADDR,1,[Define to set SO_REUSEADDR on network connections.])
730 AC_MSG_ERROR([*** You must not supply an argument to --with-reuseports option.])
735 [ --with-gnutar[[=PROG]] use PROG as GNU tar executable [[default: looks for one]]],
738 /*) GNUTAR="$withval";;
741 *) AC_MSG_ERROR([*** You must supply a full pathname to --with-gnutar]);;
746 AC_ARG_WITH(smbclient,
747 [ --with-smbclient[[=PROG]] use PROG as Samba's smbclient executable [[default: looks for one]]],
750 /*) SAMBA_CLIENT="$withval";;
752 n|no) SAMBA_CLIENT=;;
753 *) AC_MSG_ERROR([*** You must supply a full pathname to --with-smbclient]);;
758 AC_ARG_WITH(samba-user,
759 [ --with-samba-user was deprecated],
760 [ AC_MSG_ERROR([*** The samba-user option was deprecated, the username go in the amandapass])
764 AC_ARG_WITH(gnutar-listdir,
765 [ --with-gnutar-listdir=DIR gnutar directory lists go in DIR [[localstatedir/amanda/gnutar-lists]]],
768 n | no) unset GNUTAR_LISTDIR ;;
769 y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
770 /*) GNUTAR_LISTDIR="$withval" ;;
771 *) AC_MSG_ERROR([*** You must supply a full pathname to --with-gnutar-listdir])
774 : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
776 if test "$GNUTAR_LISTDIR"; then
778 test "x$prefix" = xNONE && prefix=$ac_default_prefix
779 eval echo "$GNUTAR_LISTDIR"
781 AC_DEFINE_UNQUOTED(GNUTAR_LISTED_INCREMENTAL_DIR,"$GNUTAR_LISTDIR",[The directory in which GNU tar should store directory lists for incrementals. ])
782 GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
784 GNUTAR_LISTED_INCREMENTAL_DIRX=
786 AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIRX)
788 AC_ARG_WITH(gnutar-listed-incremental,
789 [ --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir],
790 [ AC_MSG_ERROR([*** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead])
793 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
794 AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
796 AC_ARG_WITH(bsd-security,
797 [ --without-bsd-security do not use BSD rsh/rlogin style security],
798 BSD_SECURITY=$withval,
799 : ${BSD_SECURITY=yes}
801 case "$BSD_SECURITY" in
803 y | ye | yes) AC_DEFINE(BSD_SECURITY,1,[Define to use BSD .rhosts/.amandahosts security. ])
805 *) AC_MSG_ERROR([*** You must not supply an argument to --with-bsd-security option.])
809 AC_ARG_WITH(amandahosts,
810 [ --without-amandahosts use .rhosts instead of .amandahosts],
811 USE_AMANDAHOSTS=$withval,
812 : ${USE_AMANDAHOSTS=yes}
814 case "$USE_AMANDAHOSTS" in
817 case "$BSD_SECURITY" in
818 y | ye | yes) AC_DEFINE(USE_AMANDAHOSTS,1,[Define if you want to use the .amandahosts for BSD security. ])
822 *) AC_MSG_ERROR([*** You must not supply an argument to --with-amandahosts option.])
826 dnl Specify --with-dbmalloc if you desire dbmalloc to be linked in
828 AC_ARG_WITH(dbmalloc,
829 [ --with-dbmalloc=DIR Location of dbmalloc libs and headers],
840 AC_CHECK_LIB(dbmalloc,malloc)
841 if test "x$ac_cv_lib_dbmalloc_malloc" != "xyes"; then
842 AC_MSG_WARN([*** dbmalloc library not found - no malloc debugging support!])
846 DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
847 DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
852 dnl Specify --with-krb4-security if Kerberos software is in somewhere
853 dnl other than the listed KRB4_SPOTS. We only compile kerberos support in
854 dnl if the right files are there.
856 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
858 AC_ARG_WITH(krb4-security,
859 [ --with-krb4-security=DIR Location of Kerberos software [[/usr/kerberos /usr/cygnus /usr /opt/kerberos]]],
860 KRB4_SECURITY="$withval",
861 : ${KRB4_SECURITY=no}
864 case "$KRB4_SECURITY" in
865 n | no) KRB4_SECURITY=no ;;
867 *) KRB4_SPOTS="$KRB4_SECURITY"
872 AC_MSG_CHECKING(for Kerberos and Amanda kerberos4 bits)
873 if test "x${KRB4_SECURITY}" = xyes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
874 for dir in $KRB4_SPOTS; do
875 if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
877 # This is the original Kerberos 4.
879 AC_MSG_RESULT(found in $dir)
881 AC_DEFINE(KRB4_SECURITY, 1, [Enable Kerberos security. ])
882 if test -d $dir/include/kerberosIV ; then
884 # This handles BSD/OS.
886 KRB4INCLUDES=-I$dir/include/kerberosIV
888 KRB4INCLUDES=-I$dir/include
890 KRB4LDFLAGS=-L$dir/lib
891 KRB4LIBS="-lkrb -ldes"
892 if test -f ${dir}/lib/libcom_err.a; then
893 KRB4LIBS="$KRB4LIBS -lcom_err"
896 elif test -f ${dir}/lib/libkrb4.a &&
897 test -f ${dir}/lib/libcrypto.a &&
898 test -f ${dir}/lib/libdes425.a ; then
900 # This is Kerberos 5 with Kerberos 4 back-support.
902 AC_MSG_RESULT(found in $dir)
904 AC_DEFINE(KRB4_SECURITY, 1, [Enable Kerberos security. ])
905 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
906 KRB4LDFLAGS=-L$dir/lib
907 if test -f ${dir}/lib/libkrb5.a &&
908 test -f ${dir}/lib/libcom_err.a; then
909 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
911 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
917 if test "x$KRB4LDFLAGS" = "x" ; then
918 AC_MSG_RESULT(no libraries found)
924 AC_ARG_WITH(rsh-security,
925 [ --with-rsh-security use rsh as a transport],
926 RSH_SECURITY=$withval,
927 : ${RSH_SECURITY=yes}
929 case "$RSH_SECURITY" in
931 y | ye | yes) AC_DEFINE(RSH_SECURITY,1,[Define if RSH transport should be enabled. ])
933 *) AC_MSG_ERROR([*** You must not supply an argument the to --with-rsh-security option.])
937 AC_ARG_WITH(ssh-security,
938 [ --with-ssh-security use ssh as a transport],
939 SSH_SECURITY=$withval,
942 case "$SSH_SECURITY" in
944 y | ye | yes) AC_DEFINE(SSH_SECURITY,1,[Define if SSH transport should be enabled. ])
945 SSH_SECURITY_SET=true
947 *) AC_MSG_ERROR([*** You must not supply an argument the to --with-ssh-security option.])
951 AC_ARG_WITH(bsdtcp-security,
952 [ --with-bsdtcp-security use tcp as a transport],
953 BSDTCP_SECURITY=$withval,
954 : ${BSDTCP_SECURITY=yes}
956 case "$BSDTCP_SECURITY" in
958 y | ye | yes) AC_DEFINE(BSDTCP_SECURITY,1,[Define if BSDTCP transport should be enabled. ])
959 BSDTCP_SECURITY_SET=true
961 *) AC_MSG_ERROR([*** You must not supply an argument the to --with-bsdtcp-security option.])
965 AC_ARG_WITH(bsdudp-security,
966 [ --with-bsdudp-security use tcp as a transport],
967 BSDUDP_SECURITY=$withval,
968 : ${BSDUDP_SECURITY=yes}
970 case "$BSDUDP_SECURITY" in
972 y | ye | yes) AC_DEFINE(BSDUDP_SECURITY,1,[Define if BSDUDP transport should be enabled. ])
973 BSDUDP_SECURITY_SET=true
975 *) AC_MSG_ERROR([*** You must not supply an argument the to --with-bsdudp-security option.])
979 AC_ARG_WITH(server-principal,
980 [ --with-server-principal=ARG server host principal [["amanda"]]],
983 "" | y | ye | yes | n | no)
984 AC_MSG_ERROR([*** You must supply an argument to the --with-server-principal option.])
987 SERVER_HOST_PRINCIPLE="$withval"
991 : ${SERVER_HOST_PRINCIPLE="amanda"}
993 AC_DEFINE_UNQUOTED(SERVER_HOST_PRINCIPLE,"$SERVER_HOST_PRINCIPLE",[The Kerberos server principle. ])
995 AC_ARG_WITH(server-instance,
996 [ --with-server-instance=ARG server host instance [["amanda"]]],
999 "" | y | ye | yes | n | no)
1000 AC_MSG_ERROR([*** You must supply an argument to the --with-server-instance option.])
1002 *) SERVER_HOST_INSTANCE="$withval"
1006 : ${SERVER_HOST_INSTANCE="amanda"}
1008 AC_DEFINE_UNQUOTED(SERVER_HOST_INSTANCE,"$SERVER_HOST_INSTANCE",[The Kerberos server instance. ])
1010 AC_ARG_WITH(server-keyfile,
1011 [ --with-server-keyfile=ARG server host key file [["/.amanda"]]],
1014 "" | y | ye | yes | n | no)
1015 AC_MSG_ERROR([*** You must supply an argument to the --with-server-keyfile option.])
1017 *) SERVER_HOST_KEY_FILE="$withval"
1021 : ${SERVER_HOST_KEY_FILE="/.amanda"}
1023 AC_DEFINE_UNQUOTED(SERVER_HOST_KEY_FILE,"$SERVER_HOST_KEY_FILE",[The Kerberos server key file. ])
1025 AC_ARG_WITH(client-principal,
1026 [ --with-client-principal=ARG client host principal [["rcmd"]]],
1029 "" | y | ye | yes | n | no)
1030 AC_MSG_ERROR([*** You must supply an argument to the --with-client-principal option.])
1032 *) CLIENT_HOST_PRINCIPLE="$withval"
1036 : ${CLIENT_HOST_PRINCIPLE="rcmd"}
1038 AC_DEFINE_UNQUOTED(CLIENT_HOST_PRINCIPLE,"$CLIENT_HOST_PRINCIPLE",[The Kerberos client host principle. ])
1040 AC_ARG_WITH(client-instance,
1041 [ --with-client-instance=ARG client host instance [[HOSTNAME_INSTANCE]]],
1044 "" | y | ye | yes | n | no)
1045 AC_MSG_ERROR([*** You must supply an argument to the --with-client-instance option.])
1047 *) CLIENT_HOST_INSTANCE="$withval"
1051 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
1053 AC_DEFINE_UNQUOTED(CLIENT_HOST_INSTANCE,$CLIENT_HOST_INSTANCE,[The Kerberos client host instance. ])
1055 AC_ARG_WITH(client-keyfile,
1056 [ --with-client-keyfile=ARG client host key file [[KEYFILE]]],
1059 "" | y | ye | yes | n | no)
1060 AC_MSG_ERROR([*** You must supply an argument to the --with-client-keyfile option.])
1062 *) CLIENT_HOST_KEY_FILE="$withval"
1066 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
1069 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
1070 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
1071 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
1074 AC_DEFINE_UNQUOTED(CLIENT_HOST_KEY_FILE,$CLIENT_HOST_KEY_FILE,[The Kerberos client host key file. ])
1076 AC_ARG_WITH(ticket-lifetime,
1077 [ --with-ticket-lifetime=ARG ticket lifetime [[128]]],
1080 "" | y | ye | yes | n | no)
1081 AC_MSG_ERROR([*** You must supply an argument to the --with-ticket-lifetime option.])
1083 *) TICKET_LIFETIME="$withval"
1087 : ${TICKET_LIFETIME=128}
1089 AC_DEFINE_UNQUOTED(TICKET_LIFETIME,$TICKET_LIFETIME,[The Kerberos ticket lifetime. ])
1091 dnl Specify --with-krb5-security if Kerberos software is in somewhere
1092 dnl other than the listed KRB5_SPOTS. We only compile kerberos support in
1093 dnl if the right files are there.
1095 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
1097 AC_ARG_WITH(krb5-security,
1098 [ --with-krb5-security=DIR Location of Kerberos V software [[/usr/kerberos /usr/cygnus /usr /opt/kerberos]]],
1099 KRB5_SECURITY="$withval",
1100 : ${KRB5_SECURITY=no}
1103 case "$KRB5_SECURITY" in
1104 n | no) KRB5_SECURITY=no
1108 *) KRB5_SPOTS="$KRB5_SECURITY"
1113 # if found, force the static versions of these libs (.a) by linking directly
1114 # with the .a files. I don't know how to get -R dependancies checked
1115 # in autoconf at this time. -kashmir
1116 AC_MSG_CHECKING(for Kerberos V)
1119 for dir in $KRB5_SPOTS; do
1120 for lib in lib lib64; do
1121 k5libdir=${dir}/${lib}
1122 if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
1123 if test -f ${k5libdir}/libk5crypto.a; then
1124 K5CRYPTO=${k5libdir}/libk5crypto.a
1125 elif test -f ${k5libdir}/libcrypto.a; then
1126 K5CRYPTO=${k5libdir}/libcrypto.a
1130 if test -f ${k5libdir}/libkrb5support.a; then
1131 K5SUPPORT=${k5libdir}/libkrb5support.a
1136 KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO $K5SUPPORT ${k5libdir}/libcom_err.a"
1139 elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
1141 KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
1142 KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
1148 if test "$KRB5_DIR_FOUND"; then
1149 AC_MSG_RESULT(found in $KRB5_DIR_FOUND)
1151 AC_DEFINE(KRB5_SECURITY,1,[Define if Kerberos 5 security is to be enabled. ])
1153 # some OS's, such as NetBSD, stick krb5 includes out of the way...
1154 # should probably just use autoconf to look for various include
1155 # options and set them, but don't quite want to do that until I've
1156 # dug into it a bit more.
1158 if test -d "$KRB5_DIR_FOUND/krb5" ; then
1159 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
1161 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
1163 if test "$KRB5_CFLAGS" ; then
1164 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
1166 AC_CHECK_LIB(krb5support,main)
1167 KRB5LDFLAGS=-L$k5libdir
1171 if test "x$KRB5LDFLAGS" = "x" ; then
1172 AC_MSG_RESULT(no krb5 system libraries found)
1176 AC_ARG_WITH(low-tcpportrange,
1177 [ --with-low-tcpportrange=low,high bind reserved TCP server sockets to ports within this range [unlimited] (mainly for amrecover)],
1179 LOW_TCPPORTRANGE="$withval"
1183 if test x"${LOW_TCPPORTRANGE+set}" = x"set"; then
1184 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[[0-9]][[0-9]]*,[[0-9]][[0-9]]*//'` != x""; then
1185 AC_MSG_ERROR([*** --with-low-tcpportrange requires two comma-separated positive numbers])
1187 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
1188 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
1189 if test $min_low_tcp_port -gt $max_low_tcp_port; then
1190 AC_MSG_ERROR([*** the second TCP port number must be greater than the first in --with-low-tcpportrange])
1192 if test $min_low_tcp_port -lt 512; then
1193 AC_MSG_WARN([*** the low TCP port range should be 512 or greater in --with-low-tcpportrange])
1195 if test $max_low_tcp_port -ge 1024; then
1196 AC_MSG_WARN([*** the low TCP port range should be less than 1024 in --with-low-tcpportrange])
1198 AC_DEFINE_UNQUOTED(LOW_TCPPORTRANGE,$LOW_TCPPORTRANGE,[A comma-separated list of two integers, determining the minimum and
1199 maximum reserved TCP port numbers sockets should be bound to. (mainly for amrecover) ])
1202 AC_ARG_WITH(tcpportrange,
1203 [ --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range [[unlimited]]],
1205 TCPPORTRANGE="$withval"
1208 if test x"${TCPPORTRANGE+set}" = x"set"; then
1209 if test x`echo "$TCPPORTRANGE" | sed 's/[[0-9]][[0-9]]*,[[0-9]][[0-9]]*//'` != x""; then
1210 AC_MSG_ERROR([*** --with-tcpportrange requires two comma-separated positive numbers])
1212 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
1213 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
1214 if test $min_tcp_port -gt $max_tcp_port; then
1215 AC_MSG_ERROR([*** the second TCP port number must be greater than the first in --with-tcpportrange])
1217 if test $min_tcp_port -lt 1024; then
1218 AC_MSG_WARN([*** the TCP port range should be 1024 or greater in --with-tcpportrange])
1220 if test $max_tcp_port -ge 65536; then
1221 AC_MSG_WARN([*** the TCP port range should be less than 65536 in --with-tcpportrange])
1223 AC_DEFINE_UNQUOTED(TCPPORTRANGE,$TCPPORTRANGE,[A comma-separated list of two integers, determining the minimum and
1224 maximum unreserved TCP port numbers sockets should be bound to. ])
1227 AC_ARG_WITH(udpportrange,
1228 [ --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range [[unlimited]]],
1230 UDPPORTRANGE="$withval"
1233 if test x"${UDPPORTRANGE+set}" = x"set"; then
1234 if test x`echo "$UDPPORTRANGE" | sed 's/[[0-9]][[0-9]]*,[[0-9]][[0-9]]*//'` != x""; then
1235 AC_MSG_ERROR([*** --with-udpportrange requires two comma-separated positive numbers])
1237 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
1238 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
1239 if test $min_udp_port -gt $max_udp_port; then
1240 AC_MSG_ERROR([*** the second UDP port number must be greater than the first in --with-udpportrange])
1242 if test $max_udp_port -ge 1024; then
1243 AC_MSG_WARN([*** the UDP port range should be less than 1024 in --with-udpportrange])
1245 if test $min_udp_port -le 0; then
1246 AC_MSG_WARN([*** the UDP port range should be greater than 0 in --with-udpportrange])
1248 AC_DEFINE_UNQUOTED(UDPPORTRANGE,$UDPPORTRANGE,[A comma-separated list of two integers, determining the minimum and
1249 maximum reserved UDP port numbers sockets should be bound to. ])
1252 AC_ARG_WITH(maxtapeblocksize,
1253 [ --with-maxtapeblocksize=kb Maximum size of a tape block],
1255 MAXTAPEBLOCKSIZE="$withval"
1257 : ${MAXTAPEBLOCKSIZE=32}
1260 AC_DEFINE_UNQUOTED(MAX_TAPE_BLOCK_KB,($MAXTAPEBLOCKSIZE),[Maximum size of a tape block in KBytes.])
1261 AC_SUBST(MAXTAPEBLOCKSIZE)
1264 [ --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [[text]]],
1267 "" | y | ye | yes | n | no)
1268 AC_MSG_ERROR([*** You must supply an argument to the --with-db option.])
1270 *) DB_STYLE="$withval"
1275 if test "$DB_STYLE"; then
1277 db | dbm | gdbm | ndbm | text) ;;
1279 AC_MSG_ERROR([*** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text.])
1286 [ --with-mmap force use of mmap instead of shared memory support],
1287 FORCE_MMAP=$withval,
1290 case "$FORCE_MMAP" in
1291 y | ye | yes | n | no) : ;;
1292 *) AC_MSG_ERROR([*** You must not supply an argument to --with-mmap.])
1296 AC_ARG_WITH(buffered-dump,
1297 [ --with-buffered-dump buffer the dumping sockets on the server for speed],
1298 DUMPER_SOCKET_BUFFERING=$withval,
1299 : ${DUMPER_SOCKET_BUFFERING=no}
1301 case "$DUMPER_SOCKET_BUFFERING" in
1304 y | ye | yes) AC_DEFINE(DUMPER_SOCKET_BUFFERING,1,[Define if dumper should buffer the sockets for faster throughput. ])
1306 *) AC_MSG_ERROR([*** You must not supply an argument to --with-buffered-dump.])
1310 AC_ARG_WITH(assertions,
1311 [ --with-assertions compile assertions into code],
1312 ASSERTIONS="$withval",
1315 case "$ASSERTIONS" in
1317 y | ye | yes) AC_DEFINE(ASSERTIONS,1,[Define if you want assertion checking. ])
1319 *) AC_MSG_ERROR([*** You must not supply an argument to --with-assertions option.])
1324 [ --with-tmpdir[=/temp/dir] area Amanda can use for temp files [[/tmp/amanda]]],
1329 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1330 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
1334 n | no) AC_MSG_ERROR([*** --without-tmpdir is not allowed.]);;
1336 AMANDA_TMPDIR="/tmp/amanda";;
1338 AMANDA_TMPDIR="$tmpdir";;
1339 *) AC_MSG_ERROR([*** You must supply a full pathname to --with-tmpdir option.]);;
1341 AC_DEFINE_UNQUOTED(AMANDA_TMPDIR,"$AMANDA_TMPDIR",[The directory in which Amanda should create temporary files. ])
1342 AC_SUBST(AMANDA_TMPDIR)
1344 AC_ARG_WITH(debugging,
1345 [ --with[[out]]-debugging[[=/debug/dir]] [[do not]] record runtime debugging information in specified directory [[--with-tmpdir]]],
1346 debugging="$withval",
1350 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1351 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
1352 eval echo "$debugging"
1354 case "$debugging" in
1355 n | no) AMANDA_DBGDIR="";;
1356 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
1357 /*) AMANDA_DBGDIR="$debugging";;
1358 *) AC_MSG_ERROR([*** You must supply a full pathname to --with-debugging option.])
1361 case "$AMANDA_DBGDIR" in
1363 *) AC_DEFINE(DEBUG_CODE,1,[Define if you want debugging. ])
1364 AC_DEFINE_UNQUOTED(AMANDA_DBGDIR,"$AMANDA_DBGDIR",[Location of Amanda directories and files. ])
1365 AC_SUBST(AMANDA_DBGDIR);;
1368 AC_ARG_WITH(debug_days,
1369 [ --with-debug-days=NN number of days to keep debugging files [[default=4]]],
1370 debug_days="$withval",
1373 case "$debug_days" in
1374 n | no) AMANDA_DEBUG_DAYS=0 ;;
1375 y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
1376 [[0-9]] | [[0-9]][[0-9]] | [[0-9]][[0-9]][[0-9]]) AMANDA_DEBUG_DAYS="$debug_days" ;;
1377 *) AC_MSG_ERROR([*** --with-debug-days value not numeric or out of range.])
1380 AC_DEFINE_UNQUOTED(AMANDA_DEBUG_DAYS,$AMANDA_DEBUG_DAYS,[Number of days to keep debugging files. ])
1381 AC_SUBST(AMANDA_DEBUG_DAYS)
1383 AC_ARG_WITH(testing,
1384 [ --with-testing[[=suffix]] use alternate service names],
1389 n | no) SERVICE_SUFFIX="";;
1390 y | ye | yes) SERVICE_SUFFIX="-test";;
1391 *) SERVICE_SUFFIX="-$TESTING";;
1393 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
1394 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
1395 AC_SUBST(SERVICE_SUFFIX)
1396 AC_DEFINE_UNQUOTED(SERVICE_SUFFIX, "$SERVICE_SUFFIX",[A suffix that will be appended to service names.
1397 * Useful for testing in parallel with a working version. ])
1398 AC_DEFINE_UNQUOTED(AMANDA_SERVICE_NAME, "$AMANDA_SERVICE_NAME", [The name for the Amanda service. ])
1399 AC_DEFINE_UNQUOTED(KAMANDA_SERVICE_NAME, "$KAMANDA_SERVICE_NAME", [The name for the Kerberized Amanda service. ])
1402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1403 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
1405 tmp=`eval echo "$bindir"`
1406 AC_DEFINE_UNQUOTED(bindir,"$tmp",[Directory in which user binaries should be installed. ])
1408 tmp=`eval echo "$sbindir"`
1409 AC_DEFINE_UNQUOTED(sbindir,"$tmp",[Directory in which administrator binaries should be installed. ])
1411 tmp=`eval echo "$libexecdir"`
1412 AC_DEFINE_UNQUOTED(libexecdir,"$tmp",[Directory in which internal binaries should be installed. ])
1414 tmp=`eval echo $mandir`
1415 AC_DEFINE_UNQUOTED(mandir,"$tmp",[Directory in which man-pages should be installed])
1418 dnl Set the order of dump programs to look for. Finding the proper file
1419 dnl system dumping program is problematic. Some systems, notably HP-UX
1420 dnl and AIX, have both the backup and dump programs. HP-UX can't use the
1421 dnl the backup program while AIX systems can't use the dump program. So
1422 dnl a variable is set up here to specify the order of dump programs to
1423 dnl search for on the system.
1424 DUMP_PROGRAMS="ufsdump dump backup"
1431 AC_DEFINE(STATFS_OSF1,1,[Define on OSF1. ])
1434 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
1435 : ${USE_RUNDUMP=yes}
1446 GETCONF_LFS="XBS5_ILP32_OFFBIG"
1449 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
1452 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
1457 GETCONF_LFS="XBS5_ILP32_OFFBIG"
1458 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
1459 AC_DEFINE(AIX_TAPEIO,1,[Define on AIX. ])
1460 AC_DEFINE(AIX_BACKUP,1,[Define on AIX. ])
1462 m88k-motorola-sysv4)
1481 dnl The old cc won't work!
1495 : ${USE_RUNDUMP=yes}
1496 AC_DEFINE(STATFS_ULTRIX,1,[Define on Ultrix. ])
1500 AC_DEFINE(UWARE_TAPEIO,1,[Define on UnixWare. ])
1508 AC_DEFINE(STATFS_SCO_OS5,1,[Define on SCO OS5. ])
1516 AC_DEFINE(IGNORE_TAR_ERRORS,1,[Define on Cygwin. ])
1517 # Cygwin needs PATH to find cygwin1.dll
1518 AC_DEFINE(NEED_PATH_ENV,1,[Define on Cygwin. ])
1519 AC_DEFINE(IGNORE_UID_CHECK,1,[Define on Cygwin. ])
1520 AC_DEFINE(IGNORE_FSTAB,1,[Define on Cygwin. ])
1521 AC_DEFINE(DONT_SUID_ROOT,1,[Define on Cygwin. ])
1522 NEED_SETUID_CLIENT=false
1523 NEED_RUNTIME_PSEUDO_RELOC=true
1529 This machine, target type $target, is not known
1530 to be fully supported by this configure script. If the
1531 installation of Amanda on this system succeeds or needed
1532 any patches, please email amanda-hackers@amanda.org with
1533 the patches or an indication of the sucess or failure of
1534 the Amanda installation on your system.
1541 if test -n "$dump_returns_1"; then
1542 AC_DEFINE(DUMP_RETURNS_1,1,[Define this if this system's dump exits with 1 as a success code. ])
1545 if test -n "$xenix_tapeio"; then
1546 AC_DEFINE(XENIX_TAPEIO,1,[Define on XENIX/ISC. ])
1549 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
1550 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
1551 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
1552 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
1553 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
1554 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
1555 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
1556 LIBS="$AMANDA_LIBS $LIBS"
1559 dnl This specifies the flag for mt that tells mt the proper tape drive
1561 : ${MT_FILE_FLAG="-f"}
1562 AC_SUBST(MT_FILE_FLAG)
1563 AC_DEFINE_UNQUOTED(MT_FILE_FLAG, "$MT_FILE_FLAG",[Defined to the switch to be used when invoking mt to specify the
1566 AX_CREATE_STDINT_H(common-src/amanda-int.h)
1568 dnl Check for programs.
1569 AC_PATH_PROGS(AR,ar,,$LOCSYSPATH)
1573 if test "x$amanda_cv_awk_var_assignment" = xno; then
1575 AC_MSG_WARN([*** Your $awk cannot do command line variable assignment. Amplot will not be installed.])
1579 AC_PATH_PROGS(CAT,cat,,$LOCSYSPATH)
1580 if test -z "$CAT"; then
1583 AC_PATH_PROGS(COMPRESS,compress,,$LOCSYSPATH)
1584 AC_PATH_PROGS(DD,dd,,$LOCSYSPATH)
1585 AC_PATH_PROGS(GETCONF,getconf,,$SYSPATH)
1587 AC_PATH_PROGS(GNUPLOT,gnuplot,,$LOCSYSPATH)
1588 if test -z "$GNUPLOT"; then
1590 AC_MSG_WARN([*** You do not have gnuplot. Amplot will not be installed.])
1593 AC_PATH_PROGS(GNUTAR,gtar gnutar tar,,$LOCSYSPATH)
1594 if test ! -z "$GNUTAR"; then
1595 case "`\"$GNUTAR\" --version 2>&1`" in
1596 *GNU*tar* | *Free*paxutils* )
1597 AC_DEFINE_UNQUOTED(GNUTAR,"$GNUTAR",[Define to the location of Gnu tar. ])
1600 AC_MSG_WARN([*** $GNUTAR is not GNU tar, so it will not be used.])
1606 AC_PATH_PROGS(SAMBA_CLIENT,smbclient,,$LOCSYSPATH)
1607 if test ! -z "$SAMBA_CLIENT"; then
1608 case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
1612 *"Connection to not.a.host.name failed"*)
1616 AC_MSG_WARN([*** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.])
1620 if test -n "$SAMBA_CLIENT"; then
1621 AC_DEFINE_UNQUOTED(SAMBA_CLIENT,"$SAMBA_CLIENT",[Define the location of smbclient for backing up Samba PC clients. ])
1622 AC_DEFINE_UNQUOTED(SAMBA_VERSION, $smbversion,
1623 [Not the actual samba version, just a number that should be increased whenever we start to rely on a new samba feature. ])
1627 AC_PATH_PROGS(GZIP,gzip,,$LOCSYSPATH)
1628 if test "$GZIP"; then
1629 AC_DEFINE(HAVE_GZIP,1,[Define if Amanda is using the gzip program. ])
1630 COMPRESS_PATH="$GZIP"
1631 COMPRESS_SUFFIX=".gz"
1632 COMPRESS_FAST_OPT="--fast"
1633 COMPRESS_BEST_OPT="--best"
1634 UNCOMPRESS_PATH="$GZIP"
1635 UNCOMPRESS_OPT="-dc"
1637 if test "$COMPRESS"; then
1638 COMPRESS_PATH="$COMPRESS"
1639 COMPRESS_SUFFIX=".Z"
1640 COMPRESS_FAST_OPT="-f"
1641 COMPRESS_BEST_OPT="-f"
1642 UNCOMPRESS_PATH="$COMPRESS"
1643 UNCOMPRESS_OPT="-dc"
1645 dnl If we have to use cat, we don't define COMPRESS_FAST_OPT,
1646 dnl COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
1647 dnl look for a file by the name of "".
1648 AC_MSG_WARN([*** Cannot find either gzip or compress. Using cat. ***])
1649 COMPRESS_PATH="$CAT"
1651 COMPRESS_FAST_OPT=""
1652 COMPRESS_BEST_OPT=""
1653 UNCOMPRESS_PATH="$CAT"
1657 AC_DEFINE_UNQUOTED(COMPRESS_PATH,"$COMPRESS_PATH",[Define to the exact path to the gzip or the compress program. ])
1658 AC_DEFINE_UNQUOTED(COMPRESS_SUFFIX,"$COMPRESS_SUFFIX",[Define to the suffix for the COMPRESS_PATH compression program. ])
1659 AC_DEFINE_UNQUOTED(COMPRESS_FAST_OPT,"$COMPRESS_FAST_OPT",[Define as the command line option for fast compression. ])
1660 AC_DEFINE_UNQUOTED(COMPRESS_BEST_OPT,"$COMPRESS_BEST_OPT",[Define as the command line option for best compression. ])
1661 AC_DEFINE_UNQUOTED(UNCOMPRESS_PATH,"$UNCOMPRESS_PATH",[Define as the exact path to the gzip or compress command. ])
1662 AC_DEFINE_UNQUOTED(UNCOMPRESS_OPT,"$UNCOMPRESS_OPT",[Define as any optional arguments to get UNCOMPRESS_PATH to uncompress. ])
1664 AC_PATH_PROGS(MAILER,Mail mailx mail)
1665 if test -z "$MAILER"; then
1666 if $NO_SERVER_MODE; then
1668 AC_MSG_WARN([*** WARNING: Amanda cannot send mail reports without these programs.])
1670 AC_MSG_ERROR([Set MAILER to some program that accepts -s subject user < message_file.])
1673 AC_DEFINE_UNQUOTED(MAILER,"$MAILER",[Define to a program that understands -s "subject" user < message_file])
1675 AC_PATH_PROGS(MT,mt,mt,$LOCSYSPATH)
1677 AC_PATH_PROGS(CHIO,chio,chio,$LOCSYSPATH)
1679 AC_PATH_PROGS(CHS,chs,chs,$LOCSYSPATH)
1681 AC_PATH_PROGS(MTX,mtx,mtx,$LOCSYSPATH)
1683 AC_PATH_PROGS(MCUTIL,mcutil,mcutil,$LOCSYSPATH)
1685 AC_PATH_PROGS(PRINT, lpr lp)
1686 if test ! -z "$PRINT"; then
1687 AC_DEFINE_UNQUOTED(LPRCMD, "$PRINT",[Command for starting printing jobs. ])
1688 AC_CACHE_CHECK([which flag to use to select a printer],
1689 amanda_cv_printer_flag, [
1690 amanda_cv_printer_flag=$PRINTER_FLAG
1692 lpr|*/lpr) amanda_cv_printer_flag="-P";;
1693 lp|*/lp) amanda_cv_printer_flag="-d";;
1696 if test ! -z "$amanda_cv_printer_flag"; then
1697 AC_DEFINE_UNQUOTED(LPRFLAG, "$amanda_cv_printer_flag",[LPRCMD switch for specifying a printer name. ])
1699 AC_MSG_WARN([*** WARNING: amanda will always print to the default printer])
1703 AC_PATH_PROGS(PCAT,pcat,,$LOCSYSPATH)
1704 AC_PATH_PROGS(PERL,perl5 perl,,$LOCSYSPATH)
1706 dnl AC_PATH_PROGS(MAKEINFO,makeinfo,,$LOCSYSPATH)
1707 dnl AC_PATH_PROGS(TEXI2DVI,texi2dvi,,$LOCSYSPATH)
1709 AC_PATH_PROGS(DUMP,$DUMP_PROGRAMS,,$SYSLOCPATH)
1710 AC_PATH_PROGS(RESTORE,ufsrestore restore,,$SYSLOCPATH)
1711 if test "$DUMP" -a "$RESTORE"; then
1712 AC_DEFINE_UNQUOTED(DUMP,"$DUMP",[Define the location of the ufsdump, backup, or dump program. ])
1713 AC_DEFINE_UNQUOTED(RESTORE,"$RESTORE",[Define the location of the ufsrestore or restore program. ])
1714 if test -x $DUMP; then
1716 [whether $DUMP supports -E or -S for estimates],
1717 amanda_cv_dump_estimate,
1721 AC_TRY_COMMAND($DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
1724 | $GREP -v Label >conftest.d-E 2>&1)
1725 cat conftest.d-E >&AS_MESSAGE_LOG_FD()
1726 AC_TRY_COMMAND($DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
1729 | $GREP -v Label >conftest.d-S 2>&1)
1730 cat conftest.d-S >&AS_MESSAGE_LOG_FD()
1731 AC_TRY_COMMAND($DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
1734 | $GREP -v Label >conftest.d 2>&1)
1735 cat conftest.d >&AS_MESSAGE_LOG_FD()
1736 if AC_TRY_COMMAND(cmp conftest.d-E conftest.d 1>&2); then
1737 amanda_cv_dump_estimate=E
1738 elif AC_TRY_COMMAND(cmp conftest.d-S conftest.d 1>&2); then
1739 amanda_cv_dump_estimate=S
1741 amanda_cv_dump_estimate=no
1743 rm -f conftest.d conftest.d-E conftest.d-S
1745 *) amanda_cv_dump_estimate=no
1750 AC_MSG_WARN([*** $DUMP is not executable, cannot run -E/-S test])
1751 amanda_cv_dump_estimate=no
1753 if test "x$amanda_cv_dump_estimate" != xno; then
1754 AC_DEFINE_UNQUOTED(HAVE_DUMP_ESTIMATE, "$amanda_cv_dump_estimate",[Define to the string that enables dump estimates. ])
1757 AC_ARG_WITH(dump-honor-nodump,
1758 [ --with-dump-honor-nodump if dump supports -h, use it for level0s too],
1759 [ if test -x $DUMP; then
1761 [whether $DUMP supports -h (honor nodump flag)],
1762 amanda_cv_honor_nodump,
1766 AC_TRY_COMMAND($DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
1769 | $GREP -v Label >conftest.d-h 2>&1)
1770 cat conftest.d-h >&AS_MESSAGE_LOG_FD()
1771 AC_TRY_COMMAND($DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
1774 | $GREP -v Label >conftest.d 2>&1)
1775 cat conftest.d >&AS_MESSAGE_LOG_FD()
1776 if AC_TRY_COMMAND(diff conftest.d-h conftest.d 1>&2); then
1777 amanda_cv_honor_nodump=yes
1779 amanda_cv_honor_nodump=no
1781 rm -f conftest.d conftest.d-h
1783 *) amanda_cv_honor_nodump=no
1788 AC_MSG_WARN([*** $DUMP is not executable, cannot run -h test])
1789 amanda_cv_honor_nodump=no
1791 if test "x$amanda_cv_honor_nodump" = xyes; then
1792 AC_DEFINE(HAVE_HONOR_NODUMP,1,[Define this if dump accepts -h for honoring nodump. ])
1797 AC_PATH_PROGS(XFSDUMP,xfsdump,,$SYSLOCPATH)
1798 AC_PATH_PROGS(XFSRESTORE,xfsrestore,,$SYSLOCPATH)
1799 if test "$XFSDUMP" -a "$XFSRESTORE"; then
1800 AC_DEFINE_UNQUOTED(XFSDUMP,"$XFSDUMP",[Define the location of the xfsdump program on Irix hosts. ])
1801 AC_DEFINE_UNQUOTED(XFSRESTORE,"$XFSRESTORE",[Define the location of the xfsrestore program on Irix hosts. ])
1802 AC_MSG_WARN([*** xfsdump causes the setuid-root rundump program to be enabled])
1803 AC_MSG_WARN([[*** to disable it, just #undef XFSDUMP in config/config.h]])
1806 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
1807 AC_PATH_PROGS(VXDUMP,vxdump,,$VXSYSLOCPATH)
1808 AC_PATH_PROGS(VXRESTORE,vxrestore,,$VXSYSLOCPATH)
1809 if test "$VXDUMP" -a "$VXRESTORE"; then
1810 AC_DEFINE_UNQUOTED(VXDUMP,"$VXDUMP",[Define the location of the vxdump program on HPUX and SINIX hosts or on
1811 * other hosts where the Veritas filesystem (vxfs) has been installed. ])
1812 AC_DEFINE_UNQUOTED(VXRESTORE,"$VXRESTORE",[Define the location of the vxrestore program on HPUX and SINIX hosts or on
1813 * other hosts where the Veritas filesystem (vxfs) has been installed. ])
1816 AC_PATH_PROGS(VDUMP,vdump,,$SYSLOCPATH)
1817 AC_PATH_PROGS(VRESTORE,vrestore,,$SYSLOCPATH)
1818 if test "$VDUMP" -a "$VRESTORE"; then
1819 AC_DEFINE_UNQUOTED(VDUMP,"$VDUMP",[Define the location of the vdump program. ])
1820 AC_DEFINE_UNQUOTED(VRESTORE,"$VRESTORE",[Define the location of the vrestore program. ])
1823 dnl Handle all of the substitutions to make amplot work.
1824 if test "$PCAT"; then
1825 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
1829 if test "$COMPRESS"; then
1830 AMPLOT_COMPRESS=$COMPRESS
1831 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
1833 AMPLOT_CAT_COMPRESS=
1835 if test "$GZIP"; then
1836 AMPLOT_COMPRESS=$GZIP
1837 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
1841 AC_SUBST(AMPLOT_COMPRESS)
1842 AC_SUBST(AMPLOT_CAT_GZIP)
1843 AC_SUBST(AMPLOT_CAT_COMPRESS)
1844 AC_SUBST(AMPLOT_CAT_PACK)
1846 # Determine the printf format characters to use when printing
1847 # values of type long long. This will normally be "ll", but where
1848 # the compiler treats "long long" as a alias for "long" and printf
1849 # doesn't know about "long long" use "l". Hopefully the sprintf
1850 # will produce a inconsistant result in the later case. If the compiler
1851 # fails due to seeing "%lld" we fall back to "l".
1853 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
1854 # configure on Win32.
1856 AC_MSG_CHECKING(printf format modifier for 64-bit integers)
1860 long long int j = 0;
1863 sprintf(buf, "%lld", j);
1864 exit((sizeof(long long int) != sizeof(long int))? 0 :
1865 (strcmp(buf, "0") != 0));
1872 [AC_MSG_RESULT(assuming target platform uses ll)
1874 AC_DEFINE_UNQUOTED(LL_FMT,"$LL_FMT",
1875 [Format for a long long printf. ])
1878 dnl Empty GZIP so that make dist works.
1881 dnl Checks for compilers, typedefs, structures, and compiler characteristics.
1882 dnl Check for large file compilation environment.
1885 [for large file compilation CFLAGS],
1886 amanda_cv_LFS_CFLAGS,
1888 amanda_cv_LFS_CFLAGS=
1889 if test "$GETCONF"; then
1890 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
1891 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
1898 [for large file compilation LDFLAGS],
1899 amanda_cv_LFS_LDFLAGS,
1901 amanda_cv_LFS_LDFLAGS=
1902 if test "$GETCONF"; then
1903 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
1904 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
1911 [for large file compilation LIBS],
1915 if test "$GETCONF"; then
1916 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
1917 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
1923 if test "x$need_resetofs" = xyes; then
1924 AC_DEFINE(NEED_RESETOFS,1,[Define if we have to reset tape offsets when reacing 2GB. ])
1928 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
1929 CPPFLAGS="$amanda_cv_LFS_CPPFLAGS $CPPFLAGS"
1930 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
1931 LIBS="$amanda_cv_LFS_LIBS $LIBS"
1933 AC_CHECK_SIZEOF(int)
1934 AC_CHECK_SIZEOF(long)
1935 AC_CHECK_SIZEOF(long long)
1936 AC_CHECK_SIZEOF(intmax_t)
1937 AC_CHECK_SIZEOF(off_t)
1938 AC_CHECK_SIZEOF(size_t)
1939 AC_CHECK_SIZEOF(ssize_t)
1940 AC_CHECK_SIZEOF(time_t)
1943 AC_SUBST(LIBTOOL_DEPS)
1945 AC_PROG_GCC_TRADITIONAL
1948 AMANDA_C_UNSIGNED_LONG_CONSTANTS
1958 dnl From here on we need to know about STDC_HEADERS
1961 dnl AC_CHECK_TYPE does not work for socklen_t because it does not look
1962 dnl in <sys/socket.h>, so this is a variant that adds another header.
1963 AC_DEFUN([AMANDA_CHECK_TYPE],
1964 [AC_REQUIRE([AC_HEADER_STDC])dnl
1965 AC_MSG_CHECKING(for $1)
1966 AC_CACHE_VAL(ac_cv_type_$1,
1968 changequote(<<,>>)dnl
1969 <<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
1970 changequote([,]), [#include <sys/types.h>
1975 #include <$3>], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
1976 AC_MSG_RESULT($ac_cv_type_$1)
1977 if test "x$ac_cv_type_$1" = xno; then
1978 AC_DEFINE($1, $2, [Define if $1 is not a standard system type])
1981 AMANDA_CHECK_TYPE(socklen_t, int, sys/socket.h)
1982 AMANDA_CHECK_TYPE(sa_family_t, unsigned short, sys/socket.h)
1984 dnl Checks for header files.
1993 cam/scsi/scsi_message.h \
2011 netinet/in_systm.h \
2013 readline/history.h \
2014 readline/readline.h \
2035 sys/scsi/impl/uscsi.h \
2036 sys/scsi/scsi/ioctl.h \
2053 AC_CHECK_HEADERS(netinet/ip.h,,,
2054 [[#include <sys/socket.h>
2055 #if HAVE_SYS_TYPES_H
2056 #include <sys/types.h>
2058 #ifdef HAVE_NETINET_IN_SYSTM_H
2059 #include <netinet/in_systm.h>
2061 #include <netinet/in.h>
2064 AC_CHECK_HEADERS(sys/mount.h,,,
2065 [[#ifdef HAVE_SYS_PARAM_H
2066 #include <sys/param.h>
2070 NO_SCSI_CHANGER_MODE=true
2071 NO_CHIO_CHANGER_MODE=true
2078 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
2079 AC_CACHE_CHECK([for HP/UX-like scsi changer support],
2080 amanda_cv_hpux_scsi_chio,
2081 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2082 #include <sys/scsi.h>
2084 static struct element_addresses changer_info;
2085 int i = SIOC_ELEMENT_ADDRESSES;
2086 int j = SIOC_ELEMENT_STATUS;
2087 int k = SIOC_MOVE_MEDIUM;
2088 ]])],[amanda_cv_hpux_scsi_chio=yes],[amanda_cv_hpux_scsi_chio=no])])
2089 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
2090 AC_DEFINE(HAVE_HPUX_SCSI_CHIO,1,[Define to enable HPUX chio based changer support. ])
2091 NO_SCSI_CHANGER_MODE=false
2096 dnl Linux SCSI based on ioctl
2098 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
2099 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
2100 AC_CACHE_CHECK([for Linux like scsi support (ioctl)],
2101 amanda_cv_linux_scsi,
2102 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2103 #include <scsi/scsi_ioctl.h>
2104 #include <sys/mtio.h>
2108 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
2109 ]])],[amanda_cv_linux_scsi=yes],[amanda_cv_linux_scsi=no])])
2113 dnl Linux SCSI based on sg
2115 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
2116 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
2117 AC_CACHE_CHECK([for Linux like scsi support (sg)],
2118 amanda_cv_linux_sg_scsi,
2119 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2120 #include <sys/types.h>
2121 #include <scsi/sg.h>
2122 #include <sys/mtio.h>
2125 struct sg_header *psg_header;
2127 write(device, buffer, 1);
2128 ]])],[amanda_cv_linux_sg_scsi=yes],[amanda_cv_linux_sg_scsi=no])])
2131 if test x"$amanda_cv_linux_scsi" = x"yes" ||
2132 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
2133 AC_DEFINE(HAVE_LINUX_LIKE_SCSI,1,[Define to enable Linux tape-changer support.])
2134 NO_SCSI_CHANGER_MODE=false
2140 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
2141 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
2142 AC_CACHE_CHECK([for HP-UX like scsi support],
2143 amanda_cv_hpux_scsi,
2144 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2146 #include <sys/ioctl.h>
2147 #include <sys/scsi.h>
2148 #include <sys/mtio.h>
2152 ioctl(device, SIOC_IO, Command);
2153 ]])],[amanda_cv_hpux_scsi=yes],[amanda_cv_hpux_scsi=no])])
2154 if test x"$amanda_cv_hpux_scsi" = x"yes";then
2155 AC_DEFINE(HAVE_HPUX_LIKE_SCSI,1,[Define to enable HPUX tape-changer support. ])
2156 NO_SCSI_CHANGER_MODE=false
2157 NO_CHIO_CHANGER_MODE=false
2164 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
2165 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
2166 AC_CACHE_CHECK([for Irix like scsi support],
2167 amanda_cv_irix_scsi,
2168 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2169 #include <sys/types.h>
2170 #include <sys/dsreq.h>
2171 #include <sys/mtio.h>
2175 ioctl(device, DS_ENTER, &Command);
2176 ]])],[amanda_cv_irix_scsi=yes],[amanda_cv_irix_scsi=no])])
2177 if test x"$amanda_cv_irix_scsi" = x"yes";then
2178 AC_DEFINE(HAVE_IRIX_LIKE_SCSI,1,[Define to enable IRIX tape-changer support])
2179 NO_SCSI_CHANGER_MODE=false
2186 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
2187 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
2188 AC_CACHE_CHECK([for Solaris-like scsi support],
2189 amanda_cv_solaris_scsi,
2190 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2191 #include <sys/types.h>
2192 #include <sys/scsi/impl/uscsi.h>
2193 #include <sys/mtio.h>
2197 ioctl(device, USCSICMD, Command);
2198 ]])],[amanda_cv_solaris_scsi=yes],[amanda_cv_solaris_scsi=no])])
2199 if test x"$amanda_cv_solaris_scsi" = x"yes";then
2200 AC_DEFINE(HAVE_SOLARIS_LIKE_SCSI,1,[Define to enable Solaris tape-changer support])
2201 NO_SCSI_CHANGER_MODE=false
2208 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
2209 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
2210 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
2211 AC_CACHE_CHECK([for AIX like scsi support],
2213 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2214 #include <sys/types.h>
2215 #include <sys/scarray.h>
2216 #include <sys/tape.h>
2220 ioctl(device, STIOCMD, Command);
2221 ]])],[amanda_cv_aix_scsi=yes],[amanda_cv_aix_scsi=no])])
2222 if test x"$amanda_cv_aix_scsi" = x"yes";then
2223 AC_DEFINE(HAVE_AIX_LIKE_SCSI,1,[Define to enable AIX tape-changer support])
2224 NO_SCSI_CHANGER_MODE=false
2230 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
2231 AC_CACHE_CHECK([for CAM like scsi support],
2233 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2236 # include <cam/cam.h>
2237 # include <cam/cam_ccb.h>
2238 # include <cam/scsi/scsi_message.h>
2239 # include <cam/scsi/scsi_pass.h>
2240 # include <camlib.h>
2242 struct cam_device *curdev;
2244 curdev = cam_open_pass("", O_RDWR, NULL);
2245 ]])],[amanda_cv_cam_scsi=yes],[amanda_cv_cam_scsi=no])])
2246 if test x"$amanda_cv_cam_scsi" = x"yes";then
2247 AC_DEFINE(HAVE_CAM_LIKE_SCSI,1,[Define to enable CAM tape-changer support])
2248 NO_SCSI_CHANGER_MODE=false
2249 AC_CHECK_LIB(cam,main)
2257 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
2258 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
2259 AC_CACHE_CHECK([for BSD like scsi support],
2261 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2262 #include <sys/types.h>
2263 #include <sys/scsiio.h>
2264 #include <sys/mtio.h>
2268 ioctl(device, SCIOCCOMMAND, &Command);
2269 ]])],[amanda_cv_bsd_scsi=yes],[amanda_cv_bsd_scsi=no])])
2270 if test x"$amanda_cv_bsd_scsi" = x"yes";then
2271 AC_DEFINE(HAVE_BSD_LIKE_SCSI,1,[Define to enable BSD tape-changer support])
2272 NO_SCSI_CHANGER_MODE=false
2276 dnl Do not build chg-scsi-chio if we cannot find the needed support
2277 dnl include files for the SCSI interfaces
2278 dnl chio.h and sys/chio.h are chio based systems
2279 if test x"$ac_cv_header_chio_h" = x"yes" ||
2280 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
2281 dnl chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
2282 dnl incompatible with the introduction of camlib.h
2283 if test x"$ac_cv_header_camlib_h" != x"yes"; then
2284 if $NO_SCSI_CHANGER_MODE; then
2285 NO_SCSI_CHANGER_MODE=false
2287 NO_CHIO_CHANGER_MODE=false
2292 dnl cur_colr is on some HP's
2293 AC_CHECK_LIB(cur_colr,main)
2295 AC_CHECK_LIB(intl,main)
2297 dnl Make sure we don't use -lnsl and -lsun on Irix systems.
2300 AC_CHECK_LIB(socket,main)
2303 AC_CHECK_LIB(resolv,main)
2304 AC_CHECK_LIB(nsl,main)
2305 AC_CHECK_LIB(socket,main)
2306 AC_CHECK_LIB(sun,main)
2310 AC_CHECK_LIB(termcap,tgetent)
2311 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
2312 AC_CHECK_LIB(curses,tgetent)
2313 if test "x$ac_cv_lib_curses_tgetent" != xyes; then
2314 AC_CHECK_LIB(ncurses,tgetent)
2317 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
2318 test "x$ac_cv_lib_curses_tgetent" = xyes ||
2319 test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
2320 AC_CHECK_LIB(readline,readline)
2321 if test "x$ac_cv_lib_readline_readline" = xyes; then
2322 READLINE_LIBS="-lreadline"
2323 AC_SUBST(READLINE_LIBS)
2325 AC_MSG_WARN([*** No readline library, no history and command line editing in amrecover!])
2328 AC_MSG_WARN([*** No terminal library, no history and command line editing in amrecover!])
2331 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
2332 if test "x$ac_cv_header_vtblc_h" = xyes; then
2333 AC_CHECK_LIB(vtblc,main)
2334 if test "x$ac_cv_lib_vtblc_main" != xyes; then
2335 AC_MSG_WARN([*** vtblc library not found - no QIC volume table support!])
2338 AC_MSG_WARN([*** vtblc headers not found - no QIC volume table support!])
2342 AC_CHECK_LIB(m,modf)
2344 dnl Check for various "mt status" related structure elements.
2346 AC_MSG_CHECKING(for mt_flags mtget structure element)
2347 mt_flags_result="found"
2348 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2350 #include <sys/types.h>
2351 #include <sys/mtio.h>
2357 ]])],[AC_DEFINE(HAVE_MT_FLAGS,1,Define if the mtget structure has an mt_flags field)],[mt_flags_result="not found"])
2358 AC_MSG_RESULT($mt_flags_result)
2360 AC_MSG_CHECKING(for mt_fileno mtget structure element)
2361 mt_fileno_result="found"
2362 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2364 #include <sys/types.h>
2365 #include <sys/mtio.h>
2371 ]])],[AC_DEFINE(HAVE_MT_FILENO,1,Define if the mtget structure has an mt_fileno field)],[mt_fileno_result="not found"])
2372 AC_MSG_RESULT($mt_fileno_result)
2374 AC_MSG_CHECKING(for mt_blkno mtget structure element)
2375 mt_blkno_result="found"
2376 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2378 #include <sys/types.h>
2379 #include <sys/mtio.h>
2385 ]])],[AC_DEFINE(HAVE_MT_BLKNO,1,Define if the mtget structure has an mt_blkno field)],[mt_blkno_result="not found"])
2386 AC_MSG_RESULT($mt_blkno_result)
2388 AC_MSG_CHECKING(for mt_dsreg mtget structure element)
2389 mt_dsreg_result="found"
2390 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2392 #include <sys/types.h>
2393 #include <sys/mtio.h>
2399 ]])],[AC_DEFINE(HAVE_MT_DSREG,1,Define if the mtget structure has an mt_dsreg field)],[mt_dsreg_result="not found"])
2400 AC_MSG_RESULT($mt_dsreg_result)
2402 AC_MSG_CHECKING(for mt_erreg mtget structure element)
2403 mt_erreg_result="found"
2404 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2406 #include <sys/types.h>
2407 #include <sys/mtio.h>
2413 ]])],[AC_DEFINE(HAVE_MT_ERREG,1,Define if the mtget structure has an mt_erreg field)],[mt_erreg_result="not found"])
2414 AC_MSG_RESULT($mt_erreg_result)
2418 dnl Check if the system does support the user requested database library.
2419 dnl Begin by checking for the header file. If it is not there, then do
2420 dnl not use the library. If the header file is there, then try to link
2421 dnl against the library. If it's not there, then try to link using
2422 dnl just the -lc library. If the link against -lc fails, then do not
2423 dnl use this library.
2427 dnl Testing if libc contains the dbm_open routine is tested for a
2428 dnl lot of times below. We do it once here now.
2430 AC_CHECK_LIB(c,dbm_open)
2435 if test "x$ac_cv_header_db_h" = xyes; then
2436 AC_CHECK_LIB(db,main)
2437 if test "x$ac_cv_lib_db_main" = xyes; then
2438 AC_CHECK_LIB(db,dbm_open)
2439 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
2444 AC_MSG_WARN([*** db database library requested but dbm_open not found in -ldb.])
2447 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
2452 AC_MSG_WARN([*** db library requested but -ldb doesn't exist and dbm_open cannot be found.])
2457 AC_MSG_WARN([*** db database library requested but db.h not found.])
2462 if test "x$ac_cv_header_dbm_h" = xyes; then
2463 AC_CHECK_LIB(dbm,main)
2464 if test "x$ac_cv_lib_dbm_main" = xyes; then
2465 AC_CHECK_LIB(dbm,dbm_open)
2466 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
2471 AC_MSG_WARN([*** dbm database library requested but dbm_open not found in -ldbm.])
2474 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
2479 AC_MSG_WARN([*** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found.])
2484 AC_MSG_WARN([*** dbm database library requested but dbm.h not found.])
2489 if test "x$ac_cv_header_ndbm_h" = xyes; then
2490 AC_CHECK_LIB(gdbm,main)
2491 if test "x$ac_cv_lib_gdbm_main" = xyes; then
2492 AC_CHECK_LIB(gdbm,dbm_open)
2493 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
2498 AC_MSG_WARN([*** gdbm database library requested but -lgdbm not found.])
2501 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
2506 AC_MSG_WARN([*** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found.])
2511 AC_MSG_WARN([*** gdbm database library requested but ndbm.h not found.])
2516 if test "x$ac_cv_header_ndbm_h" = xyes; then
2517 AC_CHECK_LIB(ndbm,main)
2518 if test "x$ac_cv_lib_ndbm_main" = xyes; then
2519 AC_CHECK_LIB(ndbm,dbm_open)
2520 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
2525 AC_MSG_WARN([*** ndbm database library requested but -lndbm not found.])
2528 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
2533 AC_MSG_WARN([*** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found.])
2538 AC_MSG_WARN([*** ndbm database library requested but ndbm.h not found.])
2547 dnl If a database style was not specified select an appropriate one
2549 dnl Nowadays we default to our own internal text database, but I have left
2550 dnl the code that does the testing here just in case it is needed one day.
2552 if test -z "$DB_STYLE"; then
2558 dnl if test -z "$DB_STYLE" -a "x$ac_cv_header_ndbm_h" = xyes; then
2559 dnl AC_CHECK_LIB(ndbm,dbm_open)
2560 dnl if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
2562 dnl DB_HEADER=ndbm.h
2564 dnl elif test "x$ac_cv_lib_c_dbm_open" = xyes; then
2566 dnl DB_HEADER=ndbm.h
2571 dnl if test -z "$DB_STYLE" -a "x$ac_cv_header_db_h" = xyes; then
2572 dnl AC_CHECK_LIB(db,dbm_open)
2573 dnl if test "x$ac_cv_lib_db_dbm_open" = xyes; then
2577 dnl elif test "x$ac_cv_lib_c_dbm_open" = xyes; then
2584 dnl if test -z "$DB_STYLE" -a "x$ac_cv_header_dbm_h" = xyes; then
2585 dnl AC_CHECK_LIB(dbm,dbm_open)
2586 dnl if test "x$ac_cv_lib_db_dbm_open" = xyes; then
2590 dnl elif test "x$ac_cv_lib_c_dbm_open" = xyes; then
2597 dnl if test -z "$DB_STYLE" -a "x$ac_cv_header_ndbm_h" = xyes; then
2598 dnl AC_CHECK_LIB(gdbm,dbm_open)
2599 dnl if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
2601 dnl DB_HEADER=ndbm.h
2603 dnl elif test "x$ac_cv_lib_c_dbm_open" = xyes; then
2605 dnl DB_HEADER=ndbm.h
2610 dnl if test -z "$DB_STYLE"; then
2611 dnl if test "x$ac_cv_lib_c_dbm_open" = xyes; then
2612 dnl AC_MSG_WARN([*** A dbm_open() routine was found in -lc, but no header])
2613 dnl AC_MSG_WARN([*** files exist. Please remedy the situation.])
2615 dnl AC_MSG_WARN([*** No dbm_open() routine found!])
2617 dnl AC_MSG_WARN([*** You may want to install the gdbm library from])
2618 dnl AC_MSG_WARN([*** ftp://prep.ai.mit.edu/pub/gnu/gdbm-1.7.3.tar.gz.])
2620 dnl AC_MSG_WARN([*** Using the built-in text database.])
2626 if test "x$DB_STYLE" = xtext; then
2627 AC_DEFINE(TEXTDB,1,[Define to enable the text-based database format. ])
2629 AC_MSG_CHECKING([for database])
2630 AC_MSG_RESULT([header is $DB_HEADER, linking against -l$DB_LIB])
2632 db) AC_DEFINE(USE_DB_H,1,[Define to enable db databases. ]) ;;
2633 dbm) AC_DEFINE(USE_DBM_H,1,[Define to enable dbm databases. ]) ;;
2634 gdbm) AC_DEFINE(USE_GDBM_H,1,[Define to enable gdbm databases. ]) ;;
2635 ndbm) AC_DEFINE(USE_NDBM_H,1,[Define to enable ndbm databases. ]) ;;
2639 [for struct datum declared in header files],
2640 amanda_cv_struct_datum,
2642 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2643 #if defined(USE_DB_H)
2646 # if defined(USE_DBM_H)
2649 # if defined(USE_NDBM_H)
2656 ]])],[amanda_cv_struct_datum=yes],[amanda_cv_struct_datum=no
2659 if test "x$amanda_cv_struct_datum" = xyes; then
2660 AC_DEFINE(HAVE_STRUCT_DATUM,1,[Define if the database header declares struct datum. ])
2667 dbm | ndbm) DB_EXT=".dir .pag";;
2673 AC_CACHE_CHECK(whether _POSIX2_RE_DUP_MAX is defined,
2674 amanda_cv_have__posix2_re_dup_max,
2677 #ifdef _POSIX2_RE_DUP_MAX
2680 ], amanda_cv_have__posix2_re_dup_max=yes, amanda_cv_have__posix2_re_dup_max=no))
2681 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
2682 AC_DEFINE(HAVE__POSIX2_RE_DUP_MAX,1,[Define if limits.h defines _POSIX2_RE_DUP_MAX. ])
2685 AC_CACHE_CHECK(whether CHAR_MIN is defined,
2686 amanda_cv_have_char_min,
2692 ], amanda_cv_have_char_min=yes, amanda_cv_have_char_min=no))
2693 if test "x$amanda_cv_have_char_min" = xyes; then
2694 AC_DEFINE(HAVE_CHAR_MIN,1,[Define if limits.h defines CHAR_MIN. ])
2697 AC_CACHE_CHECK(whether CHAR_MAX is defined,
2698 amanda_cv_have_char_max,
2704 ], amanda_cv_have_char_max=yes, amanda_cv_have_char_max=no))
2705 if test "x$amanda_cv_have_char_max" = xyes; then
2706 AC_DEFINE(HAVE_CHAR_MAX,1,[Define if limits.h defines CHAR_MAX. ])
2709 AC_CACHE_CHECK(whether CHAR_BIT is defined,
2710 amanda_cv_have_char_bit,
2716 ], amanda_cv_have_char_bit=yes, amanda_cv_have_char_bit=no))
2717 if test "x$amanda_cv_have_char_bit" = xyes; then
2718 AC_DEFINE(HAVE_CHAR_BIT,1,[Define if limits.h defines CHAR_BIT. ])
2721 dnl Checks for library functions and if the function is declared in
2722 dnl an appropriate header file. Add some of the missing functions
2724 ICE_CHECK_DECL(accept,sys/types.h sys/socket.h)
2726 AC_CHECK_FUNCS(atexit)
2727 ICE_CHECK_DECL(atof,stdlib.h)
2728 ICE_CHECK_DECL(atoi,stdlib.h)
2729 ICE_CHECK_DECL(atol,stdlib.h)
2730 ICE_CHECK_DECL(atoll,stdlib.h)
2731 AC_CHECK_FUNCS(basename)
2732 ICE_CHECK_DECL(bind,sys/types.h sys/socket.h)
2733 ICE_CHECK_DECL(bcopy,string.h strings.h stdlib.h)
2734 ICE_CHECK_DECL(bzero,string.h strings.h stdlib.h)
2735 AC_FUNC_CLOSEDIR_VOID
2736 ICE_CHECK_DECL(closelog,syslog.h)
2737 ICE_CHECK_DECL(connect,sys/types.h sys/socket.h)
2738 ICE_CHECK_DECL(dbm_open,${DB_HEADER-no/db/header/file})
2739 AC_CHECK_FUNCS(endmntent)
2740 ICE_CHECK_DECL(fclose,stdio.h)
2741 ICE_CHECK_DECL(fflush,stdio.h)
2742 ICE_CHECK_DECL(flock,sys/file.h)
2743 ICE_CHECK_DECL(fprintf,stdio.h)
2744 ICE_CHECK_DECL(fputc,stdio.h)
2745 ICE_CHECK_DECL(fputs,stdio.h)
2746 ICE_CHECK_DECL(fread,stdio.h stdlib.h)
2747 ICE_CHECK_DECL(fseek,stdio.h)
2748 ICE_CHECK_DECL(fwrite,stdio.h stdlib.h)
2749 AC_REPLACE_FUNCS(getcwd)
2750 AC_CHECK_FUNCS(getfsent)
2751 ICE_CHECK_DECL(gethostname,unistd.h)
2753 ICE_CHECK_DECL(getopt,stdlib.h unistd.h libc.h)
2754 ICE_CHECK_DECL(getpeername,sys/types.h sys/socket.h)
2755 AC_CHECK_FUNCS(getpgrp)
2757 ICE_CHECK_DECL(getsockname,sys/types.h sys/socket.h)
2758 ICE_CHECK_DECL(getsockopt,sys/types.h sys/socket.h)
2759 ICE_CHECK_DECL(gettimeofday,time.h sys/time.h)
2760 AMANDA_FUNC_GETTIMEOFDAY_ARGS
2761 AC_CHECK_FUNCS(getvfsent initgroups isascii)
2762 ICE_CHECK_DECL(initgroups,grp.h sys/types.h unistd.h libc.h)
2763 ICE_CHECK_DECL(ioctl,sys/ioctl.h unistd.h libc.h)
2764 ICE_CHECK_DECL(isnormal,math.h)
2765 ICE_CHECK_DECL(listen,sys/types.h sys/socket.h)
2766 ICE_CHECK_DECL(lstat,sys/types.h sys/stat.h)
2767 ICE_CHECK_DECL(malloc,stdlib.h)
2768 AC_REPLACE_FUNCS(memmove)
2769 ICE_CHECK_DECL(memmove,string.h strings.h)
2770 ICE_CHECK_DECL(memset,string.h strings.h)
2771 AC_CHECK_FUNCS(mkdir)
2772 ICE_CHECK_DECL(mkstemp,stdlib.h)
2773 ICE_CHECK_DECL(mktemp,stdlib.h)
2774 AC_REPLACE_FUNCS(mktime)
2775 ICE_CHECK_DECL(mktime,time.h sys/time.h)
2777 dnl atexit() is prefered, sunos (maybe others?) define on_exit
2778 AC_CHECK_FUNCS(on_exit)
2779 ICE_CHECK_DECL(openlog,syslog.h)
2780 ICE_CHECK_DECL(pclose,stdio.h)
2781 ICE_CHECK_DECL(perror,stdio.h)
2782 ICE_CHECK_DECL(printf,stdio.h)
2783 AC_CHECK_FUNCS(putenv)
2784 ICE_CHECK_DECL(puts,stdio.h)
2785 ICE_CHECK_DECL(realloc,stdlib.h)
2786 ICE_CHECK_DECL(recvfrom,sys/types.h sys/socket.h)
2787 ICE_CHECK_DECL(remove,stdio.h)
2788 ICE_CHECK_DECL(rename,stdio.h)
2789 ICE_CHECK_DECL(rewind,stdio.h)
2790 AC_CHECK_FUNCS(rmdir)
2791 ICE_CHECK_DECL(ruserok,netdb.h sys/socket.h libc.h unistd.h)
2792 ICE_CHECK_DECL(select,sys/types.h sys/socket.h sys/select.h time.h sys/time.h)
2793 AMANDA_FUNC_SELECT_ARG_TYPE
2794 ICE_CHECK_DECL(sendto,sys/types.h sys/socket.h)
2795 ICE_CHECK_DECL(setegid,unistd.h)
2796 ICE_CHECK_DECL(seteuid,unistd.h)
2797 AC_CHECK_FUNCS(setmntent)
2798 AC_CHECK_FUNCS(shquote)
2800 ICE_CHECK_DECL(setresgid,unistd.h)
2801 ICE_CHECK_DECL(setresuid,unistd.h)
2803 dnl arguments for setpgrp or not
2804 AC_CHECK_FUNC(setpgid, [
2805 AC_DEFINE(HAVE_SETPGID,1,[Define if setpgid() is available. ])
2806 ICE_CHECK_DECL(setpgid,sys/types.h unistd.h)
2808 AC_CHECK_FUNC(setpgrp,[AC_FUNC_SETPGRP])
2809 ICE_CHECK_DECL(setpgrp,sys/types.h unistd.h libc.h)
2811 ICE_CHECK_DECL(setsockopt,sys/types.h sys/socket.h)
2813 AC_CHECK_FUNCS(shmget,
2815 AMANDA_FUNC_SHM_ARG_TYPE
2816 case "$FORCE_MMAP" in
2818 AC_DEFINE(HAVE_SYSVSHM,1,[Define if SysV shared-memory functions are available. ])
2823 ICE_CHECK_DECL(shmat,sys/types.h sys/ipc.h sys/shm.h)
2824 ICE_CHECK_DECL(shmctl,sys/types.h sys/ipc.h sys/shm.h)
2825 ICE_CHECK_DECL(shmdt,sys/types.h sys/ipc.h sys/shm.h)
2826 ICE_CHECK_DECL(shmget,sys/types.h sys/ipc.h sys/shm.h)
2828 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
2829 case "$FORCE_MMAP" in
2831 if test "x$ac_cv_func_shmget" != xyes; then
2832 AC_MSG_WARN([*** Neither shmget() nor mmap() found!])
2833 AC_MSG_WARN([*** This system will not support the Amanda server.])
2838 AC_MSG_WARN([*** --with-mmap used on a system with no mmap() support!])
2839 AC_MSG_WARN([*** This system will not support the Amanda server.])
2845 dnl Some systems have snprintf but not vsnprintf. If either snprintf or
2846 dnl vsnprintf are missing, then use the snprintf.c we provide.
2847 ICE_CHECK_DECL(snprintf,stdio.h)
2848 ICE_CHECK_DECL(vsnprintf,stdio.h)
2849 if test x"$ice_have_snprintf" != x"yes" ||
2850 test x"$ice_have_vsnprintf" != x"yes"; then
2851 AC_LIBOBJ([snprintf])
2853 dnl so that automake includes snprintf.c in the distribution
2854 AC_REPLACE_FUNCS(snprintf)
2858 AC_CHECK_FUNCS(sigaction sigemptyset sigvec)
2859 ICE_CHECK_DECL(socket,sys/types.h sys/socket.h)
2860 ICE_CHECK_DECL(socketpair,sys/types.h sys/socket.h)
2861 ICE_CHECK_DECL(sscanf,stdio.h)
2862 AC_CHECK_FUNCS(statfs statvfs)
2863 AC_REPLACE_FUNCS(strerror)
2864 ICE_CHECK_DECL(strerror,string.h strings.h)
2866 AC_REPLACE_FUNCS(strftime)
2867 ICE_CHECK_DECL(strftime,time.h sys/time.h)
2868 AC_REPLACE_FUNCS(strncasecmp)
2869 ICE_CHECK_DECL(strncasecmp,string.h strings.h)
2870 AC_REPLACE_FUNCS(strstr)
2871 ICE_CHECK_DECL(syslog,syslog.h)
2872 ICE_CHECK_DECL(system,stdlib.h)
2873 ICE_CHECK_DECL(time,time.h sys/time.h)
2874 ICE_CHECK_DECL(tolower,ctype.h)
2875 ICE_CHECK_DECL(toupper,ctype.h)
2876 ICE_CHECK_DECL(ungetc,stdio.h)
2878 ICE_CHECK_DECL(vfprintf,stdio.h stdlib.h)
2879 ICE_CHECK_DECL(vprintf,stdio.h stdlib.h)
2880 ICE_CHECK_DECL(vsprintf,stdio.h stdlib.h)
2881 AC_CHECK_FUNC(wait4)
2882 AC_REPLACE_FUNCS(waitpid)
2883 AC_REPLACE_FUNCS(writev)
2884 ICE_CHECK_DECL(writev, unistd.h sys/uio.h)
2885 AC_REPLACE_FUNCS(strcasecmp)
2886 ICE_CHECK_DECL(strcasecmp,string.h strings.h)
2888 AC_CHECK_FUNCS(fnmatch)
2891 dnl disk device prefixes
2892 AC_MSG_CHECKING(disk device prefixes)
2893 dnl Use df to find the mount point for the root filesystem. Use
2894 dnl the positional parameters to find the particular line from df
2895 dnl that contains the root paritition. We put it in a subshell so
2896 dnl that the original positional parameters are not messed with.
2898 df / | while read line; do
2900 while test $# -gt 0; do
2901 if test "x$1" = "x/"; then
2908 ) | sed 's/(//' | sed 's/)//' `
2910 dnl Search for the mount point by using expr to find the parameter
2914 while test $# -gt 0; do
2915 if expr "$1" : '.*dev' >/dev/null 2>&1; then
2923 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
2924 AC_MSG_RESULT((predefined) $DEV_PREFIX - $RDEV_PREFIX)
2926 if test -d /dev/dsk; then
2927 DEV_PREFIX=/dev/dsk/
2928 if test -d /dev/rdsk; then
2929 RDEV_PREFIX=/dev/rdsk/
2931 RDEV_PREFIX=/dev/dsk/
2933 elif test -d /dev; then
2936 dev_prefix=/dev/dsk/
2937 rdev_prefix=/dev/rdsk/
2938 AC_MSG_WARN("*** Run amsinixfixdevs on Sinix systems using VxFS.")
2943 # Some systems, notably Linux, do not have raw disk devices
2944 # names. Check this by trying to see if a raw disk device name
2945 # exists using the normal raw device path prepended to the
2946 # mount point of the root filesystem.
2947 if test "$mount"; then
2948 dev_name="/dev/r`basename $mount`"
2949 if test -b $dev_name -o -c $dev_name; then
2963 AC_MSG_RESULT($DEV_PREFIX - $RDEV_PREFIX)
2966 AC_DEFINE_UNQUOTED(DEV_PREFIX,"${DEV_PREFIX}",[Define as the prefix for disk devices, commonly /dev/ or /dev/dsk/ ])
2967 AC_DEFINE_UNQUOTED(RDEV_PREFIX,"${RDEV_PREFIX}",[Define as the prefix for raw disk devices, commonly /dev/r or /dev/rdsk/ ])
2971 AC_MSG_WARN("*** Run amhpfixdevs on HP-UX systems using /dev/vg??.")
2975 dnl lock/flock/fcntl
2977 [whether posix fcntl locking works],
2978 amanda_cv_posix_filelocking,
2980 AC_RUN_IFELSE([AC_LANG_SOURCE([[
2982 #define CONFIGURE_TEST
2983 #define USE_POSIX_FCNTL
2984 #include "${srcdir-.}/common-src/amflock.c"
2986 amanda_cv_posix_filelocking=yes
2988 amanda_cv_posix_filelocking="no"
2990 amanda_cv_posix_filelocking="no (cannot run test)"
2992 rm -f /tmp/conftest.lock
2994 if test "x$amanda_cv_posix_filelocking" = xyes; then
2995 AC_DEFINE(USE_POSIX_FCNTL,1,[Define to use Posix fcntl for file locking.])
2996 HAS_WORKING_FILE_LOCK=1
2999 if test -z "$HAS_WORKING_FILE_LOCK"; then
3001 [whether flock locking works],
3002 amanda_cv_flock_filelocking,
3004 AC_RUN_IFELSE([AC_LANG_SOURCE([[
3006 #define CONFIGURE_TEST
3008 #include "${srcdir-.}/common-src/amflock.c"
3010 amanda_cv_flock_filelocking="yes"
3012 amanda_cv_flock_filelocking="no"
3014 amanda_cv_flock_filelocking="no (cannot run test)"
3016 rm -f /tmp/conftest.lock
3018 if test "x$amanda_cv_flock_filelocking" = xyes; then
3019 AC_DEFINE(USE_FLOCK,1,[Define to use flock for file locking.])
3020 HAS_WORKING_FILE_LOCK=1
3024 if test -z "$HAS_WORKING_FILE_LOCK"; then
3026 [whether lockf locking works],
3027 amanda_cv_lockf_filelocking,
3029 AC_RUN_IFELSE([AC_LANG_SOURCE([[
3031 #define CONFIGURE_TEST
3033 #include "${srcdir-.}/common-src/amflock.c"
3035 amanda_cv_lockf_filelocking="yes"
3037 amanda_cv_lockf_filelocking="no"
3039 amanda_cv_lockf_filelocking="no (cannot run test)"
3041 rm -f /tmp/conftest.lock
3043 if test "x$amanda_cv_lockf_filelocking" = xyes; then
3044 AC_DEFINE(USE_LOCKF,1,[Define to use lockf for file locking.])
3045 HAS_WORKING_FILE_LOCK=1
3049 if test -z "$HAS_WORKING_FILE_LOCK"; then
3051 [whether lnlock locking works],
3052 amanda_cv_lnlock_filelocking,
3054 AC_RUN_IFELSE([AC_LANG_SOURCE([[
3056 #define CONFIGURE_TEST
3058 #include "${srcdir-.}/common-src/amflock.c"
3059 #include "${srcdir-.}/common-src/alloc.c"
3060 #include "${srcdir-.}/common-src/error.c"
3061 #include "${srcdir-.}/common-src/snprintf.c"
3063 amanda_cv_lnlock_filelocking="yes"
3065 amanda_cv_lnlock_filelocking="no"
3067 amanda_cv_lnlock_filelocking="no (cannot run test)"
3069 rm -f /tmp/conftest.lock
3071 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
3072 AC_DEFINE(USE_LNLOCK,1,[Define to use a hard-link based approach for file locking.])
3073 HAS_WORKING_FILE_LOCK=1
3077 if test -z "$HAS_WORKING_FILE_LOCK"; then
3078 AC_MSG_WARN([*** No working file locking capability found!])
3079 AC_MSG_WARN([*** Be VERY VERY careful.])
3082 dnl extra substitution parameters
3089 AM_CONDITIONAL(WANT_CLIENT, test x"$NO_CLIENT_MODE" != x"true")
3090 AM_CONDITIONAL(WANT_SAMBA, test ! -z "$SAMBA_CLIENT")
3091 AM_CONDITIONAL(WANT_RESTORE, test x"$NO_RESTORE_MODE" != x"true")
3092 AM_CONDITIONAL(WANT_SERVER, test x"$NO_SERVER_MODE" != x"true")
3093 AM_CONDITIONAL(WANT_RECOVER, test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true")
3094 AM_CONDITIONAL(WANT_TAPE, test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true")
3095 AM_CONDITIONAL(WANT_AMPLOT, test x"$NO_AMPLOT_MODE" != x"true")
3096 AM_CONDITIONAL(WANT_CHG_SCSI, test x"$NO_SCSI_CHANGER_MODE" != x"true")
3097 AM_CONDITIONAL(WANT_CHIO_SCSI, test x"$NO_CHIO_CHANGER_MODE" != x"true")
3098 AM_CONDITIONAL(WANT_RUNTIME_PSEUDO_RELOC, test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true")
3099 AM_CONDITIONAL(WANT_SETUID_CLIENT, test x"$NEED_SETUID_CLIENT" != x"false")
3100 AM_CONDITIONAL(WANT_SSH_SECURITY, test x"$SSH_SECURITY_SET" = x"true")
3102 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
3103 y | ye | yes) AC_DEFINE(USE_RUNDUMP,1,[Define to invoke rundump (setuid-root) instead of DUMP program directly. ]);;
3106 # This is necessary so that .o files in LIBOBJS are also built via
3107 # the ANSI2KNR-filtering rules.
3108 LIB@&t@OBJS=`echo "$LIB@&t@OBJS" |
3109 sed 's,\.[[^.]]* ,$U&,g;s,\.[[^.]]*$,$U&,'`
3110 LTLIBOBJS=`echo "$LIB@&t@OBJS" |
3111 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
3114 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
3117 ## This stuff is needed for the documentation.
3118 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
3119 AC_SUBST(DOC_BUILD_DATE)
3121 AC_ARG_WITH(built-manpages,
3122 [ --without-built-manpages Do not build manpages from XML source.],
3123 [ BUILDMANPAGES=$withval; ],
3124 [ BUILDMANPAGES=yes; ])
3125 AM_CONDITIONAL(BUILD_MAN_PAGES, test "x$BUILDMANPAGES" = "xyes")
3127 AC_PATH_PROGS(XSLTPROC,xsltproc,,$LOCSYSPATH)
3128 if test -z "$XSLTPROC"; then
3130 AC_MSG_WARN([can't find xsltproc, xsltproc support is unavailable])
3133 AC_DEFINE(HAVE_XSLTPROC,1,[xslt is available to generate man pages])
3135 AM_CONDITIONAL(HAVE_XSLTPROC, test "x$USE_XSLTPROC" = "xyes")
3137 #### Enforce amanda code cleanliness rules.
3138 #### Done here to allow configuration code to remain intact.
3139 if test "x$CC" = "xgcc"; then
3140 AM_CFLAGS="$AM_CFLAGS -Wall"
3141 $CC -v --help 2>&1 | $GREP -- '-Wextra ' 2>&1 > /dev/null
3142 if test $? -eq 0; then
3143 AM_CFLAGS="$AM_CFLAGS -Wextra"
3145 AM_CFLAGS="$AM_CFLAGS -W"
3148 $CC -v --help 2>&1 | $GREP -- '-Wparentheses' 2>&1 > /dev/null
3149 if test $? -eq 0; then
3150 AM_CFLAGS="$AM_CFLAGS -Wparentheses"
3153 $CC -v --help 2>&1 | $GREP -- '-Wdeclaration-after-statement' 2>&1 > /dev/null
3154 if test $? -eq 0; then
3155 AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
3158 $CC -v --help 2>&1 | $GREP -- '-Wmissing-prototypes ' 2>&1 > /dev/null
3159 if test $? -eq 0; then
3160 AM_CFLAGS="$AM_CFLAGS -Wmissing-prototypes"
3163 $CC -v --help 2>&1 | $GREP -- '-Wstrict-prototypes ' 2>&1 > /dev/null
3164 if test $? -eq 0; then
3165 AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"
3168 $CC -v --help 2>&1 | $GREP -- '-Wmissing-declarations ' 2>&1 > /dev/null
3169 if test $? -eq 0; then
3170 AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations"
3173 $CC -v --help 2>&1 | $GREP -- '-Wformat' 2>&1 > /dev/null
3174 if test $? -eq 0; then
3175 AM_CFLAGS="$AM_CFLAGS -Wformat"
3178 $CC -v --help 2>&1 | $GREP -- '-Wsign-compare' 2>&1 > /dev/null
3179 if test $? -eq 0; then
3180 AM_CFLAGS="$AM_CFLAGS -Wsign-compare"
3183 $CC -v --help 2>&1 | $GREP -- '-fno-strict-aliasing' 2>&1 > /dev/null
3184 if test $? -eq 0; then
3185 AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"
3188 $CC -v --help 2>&1 | $GREP -- '-Wfloat-equal' 2>&1 > /dev/null
3189 if test $? -eq 0; then
3190 AM_CFLAGS="$AM_CFLAGS -Wfloat-equal"
3193 $CC -v --help 2>&1 | $GREP -- '-Wold-style-definition' 2>&1 > /dev/null
3194 if test $? -eq 0; then
3195 AM_CFLAGS="$AM_CFLAGS -Wold-style-definition"
3201 amplot/amcat.awk amplot/amplot.sh \
3204 amandad-src/Makefile \
3206 changer-src/chg-manual.sh changer-src/chg-multi.sh \
3207 changer-src/chg-mtx.sh changer-src/chg-chs.sh \
3208 changer-src/chg-rth.pl changer-src/chg-chio.pl \
3209 changer-src/chg-zd-mtx.sh changer-src/Makefile \
3210 changer-src/chg-juke.sh changer-src/chg-rait.sh \
3211 changer-src/chg-null.sh changer-src/chg-mcutil.sh \
3212 changer-src/chg-disk.sh changer-src/chg-iomega.pl \
3214 client-src/patch-system.sh client-src/Makefile \
3216 dumper-src/gnutar.pl dumper-src/generic-dumper.pl \
3217 dumper-src/Makefile \
3219 common-src/versuff.c common-src/Makefile \
3221 example/amanda.conf example/Makefile \
3222 example/chg-mcutil.conf example/amanda-client.conf \
3228 recover-src/Makefile \
3230 oldrecover-src/Makefile \
3232 restore-src/Makefile \
3234 server-src/amcheckdb.sh server-src/amcleanup.sh \
3235 server-src/amdump.sh server-src/amfreetapes.sh \
3236 server-src/amoverview.pl server-src/amrmtape.sh \
3237 server-src/amtoc.pl server-src/amverify.sh \
3238 server-src/Makefile server-src/amstatus.pl \
3239 server-src/amverifyrun.sh server-src/amcrypt.sh \
3240 server-src/amaespipe.sh server-src/amcrypt-ossl.sh \
3241 server-src/amcrypt-ossl-asym.sh \
3244 config/Makefile Makefile])