Mercurial > hg > mlmmj
annotate configure.ac @ 905:959ce1b9d78c BRANCH_1_2_19
Added tag RELEASE_1_2_19_0 for changeset b202ed626645
author | Ben Schmidt |
---|---|
date | Tue, 26 May 2015 07:34:51 +1000 |
parents | 7ed55458d9e3 |
children | bba3a46fee47 |
rev | line source |
---|---|
0 | 1 # Process this file with autoconf to produce a configure script. |
2 AC_INIT(mlmmj, esyscmd([tr -d '\n' < VERSION]), mmj@mmj.dk) | |
3 | |
366 | 4 VERSION=$PACKAGE_VERSION |
0 | 5 AC_SUBST(VERSION) |
6 | |
7 AM_INIT_AUTOMAKE(mlmmj, $VERSION) | |
748
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
655
diff
changeset
|
8 AC_CONFIG_SRCDIR([src/mlmmj-receive.c]) |
0 | 9 AM_CONFIG_HEADER([config.h]) |
10 | |
11 # Checks for programs. | |
12 AC_PROG_CC | |
13 | |
14 # Checks for libraries. | |
15 AC_CHECK_LIB(socket,socket) | |
288
1f741ed4b937
Don't use daemon() since it's not present on Solaris. Use our own instead
mmj
parents:
269
diff
changeset
|
16 AC_CHECK_LIB(nsl,gethostbyname) |
896 | 17 AC_CHECK_LIB(iconv,iconv_open) |
0 | 18 |
19 # Checks for header files. | |
20 AC_HEADER_STDC | |
21 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stddef.h stdlib.h string.h]) | |
22 AC_CHECK_HEADERS([sys/socket.h syslog.h unistd.h time.h]) | |
896 | 23 AC_CHECK_HEADER([iconv.h]) |
0 | 24 |
25 # Checks for typedefs, structures, and compiler characteristics. | |
26 AC_C_CONST | |
27 AC_TYPE_SIZE_T | |
28 | |
443
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
29 savex=$exec_prefix |
445 | 30 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
443
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
31 test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
32 tmp=$datadir/$PACKAGE/text.skel |
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
33 while textlibdir=`eval echo "$tmp"`; test "x$textlibdir" != "x$tmp"; do tmp=$textlibdir; done |
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
34 exec_prefix=$savex |
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
35 |
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
36 AC_SUBST(textlibdir) |
0c96f9bb3162
mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
390
diff
changeset
|
37 |
748
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
655
diff
changeset
|
38 AC_ARG_ENABLE([receive-strip], |
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
655
diff
changeset
|
39 AS_HELP_STRING([--enable-receive-strip], |
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
655
diff
changeset
|
40 [build mlmmj-receive-strip (default is no)])) |
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
655
diff
changeset
|
41 AM_CONDITIONAL(WANT_RECEIVESTRIP, test x"$enable_receive_strip" = xyes) |
655
d0eac1a38a8b
Added --enable-recieve-strip configure option (Ansgar Burchardt)
mortenp
parents:
649
diff
changeset
|
42 |
0 | 43 # Checks for library functions. |
44 AC_FUNC_MALLOC | |
45 AC_CHECK_FUNCS([ftruncate memset socket strerror strncasecmp snprintf fcntl]) | |
269 | 46 AC_CHECK_FUNCS([nanosleep time strftime syslog regcomp regexec]) |
0 | 47 |
48 AC_CONFIG_FILES([Makefile]) | |
49 AC_CONFIG_FILES([src/Makefile]) | |
749
fdc57c9e5f56
Remove .sh from mlmmj-make-ml.sh; symlink original name
Ben Schmidt
parents:
748
diff
changeset
|
50 AC_CONFIG_FILES([src/mlmmj-make-ml]) |
390 | 51 AC_CONFIG_FILES([listtexts/Makefile]) |
649
5eef399f6c4a
Fixed build outside the source directory (Ansgar Burchardt)
mortenp
parents:
631
diff
changeset
|
52 AC_CONFIG_FILES([contrib/Makefile]) |
748
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
655
diff
changeset
|
53 AC_CONFIG_FILES([contrib/receivestrip/Makefile]) |
0 | 54 AC_OUTPUT |