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

Contents of /trunk/Mix/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 296 - (show annotations) (download)
Tue Oct 1 13:01:40 2002 UTC (10 years, 8 months ago) by dybbuk
File size: 2849 byte(s)
Basic autoconf support.

This is just a beginning.  Len says it has problems detecting his
screwy OpenSSL installation, which we can work on.  Also, I didn't
start mucking about in using the autoconf-generated config.h instead
of a bunch of -D options on the compiler command line.  This is
something we should do, though!

There is also not yet a replacement for the installation part of the
old 'Install' script.
1 # Process this file with autoconf to produce a configure script.
2 # $Id: configure.in,v 1.1 2002/10/01 13:01:39 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 netdb.h netinet/in.h stddef.h stdlib.h string.h sys/file.h sys/socket.h sys/time.h termios.h unistd.h utime.h])
37
38 # Checks for typedefs, structures, and compiler characteristics.
39 AC_C_CONST
40 AC_C_INLINE
41 AC_TYPE_OFF_T
42 AC_TYPE_SIZE_T
43 AC_HEADER_TIME
44 AC_STRUCT_TM
45
46 # Checks for library functions.
47 AC_FUNC_MEMCMP
48 AC_FUNC_MMAP
49 AC_FUNC_SETVBUF_REVERSED
50 AC_FUNC_STRFTIME
51 AC_FUNC_UTIME_NULL
52 AC_FUNC_VPRINTF
53 AC_CHECK_FUNCS([stat mktime fork atexit dup2 ftruncate getcwd gethostbyaddr gethostbyname gethostname gettimeofday memmove memset mkdir munmap socket strchr strdup strerror strrchr strstr strtol uname utime])
54
55 # ncurses?
56 AC_CHECK_LIB([ncurses], [getstr],
57 [ CPPFLAGS="-DUSE_NCURSES ${CPPFLAGS}"
58 LIBS="-lncurses ${LIBS}" ])
59 AC_CHECK_HEADER(ncurses.h,
60 [ CPPFLAGS="-DHAVE_NCURSES_H ${CPPFLAGS}" ])
61
62 # Zlib check. If the system version is older than 1.1.4, we want to
63 # use the included version. 1.1.4 fixed that nasty double-free bug.
64 AM_ZLIB_CHECK
65
66 # If PCRE isn't installed on the system, we luckily have included a
67 # version.
68 AC_CHECK_LIB([pcre], [pcre_compile],
69 [ CPPFLAGS="-DUSE_PCRE ${CPPFLAGS}"
70 LIBS="-lpcre ${LIBS}" ],
71 [ AC_MSG_RESULT([ Using included PCRE library])
72 TOPDIRS="Src/pcre-2.08 ${TOPDIRS}"
73 CPPFLAGS="-DUSE_PCRE -Ipcre-2.08 ${CPPFLAGS}"
74 XLIBS="pcre-2.08/libpcre.a ${XLIBS}"
75 ])
76
77 for dir in /usr/include /usr/local/include
78 do
79 if test -d "$dir/pcre"
80 then
81 CPPFLAGS="-I$dir/pcre ${CPPFLAGS}"
82 break
83 fi
84 done
85 AC_CHECK_HEADER(pcre.h)
86
87 AM_OPENSSL_CHECK
88 AM_OPENSSL_RSA
89 AM_OPENSSL_IDEA
90 AM_OPENSSL_AES
91
92 # Did we set a passphrase, against our better judgement?
93 AM_PASSPHRASE
94
95 # Where should Mixmaster work its lovely magic? Apparently this has a
96 # sane default now?
97 AM_MIXMASTER_DIR
98 AM_HOMEMIXDIR
99 AM_MIX_CONF
100
101 # Contains additional build information (such as pcre and zlib)
102 AC_SUBST(TOPDIRS)
103 AC_SUBST(XLIBS)
104
105 AC_OUTPUT([Src/Makefile Makefile], [ echo timestamp > stamp-h ])

  ViewVC Help
Powered by ViewVC 1.1.5