comparison configure.in @ 9:48880e61ce5e

better autoconf, changes for solaris portability
author carl
date Wed, 03 Jan 2007 22:28:27 -0800
parents 45c8592d5d13
children f9e8bbf33a2a
comparison
equal deleted inserted replaced
8:ed73e6361570 9:48880e61ce5e
1 AC_INIT(configure.in) 1 AC_PREREQ(2.59)
2 AC_INIT(sm-archive,1.2,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(sm-archive,1.0)
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
10 16
11 AC_OUTPUT( \ 17 # Checks for header files.
12 Makefile \ 18 AC_HEADER_SYS_WAIT
13 sm-archive.spec \ 19 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h unistd.h])
14 html/Makefile \ 20
15 info/Makefile \ 21 # Checks for typedefs, structures, and compiler characteristics.
16 man/Makefile \ 22 AC_HEADER_STDBOOL
17 src/Makefile \ 23 AC_C_CONST
18 xml/Makefile \ 24
19 xml/sm-archive \ 25 # Checks for library functions.
20 ) 26 AC_FUNC_FORK
27 AC_FUNC_GETPGRP
28 AC_HEADER_STDC
29 AC_FUNC_STAT
30 AC_CHECK_FUNCS([memset socket strchr strdup strncasecmp strtol daemon])
31
32 AC_CONFIG_FILES([Makefile
33 sm-archive.spec
34 html/Makefile
35 info/Makefile
36 man/Makefile
37 src/Makefile
38 xml/Makefile
39 xml/sm-archive])
40 AC_OUTPUT