1
dnl Process this file with autoconf to produce a configure script.
5
AM_CONFIG_HEADER(config.h)
7
# Determine the host and build type. The target is always a PIC.
10
AM_INIT_AUTOMAKE(hddtemp, 0.3-beta11)
12
dnl Checks for programs.
16
# append the host alias to the tools for cross compiling
18
AC_CHECK_HEADERS(fcntl.h)
19
AC_CHECK_HEADERS(netinet/in.h)
20
AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
22
# Checks for typedefs, structures, and compiler characteristics.
26
dnl internationalization macros
29
dnl reasonable guesses for where stuff is installed
30
dnl if we don't do that now, the config.h will use ${prefix}
31
dnl for DEFAULT_DATABASE_PATH.
32
if test "x$prefix" = "xNONE"; then
35
if test "x$exec_prefix" = "xNONE"; then
39
AC_MSG_CHECKING([Location of hddtemp.db])
40
DEFAULT_DATABASE_PATH=
41
#db_path=\"`eval echo ${datadir}`/misc/hddtemp.db\"
42
db_path=\"/usr/share/misc/hddtemp.db\"
44
[ --with-db-path=PATH \
45
Default location of hddtemp.db file [/usr/share/misc/hddtemp.db]],
46
[ if test -d "$withval"; then
47
AC_MSG_FAILURE([new file name for db-path])
49
DEFAULT_DATABASE_PATH="\"$withval\""
51
[ DEFAULT_DATABASE_PATH="$db_path" ])
52
AC_MSG_RESULT($DEFAULT_DATABASE_PATH)
53
AC_DEFINE_UNQUOTED([DEFAULT_DATABASE_PATH], [$DEFAULT_DATABASE_PATH], [Default location of drive info database])
55
#CFLAGS="$CFLAGS -Wall -fomit-frame-pointer -Wcast-align"
56
CFLAGS="$CFLAGS -Wall -W -Wcast-align"
58
# Substitute configuration variables
70
hddtemp-$VERSION is now configured for $canonical_host_type
74
Source directory: $srcdir
75
Installation prefix: $prefix
76
C compiler: $CC $CFLAGS