3
# Check for programs used in building/installation.
4
AC_DEFUN(AM_PROGRAMS_SET, [
6
AC_CHECK_TOOL(db_cv_path_ar, ar, missing_ar)
7
if test "$db_cv_path_ar" = missing_ar; then
8
AC_MSG_ERROR([No ar utility found.])
11
AC_CHECK_TOOL(db_cv_path_chmod, chmod, missing_chmod)
12
if test "$db_cv_path_chmod" = missing_chmod; then
13
AC_MSG_ERROR([No chmod utility found.])
16
AC_CHECK_TOOL(db_cv_path_cp, cp, missing_cp)
17
if test "$db_cv_path_cp" = missing_cp; then
18
AC_MSG_ERROR([No cp utility found.])
21
if test "$db_cv_rpm" = "yes"; then
22
AC_CHECK_TOOL(path_ldconfig, ldconfig, missing_ldconfig)
23
AC_PATH_PROG(db_cv_path_ldconfig, $path_ldconfig, missing_ldconfig)
24
if test "$db_cv_path_ldconfig" != missing_ldconfig; then
25
RPM_POST_INSTALL="%post -p $db_cv_path_ldconfig"
26
RPM_POST_UNINSTALL="%postun -p $db_cv_path_ldconfig"
30
AC_CHECK_TOOL(db_cv_path_ln, ln, missing_ln)
31
if test "$db_cv_path_ln" = missing_ln; then
32
AC_MSG_ERROR([No ln utility found.])
35
AC_CHECK_TOOL(db_cv_path_mkdir, mkdir, missing_mkdir)
36
if test "$db_cv_path_mkdir" = missing_mkdir; then
37
AC_MSG_ERROR([No mkdir utility found.])
40
# We need a complete path for ranlib, because it doesn't exist on some
41
# architectures because the ar utility packages the library itself.
42
AC_CHECK_TOOL(path_ranlib, ranlib, missing_ranlib)
43
AC_PATH_PROG(db_cv_path_ranlib, $path_ranlib, missing_ranlib)
45
AC_CHECK_TOOL(db_cv_path_rm, rm, missing_rm)
46
if test "$db_cv_path_rm" = missing_rm; then
47
AC_MSG_ERROR([No rm utility found.])
50
if test "$db_cv_rpm" = "yes"; then
51
AC_CHECK_TOOL(db_cv_path_rpm, rpm, missing_rpm)
52
if test "$db_cv_path_rpm" = missing_rpm; then
53
AC_MSG_ERROR([No rpm utility found.])
57
# We need a complete path for sh, because some implementations of make
58
# get upset if SHELL is set to just the command name.
59
AC_CHECK_TOOL(path_sh, sh, missing_sh)
60
AC_PATH_PROG(db_cv_path_sh, $path_sh, missing_sh)
61
if test "$db_cv_path_sh" = missing_sh; then
62
AC_MSG_ERROR([No sh utility found.])
65
# Don't strip the binaries if --enable-debug was specified.
66
if test "$db_cv_debug" = yes; then
67
db_cv_path_strip=debug_build_no_strip
69
AC_CHECK_TOOL(path_strip, strip, missing_strip)
70
AC_PATH_PROG(db_cv_path_strip, $path_strip, missing_strip)
73
if test "$db_cv_test" = "yes"; then
74
AC_CHECK_TOOL(db_cv_path_kill, kill, missing_kill)
75
if test "$db_cv_path_kill" = missing_kill; then
76
AC_MSG_ERROR([No kill utility found.])