File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed
Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change 1+ # Configure autoconf
12AC_INIT ( [ libcx] ,
[ 0.1] ,
[ [email protected] ] ) 23AC_CONFIG_MACRO_DIRS([ m4] )
34AC_CONFIG_SRCDIR ( [ src/generator.c] )
45AC_CONFIG_AUX_DIR ( [ build-aux] )
56AC_CONFIG_HEADERS ( [ config.h] )
7+
8+ # Check for programs
69AC_PROG_CC
10+ AC_PROG_CXX
711AM_PROG_AR
12+
13+ # Configure libtool
14+ LT_INIT([ shared] )
15+
16+ # Configure automake
17+ AM_INIT_AUTOMAKE ( [ foreign subdir-objects] )
18+
19+ # Check for libraries
820PKG_CHECK_MODULES(SSL, openssl)
9- AC_CHECK_HEADERS ( [ stdlib.h openssl/rand_drbg.h openssl/x509.h] )
21+
22+ # Check for headers
23+ AC_CHECK_HEADERS ( [ stddef.h stdlib.h string.h \
24+ openssl/rand_drbg.h openssl/x509.h] )
25+
26+ # Check for types
1027AC_TYPE_SIZE_T
11- AC_CHECK_FUNCS ( [ RAND_DRBG_instantiate] )
28+
29+ # Check for library functions
30+ AC_FUNC_MALLOC
31+ AC_CHECK_FUNCS ( [ memset] )
32+
33+ # Configure tests
1234AX_VALGRIND_DFLT([ sgcheck] , [ off] )
1335AX_VALGRIND_CHECK
1436AM_EXTRA_RECURSIVE_TARGETS([ check-valgrind] )
1537m4_foreach ( [ vgtool] , [ valgrind_tool_list] ,
1638 [ AM_EXTRA_RECURSIVE_TARGETS([ check-valgrind-] vgtool)] )
17- LT_INIT( [ shared ] )
18- AM_INIT_AUTOMAKE ( [ foreign subdir-objects ] )
39+
40+ # Generate files
1941AC_CONFIG_FILES ( [ Makefile src/Makefile] )
2042AC_OUTPUT
You can’t perform that action at this time.
0 commit comments