File: configure.in

package info (click to toggle)
procinfo 1:2.0.304-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 468 kB
  • ctags: 163
  • sloc: cpp: 1,633; sh: 153; perl: 84; ansic: 28; makefile: 27
file content (50 lines) | stat: -rw-r--r-- 1,205 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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT([procinfo-ng], [2.0], [tabrisnet@users.sourceforge.net])
AC_CONFIG_SRCDIR([procinfo.cpp])

# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h math.h sys/ioctl.h termios.h ncurses.h])
AC_HEADER_DIRENT
AC_HEADER_TIME

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T

# Checks for library functions.
AC_FUNC_SELECT_ARGTYPES
AC_FUNC_STRTOD
AC_CHECK_FUNCS([select strtol strtoul strtoull snprintf readdir64])

AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode	Enables debug symbols and disables optimizations [default=no]],
[ enable_maintainer_mode=no ])

if test "$enable_maintainer_mode" = "yes"; then
	CFLAGS="-O0 -g3 --pipe -Wall"
	LDFLAGS="-lncurses"
else
	CFLAGS="$CFLAGS -pipe -Wall"
	LDFLAGS="$LDFLAGS -s -lncurses"
fi

AC_OUTPUT(Makefile)
#AC_CONFIG_FILES([Makefile])
#AC_OUTPUT