Skip to content

Commit 3d902e8

Browse files
authored
Merge pull request #1 from snmsts/automake
Automake
2 parents 1bb959c + 18b10f1 commit 3d902e8

9 files changed

+65
-3
lines changed

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
*.o
3+
*.lo
4+
*.la
5+
.deps
6+
.libs
7+
8+
Makefile
9+
Makefile.in
10+
configure
11+
config.status
12+
config.guess
13+
config.sub
14+
config.h
15+
config.h.in
16+
install-sh
17+
missing
18+
compile
19+
aclocal.m4
20+
autom4te.cache
21+
stamp-h1
22+
depcomp
23+
config.log
24+
libtool
25+
ltmain.sh
26+

Makefile

-2
This file was deleted.

Makefile.am

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pkglib_LTLIBRARIES = libasyncprocess.la
2+
libasyncprocess_la_LDFLAGS = -module -avoid-version
3+
libasyncprocess_la_SOURCES = async-process.c
4+
5+
copy:
6+
cp -f .libs/libasyncprocess.so static/libasyncprocess-`uname -m`-`uname`.so|true
7+
cp -f .libs/libasyncprocess.dylib static/libasyncprocess-`uname -m`-`uname`.dylib|true
8+
cp -f .libs/libasyncprocess.dll static/libasyncprocess-`uname -m`-`uname`.dll|true

async-process.lisp

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
cffi:*foreign-library-directories*
1313
:test #'uiop:pathname-equal)
1414

15+
(eval-when (:compile-toplevel :load-toplevel :execute)
16+
(defun system (cmd)
17+
(ignore-errors (string-right-trim '(#\Newline) (uiop:run-program cmd :output :string)))))
18+
1519
(cffi:define-foreign-library async-process
16-
(:unix "libasync-process.so"))
20+
(:unix #.(format nil "libasyncprocess-~A-~A.so" (system "uname -m") (system "uname") )))
1721

1822
(cffi:use-foreign-library async-process)
1923

bootstrap

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
libtoolize
3+
aclocal
4+
autoheader
5+
automake -a
6+
autoconf
7+

configure.ac

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
AC_INIT([async-process], [0.1])
2+
AM_CONFIG_HEADER(config.h)
3+
4+
AM_INIT_AUTOMAKE([foreign])
5+
LT_INIT(shared)
6+
AC_PROG_CC
7+
8+
9+
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
10+
11+
AC_CHECK_HEADER_STDBOOL
12+
AC_TYPE_PID_T
13+
14+
AC_FUNC_FORK
15+
AC_FUNC_MALLOC
16+
AC_CHECK_FUNCS([dup2 strerror])
17+
18+
AC_CONFIG_FILES([Makefile])
19+
AC_OUTPUT

static/libasync-process.so

-13.4 KB
Binary file not shown.
23.4 KB
Binary file not shown.
22.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)