Skip to content

Commit e2ff504

Browse files
Eris A.axtloss
authored andcommitted
Format and improve build scripts
1 parent 170f018 commit e2ff504

File tree

4 files changed

+29
-13
lines changed

4 files changed

+29
-13
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
autom4te.cache
2+
configure
3+
ltmain.sh
4+
m4/
5+
missing
6+
stamp-h1
27
configure~
38
config.h
9+
config.h.in
410
config.h.in~
511
config.log
612
Makefile
@@ -23,4 +29,4 @@ src/.deps
2329
src/calls.h
2430
src/libsyscall_interceptor*
2531
src/syscall.h
26-
src/unistd_64.h
32+
src/unistd_64.h

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
SUBDIRS = src
22
dist_doc_DATA = README
3+
ACLOCAL_AMFLAGS = -I m4

configure.ac

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1+
AC_PREREQ([2.71])
12
AC_INIT([syscall_interceptor], [1.0], [[email protected]])
2-
LT_INIT
33
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
44
AC_CONFIG_MACRO_DIRS([m4])
5+
6+
AC_CHECK_PROG([PYTHON3], [python3], ["yes"])
7+
AS_IF([test "x$PYTHON3" != "xyes"], [
8+
AC_MSG_ERROR([Program python3 not found. Either install it or add it to PATH])
9+
])
10+
511
AC_PROG_CC
6-
AC_CHECK_LIB
7-
AC_HEADER_STDC
12+
AC_PROG_CPP
13+
AC_PROG_CXX
14+
AM_PROG_AR
15+
16+
LT_INIT
17+
18+
AC_CHECK_HEADERS([unistd.h])
819
AC_CHECK_HEADERS([strings.h])
920
AC_CHECK_HEADERS([libsyscall_intercept_hook_point.h])
1021
AC_CHECK_HEADER_STDBOOL
22+
23+
AC_TYPE_PID_T
24+
AC_TYPE_SIZE_T
25+
AC_TYPE_SSIZE_T
26+
1127
AC_FUNC_MALLOC
12-
AC_PROG_CPP
13-
AC_PROG_CXX
14-
AC_PROG_RANLIB
15-
AM_PROG_AR
28+
AC_CHECK_FUNCS([strstr])
29+
1630
AC_CONFIG_COMMANDS([config.yml],
1731
[python3 parse_config.py > src/calls.h])
1832
AC_CONFIG_HEADERS([config.h])

src/Makefile.am

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
#bin_PROGRAMS = syscall_interceptor
2-
#syscall_interceptor_SOURCES = main.c
3-
#syscall_interceptor_CFLAGS = -lsyscall_intercept
4-
51
lib_LTLIBRARIES = libsyscall_interceptor.la
62
libsyscall_interceptor_la_SOURCES = main.c
73
libsyscall_interceptor_la_CFLAGS = -fpic -lsyscall_intercept -Wall -Wextra
84
libsyscall_interceptor_la_LDFLAGS = -version-info 1:0:0
9-

0 commit comments

Comments
 (0)