Skip to content
Newer
Older
100644 90 lines (73 sloc) 1.83 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])
7951d32 Make version consistent for real this time.
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. Se…
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
be3bb07 Added getpasswd routine for getting a password from the user. A few u…
Damien Stuart authored
34 AC_CHECK_HEADERS([ctype.h netinet/in.h stdlib.h string.h strings.h sys/time.h termios.h unistd.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
be3bb07 Added getpasswd routine for getting a password from the user. A few u…
Damien Stuart authored
55 AC_FUNC_STAT
56 AC_CHECK_FUNCS([bzero gettimeofday memmove memset socket strchr strcspn strdup strncasecmp strndup strrchr strspn])
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
57
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
58 # Check for gpgme
2a51204 Removing files that are auto-generated by the autogen.sh script.
Damien Stuart authored
59 #AM_PATH_GPGME
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. Se…
Damien Stuart authored
60 AC_ARG_WITH([gpgme],
61 [AS_HELP_STRING([--with-gpgme],
62 [support for gpg encryption using libgpgme @<:@default=check@:>@])],
63 [],
64 [with_gpgme=check])
65
10b308b Fixed configure.ac again (I broke it with my last change). Added firs…
Damien Stuart authored
66 have_gpgme=yes
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. Se…
Damien Stuart authored
67 AS_IF([test "x$with_gpgme" != xno],
68 [AC_CHECK_LIB([gpgme], [gpgme_check_version],
10b308b Fixed configure.ac again (I broke it with my last change). Added firs…
Damien Stuart authored
69 [],
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. Se…
Damien Stuart authored
70 [if test "x$with_gpgme" != xcheck; then
71 AC_MSG_FAILURE(
72 [--with-gpgme was given, but test for gpgme failed])
10b308b Fixed configure.ac again (I broke it with my last change). Added firs…
Damien Stuart authored
73 else
74 have_gpgme=no
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. Se…
Damien Stuart authored
75 fi
10b308b Fixed configure.ac again (I broke it with my last change). Added firs…
Damien Stuart authored
76 ])], [have_gpgme=no])
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
77
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
78 AC_CONFIG_FILES([Makefile
79 fko/Makefile
65e11ab Added documentation stub.
Damien Stuart authored
80 doc/Makefile
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
81 src/Makefile])
a82c361 Another major re-write of the fwknop library.
Damien Stuart authored
82
1cdf9fd Re-arrangement of source tree.
Damien Stuart authored
83 AC_OUTPUT
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
84
85 echo "
86 libfko v${VERSION} has been configured.
18c0560 Fixed gpgme check so it would not fail if gpgme was not installed. Se…
Damien Stuart authored
87 ============================================
88 GPG encryption support: $have_gpgme
e846cdd First cut at GPG encrytion support (decryption and doc update are pen…
Damien Stuart authored
89 "
Something went wrong with that request. Please try again.