Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 89 lines (72 sloc) 1.814 kB
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
1 dnl Process thie file with autoconf to produce teh configure script
2
2a51204 Removing files that are auto-generated by the autogen.sh script.
Damien Stuart authored
3 AC_PREREQ(2.61)
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
4
5 m4_define(my_package, [fwknop])
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
6 m4_define(my_version, [1.10.0-alpha])
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
7 m4_define(my_bug_email, [dstuart@dstuart.org])
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
8
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
9 AC_INIT(my_package, my_version, my_bug_email)
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
10 AC_CONFIG_AUX_DIR(config)
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
11
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. S…
Damien Stuart authored
12 #AM_INIT_AUTOMAKE(my_package, my_version)
13 AM_INIT_AUTOMAKE([-Wall foreign])
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
14
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
15 dnl AM_MAINTAINER_MODE
16
17 AC_CONFIG_HEADER([config.h])
18
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
19 AC_GNU_SOURCE
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
20
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
21 AC_PROG_CC
22 AM_PROG_CC_C_O
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
23 AC_PROG_CXX
24 AC_PROG_CPP
25 AC_PROG_INSTALL
26 AC_PROG_LN_S
27 AC_PROG_MAKE_SET
474a787 more checks for configure. omit salt from Rijndael-encrypted data as…
Damien Stuart authored
28 AC_PROG_RANLIB
e113cb7 Updates to allow for building libfko as a shared lib. (make use of li…
Damien Stuart authored
29 AC_PROG_LIBTOOL
30
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
31 # Checks for header files.
32 #
33 AC_HEADER_STDC
98bb7ed Added some basic format checking to spa message data and message_type…
Damien Stuart authored
34 AC_CHECK_HEADERS([locale.h stdlib.h string.h sys/time.h unistd.h ctype.h])
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
35
36 # Type checks.
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
37 #
2a51204 Removing files that are auto-generated by the autogen.sh script.
Damien Stuart authored
38 AC_C_CONST
deb85dd Total re-arrangement for autoconf/automake implementation.
Damien Stuart authored
39 AC_TYPE_OFF_T
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
40 AC_TYPE_SIZE_T
41 AC_TYPE_INT16_T
42 AC_TYPE_INT32_T
43 AC_TYPE_INT64_T
44 AC_TYPE_INT8_T
45 AC_TYPE_SIZE_T
46 AC_HEADER_TIME
47 AC_TYPE_UINT32_T
48 AC_TYPE_UINT8_T
2a51204 Removing files that are auto-generated by the autogen.sh script.
Damien Stuart authored
49 AC_CHECK_SIZEOF(unsigned int)
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
50
51 # Checks for library functions.
52 #
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
53 AC_FUNC_MALLOC
474a787 more checks for configure. omit salt from Rijndael-encrypted data as…
Damien Stuart authored
54 AC_FUNC_REALLOC
55 AC_CHECK_FUNCS([bzero gettimeofday memmove memset strchr strcspn strdup strndup strrchr strspn])
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
56
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
57 # Check for gpgme
2a51204 Removing files that are auto-generated by the autogen.sh script.
Damien Stuart authored
58 #AM_PATH_GPGME
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. S…
Damien Stuart authored
59 AC_ARG_WITH([gpgme],
60 [AS_HELP_STRING([--with-gpgme],
61 [support for gpg encryption using libgpgme @<:@default=check@:>@])],
62 [],
63 [with_gpgme=check])
64
10b308b Fixed configure.ac again (I broke it with my last change). Added fir…
Damien Stuart authored
65 have_gpgme=yes
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. S…
Damien Stuart authored
66 AS_IF([test "x$with_gpgme" != xno],
67 [AC_CHECK_LIB([gpgme], [gpgme_check_version],
10b308b Fixed configure.ac again (I broke it with my last change). Added fir…
Damien Stuart authored
68 [],
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. S…
Damien Stuart authored
69 [if test "x$with_gpgme" != xcheck; then
70 AC_MSG_FAILURE(
71 [--with-gpgme was given, but test for gpgme failed])
10b308b Fixed configure.ac again (I broke it with my last change). Added fir…
Damien Stuart authored
72 else
73 have_gpgme=no
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. S…
Damien Stuart authored
74 fi
10b308b Fixed configure.ac again (I broke it with my last change). Added fir…
Damien Stuart authored
75 ])], [have_gpgme=no])
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
76
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
77 AC_CONFIG_FILES([Makefile
78 fko/Makefile
65e11ab Added documentation stub.
Damien Stuart authored
79 doc/Makefile
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
80 src/Makefile])
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
81
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
82 AC_OUTPUT
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
83
84 echo "
85 libfko v${VERSION} has been configured.
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. S…
Damien Stuart authored
86 ============================================
87 GPG encryption support: $have_gpgme
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
88 "
Something went wrong with that request. Please try again.