File: configure.in

package info (click to toggle)
detect 0.9.72-6.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,724 kB
  • ctags: 3,080
  • sloc: ansic: 17,278; sh: 8,814; makefile: 283; sed: 93
file content (97 lines) | stat: -rw-r--r-- 2,411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(detect, 0.9.72)

AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
AM_PROG_LIBTOOL

dnl Check for arguments
AC_ARG_WITH(kernel_source,
	[--with-kernel-source=path	path to the kernel source tree, default=/usr/src/linux],
	CPPFLAGS=-I$withval/include,
	CPPFLAGS=-I/usr/src/linux/include)

dnl Checks for libraries.
AC_CHECK_LIB(m, log10, , AC_MSG_ERROR(Can't find mathematics library!))
AC_CHECK_LIB(isapnp, interrogate_isapnp,,)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h linux/capability.h linux/genhd.h malloc.h math.h strings.h sys/io.h sys/ioctl.h sys/time.h sys/types.h unistd.h isapnp/pnp-access.h isapnp/res-access.h)

INCLUDES="-I. -I.."
AC_SUBST(INCLUDES)

dnl Only use -Wall if we have gcc
if test "x$GCC" = "xyes"; then
	if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
	CFLAGS="$CFLAGS -Wall"
	fi
fi

CFLAGS="$CFLAGS -I/usr/include/isapnp"

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_STRUCT_ST_RDEV
AC_HEADER_TIME

dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_HEADER_MAJOR
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_CHECK_FUNCS(select strdup strstr strtoul uname)


dnl Internationalization support
ALL_LINGUAS="af ar be bg ca cs da de eo es et fi fr gl hr hu id it lt nl no pl pt_BR ro ru sk sp sr sv tr vi vi_VN.VISCII wa zh_CN.GB2312 zh_TW.Big5 "

AM_GNU_GETTEXT
AC_DEFINE(HAVE_CATGETS)
AC_DEFINE(ENABLE_NLS)
AC_DEFINE(HAVE_LC_MESSAGES)
AC_DEFINE(HAVE_STPCPY)


if test "$prefix" = "NONE"; then
	prefix=/usr/local
fi
				  

LOCALEDIR=$prefix/share/locale
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
AC_SUBST(LOCALEDIR)

PATH_ISA_LST=$prefix/share/detect/isa.lst
PATH_PCI_LST=$prefix/share/detect/pci.lst	
PATH_PCMCIA_LST=$prefix/share/detect/pcmcia.lst	
PATH_USB_LST=$prefix/share/detect/usb.lst
AC_DEFINE_UNQUOTED(PATH_ISA_LST, "$PATH_ISA_LST")
AC_SUBST(PATH_ISA_LST)
AC_DEFINE_UNQUOTED(PATH_PCI_LST, "$PATH_PCI_LST")
AC_SUBST(PATH_PCI_LST)
AC_DEFINE_UNQUOTED(PATH_PCMCIA_LST, "$PATH_PCMCIA_LST")
AC_SUBST(PATH_PCMCIA_LST)
AC_DEFINE_UNQUOTED(PATH_USB_LST, "$PATH_USB_LST")
AC_SUBST(PATH_USB_LST)


AC_OUTPUT([
src/SuperProbe/Makefile
src/lst/Makefile
src/Makefile
Makefile
po/Makefile.in
intl/Makefile
])