Skip to content

Commit 2ec8ca0

Browse files
committed
Finished fixing ml_sockets
1 parent 81ddfc1 commit 2ec8ca0

20 files changed

+180
-56
lines changed

sockets/Makefile

Lines changed: 0 additions & 38 deletions
This file was deleted.

sockets/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SUBDIRS=luaimports src

sockets/build.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#########################
2+
# Remove old binary
3+
#########################
4+
if [ -e "ml_sockets.so" ]; then
5+
rm ml_sockets.so
6+
fi
7+
8+
#########################
9+
# Prepare build
10+
#########################
11+
autoreconf -ifv
12+
./configure
13+
make clean
14+
15+
#########################
16+
# Do build
17+
#########################
18+
echo Building...
19+
make >build.log
20+
21+
#########################
22+
# Check for error
23+
#########################
24+
rc=$?
25+
if [ $rc -ne 0 ]; then
26+
echo "Stopping: make returned error code $rc"
27+
exit 1
28+
fi
29+
30+
#########################
31+
# Copy binary file
32+
#########################
33+
cp src/.libs/libml_sockets.so ./ml_sockets.so
34+
echo "Build completed "`pwd`"/ml_sockets.so"
35+
exit 0

sockets/configure.ac

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ(2.60)
5+
AC_INIT(ml_sockets.so, 0.1)
6+
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7+
AC_CONFIG_SRCDIR([include/lua.h])
8+
AC_CONFIG_HEADER([config.h])
9+
AC_CONFIG_FILES([Makefile luaimports/Makefile src/Makefile])
10+
11+
# Checks for programs.
12+
AC_PROG_CC
13+
AC_PROG_CXX
14+
AC_PROG_LIBTOOL
15+
16+
# Checks for libraries.
17+
18+
# Checks for header files.
19+
20+
# Checks for typedefs, structures, and compiler characteristics.
21+
AC_C_CONST
22+
AC_TYPE_SIZE_T
23+
AC_TYPE_SSIZE_T
24+
25+
# Checks for library functions.
26+
27+
AC_OUTPUT
28+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)