File: configure.in

package info (click to toggle)
bk2site 1%3A1.1.9-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 788 kB
  • ctags: 436
  • sloc: cpp: 4,051; perl: 1,243; sh: 605; makefile: 104
file content (56 lines) | stat: -rw-r--r-- 1,402 bytes parent folder | download | duplicates (3)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(bk2site.C)
AM_INIT_AUTOMAKE(bk2site, 1.1.9)
AC_PROG_MAKE_SET
dnl support libtool configure flags
AM_CONFIG_HEADER(config.h)

AC_LANG_CPLUSPLUS

dnl Checks for programs.
AC_PROG_CXX
AC_PROG_INSTALL

dnl Checks for libraries.

dnl Checks for header files.
AC_CHECK_HEADERS(sys/time.h)

dnl Checks for typedefs, structures, and compiler characteristics.

dnl This check failed with the new g++ compiler (rehat 6.1), Im assuming
dnl everyone has const.
dnl AC_C_CONST

AC_HEADER_TIME

dnl Checks for library functions. I got these from the configure.in for wget.
AC_HEADER_STDC
AC_CHECK_FUNCS(gettimeofday mkdir)

AC_CHECK_FUNCS(gethostbyname, [], [
  AC_CHECK_LIB(nsl, gethostbyname)
])
dnl
dnl Checks for libraries.
dnl

AC_CHECK_LIB(socket, socket)

dnl #### This appears to be deficient with later versions of SOCKS.
if test "x${with_socks}" = xyes
then
  AC_CHECK_LIB(resolv, main)
  AC_CHECK_LIB(socks, Rconnect)
fi

AC_ARG_ENABLE(standard-datadir,
[  --enable-standard-datadir    use PREFIX/share/bk2site/ for dot.bk2siterc],
[case "${enableval}" in
       yes) standard_datadir=true ;;
       no)  standard_datadir=false ;;
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-standard-datadir) ;;
     esac],[standard_datadir=false])
AM_CONDITIONAL(STD_DATADIR, test x$standard_datadir = xtrue)

AC_OUTPUT(Makefile)