comparison configure.in @ 59:7d5c637aaafb

General cleanup and code fixes. Use autoscan to cleanup our autoconf system. Use autoconf to detect when we need to use our XGetopt files and other header files. Decode BCC field. Fix missing LE32_CPU byte swapping for FILETIME types.
author Carl Byington <carl@five-ten-sg.com>
date Thu, 14 Feb 2008 14:55:32 -0800
parents 034641c26ab9
children b4f025d95441
comparison
equal deleted inserted replaced
58:a8b772313ff4 59:7d5c637aaafb
1 AC_INIT(configure.in) 1 AC_PREREQ(2.59)
2 AC_INIT(libpst,0.6.6,carl@five-ten-sg.com)
3 AC_CONFIG_SRCDIR([config.h.in])
4 AC_CONFIG_HEADER([config.h])
2 5
3 AM_CONFIG_HEADER(config.h) 6 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
4 AM_INIT_AUTOMAKE(libpst,0.6.6)
5 AC_PATH_PROGS(BASH, bash)
6 7
7 AC_LANG_CPLUSPLUS 8 # Checks for programs.
8 AC_PROG_CXX 9 AC_PROG_CXX
9 AC_PROG_LIBTOOL 10 AC_PROG_CC
11 AC_PROG_CPP
12 AC_PROG_INSTALL
13 AC_PROG_LN_S
14 AC_PROG_MAKE_SET
15 AC_PROG_RANLIB
16
10 AC_SYS_LARGEFILE 17 AC_SYS_LARGEFILE
18
19 # Checks for header files.
20 AC_CHECK_HEADER([unistd.h],
21 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no ]),
22 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes])
23 )
24 AC_HEADER_DIRENT
25 AC_HEADER_STDC
26 AC_CHECK_HEADERS([limits.h malloc.h netinet/in.h stdint.h stdlib.h string.h sys/param.h wchar.h])
27
28 # Checks for typedefs, structures, and compiler characteristics.
29 AC_HEADER_STDBOOL
30 AC_C_CONST
31 AC_TYPE_OFF_T
32 AC_TYPE_SIZE_T
33 AC_STRUCT_TM
34
35 # Checks for library functions.
36 AC_FUNC_LSTAT
37 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
38 AC_FUNC_MALLOC
39 AC_FUNC_MKTIME
40 AC_FUNC_REALLOC
41 AC_FUNC_STRFTIME
42 AC_FUNC_VPRINTF
43 AC_CHECK_FUNCS([memchr memmove memset strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol])
11 44
12 # The following lines adds the --enable-pst-debug option to configure: 45 # The following lines adds the --enable-pst-debug option to configure:
13 # 46 #
14 # Give the user the choice to enter one of these: 47 # Give the user the choice to enter one of these:
15 # --enable-pst-debug 48 # --enable-pst-debug