/[pkg-mixmaster]/trunk/Mix/configure.in
ViewVC logotype

Contents of /trunk/Mix/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 571 - (show annotations) (download)
Fri Aug 8 15:17:52 2003 UTC (9 years, 10 months ago) by dybbuk
File size: 3120 byte(s)
Working autoconf is included in this commit:

* The old Install script still works (see <20030808142406.GA19289@aarg.net> on mixmaster-devel for my plans to eliminate it)
* I updated Src/util.c to fix some setenv/putenv bugs (this hasn't been tested -- can somebody with access to a machine without setenv please test this?)
* Contrary to the old autoconf stuff, pretty much everything is in config.h.in now.

A few things still need to be cleaned up.  I want to eliminate the XDEFS as much as possible and keep nearly everything in config.h.in.  However, it works for me.  Please test it.
1 # Process this file with autoconf to produce a configure script.
2 # $Id: configure.in,v 1.4 2003/08/08 15:17:52 dybbuk Exp $
3 AC_INIT(Src/version.h)
4 AC_CONFIG_AUX_DIR(etc)
5 AC_CONFIG_HEADER([config.h])
6
7 dnl Find system type
8 AC_CANONICAL_HOST
9
10 dnl Remove trailing slash in $prefix
11 case "${prefix}" in
12 */)
13 prefix=`echo ${prefix} | sed -e 's/^\(.*\)\/$/\1/'`
14 ;;
15 esac
16
17 # Checks for programs.
18 AC_PROG_CC
19 AC_PROG_INSTALL
20 AC_PROG_LN_S
21 AC_PROG_MAKE_SET
22 AC_PROG_RANLIB
23 AC_PROG_CPP
24
25 # These are all Windows libraries -- autoscan said we'd need them, but
26 # I have no Windows machine to test these on, so this undoubtedly is
27 # broken. I will leave it up to a windows geek to figure this out.
28 dnl AC_CHECK_LIB([gdi32], [main])
29 dnl AC_CHECK_LIB([user32], [main])
30 dnl AC_CHECK_LIB([wsock32], [main])
31
32
33 # Checks for header files.
34 AC_HEADER_DIRENT
35 AC_HEADER_STDC
36 AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h limits.h malloc.h memory.h \
37 netdb.h netinet/in.h stddef.h stdlib.h string.h sys/file.h \
38 sys/socket.h sys/time.h termios.h unistd.h utime.h])
39
40 # Checks for typedefs, structures, and compiler characteristics.
41 AC_C_CONST
42 AC_C_INLINE
43 AC_TYPE_OFF_T
44 AC_TYPE_SIZE_T
45 AC_HEADER_TIME
46 AC_STRUCT_TM
47
48 # Checks for library functions.
49 AC_FUNC_MEMCMP
50 AC_FUNC_MMAP
51 AC_FUNC_SETVBUF_REVERSED
52 AC_FUNC_STRFTIME
53 AC_FUNC_UTIME_NULL
54 AC_FUNC_VPRINTF
55 AC_CHECK_FUNCS([stat mktime fork atexit dup2 ftruncate getcwd gethostbyaddr \
56 gethostbyname gethostname gettimeofday memmove memset mkdir \
57 munmap socket strchr strdup strerror strrchr strstr strtol \
58 uname utime setenv getdomainname])
59
60 # ncurses?
61 AC_CHECK_LIB([ncurses], [getstr],
62 [ XDEFS="-DUSE_NCURSES ${XDEFS}"
63 LIBS="-lncurses ${LIBS}" ])
64 AC_CHECK_HEADER(ncurses.h,
65 [ XDEFS="-DHAVE_NCURSES_H ${XDEFS}" ])
66
67 # Zlib check. If the system version is older than 1.1.4, we want to
68 # use the included version. 1.1.4 fixed that nasty double-free bug.
69 AM_ZLIB_CHECK
70
71 # If PCRE isn't installed on the system, we luckily have included a
72 # version.
73 AC_CHECK_LIB([pcre], [pcre_compile],
74 [ XDEFS="-DUSE_PCRE ${XDEFS}"
75 LIBS="-lpcre ${LIBS}" ],
76 [ AC_MSG_RESULT([ Using included PCRE library])
77 TOPDIRS="Src/pcre-2.08 ${TOPDIRS}"
78 XDEFS="-DUSE_PCRE ${XDEFS}"
79 CPPFLAGS="-Ipcre-2.08 ${CPPFLAGS}"
80 XLIBS="pcre-2.08/libpcre.a ${XLIBS}"
81 ])
82
83 for dir in /usr/include /usr/local/include
84 do
85 if test -d "$dir/pcre"
86 then
87 CPPFLAGS="-I$dir/pcre ${CPPFLAGS}"
88 break
89 fi
90 done
91 AC_CHECK_HEADER(pcre.h)
92
93 AM_OPENSSL_CHECK
94 AM_OPENSSL_RSA
95 AM_OPENSSL_IDEA
96 AM_OPENSSL_AES
97
98 # This is always defined, as near as I can tell.
99 AH_TEMPLATE([USE_PGP],
100 [Define to support the OpenPGP message format.])
101 AC_DEFINE(USE_PGP)
102
103 # Did we set a passphrase, against our better judgement?
104 AM_PASSPHRASE
105
106 # Where should Mixmaster work its lovely magic? Apparently this has a
107 # sane default now?
108 AM_MIXMASTER_DIR
109 AM_MIXMASTER_SPOOL
110 AM_MIXMASTER_HOME
111 AM_MIXMASTER_CONF
112
113 # Contains additional build information (such as pcre and zlib)
114 AC_SUBST(TOPDIRS)
115 AC_SUBST(XLIBS)
116 AC_SUBST(XDEFS)
117
118 AC_OUTPUT([Src/Makefile Makefile], [ echo timestamp > stamp-h ])

  ViewVC Help
Powered by ViewVC 1.1.5